2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="build/version.sh"
429 ac_default_prefix=/usr/local
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 --target=TARGET configure for building compilers for TARGET [HOST]
1021 if test -n "$ac_init_help"; then
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --enable-debug enable debugging yes
1029 --enable-dynamic enable linking built binaries with dynamic libs no
1030 --enable-syslog enable syslog support auto
1031 --enable-proctitle enable proctitle support yes
1032 --enable-ipv6 enable IPv6 support auto
1033 --enable-local enable AF_LOCAL (AF_UNIX) socket support auto
1034 --enable-slapd enable building slapd yes
1035 --enable-aci enable per-object ACIs (experimental) no
1036 --enable-cleartext enable cleartext passwords yes
1037 --enable-crypt enable crypt(3) passwords no
1038 --enable-lmpasswd enable LAN Manager passwords no
1039 --enable-spasswd enable (Cyrus) SASL password verification no
1040 --enable-modules enable dynamic module support no
1041 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay auto
1042 --enable-rlookups enable reverse lookups of client hostnames no
1043 --enable-slapi enable SLAPI support (experimental) no
1044 --enable-slp enable SLPv2 support no
1045 --enable-wrappers enable tcp wrapper support no
1046 --enable-backends enable all available backends no|yes|mod
1047 --enable-bdb enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1048 --enable-dnssrv enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1049 --enable-hdb enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1050 --enable-ldap enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1051 --enable-ldbm enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1052 --enable-meta enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1053 --enable-monitor enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1054 --enable-null enable null backend no|yes|mod ${ol_dflt_backends-no}
1055 --enable-passwd enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1056 --enable-perl enable perl backend no|yes|mod ${ol_dflt_backends-no}
1057 --enable-relay enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1058 --enable-shell enable shell backend no|yes|mod ${ol_dflt_backends-no}
1059 --enable-sql enable sql backend no|yes|mod ${ol_dflt_backends-no}
1060 --enable-overlays enable all available overlays no|yes|mod
1061 --enable-accesslog In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1062 --enable-denyop Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1063 --enable-dyngroup Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1064 --enable-dynlist Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1065 --enable-glue Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1066 --enable-lastmod Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1067 --enable-ppolicy Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1068 --enable-proxycache Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1069 --enable-refint Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1070 --enable-retcode Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1071 --enable-rwm Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1072 --enable-syncprov Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1073 --enable-translucent Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1074 --enable-unique Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1075 --enable-slurpd enable building slurpd auto
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-shared[=PKGS]
1079 build shared libraries [default=yes]
1080 --enable-fast-install[=PKGS]
1081 optimize for fast installation [default=yes]
1082 --disable-dependency-tracking speeds up one-time build
1083 --enable-dependency-tracking do not reject slow dependency extractors
1084 --disable-libtool-lock avoid locking (might break parallel builds)
1087 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1088 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1089 --with-subdir=DIR change default subdirectory used for installs
1090 --with-cyrus-sasl with Cyrus SASL support auto
1091 --with-fetch with fetch(3) URL support auto
1092 --with-threads with threads auto
1093 --with-tls with TLS/SSL support auto
1094 --with-yielding-select with implicitly yielding select auto
1095 --with-multiple-precision
1096 multiple precision support for statistics
1097 auto|bignum|gmp auto
1099 SLAPD (Standalone LDAP Daemon) Options:
1101 SLAPD Backend Options:
1102 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1103 --with-ldbm-type use LDBM type auto|btree|hash auto
1105 SLAPD Overlay Options:
1107 SLURPD (Replication Daemon) Options:
1109 Library Generation & Linking Options
1110 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1111 --with-pic try to use only PIC/non-PIC objects [default=use
1114 include additional configurations [automatic]
1116 See INSTALL file for further details.
1118 Some influential environment variables:
1119 CC C compiler command
1120 CFLAGS C compiler flags
1121 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1122 nonstandard directory <lib dir>
1123 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124 headers in a nonstandard directory <include dir>
1126 CXX C++ compiler command
1127 CXXFLAGS C++ compiler flags
1128 CXXCPP C++ preprocessor
1129 F77 Fortran 77 compiler command
1130 FFLAGS Fortran 77 compiler flags
1132 Use these variables to override the choices made by `configure' or to help
1133 it to find libraries and programs with nonstandard names/locations.
1138 if test "$ac_init_help" = "recursive"; then
1139 # If there are subdirs, report their specific --help.
1141 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142 test -d $ac_dir || continue
1145 if test "$ac_dir" != .; then
1146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147 # A "../" for each directory in $ac_dir_suffix.
1148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1150 ac_dir_suffix= ac_top_builddir=
1154 .) # No --srcdir option. We are building in place.
1156 if test -z "$ac_top_builddir"; then
1159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1161 [\\/]* | ?:[\\/]* ) # Absolute path.
1162 ac_srcdir=$srcdir$ac_dir_suffix;
1163 ac_top_srcdir=$srcdir ;;
1165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1169 # Do not use `cd foo && pwd` to compute absolute paths, because
1170 # the directories may not exist.
1172 .) ac_abs_builddir="$ac_dir";;
1175 .) ac_abs_builddir=`pwd`;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1180 case $ac_abs_builddir in
1181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1183 case ${ac_top_builddir}. in
1184 .) ac_abs_top_builddir=$ac_abs_builddir;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1189 case $ac_abs_builddir in
1190 .) ac_abs_srcdir=$ac_srcdir;;
1193 .) ac_abs_srcdir=$ac_abs_builddir;;
1194 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1198 case $ac_abs_builddir in
1199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1201 case $ac_top_srcdir in
1202 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209 # Check for guested configure; otherwise get Cygnus style configure.
1210 if test -f $ac_srcdir/configure.gnu; then
1212 $SHELL $ac_srcdir/configure.gnu --help=recursive
1213 elif test -f $ac_srcdir/configure; then
1215 $SHELL $ac_srcdir/configure --help=recursive
1216 elif test -f $ac_srcdir/configure.ac ||
1217 test -f $ac_srcdir/configure.in; then
1219 $ac_configure --help
1221 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227 test -n "$ac_init_help" && exit 0
1228 if $ac_init_version; then
1231 Copyright (C) 2003 Free Software Foundation, Inc.
1232 This configure script is free software; the Free Software Foundation
1233 gives unlimited permission to copy, distribute and modify it.
1239 This file contains any messages produced by compilers while
1240 running configure, to aid debugging if configure makes a mistake.
1242 It was created by $as_me, which was
1243 generated by GNU Autoconf 2.59. Invocation command line was
1254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1277 test -z "$as_dir" && as_dir=.
1278 echo "PATH: $as_dir"
1293 # Keep a trace of the command line.
1294 # Strip out --no-create and --no-recursion so they do not pile up.
1295 # Strip out --silent because we don't want to record it for future runs.
1296 # Also quote any args containing shell meta-characters.
1297 # Make two passes to allow for proper duplicate-argument suppression.
1302 ac_must_keep_next=false
1308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310 | -silent | --silent | --silen | --sile | --sil)
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1316 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1318 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319 if test $ac_must_keep_next = true; then
1320 ac_must_keep_next=false # Got value, back to normal.
1323 *=* | --config-cache | -C | -disable-* | --disable-* \
1324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326 | -with-* | --with-* | -without-* | --without-* | --x)
1327 case "$ac_configure_args0 " in
1328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1331 -* ) ac_must_keep_next=true ;;
1334 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335 # Get rid of the leading space.
1341 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1344 # When interrupted or exit'd, cleanup temporary files, and complete
1345 # config.log. We remove comments because anyway the quotes in there
1346 # would cause problems or look ugly.
1347 # WARNING: Be sure not to use single quotes in there, as some shells,
1348 # such as our DU 5.0 friend, will then `close' the trap.
1349 trap 'exit_status=$?
1350 # Save into config.log some information that might help in debugging.
1355 ## ---------------- ##
1356 ## Cache variables. ##
1357 ## ---------------- ##
1360 # The following way of writing the cache mishandles newlines in values,
1363 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1366 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1378 ## ----------------- ##
1379 ## Output variables. ##
1380 ## ----------------- ##
1383 for ac_var in $ac_subst_vars
1385 eval ac_val=$`echo $ac_var`
1386 echo "$ac_var='"'"'$ac_val'"'"'"
1390 if test -n "$ac_subst_files"; then
1397 for ac_var in $ac_subst_files
1399 eval ac_val=$`echo $ac_var`
1400 echo "$ac_var='"'"'$ac_val'"'"'"
1405 if test -s confdefs.h; then
1412 sed "/^$/d" confdefs.h | sort
1415 test "$ac_signal" != 0 &&
1416 echo "$as_me: caught signal $ac_signal"
1417 echo "$as_me: exit $exit_status"
1419 rm -f core *.core &&
1420 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1423 for ac_signal in 1 2 13 15; do
1424 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1428 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1429 rm -rf conftest* confdefs.h
1430 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1433 # Predefined preprocessor variables.
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_NAME "$PACKAGE_NAME"
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_STRING "$PACKAGE_STRING"
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1460 # Let the site file select an alternate cache file if it wants to.
1461 # Prefer explicitly selected file to automatically selected ones.
1462 if test -z "$CONFIG_SITE"; then
1463 if test "x$prefix" != xNONE; then
1464 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1466 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1469 for ac_site_file in $CONFIG_SITE; do
1470 if test -r "$ac_site_file"; then
1471 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472 echo "$as_me: loading site script $ac_site_file" >&6;}
1473 sed 's/^/| /' "$ac_site_file" >&5
1479 # Check that the precious variables saved in the cache have kept the same
1481 ac_cache_corrupted=false
1482 for ac_var in `(set) 2>&1 |
1483 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1484 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485 eval ac_new_set=\$ac_env_${ac_var}_set
1486 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487 eval ac_new_val="\$ac_env_${ac_var}_value"
1488 case $ac_old_set,$ac_new_set in
1490 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1491 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1492 ac_cache_corrupted=: ;;
1494 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1496 ac_cache_corrupted=: ;;
1499 if test "x$ac_old_val" != "x$ac_new_val"; then
1500 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1501 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1503 echo "$as_me: former value: $ac_old_val" >&2;}
1504 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1505 echo "$as_me: current value: $ac_new_val" >&2;}
1506 ac_cache_corrupted=:
1509 # Pass precious variables to config.status.
1510 if test "$ac_new_set" = set; then
1512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 *) ac_arg=$ac_var=$ac_new_val ;;
1516 case " $ac_configure_args " in
1517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1518 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1522 if $ac_cache_corrupted; then
1523 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1524 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1525 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1526 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1527 { (exit 1); exit 1; }; }
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 # set unset (borrowed from autoconf 2.49c)
1556 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1562 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1565 for ac_dir in build $srcdir/build; do
1566 if test -f $ac_dir/install-sh; then
1568 ac_install_sh="$ac_aux_dir/install-sh -c"
1570 elif test -f $ac_dir/install.sh; then
1572 ac_install_sh="$ac_aux_dir/install.sh -c"
1574 elif test -f $ac_dir/shtool; then
1576 ac_install_sh="$ac_aux_dir/shtool install -c"
1580 if test -z "$ac_aux_dir"; then
1581 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1582 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1583 { (exit 1); exit 1; }; }
1585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1587 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1589 eval `$ac_aux_dir/version.sh`
1590 if test -z "$OL_STRING"; then
1591 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1592 echo "$as_me: error: could not determine version" >&2;}
1593 { (exit 1); exit 1; }; }
1596 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1597 ac_cv_shtool="$ac_aux_dir/shtool"
1599 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1600 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1601 { (exit 1); exit 1; }; }
1604 SHTOOL="$ac_cv_shtool"
1606 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1607 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1610 if test -d $ac_aux_dir/CVS; then
1611 OPENLDAP_CVS="(from CVS sources) "
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 am__api_version="1.9"
1700 # Find a good install program. We prefer a C program (faster),
1701 # so one script is as good as another. But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 # Account for people who put trailing slashes in PATH elements.
1726 ./ | .// | /cC/* | \
1727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1731 # OSF1 and SCO ODT 3.0 have their own names for install.
1732 # Don't use installbsd from OSF since it installs stuff as root
1734 for ac_prog in ginstall scoinst install; do
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737 if test $ac_prog = install &&
1738 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # AIX install. It has an incompatible calling convention.
1741 elif test $ac_prog = install &&
1742 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743 # program-specific install script used by HP pwplus--don't use.
1746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758 if test "${ac_cv_path_install+set}" = set; then
1759 INSTALL=$ac_cv_path_install
1761 # As a last resort, use the slow shell script. We don't cache a
1762 # path for INSTALL within a source directory, because that will
1763 # break other packages using the cache if that directory is
1764 # removed, or if the path is relative.
1765 INSTALL=$ac_install_sh
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments. Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1790 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791 if test "$*" = "X"; then
1793 set X `ls -t $srcdir/configure conftest.file`
1796 if test "$*" != "X $srcdir/configure conftest.file" \
1797 && test "$*" != "X conftest.file $srcdir/configure"; then
1799 # If neither matched, then we have a broken ls. This can happen
1800 # if, for instance, CONFIG_SHELL is bash and it inherits a
1801 # broken ls alias from the environment. This has actually
1802 # happened. Such a system could not be considered "sane".
1803 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1806 alias in your environment" >&2;}
1807 { (exit 1); exit 1; }; }
1810 test "$2" = conftest.file
1816 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820 { (exit 1); exit 1; }; }
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $. echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843 am_missing_run="$MISSING --run "
1846 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851 # We used to keeping the `.' as first argument, in order to
1852 # allow $(mkdir_p) to be used without argument. As in
1853 # $(mkdir_p) $(somedir)
1854 # where $(somedir) is conditionally defined. However this is wrong
1856 # 1. if the package is installed by a user who cannot write `.'
1857 # make install will fail,
1858 # 2. the above comment should most certainly read
1859 # $(mkdir_p) $(DESTDIR)$(somedir)
1860 # so it does not work when $(somedir) is undefined and
1861 # $(DESTDIR) is not.
1862 # To support the latter case, we have to write
1863 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864 # so the `.' trick is pointless.
1865 mkdir_p='mkdir -p --'
1867 # On NextStep and OpenStep, the `mkdir' command does not
1868 # recognize any option. It will interpret all options as
1869 # directories to create, and then abort because `.' already
1871 for d in ./-p ./--version;
1873 test -d $d && rmdir $d
1875 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876 if test -f "$ac_aux_dir/mkinstalldirs"; then
1877 mkdir_p='$(mkinstalldirs)'
1879 mkdir_p='$(install_sh) -d'
1883 for ac_prog in gawk mawk nawk awk
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$AWK"; then
1893 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_AWK="$ac_prog"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$AWK"; then
1913 echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 test -n "$AWK" && break
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 cat >conftest.make <<\_ACEOF
1931 @echo 'ac_maketemp="$(MAKE)"'
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936 eval ac_cv_prog_make_${ac_make}_set=yes
1938 eval ac_cv_prog_make_${ac_make}_set=no
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943 echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 SET_MAKE="MAKE=${MAKE-make}"
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1959 rmdir .tst 2>/dev/null
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963 test -f $srcdir/config.status; then
1964 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966 { (exit 1); exit 1; }; }
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971 if (cygpath --version) >/dev/null 2>/dev/null; then
1972 CYGPATH_W='cygpath -w'
1979 # Define the identity of the package.
1984 # Some tools Automake needs.
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'. However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$STRIP"; then
2016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036 echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$ac_cv_prog_STRIP"; then
2046 # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_STRIP"; then
2054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_STRIP="strip"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2084 STRIP="$ac_cv_prog_STRIP"
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2090 # We need awk for the "check" target. The system "awk" is bad on
2092 # Always define AMTAR for backward compatibility.
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2140 ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h"
2142 echo "$as_me:$LINENO: checking configure arguments" >&5
2143 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2148 ldap_subdir="/openldap"
2151 # Check whether --with-subdir or --without-subdir was given.
2152 if test "${with_subdir+set}" = set; then
2153 withval="$with_subdir"
2160 ldap_subdir="$withval"
2163 ldap_subdir="/$withval"
2169 # OpenLDAP --enable-debug
2170 # Check whether --enable-debug or --disable-debug was given.
2171 if test "${enable_debug+set}" = set; then
2172 enableval="$enable_debug"
2175 for ol_val in auto yes no ; do
2176 if test "$enableval" = "$ol_val" ; then
2180 if test "$ol_arg" = "invalid" ; then
2181 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2182 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2183 { (exit 1); exit 1; }; }
2185 ol_enable_debug="$ol_arg"
2188 ol_enable_debug="yes"
2189 fi; # end --enable-debug
2190 # OpenLDAP --enable-dynamic
2191 # Check whether --enable-dynamic or --disable-dynamic was given.
2192 if test "${enable_dynamic+set}" = set; then
2193 enableval="$enable_dynamic"
2196 for ol_val in auto yes no ; do
2197 if test "$enableval" = "$ol_val" ; then
2201 if test "$ol_arg" = "invalid" ; then
2202 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2203 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2204 { (exit 1); exit 1; }; }
2206 ol_enable_dynamic="$ol_arg"
2209 ol_enable_dynamic="no"
2210 fi; # end --enable-dynamic
2211 # OpenLDAP --enable-syslog
2212 # Check whether --enable-syslog or --disable-syslog was given.
2213 if test "${enable_syslog+set}" = set; then
2214 enableval="$enable_syslog"
2217 for ol_val in auto yes no ; do
2218 if test "$enableval" = "$ol_val" ; then
2222 if test "$ol_arg" = "invalid" ; then
2223 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2224 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2225 { (exit 1); exit 1; }; }
2227 ol_enable_syslog="$ol_arg"
2230 ol_enable_syslog="auto"
2231 fi; # end --enable-syslog
2232 # OpenLDAP --enable-proctitle
2233 # Check whether --enable-proctitle or --disable-proctitle was given.
2234 if test "${enable_proctitle+set}" = set; then
2235 enableval="$enable_proctitle"
2238 for ol_val in auto yes no ; do
2239 if test "$enableval" = "$ol_val" ; then
2243 if test "$ol_arg" = "invalid" ; then
2244 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2245 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2246 { (exit 1); exit 1; }; }
2248 ol_enable_proctitle="$ol_arg"
2251 ol_enable_proctitle="yes"
2252 fi; # end --enable-proctitle
2253 ol_enable_referrals=${ol_enable_referrals-no}
2254 ol_enable_kbind=${ol_enable_kbind-no}
2255 # OpenLDAP --enable-ipv6
2256 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2257 if test "${enable_ipv6+set}" = set; then
2258 enableval="$enable_ipv6"
2261 for ol_val in auto yes no ; do
2262 if test "$enableval" = "$ol_val" ; then
2266 if test "$ol_arg" = "invalid" ; then
2267 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2268 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2269 { (exit 1); exit 1; }; }
2271 ol_enable_ipv6="$ol_arg"
2274 ol_enable_ipv6="auto"
2275 fi; # end --enable-ipv6
2276 # OpenLDAP --enable-local
2277 # Check whether --enable-local or --disable-local was given.
2278 if test "${enable_local+set}" = set; then
2279 enableval="$enable_local"
2282 for ol_val in auto yes no ; do
2283 if test "$enableval" = "$ol_val" ; then
2287 if test "$ol_arg" = "invalid" ; then
2288 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2289 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2290 { (exit 1); exit 1; }; }
2292 ol_enable_local="$ol_arg"
2295 ol_enable_local="auto"
2296 fi; # end --enable-local
2299 # OpenLDAP --with-cyrus_sasl
2301 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2302 if test "${with_cyrus_sasl+set}" = set; then
2303 withval="$with_cyrus_sasl"
2306 for ol_val in auto yes no ; do
2307 if test "$withval" = "$ol_val" ; then
2311 if test "$ol_arg" = "invalid" ; then
2312 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2313 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2314 { (exit 1); exit 1; }; }
2316 ol_with_cyrus_sasl="$ol_arg"
2319 ol_with_cyrus_sasl="auto"
2320 fi; # end --with-cyrus_sasl
2322 # OpenLDAP --with-fetch
2324 # Check whether --with-fetch or --without-fetch was given.
2325 if test "${with_fetch+set}" = set; then
2326 withval="$with_fetch"
2329 for ol_val in auto yes no ; do
2330 if test "$withval" = "$ol_val" ; then
2334 if test "$ol_arg" = "invalid" ; then
2335 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2336 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2337 { (exit 1); exit 1; }; }
2339 ol_with_fetch="$ol_arg"
2342 ol_with_fetch="auto"
2343 fi; # end --with-fetch
2345 ol_with_kerberos=${ol_with_kerberos-auto}
2346 # OpenLDAP --with-threads
2348 # Check whether --with-threads or --without-threads was given.
2349 if test "${with_threads+set}" = set; then
2350 withval="$with_threads"
2353 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2354 if test "$withval" = "$ol_val" ; then
2358 if test "$ol_arg" = "invalid" ; then
2359 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2360 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2361 { (exit 1); exit 1; }; }
2363 ol_with_threads="$ol_arg"
2366 ol_with_threads="auto"
2367 fi; # end --with-threads
2369 # OpenLDAP --with-tls
2371 # Check whether --with-tls or --without-tls was given.
2372 if test "${with_tls+set}" = set; then
2376 for ol_val in auto ssleay openssl yes no ; do
2377 if test "$withval" = "$ol_val" ; then
2381 if test "$ol_arg" = "invalid" ; then
2382 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2383 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2384 { (exit 1); exit 1; }; }
2386 ol_with_tls="$ol_arg"
2390 fi; # end --with-tls
2392 # OpenLDAP --with-yielding_select
2394 # Check whether --with-yielding_select or --without-yielding_select was given.
2395 if test "${with_yielding_select+set}" = set; then
2396 withval="$with_yielding_select"
2399 for ol_val in auto yes no manual ; do
2400 if test "$withval" = "$ol_val" ; then
2404 if test "$ol_arg" = "invalid" ; then
2405 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2406 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2407 { (exit 1); exit 1; }; }
2409 ol_with_yielding_select="$ol_arg"
2412 ol_with_yielding_select="auto"
2413 fi; # end --with-yielding_select
2415 # OpenLDAP --with-multiple_precision
2417 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2418 if test "${with_multiple_precision+set}" = set; then
2419 withval="$with_multiple_precision"
2422 for ol_val in auto bignum gmp yes no ; do
2423 if test "$withval" = "$ol_val" ; then
2427 if test "$ol_arg" = "invalid" ; then
2428 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2429 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2430 { (exit 1); exit 1; }; }
2432 ol_with_multiple_precision="$ol_arg"
2435 ol_with_multiple_precision="auto"
2436 fi; # end --with-multiple_precision
2441 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2442 if test "${with_xxslapdoptions+set}" = set; then
2443 withval="$with_xxslapdoptions"
2446 # OpenLDAP --enable-slapd
2447 # Check whether --enable-slapd or --disable-slapd was given.
2448 if test "${enable_slapd+set}" = set; then
2449 enableval="$enable_slapd"
2452 for ol_val in auto yes no ; do
2453 if test "$enableval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2459 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2460 { (exit 1); exit 1; }; }
2462 ol_enable_slapd="$ol_arg"
2465 ol_enable_slapd="yes"
2466 fi; # end --enable-slapd
2467 # OpenLDAP --enable-aci
2468 # Check whether --enable-aci or --disable-aci was given.
2469 if test "${enable_aci+set}" = set; then
2470 enableval="$enable_aci"
2473 for ol_val in auto yes no ; do
2474 if test "$enableval" = "$ol_val" ; then
2478 if test "$ol_arg" = "invalid" ; then
2479 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2480 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2481 { (exit 1); exit 1; }; }
2483 ol_enable_aci="$ol_arg"
2487 fi; # end --enable-aci
2488 # OpenLDAP --enable-cleartext
2489 # Check whether --enable-cleartext or --disable-cleartext was given.
2490 if test "${enable_cleartext+set}" = set; then
2491 enableval="$enable_cleartext"
2494 for ol_val in auto yes no ; do
2495 if test "$enableval" = "$ol_val" ; then
2499 if test "$ol_arg" = "invalid" ; then
2500 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2501 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2502 { (exit 1); exit 1; }; }
2504 ol_enable_cleartext="$ol_arg"
2507 ol_enable_cleartext="yes"
2508 fi; # end --enable-cleartext
2509 # OpenLDAP --enable-crypt
2510 # Check whether --enable-crypt or --disable-crypt was given.
2511 if test "${enable_crypt+set}" = set; then
2512 enableval="$enable_crypt"
2515 for ol_val in auto yes no ; do
2516 if test "$enableval" = "$ol_val" ; then
2520 if test "$ol_arg" = "invalid" ; then
2521 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2523 { (exit 1); exit 1; }; }
2525 ol_enable_crypt="$ol_arg"
2528 ol_enable_crypt="no"
2529 fi; # end --enable-crypt
2530 # OpenLDAP --enable-lmpasswd
2531 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2532 if test "${enable_lmpasswd+set}" = set; then
2533 enableval="$enable_lmpasswd"
2536 for ol_val in auto yes no ; do
2537 if test "$enableval" = "$ol_val" ; then
2541 if test "$ol_arg" = "invalid" ; then
2542 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2544 { (exit 1); exit 1; }; }
2546 ol_enable_lmpasswd="$ol_arg"
2549 ol_enable_lmpasswd="no"
2550 fi; # end --enable-lmpasswd
2551 # OpenLDAP --enable-spasswd
2552 # Check whether --enable-spasswd or --disable-spasswd was given.
2553 if test "${enable_spasswd+set}" = set; then
2554 enableval="$enable_spasswd"
2557 for ol_val in auto yes no ; do
2558 if test "$enableval" = "$ol_val" ; then
2562 if test "$ol_arg" = "invalid" ; then
2563 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2565 { (exit 1); exit 1; }; }
2567 ol_enable_spasswd="$ol_arg"
2570 ol_enable_spasswd="no"
2571 fi; # end --enable-spasswd
2572 # OpenLDAP --enable-modules
2573 # Check whether --enable-modules or --disable-modules was given.
2574 if test "${enable_modules+set}" = set; then
2575 enableval="$enable_modules"
2578 for ol_val in auto yes no ; do
2579 if test "$enableval" = "$ol_val" ; then
2583 if test "$ol_arg" = "invalid" ; then
2584 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2586 { (exit 1); exit 1; }; }
2588 ol_enable_modules="$ol_arg"
2591 ol_enable_modules="no"
2592 fi; # end --enable-modules
2593 ol_enable_multimaster=${ol_enable_multimaster-no}
2594 # OpenLDAP --enable-rewrite
2595 # Check whether --enable-rewrite or --disable-rewrite was given.
2596 if test "${enable_rewrite+set}" = set; then
2597 enableval="$enable_rewrite"
2600 for ol_val in auto yes no ; do
2601 if test "$enableval" = "$ol_val" ; then
2605 if test "$ol_arg" = "invalid" ; then
2606 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2607 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2608 { (exit 1); exit 1; }; }
2610 ol_enable_rewrite="$ol_arg"
2613 ol_enable_rewrite="auto"
2614 fi; # end --enable-rewrite
2615 # OpenLDAP --enable-rlookups
2616 # Check whether --enable-rlookups or --disable-rlookups was given.
2617 if test "${enable_rlookups+set}" = set; then
2618 enableval="$enable_rlookups"
2621 for ol_val in auto yes no ; do
2622 if test "$enableval" = "$ol_val" ; then
2626 if test "$ol_arg" = "invalid" ; then
2627 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2628 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2629 { (exit 1); exit 1; }; }
2631 ol_enable_rlookups="$ol_arg"
2634 ol_enable_rlookups="no"
2635 fi; # end --enable-rlookups
2636 # OpenLDAP --enable-slapi
2637 # Check whether --enable-slapi or --disable-slapi was given.
2638 if test "${enable_slapi+set}" = set; then
2639 enableval="$enable_slapi"
2642 for ol_val in auto yes no ; do
2643 if test "$enableval" = "$ol_val" ; then
2647 if test "$ol_arg" = "invalid" ; then
2648 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2649 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2650 { (exit 1); exit 1; }; }
2652 ol_enable_slapi="$ol_arg"
2655 ol_enable_slapi="no"
2656 fi; # end --enable-slapi
2657 # OpenLDAP --enable-slp
2658 # Check whether --enable-slp or --disable-slp was given.
2659 if test "${enable_slp+set}" = set; then
2660 enableval="$enable_slp"
2663 for ol_val in auto yes no ; do
2664 if test "$enableval" = "$ol_val" ; then
2668 if test "$ol_arg" = "invalid" ; then
2669 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2670 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2671 { (exit 1); exit 1; }; }
2673 ol_enable_slp="$ol_arg"
2677 fi; # end --enable-slp
2678 # OpenLDAP --enable-wrappers
2679 # Check whether --enable-wrappers or --disable-wrappers was given.
2680 if test "${enable_wrappers+set}" = set; then
2681 enableval="$enable_wrappers"
2684 for ol_val in auto yes no ; do
2685 if test "$enableval" = "$ol_val" ; then
2689 if test "$ol_arg" = "invalid" ; then
2690 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2691 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2692 { (exit 1); exit 1; }; }
2694 ol_enable_wrappers="$ol_arg"
2697 ol_enable_wrappers="no"
2698 fi; # end --enable-wrappers
2700 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2701 passwd perl relay shell sql"
2704 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2705 if test "${with_xxslapbackends+set}" = set; then
2706 withval="$with_xxslapbackends"
2710 # OpenLDAP --enable-backends
2711 # Check whether --enable-backends or --disable-backends was given.
2712 if test "${enable_backends+set}" = set; then
2713 enableval="$enable_backends"
2716 for ol_val in no yes mod ; do
2717 if test "$enableval" = "$ol_val" ; then
2721 if test "$ol_arg" = "invalid" ; then
2722 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2724 { (exit 1); exit 1; }; }
2726 ol_enable_backends="$ol_arg"
2728 fi; # end --enable-backends
2729 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2730 # OpenLDAP --enable-bdb
2731 # Check whether --enable-bdb or --disable-bdb was given.
2732 if test "${enable_bdb+set}" = set; then
2733 enableval="$enable_bdb"
2736 for ol_val in no yes mod ; do
2737 if test "$enableval" = "$ol_val" ; then
2741 if test "$ol_arg" = "invalid" ; then
2742 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2743 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2744 { (exit 1); exit 1; }; }
2746 ol_enable_bdb="$ol_arg"
2749 ol_enable_bdb="${ol_dflt_backends-yes}"
2750 fi; # end --enable-bdb
2751 # OpenLDAP --enable-dnssrv
2752 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2753 if test "${enable_dnssrv+set}" = set; then
2754 enableval="$enable_dnssrv"
2757 for ol_val in no yes mod ; do
2758 if test "$enableval" = "$ol_val" ; then
2762 if test "$ol_arg" = "invalid" ; then
2763 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2764 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2765 { (exit 1); exit 1; }; }
2767 ol_enable_dnssrv="$ol_arg"
2770 ol_enable_dnssrv="${ol_dflt_backends-no}"
2771 fi; # end --enable-dnssrv
2772 # OpenLDAP --enable-hdb
2773 # Check whether --enable-hdb or --disable-hdb was given.
2774 if test "${enable_hdb+set}" = set; then
2775 enableval="$enable_hdb"
2778 for ol_val in no yes mod ; do
2779 if test "$enableval" = "$ol_val" ; then
2783 if test "$ol_arg" = "invalid" ; then
2784 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2785 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2786 { (exit 1); exit 1; }; }
2788 ol_enable_hdb="$ol_arg"
2791 ol_enable_hdb="${ol_dflt_backends-yes}"
2792 fi; # end --enable-hdb
2793 # OpenLDAP --enable-ldap
2794 # Check whether --enable-ldap or --disable-ldap was given.
2795 if test "${enable_ldap+set}" = set; then
2796 enableval="$enable_ldap"
2799 for ol_val in no yes mod ; do
2800 if test "$enableval" = "$ol_val" ; then
2804 if test "$ol_arg" = "invalid" ; then
2805 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2807 { (exit 1); exit 1; }; }
2809 ol_enable_ldap="$ol_arg"
2812 ol_enable_ldap="${ol_dflt_backends-no}"
2813 fi; # end --enable-ldap
2814 # OpenLDAP --enable-ldbm
2815 # Check whether --enable-ldbm or --disable-ldbm was given.
2816 if test "${enable_ldbm+set}" = set; then
2817 enableval="$enable_ldbm"
2820 for ol_val in no yes mod ; do
2821 if test "$enableval" = "$ol_val" ; then
2825 if test "$ol_arg" = "invalid" ; then
2826 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2828 { (exit 1); exit 1; }; }
2830 ol_enable_ldbm="$ol_arg"
2833 ol_enable_ldbm="${ol_dflt_backends-no}"
2834 fi; # end --enable-ldbm
2835 # OpenLDAP --with-ldbm_api
2837 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2838 if test "${with_ldbm_api+set}" = set; then
2839 withval="$with_ldbm_api"
2842 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2843 if test "$withval" = "$ol_val" ; then
2847 if test "$ol_arg" = "invalid" ; then
2848 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2849 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2850 { (exit 1); exit 1; }; }
2852 ol_with_ldbm_api="$ol_arg"
2855 ol_with_ldbm_api="auto"
2856 fi; # end --with-ldbm_api
2858 # OpenLDAP --with-ldbm_type
2860 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2861 if test "${with_ldbm_type+set}" = set; then
2862 withval="$with_ldbm_type"
2865 for ol_val in auto btree hash ; do
2866 if test "$withval" = "$ol_val" ; then
2870 if test "$ol_arg" = "invalid" ; then
2871 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2872 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2873 { (exit 1); exit 1; }; }
2875 ol_with_ldbm_type="$ol_arg"
2878 ol_with_ldbm_type="auto"
2879 fi; # end --with-ldbm_type
2881 # OpenLDAP --enable-meta
2882 # Check whether --enable-meta or --disable-meta was given.
2883 if test "${enable_meta+set}" = set; then
2884 enableval="$enable_meta"
2887 for ol_val in no yes mod ; do
2888 if test "$enableval" = "$ol_val" ; then
2892 if test "$ol_arg" = "invalid" ; then
2893 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2894 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2895 { (exit 1); exit 1; }; }
2897 ol_enable_meta="$ol_arg"
2900 ol_enable_meta="${ol_dflt_backends-no}"
2901 fi; # end --enable-meta
2902 # OpenLDAP --enable-monitor
2903 # Check whether --enable-monitor or --disable-monitor was given.
2904 if test "${enable_monitor+set}" = set; then
2905 enableval="$enable_monitor"
2908 for ol_val in no yes mod ; do
2909 if test "$enableval" = "$ol_val" ; then
2913 if test "$ol_arg" = "invalid" ; then
2914 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2916 { (exit 1); exit 1; }; }
2918 ol_enable_monitor="$ol_arg"
2921 ol_enable_monitor="${ol_dflt_backends-yes}"
2922 fi; # end --enable-monitor
2923 # OpenLDAP --enable-null
2924 # Check whether --enable-null or --disable-null was given.
2925 if test "${enable_null+set}" = set; then
2926 enableval="$enable_null"
2929 for ol_val in no yes mod ; do
2930 if test "$enableval" = "$ol_val" ; then
2934 if test "$ol_arg" = "invalid" ; then
2935 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2936 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2937 { (exit 1); exit 1; }; }
2939 ol_enable_null="$ol_arg"
2942 ol_enable_null="${ol_dflt_backends-no}"
2943 fi; # end --enable-null
2944 # OpenLDAP --enable-passwd
2945 # Check whether --enable-passwd or --disable-passwd was given.
2946 if test "${enable_passwd+set}" = set; then
2947 enableval="$enable_passwd"
2950 for ol_val in no yes mod ; do
2951 if test "$enableval" = "$ol_val" ; then
2955 if test "$ol_arg" = "invalid" ; then
2956 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2957 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2958 { (exit 1); exit 1; }; }
2960 ol_enable_passwd="$ol_arg"
2963 ol_enable_passwd="${ol_dflt_backends-no}"
2964 fi; # end --enable-passwd
2965 # OpenLDAP --enable-perl
2966 # Check whether --enable-perl or --disable-perl was given.
2967 if test "${enable_perl+set}" = set; then
2968 enableval="$enable_perl"
2971 for ol_val in no yes mod ; do
2972 if test "$enableval" = "$ol_val" ; then
2976 if test "$ol_arg" = "invalid" ; then
2977 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2978 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2979 { (exit 1); exit 1; }; }
2981 ol_enable_perl="$ol_arg"
2984 ol_enable_perl="${ol_dflt_backends-no}"
2985 fi; # end --enable-perl
2986 # OpenLDAP --enable-relay
2987 # Check whether --enable-relay or --disable-relay was given.
2988 if test "${enable_relay+set}" = set; then
2989 enableval="$enable_relay"
2992 for ol_val in no yes mod ; do
2993 if test "$enableval" = "$ol_val" ; then
2997 if test "$ol_arg" = "invalid" ; then
2998 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3000 { (exit 1); exit 1; }; }
3002 ol_enable_relay="$ol_arg"
3005 ol_enable_relay="${ol_dflt_backends-yes}"
3006 fi; # end --enable-relay
3007 # OpenLDAP --enable-shell
3008 # Check whether --enable-shell or --disable-shell was given.
3009 if test "${enable_shell+set}" = set; then
3010 enableval="$enable_shell"
3013 for ol_val in no yes mod ; do
3014 if test "$enableval" = "$ol_val" ; then
3018 if test "$ol_arg" = "invalid" ; then
3019 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3021 { (exit 1); exit 1; }; }
3023 ol_enable_shell="$ol_arg"
3026 ol_enable_shell="${ol_dflt_backends-no}"
3027 fi; # end --enable-shell
3028 # OpenLDAP --enable-sql
3029 # Check whether --enable-sql or --disable-sql was given.
3030 if test "${enable_sql+set}" = set; then
3031 enableval="$enable_sql"
3034 for ol_val in no yes mod ; do
3035 if test "$enableval" = "$ol_val" ; then
3039 if test "$ol_arg" = "invalid" ; then
3040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3042 { (exit 1); exit 1; }; }
3044 ol_enable_sql="$ol_arg"
3047 ol_enable_sql="${ol_dflt_backends-no}"
3048 fi; # end --enable-sql
3050 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3051 refint retcode rwm syncprov translucent unique"
3054 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3055 if test "${with_xxslapoverlays+set}" = set; then
3056 withval="$with_xxslapoverlays"
3060 # OpenLDAP --enable-overlays
3061 # Check whether --enable-overlays or --disable-overlays was given.
3062 if test "${enable_overlays+set}" = set; then
3063 enableval="$enable_overlays"
3066 for ol_val in no yes mod ; do
3067 if test "$enableval" = "$ol_val" ; then
3071 if test "$ol_arg" = "invalid" ; then
3072 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3073 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3074 { (exit 1); exit 1; }; }
3076 ol_enable_overlays="$ol_arg"
3078 fi; # end --enable-overlays
3079 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3080 # OpenLDAP --enable-accesslog
3081 # Check whether --enable-accesslog or --disable-accesslog was given.
3082 if test "${enable_accesslog+set}" = set; then
3083 enableval="$enable_accesslog"
3086 for ol_val in no yes mod ; do
3087 if test "$enableval" = "$ol_val" ; then
3091 if test "$ol_arg" = "invalid" ; then
3092 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3093 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3094 { (exit 1); exit 1; }; }
3096 ol_enable_accesslog="$ol_arg"
3099 ol_enable_accesslog="${ol_dflt_overlays-no}"
3100 fi; # end --enable-accesslog
3102 # OpenLDAP --enable-denyop
3103 # Check whether --enable-denyop or --disable-denyop was given.
3104 if test "${enable_denyop+set}" = set; then
3105 enableval="$enable_denyop"
3108 for ol_val in no yes mod ; do
3109 if test "$enableval" = "$ol_val" ; then
3113 if test "$ol_arg" = "invalid" ; then
3114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3116 { (exit 1); exit 1; }; }
3118 ol_enable_denyop="$ol_arg"
3121 ol_enable_denyop="${ol_dflt_overlays-no}"
3122 fi; # end --enable-denyop
3124 # OpenLDAP --enable-dyngroup
3125 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3126 if test "${enable_dyngroup+set}" = set; then
3127 enableval="$enable_dyngroup"
3130 for ol_val in no yes mod ; do
3131 if test "$enableval" = "$ol_val" ; then
3135 if test "$ol_arg" = "invalid" ; then
3136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_dyngroup="$ol_arg"
3143 ol_enable_dyngroup="${ol_dflt_overlays-no}"
3144 fi; # end --enable-dyngroup
3146 # OpenLDAP --enable-dynlist
3147 # Check whether --enable-dynlist or --disable-dynlist was given.
3148 if test "${enable_dynlist+set}" = set; then
3149 enableval="$enable_dynlist"
3152 for ol_val in no yes mod ; do
3153 if test "$enableval" = "$ol_val" ; then
3157 if test "$ol_arg" = "invalid" ; then
3158 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3160 { (exit 1); exit 1; }; }
3162 ol_enable_dynlist="$ol_arg"
3165 ol_enable_dynlist="${ol_dflt_overlays-no}"
3166 fi; # end --enable-dynlist
3168 # OpenLDAP --enable-glue
3169 # Check whether --enable-glue or --disable-glue was given.
3170 if test "${enable_glue+set}" = set; then
3171 enableval="$enable_glue"
3174 for ol_val in no yes mod ; do
3175 if test "$enableval" = "$ol_val" ; then
3179 if test "$ol_arg" = "invalid" ; then
3180 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3182 { (exit 1); exit 1; }; }
3184 ol_enable_glue="$ol_arg"
3187 ol_enable_glue="${ol_dflt_overlays-yes}"
3188 fi; # end --enable-glue
3190 # OpenLDAP --enable-lastmod
3191 # Check whether --enable-lastmod or --disable-lastmod was given.
3192 if test "${enable_lastmod+set}" = set; then
3193 enableval="$enable_lastmod"
3196 for ol_val in no yes mod ; do
3197 if test "$enableval" = "$ol_val" ; then
3201 if test "$ol_arg" = "invalid" ; then
3202 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3203 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3204 { (exit 1); exit 1; }; }
3206 ol_enable_lastmod="$ol_arg"
3209 ol_enable_lastmod="${ol_dflt_overlays-no}"
3210 fi; # end --enable-lastmod
3212 # OpenLDAP --enable-ppolicy
3213 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3214 if test "${enable_ppolicy+set}" = set; then
3215 enableval="$enable_ppolicy"
3218 for ol_val in no yes mod ; do
3219 if test "$enableval" = "$ol_val" ; then
3223 if test "$ol_arg" = "invalid" ; then
3224 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3226 { (exit 1); exit 1; }; }
3228 ol_enable_ppolicy="$ol_arg"
3231 ol_enable_ppolicy="${ol_dflt_overlays-no}"
3232 fi; # end --enable-ppolicy
3234 # OpenLDAP --enable-proxycache
3235 # Check whether --enable-proxycache or --disable-proxycache was given.
3236 if test "${enable_proxycache+set}" = set; then
3237 enableval="$enable_proxycache"
3240 for ol_val in no yes mod ; do
3241 if test "$enableval" = "$ol_val" ; then
3245 if test "$ol_arg" = "invalid" ; then
3246 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3248 { (exit 1); exit 1; }; }
3250 ol_enable_proxycache="$ol_arg"
3253 ol_enable_proxycache="${ol_dflt_overlays-no}"
3254 fi; # end --enable-proxycache
3256 # OpenLDAP --enable-refint
3257 # Check whether --enable-refint or --disable-refint was given.
3258 if test "${enable_refint+set}" = set; then
3259 enableval="$enable_refint"
3262 for ol_val in no yes mod ; do
3263 if test "$enableval" = "$ol_val" ; then
3267 if test "$ol_arg" = "invalid" ; then
3268 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3269 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3270 { (exit 1); exit 1; }; }
3272 ol_enable_refint="$ol_arg"
3275 ol_enable_refint="${ol_dflt_overlays-no}"
3276 fi; # end --enable-refint
3278 # OpenLDAP --enable-retcode
3279 # Check whether --enable-retcode or --disable-retcode was given.
3280 if test "${enable_retcode+set}" = set; then
3281 enableval="$enable_retcode"
3284 for ol_val in no yes mod ; do
3285 if test "$enableval" = "$ol_val" ; then
3289 if test "$ol_arg" = "invalid" ; then
3290 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3291 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3292 { (exit 1); exit 1; }; }
3294 ol_enable_retcode="$ol_arg"
3297 ol_enable_retcode="${ol_dflt_overlays-no}"
3298 fi; # end --enable-retcode
3300 # OpenLDAP --enable-rwm
3301 # Check whether --enable-rwm or --disable-rwm was given.
3302 if test "${enable_rwm+set}" = set; then
3303 enableval="$enable_rwm"
3306 for ol_val in no yes mod ; do
3307 if test "$enableval" = "$ol_val" ; then
3311 if test "$ol_arg" = "invalid" ; then
3312 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3313 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3314 { (exit 1); exit 1; }; }
3316 ol_enable_rwm="$ol_arg"
3319 ol_enable_rwm="${ol_dflt_overlays-no}"
3320 fi; # end --enable-rwm
3322 # OpenLDAP --enable-syncprov
3323 # Check whether --enable-syncprov or --disable-syncprov was given.
3324 if test "${enable_syncprov+set}" = set; then
3325 enableval="$enable_syncprov"
3328 for ol_val in no yes mod ; do
3329 if test "$enableval" = "$ol_val" ; then
3333 if test "$ol_arg" = "invalid" ; then
3334 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3335 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3336 { (exit 1); exit 1; }; }
3338 ol_enable_syncprov="$ol_arg"
3341 ol_enable_syncprov="${ol_dflt_overlays-yes}"
3342 fi; # end --enable-syncprov
3344 # OpenLDAP --enable-translucent
3345 # Check whether --enable-translucent or --disable-translucent was given.
3346 if test "${enable_translucent+set}" = set; then
3347 enableval="$enable_translucent"
3350 for ol_val in no yes mod ; do
3351 if test "$enableval" = "$ol_val" ; then
3355 if test "$ol_arg" = "invalid" ; then
3356 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3357 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3358 { (exit 1); exit 1; }; }
3360 ol_enable_translucent="$ol_arg"
3363 ol_enable_translucent="${ol_dflt_overlays-no}"
3364 fi; # end --enable-translucent
3366 # OpenLDAP --enable-unique
3367 # Check whether --enable-unique or --disable-unique was given.
3368 if test "${enable_unique+set}" = set; then
3369 enableval="$enable_unique"
3372 for ol_val in no yes mod ; do
3373 if test "$enableval" = "$ol_val" ; then
3377 if test "$ol_arg" = "invalid" ; then
3378 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3379 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3380 { (exit 1); exit 1; }; }
3382 ol_enable_unique="$ol_arg"
3385 ol_enable_unique="${ol_dflt_overlays-no}"
3386 fi; # end --enable-unique
3391 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3392 if test "${with_xxslurpdoptions+set}" = set; then
3393 withval="$with_xxslurpdoptions"
3396 # OpenLDAP --enable-slurpd
3397 # Check whether --enable-slurpd or --disable-slurpd was given.
3398 if test "${enable_slurpd+set}" = set; then
3399 enableval="$enable_slurpd"
3402 for ol_val in auto yes no ; do
3403 if test "$enableval" = "$ol_val" ; then
3407 if test "$ol_arg" = "invalid" ; then
3408 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3409 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3410 { (exit 1); exit 1; }; }
3412 ol_enable_slurpd="$ol_arg"
3415 ol_enable_slurpd="auto"
3416 fi; # end --enable-slurpd
3419 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3420 if test "${with_xxliboptions+set}" = set; then
3421 withval="$with_xxliboptions"
3424 # Check whether --enable-static or --disable-static was given.
3425 if test "${enable_static+set}" = set; then
3426 enableval="$enable_static"
3427 p=${PACKAGE-default}
3429 yes) enable_static=yes ;;
3430 no) enable_static=no ;;
3433 # Look at the argument we got. We use all the common list separators.
3434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3435 for pkg in $enableval; do
3437 if test "X$pkg" = "X$p"; then
3448 # Check whether --enable-shared or --disable-shared was given.
3449 if test "${enable_shared+set}" = set; then
3450 enableval="$enable_shared"
3451 p=${PACKAGE-default}
3453 yes) enable_shared=yes ;;
3454 no) enable_shared=no ;;
3457 # Look at the argument we got. We use all the common list separators.
3458 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3459 for pkg in $enableval; do
3461 if test "X$pkg" = "X$p"; then
3475 if test $ol_enable_slapd = no ; then
3476 if test $ol_enable_slapi = yes ; then
3477 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3478 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3480 case "$ol_enable_backends" in yes | mod)
3481 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3482 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3484 for i in $Backends; do
3485 eval "ol_tmp=\$ol_enable_$i"
3486 if test $ol_tmp != no ; then
3487 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3488 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3489 eval "ol_enable_$i=no"
3492 if test $ol_enable_modules = yes ; then
3493 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3494 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3496 if test $ol_enable_multimaster = yes ; then
3497 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3498 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3500 if test $ol_enable_wrappers = yes ; then
3501 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3502 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3504 if test $ol_enable_rlookups = yes ; then
3505 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3506 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3508 if test $ol_enable_aci = yes ; then
3509 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3510 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3512 if test $ol_with_ldbm_api != auto ; then
3513 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3514 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3516 if test $ol_with_ldbm_type != auto ; then
3517 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3518 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3520 if test $ol_enable_slurpd = yes ; then
3521 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3522 echo "$as_me: error: slurpd requires slapd" >&2;}
3523 { (exit 1); exit 1; }; }
3525 if test $ol_enable_rewrite = yes ; then
3526 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3527 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3529 case "$ol_enable_overlays" in yes | mod)
3530 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3531 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3533 for i in $Overlays; do
3534 eval "ol_tmp=\$ol_enable_$i"
3535 if test $ol_tmp != no ; then
3536 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3538 eval "ol_enable_$i=no"
3542 # force settings to no
3547 ol_enable_modules=no
3548 ol_enable_multimaster=no
3549 ol_enable_rlookups=no
3551 ol_enable_wrappers=no
3554 ol_with_ldbm_type=no
3558 ol_enable_rewrite=no
3560 elif test $ol_enable_ldbm = no ; then
3562 if test $ol_with_ldbm_api != auto ; then
3563 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3564 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3567 if test $ol_with_ldbm_type != auto ; then
3568 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3569 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3572 if test $ol_enable_modules != yes -a \
3573 $ol_enable_bdb = no -a \
3574 $ol_enable_dnssrv = no -a \
3575 $ol_enable_hdb = no -a \
3576 $ol_enable_ldap = no -a \
3577 $ol_enable_meta = no -a \
3578 $ol_enable_monitor = no -a \
3579 $ol_enable_null = no -a \
3580 $ol_enable_passwd = no -a \
3581 $ol_enable_perl = no -a \
3582 $ol_enable_relay = no -a \
3583 $ol_enable_shell = no -a \
3584 $ol_enable_sql = no ; then
3586 if test $ol_enable_slapd = yes ; then
3587 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3588 echo "$as_me: error: slapd requires a backend" >&2;}
3589 { (exit 1); exit 1; }; }
3591 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3592 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3598 ol_with_ldbm_type=no
3600 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3601 ol_with_ldbm_api=berkeley
3605 if test $ol_with_ldbm_api = gdbm -a \
3606 $ol_with_ldbm_type = btree ; then
3607 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3608 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3609 { (exit 1); exit 1; }; }
3611 if test $ol_with_ldbm_api = mdbm -a \
3612 $ol_with_ldbm_type = btree ; then
3613 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3614 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3615 { (exit 1); exit 1; }; }
3617 if test $ol_with_ldbm_api = ndbm -a \
3618 $ol_with_ldbm_type = btree ; then
3619 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3620 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3621 { (exit 1); exit 1; }; }
3624 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3625 if test $ol_with_ldbm_api = auto ; then
3626 ol_with_ldbm_api=berkeley
3627 elif test $ol_with_ldbm_api != berkeley ; then
3628 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3629 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3630 { (exit 1); exit 1; }; }
3635 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3636 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3637 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3638 { (exit 1); exit 1; }; }
3641 if test $ol_enable_slurpd = yes ; then
3642 if test $ol_with_threads = no ; then
3643 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3644 echo "$as_me: error: slurpd requires threads" >&2;}
3645 { (exit 1); exit 1; }; }
3649 if test $ol_enable_lmpasswd = yes ; then
3650 if test $ol_with_tls = no ; then
3651 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3652 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3653 { (exit 1); exit 1; }; }
3657 if test $ol_enable_kbind = yes ; then
3658 if test $ol_with_kerberos = no ; then
3659 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3660 echo "$as_me: error: options require --with-kerberos" >&2;}
3661 { (exit 1); exit 1; }; }
3662 elif test $ol_with_kerberos = auto ; then
3663 ol_with_kerberos=yes
3666 elif test $ol_enable_kbind = no ; then
3667 if test $ol_with_kerberos = auto ; then
3669 elif test $ol_with_kerberos != no ; then
3670 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3671 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3676 if test $ol_enable_spasswd = yes ; then
3677 if test $ol_with_cyrus_sasl = no ; then
3678 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3679 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3680 { (exit 1); exit 1; }; }
3682 ol_with_cyrus_sasl=yes
3685 echo "$as_me:$LINENO: result: done" >&5
3686 echo "${ECHO_T}done" >&6
3730 BUILD_TRANSLUCENT=no
3733 SLAPD_STATIC_OVERLAYS=
3734 SLAPD_DYNAMIC_OVERLAYS=
3736 SLAPD_MODULES_LDFLAGS=
3737 SLAPD_MODULES_CPPFLAGS=
3739 SLAPD_STATIC_BACKENDS=back-ldif
3740 SLAPD_DYNAMIC_BACKENDS=
3765 cat >>confdefs.h <<\_ACEOF
3766 #define HAVE_MKVERSION 1
3774 *-*-aix*) if test -z "$CC" ; then
3775 case "$ol_with_threads" in
3776 auto | yes | posix) ol_aix_threads=yes ;;
3782 if test $ol_aix_threads = yes ; then
3783 if test -z "${CC}" ; then
3784 for ac_prog in cc_r xlc_r cc
3786 # Extract the first word of "$ac_prog", so it can be a program name with args.
3787 set dummy $ac_prog; ac_word=$2
3788 echo "$as_me:$LINENO: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790 if test "${ac_cv_prog_CC+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 if test -n "$CC"; then
3794 ac_cv_prog_CC="$CC" # Let the user override the test.
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_CC="$ac_prog"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 if test -n "$CC"; then
3814 echo "$as_me:$LINENO: result: $CC" >&5
3815 echo "${ECHO_T}$CC" >&6
3817 echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3821 test -n "$CC" && break
3825 if test "$CC" = cc ; then
3826 if test $ol_with_threads != auto ; then
3827 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3828 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3829 { (exit 1); exit 1; }; }
3831 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3832 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3838 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3839 ol_with_threads=posix
3840 ol_cv_pthread_create=yes
3844 if test -z "${CC}"; then
3845 for ac_prog in cc gcc
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_CC+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_CC="$ac_prog"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 if test -n "$CC"; then
3875 echo "$as_me:$LINENO: result: $CC" >&5
3876 echo "${ECHO_T}$CC" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3882 test -n "$CC" && break
3884 test -n "$CC" || CC="missing"
3887 if test "${CC}" = "missing" ; then
3888 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3889 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3890 { (exit 1); exit 1; }; }
3894 if test -z "${AR}"; then
3895 for ac_prog in ar gar
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898 set dummy $ac_prog; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_AR+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 if test -n "$AR"; then
3905 ac_cv_prog_AR="$AR" # Let the user override the test.
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_AR="$ac_prog"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 if test -n "$AR"; then
3925 echo "$as_me:$LINENO: result: $AR" >&5
3926 echo "${ECHO_T}$AR" >&6
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 test -n "$AR" && break
3934 test -n "$AR" || AR="missing"
3937 if test "${AR}" = "missing" ; then
3938 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3939 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3940 { (exit 1); exit 1; }; }
3948 # Check whether --enable-fast-install or --disable-fast-install was given.
3949 if test "${enable_fast_install+set}" = set; then
3950 enableval="$enable_fast_install"
3951 p=${PACKAGE-default}
3953 yes) enable_fast_install=yes ;;
3954 no) enable_fast_install=no ;;
3956 enable_fast_install=no
3957 # Look at the argument we got. We use all the common list separators.
3958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3959 for pkg in $enableval; do
3961 if test "X$pkg" = "X$p"; then
3962 enable_fast_install=yes
3969 enable_fast_install=yes
3972 DEPDIR="${am__leading_dot}deps"
3974 ac_config_commands="$ac_config_commands depfiles"
3977 am_make=${MAKE-make}
3978 cat > confinc << 'END'
3983 # If we don't find an include directive, just comment out the code.
3984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3989 # First try GNU make style include.
3990 echo "include confinc" > confmf
3991 # We grep out `Entering directory' and `Leaving directory'
3992 # messages which can occur if `w' ends up in MAKEFLAGS.
3993 # In particular we don't look at `^make:' because GNU make might
3994 # be invoked under some other name (usually "gmake"), in which
3995 # case it prints its new name instead of `make'.
3996 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4001 # Now try BSD make style include.
4002 if test "$am__include" = "#"; then
4003 echo '.include "confinc"' > confmf
4004 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4005 am__include=.include
4012 echo "$as_me:$LINENO: result: $_am_result" >&5
4013 echo "${ECHO_T}$_am_result" >&6
4014 rm -f confinc confmf
4016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4017 if test "${enable_dependency_tracking+set}" = set; then
4018 enableval="$enable_dependency_tracking"
4021 if test "x$enable_dependency_tracking" != xno; then
4022 am_depcomp="$ac_aux_dir/depcomp"
4027 if test "x$enable_dependency_tracking" != xno; then
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 if test -n "$ac_tool_prefix"; then
4043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_CC+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test -n "$CC"; then
4051 ac_cv_prog_CC="$CC" # Let the user override the test.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 if test -n "$CC"; then
4071 echo "$as_me:$LINENO: result: $CC" >&5
4072 echo "${ECHO_T}$CC" >&6
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4079 if test -z "$ac_cv_prog_CC"; then
4081 # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 if test -n "$ac_ct_CC"; then
4089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC="gcc"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4110 echo "${ECHO_T}$ac_ct_CC" >&6
4112 echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4121 if test -z "$CC"; then
4122 if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4124 set dummy ${ac_tool_prefix}cc; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_prog_CC+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 if test -n "$CC"; then
4131 ac_cv_prog_CC="$CC" # Let the user override the test.
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_CC="${ac_tool_prefix}cc"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 if test -n "$CC"; then
4151 echo "$as_me:$LINENO: result: $CC" >&5
4152 echo "${ECHO_T}$CC" >&6
4154 echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4159 if test -z "$ac_cv_prog_CC"; then
4161 # Extract the first word of "cc", so it can be a program name with args.
4162 set dummy cc; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 if test -n "$ac_ct_CC"; then
4169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_CC="cc"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4188 if test -n "$ac_ct_CC"; then
4189 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4190 echo "${ECHO_T}$ac_ct_CC" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4202 if test -z "$CC"; then
4203 # Extract the first word of "cc", so it can be a program name with args.
4204 set dummy cc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222 ac_prog_rejected=yes
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 if test $ac_prog_rejected = yes; then
4233 # We found a bogon in the path, so make sure we never use it.
4234 set dummy $ac_cv_prog_CC
4236 if test $# != 0; then
4237 # We chose a different compiler from the bogus one.
4238 # However, it has the same basename, so the bogon will be chosen
4239 # first if we set CC to just the basename; use the full file name.
4241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4247 if test -n "$CC"; then
4248 echo "$as_me:$LINENO: result: $CC" >&5
4249 echo "${ECHO_T}$CC" >&6
4251 echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4256 if test -z "$CC"; then
4257 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262 echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264 if test "${ac_cv_prog_CC+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 if test -n "$CC"; then
4288 echo "$as_me:$LINENO: result: $CC" >&5
4289 echo "${ECHO_T}$CC" >&6
4291 echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4295 test -n "$CC" && break
4298 if test -z "$CC"; then
4302 # Extract the first word of "$ac_prog", so it can be a program name with args.
4303 set dummy $ac_prog; ac_word=$2
4304 echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if test -n "$ac_ct_CC"; then
4310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_ac_ct_CC="$ac_prog"
4320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4329 if test -n "$ac_ct_CC"; then
4330 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4331 echo "${ECHO_T}$ac_ct_CC" >&6
4333 echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6
4337 test -n "$ac_ct_CC" && break
4346 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." >&5
4348 echo "$as_me: error: no acceptable C compiler found in \$PATH
4349 See \`config.log' for more details." >&2;}
4350 { (exit 1); exit 1; }; }
4352 # Provide some information about the compiler.
4353 echo "$as_me:$LINENO:" \
4354 "checking for C compiler version" >&5
4355 ac_compiler=`set X $ac_compile; echo $2`
4356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4357 (eval $ac_compiler --version </dev/null >&5) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }
4361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4362 (eval $ac_compiler -v </dev/null >&5) 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4367 (eval $ac_compiler -V </dev/null >&5) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4387 ac_clean_files_save=$ac_clean_files
4388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4389 # Try to create an executable without -o first, disregard a.out.
4390 # It will help us diagnose broken compilers, and finding out an intuition
4392 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4395 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4396 (eval $ac_link_default) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; then
4400 # Find the output, starting from the most likely. This scheme is
4401 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4404 # Be careful to initialize this variable, since it used to be cached.
4405 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4407 # b.out is created by i960 compilers.
4408 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4410 test -f "$ac_file" || continue
4412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4415 # This is the source file.
4418 # We found the default executable, but exeext='' is most
4422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4423 # FIXME: I believe we export ac_cv_exeext for Libtool,
4424 # but it would be cool to find out if it's true. Does anybody
4425 # maintain Libtool? --akim.
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4437 See \`config.log' for more details." >&5
4438 echo "$as_me: error: C compiler cannot create executables
4439 See \`config.log' for more details." >&2;}
4440 { (exit 77); exit 77; }; }
4443 ac_exeext=$ac_cv_exeext
4444 echo "$as_me:$LINENO: result: $ac_file" >&5
4445 echo "${ECHO_T}$ac_file" >&6
4447 # Check the compiler produces executables we can run. If not, either
4448 # the compiler is broken, or we cross compile.
4449 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4452 # If not cross compiling, check that we can run a simple program.
4453 if test "$cross_compiling" != yes; then
4454 if { ac_try='./$ac_file'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4462 if test "$cross_compiling" = maybe; then
4465 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details." >&5
4468 echo "$as_me: error: cannot run C compiled programs.
4469 If you meant to cross compile, use \`--host'.
4470 See \`config.log' for more details." >&2;}
4471 { (exit 1); exit 1; }; }
4475 echo "$as_me:$LINENO: result: yes" >&5
4476 echo "${ECHO_T}yes" >&6
4478 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4479 ac_clean_files=$ac_clean_files_save
4480 # Check the compiler produces executables we can run. If not, either
4481 # the compiler is broken, or we cross compile.
4482 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4484 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4485 echo "${ECHO_T}$cross_compiling" >&6
4487 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4496 # work properly (i.e., refer to `conftest.exe'), while it won't with
4498 for ac_file in conftest.exe conftest conftest.*; do
4499 test -f "$ac_file" || continue
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4509 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4510 See \`config.log' for more details." >&5
4511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4512 See \`config.log' for more details." >&2;}
4513 { (exit 1); exit 1; }; }
4516 rm -f conftest$ac_cv_exeext
4517 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4518 echo "${ECHO_T}$ac_cv_exeext" >&6
4520 rm -f conftest.$ac_ext
4521 EXEEXT=$ac_cv_exeext
4523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4525 if test "${ac_cv_objext+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4543 rm -f conftest.o conftest.obj
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4561 See \`config.log' for more details." >&5
4562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4563 See \`config.log' for more details." >&2;}
4564 { (exit 1); exit 1; }; }
4567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4570 echo "${ECHO_T}$ac_cv_objext" >&6
4571 OBJEXT=$ac_cv_objext
4573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag"
4606 || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4631 GCC=`test $ac_compiler_gnu = yes && echo yes`
4632 ac_test_CFLAGS=${CFLAGS+set}
4633 ac_save_CFLAGS=$CFLAGS
4635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4637 if test "${ac_cv_prog_cc_g+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag"
4665 || test ! -s conftest.err'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; } &&
4671 { ac_try='test -s conftest.$ac_objext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4688 if test "$ac_test_CFLAGS" = set; then
4689 CFLAGS=$ac_save_CFLAGS
4690 elif test $ac_cv_prog_cc_g = yes; then
4691 if test "$GCC" = yes; then
4697 if test "$GCC" = yes; then
4703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 ac_cv_prog_cc_stdc=no
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4718 #include <sys/types.h>
4719 #include <sys/stat.h>
4720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4721 struct buf { int x; };
4722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4723 static char *e (p, i)
4729 static char *f (char * (*g) (char **, int), char **p, ...)
4734 s = g (p, va_arg (v,int));
4739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4740 function prototypes and stuff, but not '\xHH' hex character constants.
4741 These don't provoke an error unfortunately, instead are silently treated
4742 as 'x'. The following induces an error, until -std1 is added to get
4743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4744 array size at least. It's necessary to write '\x00'==0 to get something
4745 that's true only with -std1. */
4746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4748 int test (int i, double x);
4749 struct s1 {int (*f) (int a);};
4750 struct s2 {int (*f) (double a);};
4751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4762 # Don't try gcc -ansi; that turns off useful extensions and
4763 # breaks some systems' header files.
4764 # AIX -qlanglvl=ansi
4765 # Ultrix and OSF/1 -std1
4766 # HP-UX 10.20 and later -Ae
4767 # HP-UX older versions -Aa -D_HPUX_SOURCE
4768 # SVR4 -Xc -D__EXTENSIONS__
4769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771 CC="$ac_save_CC $ac_arg"
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_c_werror_flag"
4782 || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_prog_cc_stdc=$ac_arg
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4801 rm -f conftest.err conftest.$ac_objext
4803 rm -f conftest.$ac_ext conftest.$ac_objext
4808 case "x$ac_cv_prog_cc_stdc" in
4810 echo "$as_me:$LINENO: result: none needed" >&5
4811 echo "${ECHO_T}none needed" >&6 ;;
4813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4815 CC="$CC $ac_cv_prog_cc_stdc" ;;
4818 # Some people use a C++ compiler to compile C. Since we use `exit',
4819 # in C++ we need to declare it. In case someone uses the same compiler
4820 # for both compiling C and C++ we need to have the C++ compiler decide
4821 # the declaration of exit, since it's the most demanding environment.
4822 cat >conftest.$ac_ext <<_ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 for ac_declaration in \
4851 'extern "C" void std::exit (int) throw (); using std::exit;' \
4852 'extern "C" void std::exit (int); using std::exit;' \
4853 'extern "C" void exit (int) throw ();' \
4854 'extern "C" void exit (int);' \
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>conftest.er1
4877 grep -v '^ *+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4949 if test -n "$ac_declaration"; then
4950 echo '#ifdef __cplusplus' >>confdefs.h
4951 echo $ac_declaration >>confdefs.h
4952 echo '#endif' >>confdefs.h
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 depcc="$CC" am_compiler_list=
4969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4975 # We make a subdir and do the tests there. Otherwise we can end up
4976 # making bogus files that we don't know about and never remove. For
4977 # instance it was reported that on HP-UX the gcc test will end up
4978 # making a dummy file named `D' -- because `-MD' means `put the output
4981 # Copy depcomp to subdir because otherwise we won't find it if we're
4982 # using a relative directory.
4983 cp "$am_depcomp" conftest.dir
4985 # We will build objects and dependencies in a subdirectory because
4986 # it helps to detect inapplicable dependency modes. For instance
4987 # both Tru64's cc and ICC support -MD to output dependencies as a
4988 # side effect of compilation, but ICC will put the dependencies in
4989 # the current directory while Tru64 will put them in the object
4993 am_cv_CC_dependencies_compiler_type=none
4994 if test "$am_compiler_list" = ""; then
4995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4997 for depmode in $am_compiler_list; do
4998 # Setup a source with many dependencies, because some compilers
4999 # like to wrap large dependency lists on column 80 (with \), and
5000 # we should not choose a depcomp mode which is confused by this.
5002 # We need to recreate these files for each test, as the compiler may
5003 # overwrite some of them when testing with obscure command lines.
5004 # This happens at least with the AIX C compiler.
5006 for i in 1 2 3 4 5 6; do
5007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5009 # Solaris 8's {/usr,}/bin/sh.
5010 touch sub/conftst$i.h
5012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5016 # after this tag, mechanisms are not by side-effect, so they'll
5017 # only be used when explicitly requested
5018 if test "x$enable_dependency_tracking" = xyes; then
5026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5027 # mode. It turns out that the SunPro C++ compiler does not properly
5028 # handle `-M -o', and we need to detect this.
5029 if depmode=$depmode \
5030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5033 >/dev/null 2>conftest.err &&
5034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5037 # icc doesn't choke on unknown options, it will just issue warnings
5038 # or remarks (even with -Werror). So we grep stderr for any message
5039 # that says an option was ignored or not supported.
5040 # When given -MP, icc 7.0 and 7.1 complain thusly:
5041 # icc: Command line warning: ignoring option '-M'; no argument required
5042 # The diagnosis changed in icc 8.0:
5043 # icc: Command line remark: option '-MP' not supported
5044 if (grep 'ignoring option' conftest.err ||
5045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5046 am_cv_CC_dependencies_compiler_type=$depmode
5055 am_cv_CC_dependencies_compiler_type=none
5059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066 test "x$enable_dependency_tracking" != xno \
5067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5069 am__fastdepCC_FALSE='#'
5071 am__fastdepCC_TRUE='#'
5072 am__fastdepCC_FALSE=
5076 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5077 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5078 if test "${lt_cv_path_SED+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 # Loop through the user's path and test for sed and gsed.
5082 # Then use that list of sed's as ones to test for truncation.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for lt_ac_prog in sed gsed; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5091 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5098 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5099 # along with /bin/sed that truncates output.
5100 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5101 test ! -f $lt_ac_sed && continue
5102 cat /dev/null > conftest.in
5104 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5105 # Check for GNU sed and select it if it is found.
5106 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5107 lt_cv_path_SED=$lt_ac_sed
5111 cat conftest.in conftest.in >conftest.tmp
5112 mv conftest.tmp conftest.in
5113 cp conftest.in conftest.nl
5115 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5116 cmp -s conftest.out conftest.nl || break
5117 # 10000 chars as input seems more than enough
5118 test $lt_ac_count -gt 10 && break
5119 lt_ac_count=`expr $lt_ac_count + 1`
5120 if test $lt_ac_count -gt $lt_ac_max; then
5121 lt_ac_max=$lt_ac_count
5122 lt_cv_path_SED=$lt_ac_sed
5130 echo "$as_me:$LINENO: result: $SED" >&5
5131 echo "${ECHO_T}$SED" >&6
5133 echo "$as_me:$LINENO: checking for egrep" >&5
5134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5135 if test "${ac_cv_prog_egrep+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5139 then ac_cv_prog_egrep='grep -E'
5140 else ac_cv_prog_egrep='egrep'
5143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5145 EGREP=$ac_cv_prog_egrep
5149 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5150 if test "${with_gnu_ld+set}" = set; then
5151 withval="$with_gnu_ld"
5152 test "$withval" = no || with_gnu_ld=yes
5157 if test "$GCC" = yes; then
5158 # Check if gcc -print-prog-name=ld gives a path.
5159 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5160 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5163 # gcc leaves a trailing carriage return which upsets mingw
5164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5169 # Accept absolute paths.
5171 re_direlt='/[^/][^/]*/\.\./'
5172 # Canonicalize the pathname of ld
5173 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5174 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5175 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5177 test -z "$LD" && LD="$ac_prog"
5180 # If it fails, then pretend we aren't using GCC.
5184 # If it is relative, then search for the first ld in PATH.
5188 elif test "$with_gnu_ld" = yes; then
5189 echo "$as_me:$LINENO: checking for GNU ld" >&5
5190 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5192 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5193 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5195 if test "${lt_cv_path_LD+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 if test -z "$LD"; then
5199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5200 for ac_dir in $PATH; do
5202 test -z "$ac_dir" && ac_dir=.
5203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5204 lt_cv_path_LD="$ac_dir/$ac_prog"
5205 # Check to see if the program is GNU ld. I'd rather use --version,
5206 # but apparently some GNU ld's only accept -v.
5207 # Break only if it was the GNU/non-GNU ld that we prefer.
5208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5209 *GNU* | *'with BFD'*)
5210 test "$with_gnu_ld" != no && break
5213 test "$with_gnu_ld" != yes && break
5220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5225 if test -n "$LD"; then
5226 echo "$as_me:$LINENO: result: $LD" >&5
5227 echo "${ECHO_T}$LD" >&6
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5234 { (exit 1); exit 1; }; }
5235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5237 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5241 case `$LD -v 2>&1 </dev/null` in
5242 *GNU* | *'with BFD'*)
5243 lt_cv_prog_gnu_ld=yes
5246 lt_cv_prog_gnu_ld=no
5250 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5251 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5252 with_gnu_ld=$lt_cv_prog_gnu_ld
5255 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5256 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5257 if test "${lt_cv_ld_reload_flag+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 lt_cv_ld_reload_flag='-r'
5262 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5263 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5264 reload_flag=$lt_cv_ld_reload_flag
5265 case $reload_flag in
5267 *) reload_flag=" $reload_flag" ;;
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272 if test "$GCC" = yes; then
5273 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5275 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5281 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5282 if test "${lt_cv_path_NM+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 if test -n "$NM"; then
5286 # Let the user override the test.
5289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5290 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5292 test -z "$ac_dir" && ac_dir=.
5293 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5294 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5295 # Check to see if the nm accepts a BSD-compat flag.
5296 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5297 # nm: unknown option "B" ignored
5298 # Tru64's nm complains that /dev/null is an invalid object file
5299 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5300 */dev/null* | *'Invalid file or object type'*)
5301 lt_cv_path_NM="$tmp_nm -B"
5305 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5307 lt_cv_path_NM="$tmp_nm -p"
5311 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5312 continue # so that we can try to find one that supports BSD flags
5319 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5322 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5323 echo "${ECHO_T}$lt_cv_path_NM" >&6
5326 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5327 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5329 if test "$LN_S" = "ln -s"; then
5330 echo "$as_me:$LINENO: result: yes" >&5
5331 echo "${ECHO_T}yes" >&6
5333 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5334 echo "${ECHO_T}no, using $LN_S" >&6
5337 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5338 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5339 if test "${lt_cv_deplibs_check_method+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 lt_cv_file_magic_cmd='$MAGIC_CMD'
5343 lt_cv_file_magic_test_file=
5344 lt_cv_deplibs_check_method='unknown'
5345 # Need to set the preceding variable on all platforms that support
5346 # interlibrary dependencies.
5347 # 'none' -- dependencies not supported.
5348 # `unknown' -- same as none, but documents that we really don't know.
5349 # 'pass_all' -- all dependencies passed with no checks.
5350 # 'test_compile' -- check by making test program.
5351 # 'file_magic [[regex]]' -- check by looking for files in library path
5352 # which responds to the $file_magic_cmd with a given extended regex.
5353 # If you have `file' or equivalent on your system and you're not sure
5354 # whether `pass_all' will *always* work, you probably want this one.
5358 lt_cv_deplibs_check_method=pass_all
5362 lt_cv_deplibs_check_method=pass_all
5366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5367 lt_cv_file_magic_cmd='/usr/bin/file -L'
5368 lt_cv_file_magic_test_file=/shlib/libc.so
5372 # func_win32_libid is a shell function defined in ltmain.sh
5373 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5374 lt_cv_file_magic_cmd='func_win32_libid'
5378 # Base MSYS/MinGW do not provide the 'file' command needed by
5379 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5380 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5381 lt_cv_file_magic_cmd='$OBJDUMP -f'
5384 darwin* | rhapsody*)
5385 lt_cv_deplibs_check_method=pass_all
5388 freebsd* | kfreebsd*-gnu | dragonfly*)
5389 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5392 # Not sure whether the presence of OpenBSD here was a mistake.
5393 # Let's accept both of them until this is cleared up.
5394 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5395 lt_cv_file_magic_cmd=/usr/bin/file
5396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5400 lt_cv_deplibs_check_method=pass_all
5405 lt_cv_deplibs_check_method=pass_all
5408 hpux10.20* | hpux11*)
5409 lt_cv_file_magic_cmd=/usr/bin/file
5412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5413 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5416 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5417 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5421 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5426 irix5* | irix6* | nonstopux*)
5428 *-32|*"-32 ") libmagic=32-bit;;
5429 *-n32|*"-n32 ") libmagic=N32;;
5430 *-64|*"-64 ") libmagic=64-bit;;
5431 *) libmagic=never-match;;
5433 lt_cv_deplibs_check_method=pass_all
5436 # This must be Linux ELF.
5438 lt_cv_deplibs_check_method=pass_all
5442 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5451 lt_cv_file_magic_cmd=/usr/bin/file
5452 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5456 lt_cv_deplibs_check_method=unknown
5460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5467 osf3* | osf4* | osf5*)
5468 lt_cv_deplibs_check_method=pass_all
5472 lt_cv_deplibs_check_method=pass_all
5476 lt_cv_deplibs_check_method=pass_all
5479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5480 case $host_vendor in
5482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5486 lt_cv_deplibs_check_method=pass_all
5489 lt_cv_file_magic_cmd='/bin/file'
5490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5493 lt_cv_file_magic_cmd='/bin/file'
5494 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5495 lt_cv_file_magic_test_file=/lib/libc.so
5498 lt_cv_deplibs_check_method=pass_all
5503 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5504 lt_cv_deplibs_check_method=pass_all
5509 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5510 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5511 file_magic_cmd=$lt_cv_file_magic_cmd
5512 deplibs_check_method=$lt_cv_deplibs_check_method
5513 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5518 # If no C compiler was specified, use CC.
5521 # Allow CC to be a program name with arguments.
5525 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5526 if test "${enable_libtool_lock+set}" = set; then
5527 enableval="$enable_libtool_lock"
5530 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5532 # Some flags need to be propagated to the compiler or linker for good
5536 # Find out which ABI we are using.
5537 echo 'int i;' > conftest.$ac_ext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; then
5543 case `/usr/bin/file conftest.$ac_objext` in
5555 # Find out which ABI we are using.
5556 echo '#line 5556 "configure"' > conftest.$ac_ext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; then
5562 if test "$lt_cv_prog_gnu_ld" = yes; then
5563 case `/usr/bin/file conftest.$ac_objext` in
5565 LD="${LD-ld} -melf32bsmip"
5568 LD="${LD-ld} -melf32bmipn32"
5571 LD="${LD-ld} -melf64bmip"
5575 case `/usr/bin/file conftest.$ac_objext` in
5591 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5592 # Find out which ABI we are using.
5593 echo 'int i;' > conftest.$ac_ext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; then
5599 case "`/usr/bin/file conftest.o`" in
5603 LD="${LD-ld} -m elf_i386"
5605 ppc64-*linux*|powerpc64-*linux*)
5606 LD="${LD-ld} -m elf32ppclinux"
5609 LD="${LD-ld} -m elf_s390"
5612 LD="${LD-ld} -m elf32_sparc"
5619 LD="${LD-ld} -m elf_x86_64"
5621 ppc*-*linux*|powerpc*-*linux*)
5622 LD="${LD-ld} -m elf64ppc"
5625 LD="${LD-ld} -m elf64_s390"
5628 LD="${LD-ld} -m elf64_sparc"
5638 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5639 SAVE_CFLAGS="$CFLAGS"
5640 CFLAGS="$CFLAGS -belf"
5641 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5642 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5643 if test "${lt_cv_cc_needs_belf+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag"
5677 || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest$ac_exeext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 lt_cv_cc_needs_belf=yes
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 lt_cv_cc_needs_belf=no
5696 rm -f conftest.err conftest.$ac_objext \
5697 conftest$ac_exeext conftest.$ac_ext
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5706 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5707 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5708 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5709 CFLAGS="$SAVE_CFLAGS"
5712 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5713 if test -n "$ac_tool_prefix"; then
5714 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 if test -n "$DLLTOOL"; then
5722 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 DLLTOOL=$ac_cv_prog_DLLTOOL
5741 if test -n "$DLLTOOL"; then
5742 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5743 echo "${ECHO_T}$DLLTOOL" >&6
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5750 if test -z "$ac_cv_prog_DLLTOOL"; then
5751 ac_ct_DLLTOOL=$DLLTOOL
5752 # Extract the first word of "dlltool", so it can be a program name with args.
5753 set dummy dlltool; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 if test -n "$ac_ct_DLLTOOL"; then
5760 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5779 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5780 if test -n "$ac_ct_DLLTOOL"; then
5781 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5782 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5788 DLLTOOL=$ac_ct_DLLTOOL
5790 DLLTOOL="$ac_cv_prog_DLLTOOL"
5793 if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}as; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_AS+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 if test -n "$AS"; then
5802 ac_cv_prog_AS="$AS" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_AS="${ac_tool_prefix}as"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 if test -n "$AS"; then
5822 echo "$as_me:$LINENO: result: $AS" >&5
5823 echo "${ECHO_T}$AS" >&6
5825 echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5830 if test -z "$ac_cv_prog_AS"; then
5832 # Extract the first word of "as", so it can be a program name with args.
5833 set dummy as; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 if test -n "$ac_ct_AS"; then
5840 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_AS="as"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5859 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5860 if test -n "$ac_ct_AS"; then
5861 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5862 echo "${ECHO_T}$ac_ct_AS" >&6
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$OBJDUMP"; then
5882 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 OBJDUMP=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5903 echo "${ECHO_T}$OBJDUMP" >&6
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5910 if test -z "$ac_cv_prog_OBJDUMP"; then
5911 ac_ct_OBJDUMP=$OBJDUMP
5912 # Extract the first word of "objdump", so it can be a program name with args.
5913 set dummy objdump; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 if test -n "$ac_ct_OBJDUMP"; then
5920 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5939 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5940 if test -n "$ac_ct_OBJDUMP"; then
5941 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5942 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5948 OBJDUMP=$ac_ct_OBJDUMP
5950 OBJDUMP="$ac_cv_prog_OBJDUMP"
5957 need_locks="$enable_libtool_lock"
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5966 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5967 # On Suns, sometimes $CPP names a directory.
5968 if test -n "$CPP" && test -d "$CPP"; then
5971 if test -z "$CPP"; then
5972 if test "${ac_cv_prog_CPP+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 # Double quotes because CPP needs to be expanded
5976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5979 for ac_c_preproc_warn_flag in '' yes
5981 # Use a header file that comes with gcc, so configuring glibc
5982 # with a fresh cross-compiler works.
5983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5984 # <limits.h> exists even on freestanding compilers.
5985 # On the NeXT, cc -E runs the code through the compiler's parser,
5986 # not just through cpp. "Syntax error" is here to catch this case.
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5994 # include <limits.h>
5996 # include <assert.h>
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6003 grep -v '^ *+' conftest.er1 >conftest.err
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } >/dev/null; then
6008 if test -s conftest.err; then
6009 ac_cpp_err=$ac_c_preproc_warn_flag
6010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6017 if test -z "$ac_cpp_err"; then
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023 # Broken: fails on valid input.
6026 rm -f conftest.err conftest.$ac_ext
6028 # OK, works on sane cases. Now check whether non-existent headers
6029 # can be detected and how.
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 #include <ac_nonexistent.h>
6038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6041 grep -v '^ *+' conftest.er1 >conftest.err
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } >/dev/null; then
6046 if test -s conftest.err; then
6047 ac_cpp_err=$ac_c_preproc_warn_flag
6048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055 if test -z "$ac_cpp_err"; then
6056 # Broken: success on invalid input.
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 # Passes both tests.
6066 rm -f conftest.err conftest.$ac_ext
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.err conftest.$ac_ext
6071 if $ac_preproc_ok; then
6083 echo "$as_me:$LINENO: result: $CPP" >&5
6084 echo "${ECHO_T}$CPP" >&6
6086 for ac_c_preproc_warn_flag in '' yes
6088 # Use a header file that comes with gcc, so configuring glibc
6089 # with a fresh cross-compiler works.
6090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091 # <limits.h> exists even on freestanding compilers.
6092 # On the NeXT, cc -E runs the code through the compiler's parser,
6093 # not just through cpp. "Syntax error" is here to catch this case.
6094 cat >conftest.$ac_ext <<_ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6101 # include <limits.h>
6103 # include <assert.h>
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } >/dev/null; then
6115 if test -s conftest.err; then
6116 ac_cpp_err=$ac_c_preproc_warn_flag
6117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6124 if test -z "$ac_cpp_err"; then
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 # Broken: fails on valid input.
6133 rm -f conftest.err conftest.$ac_ext
6135 # OK, works on sane cases. Now check whether non-existent headers
6136 # can be detected and how.
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <ac_nonexistent.h>
6145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } >/dev/null; then
6153 if test -s conftest.err; then
6154 ac_cpp_err=$ac_c_preproc_warn_flag
6155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6162 if test -z "$ac_cpp_err"; then
6163 # Broken: success on invalid input.
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 # Passes both tests.
6173 rm -f conftest.err conftest.$ac_ext
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then
6181 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6182 See \`config.log' for more details." >&5
6183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details." >&2;}
6185 { (exit 1); exit 1; }; }
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6197 if test "${ac_cv_header_stdc+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 cat >conftest.$ac_ext <<_ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221 (eval $ac_compile) 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -z "$ac_c_werror_flag"
6229 || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_header_stdc=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_header_stdc=no
6248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6250 if test $ac_cv_header_stdc = yes; then
6251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252 cat >conftest.$ac_ext <<_ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev/null 2>&1; then
6265 ac_cv_header_stdc=no
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then
6286 ac_cv_header_stdc=no
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 #if ((' ' & 0x0FF) == 0x020)
6305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6308 # define ISLOWER(c) \
6309 (('a' <= (c) && (c) <= 'i') \
6310 || ('j' <= (c) && (c) <= 'r') \
6311 || ('s' <= (c) && (c) <= 'z'))
6312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6320 for (i = 0; i < 256; i++)
6321 if (XOR (islower (i), ISLOWER (i))
6322 || toupper (i) != TOUPPER (i))
6327 rm -f conftest$ac_exeext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329 (eval $ac_link) 2>&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6340 echo "$as_me: program exited with status $ac_status" >&5
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6345 ac_cv_header_stdc=no
6347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6353 if test $ac_cv_header_stdc = yes; then
6355 cat >>confdefs.h <<\_ACEOF
6356 #define STDC_HEADERS 1
6361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6372 inttypes.h stdint.h unistd.h
6374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6375 echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 $ac_includes_default
6388 #include <$ac_header>
6390 rm -f conftest.$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392 (eval $ac_compile) 2>conftest.er1
6394 grep -v '^ *+' conftest.er1 >conftest.err
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -z "$ac_c_werror_flag"
6400 || test ! -s conftest.err'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 eval "$as_ac_Header=yes"
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 eval "$as_ac_Header=no"
6419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6424 cat >>confdefs.h <<_ACEOF
6425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434 for ac_header in dlfcn.h
6436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438 echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6446 # Is the header compilable?
6447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 $ac_includes_default
6456 #include <$ac_header>
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_c_werror_flag"
6468 || test ! -s conftest.err'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest.$ac_objext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_header_compiler=yes
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 ac_header_compiler=no
6487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6489 echo "${ECHO_T}$ac_header_compiler" >&6
6491 # Is the header present?
6492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <$ac_header>
6502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } >/dev/null; then
6510 if test -s conftest.err; then
6511 ac_cpp_err=$ac_c_preproc_warn_flag
6512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6519 if test -z "$ac_cpp_err"; then
6520 ac_header_preproc=yes
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 ac_header_preproc=no
6527 rm -f conftest.err conftest.$ac_ext
6528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6529 echo "${ECHO_T}$ac_header_preproc" >&6
6531 # So? What about this header?
6532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6538 ac_header_preproc=yes
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6555 ## ------------------------------------------ ##
6556 ## Report this to the AC_PACKAGE_NAME lists. ##
6557 ## ------------------------------------------ ##
6560 sed "s/^/$as_me: WARNING: /" >&2
6563 echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 eval "$as_ac_Header=\$ac_header_preproc"
6570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584 ac_cpp='$CXXCPP $CPPFLAGS'
6585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6588 if test -n "$ac_tool_prefix"; then
6589 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6593 echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595 if test "${ac_cv_prog_CXX+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 if test -n "$CXX"; then
6599 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 if test -n "$CXX"; then
6619 echo "$as_me:$LINENO: result: $CXX" >&5
6620 echo "${ECHO_T}$CXX" >&6
6622 echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6
6626 test -n "$CXX" && break
6629 if test -z "$CXX"; then
6631 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6633 # Extract the first word of "$ac_prog", so it can be a program name with args.
6634 set dummy $ac_prog; ac_word=$2
6635 echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 if test -n "$ac_ct_CXX"; then
6641 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_ac_ct_CXX="$ac_prog"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6660 if test -n "$ac_ct_CXX"; then
6661 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6662 echo "${ECHO_T}$ac_ct_CXX" >&6
6664 echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6668 test -n "$ac_ct_CXX" && break
6670 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6676 # Provide some information about the compiler.
6677 echo "$as_me:$LINENO:" \
6678 "checking for C++ compiler version" >&5
6679 ac_compiler=`set X $ac_compile; echo $2`
6680 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6681 (eval $ac_compiler --version </dev/null >&5) 2>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }
6685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6686 (eval $ac_compiler -v </dev/null >&5) 2>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }
6690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6691 (eval $ac_compiler -V </dev/null >&5) 2>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }
6696 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6697 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6698 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6719 rm -f conftest.$ac_objext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721 (eval $ac_compile) 2>conftest.er1
6723 grep -v '^ *+' conftest.er1 >conftest.err
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } &&
6728 { ac_try='test -z "$ac_cxx_werror_flag"
6729 || test ! -s conftest.err'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } &&
6735 { ac_try='test -s conftest.$ac_objext'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6749 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6752 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6753 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6754 GXX=`test $ac_compiler_gnu = yes && echo yes`
6755 ac_test_CXXFLAGS=${CXXFLAGS+set}
6756 ac_save_CXXFLAGS=$CXXFLAGS
6758 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6759 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6760 if test "${ac_cv_prog_cxx_g+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 cat >conftest.$ac_ext <<_ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6778 rm -f conftest.$ac_objext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>conftest.er1
6782 grep -v '^ *+' conftest.er1 >conftest.err
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try='test -z "$ac_cxx_werror_flag"
6788 || test ! -s conftest.err'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; } &&
6794 { ac_try='test -s conftest.$ac_objext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 ac_cv_prog_cxx_g=yes
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6810 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6811 if test "$ac_test_CXXFLAGS" = set; then
6812 CXXFLAGS=$ac_save_CXXFLAGS
6813 elif test $ac_cv_prog_cxx_g = yes; then
6814 if test "$GXX" = yes; then
6820 if test "$GXX" = yes; then
6826 for ac_declaration in \
6828 'extern "C" void std::exit (int) throw (); using std::exit;' \
6829 'extern "C" void std::exit (int); using std::exit;' \
6830 'extern "C" void exit (int) throw ();' \
6831 'extern "C" void exit (int);' \
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -z "$ac_cxx_werror_flag"
6860 || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1 >conftest.err
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_cxx_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6926 if test -n "$ac_declaration"; then
6927 echo '#ifdef __cplusplus' >>confdefs.h
6928 echo $ac_declaration >>confdefs.h
6929 echo '#endif' >>confdefs.h
6933 ac_cpp='$CXXCPP $CPPFLAGS'
6934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6938 depcc="$CXX" am_compiler_list=
6940 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6941 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6942 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6946 # We make a subdir and do the tests there. Otherwise we can end up
6947 # making bogus files that we don't know about and never remove. For
6948 # instance it was reported that on HP-UX the gcc test will end up
6949 # making a dummy file named `D' -- because `-MD' means `put the output
6952 # Copy depcomp to subdir because otherwise we won't find it if we're
6953 # using a relative directory.
6954 cp "$am_depcomp" conftest.dir
6956 # We will build objects and dependencies in a subdirectory because
6957 # it helps to detect inapplicable dependency modes. For instance
6958 # both Tru64's cc and ICC support -MD to output dependencies as a
6959 # side effect of compilation, but ICC will put the dependencies in
6960 # the current directory while Tru64 will put them in the object
6964 am_cv_CXX_dependencies_compiler_type=none
6965 if test "$am_compiler_list" = ""; then
6966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6968 for depmode in $am_compiler_list; do
6969 # Setup a source with many dependencies, because some compilers
6970 # like to wrap large dependency lists on column 80 (with \), and
6971 # we should not choose a depcomp mode which is confused by this.
6973 # We need to recreate these files for each test, as the compiler may
6974 # overwrite some of them when testing with obscure command lines.
6975 # This happens at least with the AIX C compiler.
6977 for i in 1 2 3 4 5 6; do
6978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6979 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6980 # Solaris 8's {/usr,}/bin/sh.
6981 touch sub/conftst$i.h
6983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6987 # after this tag, mechanisms are not by side-effect, so they'll
6988 # only be used when explicitly requested
6989 if test "x$enable_dependency_tracking" = xyes; then
6997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6998 # mode. It turns out that the SunPro C++ compiler does not properly
6999 # handle `-M -o', and we need to detect this.
7000 if depmode=$depmode \
7001 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7003 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7004 >/dev/null 2>conftest.err &&
7005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7006 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7008 # icc doesn't choke on unknown options, it will just issue warnings
7009 # or remarks (even with -Werror). So we grep stderr for any message
7010 # that says an option was ignored or not supported.
7011 # When given -MP, icc 7.0 and 7.1 complain thusly:
7012 # icc: Command line warning: ignoring option '-M'; no argument required
7013 # The diagnosis changed in icc 8.0:
7014 # icc: Command line remark: option '-MP' not supported
7015 if (grep 'ignoring option' conftest.err ||
7016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7017 am_cv_CXX_dependencies_compiler_type=$depmode
7026 am_cv_CXX_dependencies_compiler_type=none
7030 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7031 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7032 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7037 test "x$enable_dependency_tracking" != xno \
7038 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7039 am__fastdepCXX_TRUE=
7040 am__fastdepCXX_FALSE='#'
7042 am__fastdepCXX_TRUE='#'
7043 am__fastdepCXX_FALSE=
7049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7050 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7051 (test "X$CXX" != "Xg++"))) ; then
7053 ac_cpp='$CXXCPP $CPPFLAGS'
7054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7057 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7058 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7059 if test -z "$CXXCPP"; then
7060 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 # Double quotes because CXXCPP needs to be expanded
7064 for CXXCPP in "$CXX -E" "/lib/cpp"
7067 for ac_cxx_preproc_warn_flag in '' yes
7069 # Use a header file that comes with gcc, so configuring glibc
7070 # with a fresh cross-compiler works.
7071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072 # <limits.h> exists even on freestanding compilers.
7073 # On the NeXT, cc -E runs the code through the compiler's parser,
7074 # not just through cpp. "Syntax error" is here to catch this case.
7075 cat >conftest.$ac_ext <<_ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7082 # include <limits.h>
7084 # include <assert.h>
7088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7091 grep -v '^ *+' conftest.er1 >conftest.err
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } >/dev/null; then
7096 if test -s conftest.err; then
7097 ac_cpp_err=$ac_cxx_preproc_warn_flag
7098 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7105 if test -z "$ac_cpp_err"; then
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 # Broken: fails on valid input.
7114 rm -f conftest.err conftest.$ac_ext
7116 # OK, works on sane cases. Now check whether non-existent headers
7117 # can be detected and how.
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <ac_nonexistent.h>
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } >/dev/null; then
7134 if test -s conftest.err; then
7135 ac_cpp_err=$ac_cxx_preproc_warn_flag
7136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7143 if test -z "$ac_cpp_err"; then
7144 # Broken: success on invalid input.
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 # Passes both tests.
7154 rm -f conftest.err conftest.$ac_ext
7157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7158 rm -f conftest.err conftest.$ac_ext
7159 if $ac_preproc_ok; then
7164 ac_cv_prog_CXXCPP=$CXXCPP
7167 CXXCPP=$ac_cv_prog_CXXCPP
7169 ac_cv_prog_CXXCPP=$CXXCPP
7171 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7172 echo "${ECHO_T}$CXXCPP" >&6
7174 for ac_cxx_preproc_warn_flag in '' yes
7176 # Use a header file that comes with gcc, so configuring glibc
7177 # with a fresh cross-compiler works.
7178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7179 # <limits.h> exists even on freestanding compilers.
7180 # On the NeXT, cc -E runs the code through the compiler's parser,
7181 # not just through cpp. "Syntax error" is here to catch this case.
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7189 # include <limits.h>
7191 # include <assert.h>
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } >/dev/null; then
7203 if test -s conftest.err; then
7204 ac_cpp_err=$ac_cxx_preproc_warn_flag
7205 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7212 if test -z "$ac_cpp_err"; then
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 # Broken: fails on valid input.
7221 rm -f conftest.err conftest.$ac_ext
7223 # OK, works on sane cases. Now check whether non-existent headers
7224 # can be detected and how.
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 #include <ac_nonexistent.h>
7233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7236 grep -v '^ *+' conftest.er1 >conftest.err
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } >/dev/null; then
7241 if test -s conftest.err; then
7242 ac_cpp_err=$ac_cxx_preproc_warn_flag
7243 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7250 if test -z "$ac_cpp_err"; then
7251 # Broken: success on invalid input.
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7257 # Passes both tests.
7261 rm -f conftest.err conftest.$ac_ext
7264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265 rm -f conftest.err conftest.$ac_ext
7266 if $ac_preproc_ok; then
7269 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7270 See \`config.log' for more details." >&5
7271 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7272 See \`config.log' for more details." >&2;}
7273 { (exit 1); exit 1; }; }
7277 ac_cpp='$CXXCPP $CPPFLAGS'
7278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7286 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7287 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7289 if test -n "$ac_tool_prefix"; then
7290 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7294 echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296 if test "${ac_cv_prog_F77+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 if test -n "$F77"; then
7300 ac_cv_prog_F77="$F77" # Let the user override the test.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 if test -n "$F77"; then
7320 echo "$as_me:$LINENO: result: $F77" >&5
7321 echo "${ECHO_T}$F77" >&6
7323 echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7327 test -n "$F77" && break
7330 if test -z "$F77"; then
7332 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 if test -n "$ac_ct_F77"; then
7342 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_F77="$ac_prog"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7361 if test -n "$ac_ct_F77"; then
7362 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7363 echo "${ECHO_T}$ac_ct_F77" >&6
7365 echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7369 test -n "$ac_ct_F77" && break
7376 # Provide some information about the compiler.
7377 echo "$as_me:7377:" \
7378 "checking for Fortran 77 compiler version" >&5
7379 ac_compiler=`set X $ac_compile; echo $2`
7380 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7381 (eval $ac_compiler --version </dev/null >&5) 2>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }
7385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7386 (eval $ac_compiler -v </dev/null >&5) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }
7390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7391 (eval $ac_compiler -V </dev/null >&5) 2>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }
7397 # If we don't use `.F' as extension, the preprocessor is not run on the
7398 # input file. (Note that this only needs to work for GNU compilers.)
7401 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7402 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7403 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_f77_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7447 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7448 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7450 ac_test_FFLAGS=${FFLAGS+set}
7451 ac_save_FFLAGS=$FFLAGS
7453 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7454 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7455 if test "${ac_cv_prog_f77_g+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 cat >conftest.$ac_ext <<_ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466 (eval $ac_compile) 2>conftest.er1
7468 grep -v '^ *+' conftest.er1 >conftest.err
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -z "$ac_f77_werror_flag"
7474 || test ! -s conftest.err'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; } &&
7480 { ac_try='test -s conftest.$ac_objext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 ac_cv_prog_f77_g=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7497 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7498 if test "$ac_test_FFLAGS" = set; then
7499 FFLAGS=$ac_save_FFLAGS
7500 elif test $ac_cv_prog_f77_g = yes; then
7501 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7507 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7514 G77=`test $ac_compiler_gnu = yes && echo yes`
7516 ac_cpp='$CPP $CPPFLAGS'
7517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7525 # find the maximum length of command line arguments
7526 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7527 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7528 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 # On DJGPP, this test can blow up pretty badly due to problems in libc
7537 # (any single argument exceeding 2000 bytes causes a buffer overrun
7538 # during glob expansion). Even if it were fixed, the result of this
7539 # check would be larger than it should be.
7540 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7544 # Under GNU Hurd, this test is not required because there is
7545 # no limit to the length of command line arguments.
7546 # Libtool will interpret -1 as no limit whatsoever
7547 lt_cv_sys_max_cmd_len=-1;
7551 # On Win9x/ME, this test blows up -- it succeeds, but takes
7552 # about 5 minutes as the teststring grows exponentially.
7553 # Worse, since 9x/ME are not pre-emptively multitasking,
7554 # you end up with a "frozen" computer, even though with patience
7555 # the test eventually succeeds (with a max line length of 256k).
7556 # Instead, let's just punt: use the minimum linelength reported by
7557 # all of the supported platforms: 8192 (on NT/2K/XP).
7558 lt_cv_sys_max_cmd_len=8192;
7562 # On AmigaOS with pdksh, this test takes hours, literally.
7563 # So we just punt and use a minimum line length of 8192.
7564 lt_cv_sys_max_cmd_len=8192;
7567 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7568 # This has been around since 386BSD, at least. Likely further.
7569 if test -x /sbin/sysctl; then
7570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7571 elif test -x /usr/sbin/sysctl; then
7572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7574 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7576 # And add a safety zone
7577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7581 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7582 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7583 # nice to cause kernel panics so lets avoid the loop below.
7584 # First set a reasonable default.
7585 lt_cv_sys_max_cmd_len=16384
7587 if test -x /sbin/sysconfig; then
7588 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7589 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7594 # If test is not a shell built-in, we'll probably end up computing a
7595 # maximum length that is only half of the actual maximum length, but
7597 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7598 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7599 = "XX$teststring") >/dev/null 2>&1 &&
7600 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7601 lt_cv_sys_max_cmd_len=$new_result &&
7602 test $i != 17 # 1/2 MB should be enough
7605 teststring=$teststring$teststring
7608 # Add a significant safety factor because C++ compilers can tack on massive
7609 # amounts of additional arguments before passing them to the linker.
7610 # It appears as though 1/2 is a usable value.
7611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7617 if test -n $lt_cv_sys_max_cmd_len ; then
7618 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7619 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7621 echo "$as_me:$LINENO: result: none" >&5
7622 echo "${ECHO_T}none" >&6
7628 # Check for command to grab the raw symbol name followed by C symbol from nm.
7629 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7630 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7631 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 # These are sane defaults that work on at least a few old systems.
7636 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7638 # Character class describing NM global symbol codes.
7639 symcode='[BCDEGRST]'
7641 # Regexp to match symbols that can be accessed directly from C.
7642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7644 # Transform an extracted symbol line into a proper C declaration
7645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7647 # Transform an extracted symbol line into symbol name and symbol address
7648 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7650 # Define system-specific variables.
7655 cygwin* | mingw* | pw32*)
7656 symcode='[ABCDGISTW]'
7658 hpux*) # Its linker distinguishes data from code symbols
7659 if test "$host_cpu" = ia64; then
7660 symcode='[ABCDEGRST]'
7662 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7663 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7666 if test "$host_cpu" = ia64; then
7667 symcode='[ABCDGIRSTW]'
7668 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7669 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7673 symcode='[BCDEGRST]'
7676 symcode='[BCDEGQRST]'
7686 # Handle CRLF in mingw tool chain
7690 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7694 # If we're using GNU nm, then use its standard symbol codes.
7695 case `$NM -V 2>&1` in
7696 *GNU* | *'with BFD'*)
7697 symcode='[ABCDGIRSTW]' ;;
7700 # Try without a prefix undercore, then with it.
7701 for ac_symprfx in "" "_"; do
7703 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7704 symxfrm="\\1 $ac_symprfx\\2 \\2"
7706 # Write the raw and C identifiers.
7707 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7709 # Check to see that the pipe works correctly.
7713 cat > conftest.$ac_ext <<EOF
7718 void nm_test_func(){}
7722 int main(){nm_test_var='a';nm_test_func();return(0);}
7725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7726 (eval $ac_compile) 2>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; then
7730 # Now try to grab the symbols.
7732 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7733 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } && test -s "$nlist"; then
7737 # Try sorting and uniquifying the output.
7738 if sort "$nlist" | uniq > "$nlist"T; then
7739 mv -f "$nlist"T "$nlist"
7744 # Make sure that we snagged all the symbols we need.
7745 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7746 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7747 cat <<EOF > conftest.$ac_ext
7753 # Now generate the symbol file.
7754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7756 cat <<EOF >> conftest.$ac_ext
7757 #if defined (__STDC__) && __STDC__
7758 # define lt_ptr_t void *
7760 # define lt_ptr_t char *
7764 /* The mapping between symbol names and symbols. */
7769 lt_preloaded_symbols[] =
7772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7773 cat <<\EOF >> conftest.$ac_ext
7781 # Now try linking the two files.
7782 mv conftest.$ac_objext conftstm.$ac_objext
7783 lt_save_LIBS="$LIBS"
7784 lt_save_CFLAGS="$CFLAGS"
7785 LIBS="conftstm.$ac_objext"
7786 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7788 (eval $ac_link) 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7794 LIBS="$lt_save_LIBS"
7795 CFLAGS="$lt_save_CFLAGS"
7797 echo "cannot find nm_test_func in $nlist" >&5
7800 echo "cannot find nm_test_var in $nlist" >&5
7803 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7806 echo "$progname: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7809 rm -f conftest* conftst*
7811 # Do not use the global_symbol_pipe unless it works.
7812 if test "$pipe_works" = yes; then
7815 lt_cv_sys_global_symbol_pipe=
7821 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7822 lt_cv_sys_global_symbol_to_cdecl=
7824 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7825 echo "$as_me:$LINENO: result: failed" >&5
7826 echo "${ECHO_T}failed" >&6
7828 echo "$as_me:$LINENO: result: ok" >&5
7829 echo "${ECHO_T}ok" >&6
7832 echo "$as_me:$LINENO: checking for objdir" >&5
7833 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7834 if test "${lt_cv_objdir+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 rm -f .libs 2>/dev/null
7838 mkdir .libs 2>/dev/null
7839 if test -d .libs; then
7842 # MS-DOS does not allow filenames that begin with a dot.
7845 rmdir .libs 2>/dev/null
7847 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7848 echo "${ECHO_T}$lt_cv_objdir" >&6
7849 objdir=$lt_cv_objdir
7857 # AIX sometimes has problems with the GCC collect2 program. For some
7858 # reason, if we set the COLLECT_NAMES environment variable, the problems
7859 # vanish in a puff of smoke.
7860 if test "X${COLLECT_NAMES+set}" != Xset; then
7862 export COLLECT_NAMES
7867 # Sed substitution that helps us do robust quoting. It backslashifies
7868 # metacharacters that are still active within double-quoted strings.
7869 Xsed='sed -e 1s/^X//'
7870 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7872 # Same as above, but do not quote variable references.
7873 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7875 # Sed substitution to delay expansion of an escaped shell variable in a
7876 # double_quote_subst'ed string.
7877 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7879 # Sed substitution to avoid accidental globbing in evaled expressions
7880 no_glob_subst='s/\*/\\\*/g'
7886 default_ofile=libtool
7887 can_build_shared=yes
7889 # All known linkers require a `.a' archive for static linking (except M$VC,
7890 # which needs '.lib').
7892 ltmain="$ac_aux_dir/ltmain.sh"
7893 ofile="$default_ofile"
7894 with_gnu_ld="$lt_cv_prog_gnu_ld"
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}ar; ac_word=$2
7899 echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7901 if test "${ac_cv_prog_AR+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 if test -n "$AR"; then
7905 ac_cv_prog_AR="$AR" # Let the user override the test.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_AR="${ac_tool_prefix}ar"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 if test -n "$AR"; then
7925 echo "$as_me:$LINENO: result: $AR" >&5
7926 echo "${ECHO_T}$AR" >&6
7928 echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6
7933 if test -z "$ac_cv_prog_AR"; then
7935 # Extract the first word of "ar", so it can be a program name with args.
7936 set dummy ar; ac_word=$2
7937 echo "$as_me:$LINENO: checking for $ac_word" >&5
7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 if test -n "$ac_ct_AR"; then
7943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_ac_ct_AR="ar"
7953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7963 if test -n "$ac_ct_AR"; then
7964 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7965 echo "${ECHO_T}$ac_ct_AR" >&6
7967 echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_prog_RANLIB+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 if test -n "$RANLIB"; then
7985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 RANLIB=$ac_cv_prog_RANLIB
8004 if test -n "$RANLIB"; then
8005 echo "$as_me:$LINENO: result: $RANLIB" >&5
8006 echo "${ECHO_T}$RANLIB" >&6
8008 echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6
8013 if test -z "$ac_cv_prog_RANLIB"; then
8014 ac_ct_RANLIB=$RANLIB
8015 # Extract the first word of "ranlib", so it can be a program name with args.
8016 set dummy ranlib; ac_word=$2
8017 echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 if test -n "$ac_ct_RANLIB"; then
8023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_ac_ct_RANLIB="ranlib"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8043 if test -n "$ac_ct_RANLIB"; then
8044 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8045 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8047 echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8051 RANLIB=$ac_ct_RANLIB
8053 RANLIB="$ac_cv_prog_RANLIB"
8056 if test -n "$ac_tool_prefix"; then
8057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}strip; ac_word=$2
8059 echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8061 if test "${ac_cv_prog_STRIP+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 if test -n "$STRIP"; then
8065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 STRIP=$ac_cv_prog_STRIP
8084 if test -n "$STRIP"; then
8085 echo "$as_me:$LINENO: result: $STRIP" >&5
8086 echo "${ECHO_T}$STRIP" >&6
8088 echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8093 if test -z "$ac_cv_prog_STRIP"; then
8095 # Extract the first word of "strip", so it can be a program name with args.
8096 set dummy strip; ac_word=$2
8097 echo "$as_me:$LINENO: checking for $ac_word" >&5
8098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 if test -n "$ac_ct_STRIP"; then
8103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112 ac_cv_prog_ac_ct_STRIP="strip"
8113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8123 if test -n "$ac_ct_STRIP"; then
8124 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8125 echo "${ECHO_T}$ac_ct_STRIP" >&6
8127 echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8133 STRIP="$ac_cv_prog_STRIP"
8138 old_CFLAGS="$CFLAGS"
8140 # Set sane defaults for various variables
8141 test -z "$AR" && AR=ar
8142 test -z "$AR_FLAGS" && AR_FLAGS=cru
8143 test -z "$AS" && AS=as
8144 test -z "$CC" && CC=cc
8145 test -z "$LTCC" && LTCC=$CC
8146 test -z "$DLLTOOL" && DLLTOOL=dlltool
8147 test -z "$LD" && LD=ld
8148 test -z "$LN_S" && LN_S="ln -s"
8149 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8150 test -z "$NM" && NM=nm
8151 test -z "$SED" && SED=sed
8152 test -z "$OBJDUMP" && OBJDUMP=objdump
8153 test -z "$RANLIB" && RANLIB=:
8154 test -z "$STRIP" && STRIP=:
8155 test -z "$ac_objext" && ac_objext=o
8157 # Determine commands to create old-style static archives.
8158 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8159 old_postinstall_cmds='chmod 644 $oldlib'
8160 old_postuninstall_cmds=
8162 if test -n "$RANLIB"; then
8165 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8168 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8171 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8174 for cc_temp in $compiler""; do
8176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8182 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8185 # Only perform the check for file, if the check method requires it
8186 case $deplibs_check_method in
8188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8189 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8190 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8199 lt_save_MAGIC_CMD="$MAGIC_CMD"
8200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8202 for ac_dir in $ac_dummy; do
8204 test -z "$ac_dir" && ac_dir=.
8205 if test -f $ac_dir/${ac_tool_prefix}file; then
8206 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8207 if test -n "$file_magic_test_file"; then
8208 case $deplibs_check_method in
8210 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8213 $EGREP "$file_magic_regex" > /dev/null; then
8218 *** Warning: the command libtool uses to detect shared libraries,
8219 *** $file_magic_cmd, produces output that libtool cannot recognize.
8220 *** The result is that libtool may fail to recognize shared libraries
8221 *** as such. This will affect the creation of libtool libraries that
8222 *** depend on shared libraries, but programs linked with such libtool
8223 *** libraries will work regardless of this problem. Nevertheless, you
8224 *** may want to report the problem to your system manager and/or to
8225 *** bug-libtool@gnu.org
8235 MAGIC_CMD="$lt_save_MAGIC_CMD"
8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241 if test -n "$MAGIC_CMD"; then
8242 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8243 echo "${ECHO_T}$MAGIC_CMD" >&6
8245 echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6
8249 if test -z "$lt_cv_path_MAGIC_CMD"; then
8250 if test -n "$ac_tool_prefix"; then
8251 echo "$as_me:$LINENO: checking for file" >&5
8252 echo $ECHO_N "checking for file... $ECHO_C" >&6
8253 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8261 lt_save_MAGIC_CMD="$MAGIC_CMD"
8262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8264 for ac_dir in $ac_dummy; do
8266 test -z "$ac_dir" && ac_dir=.
8267 if test -f $ac_dir/file; then
8268 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8269 if test -n "$file_magic_test_file"; then
8270 case $deplibs_check_method in
8272 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8275 $EGREP "$file_magic_regex" > /dev/null; then
8280 *** Warning: the command libtool uses to detect shared libraries,
8281 *** $file_magic_cmd, produces output that libtool cannot recognize.
8282 *** The result is that libtool may fail to recognize shared libraries
8283 *** as such. This will affect the creation of libtool libraries that
8284 *** depend on shared libraries, but programs linked with such libtool
8285 *** libraries will work regardless of this problem. Nevertheless, you
8286 *** may want to report the problem to your system manager and/or to
8287 *** bug-libtool@gnu.org
8297 MAGIC_CMD="$lt_save_MAGIC_CMD"
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if test -n "$MAGIC_CMD"; then
8304 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8305 echo "${ECHO_T}$MAGIC_CMD" >&6
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8321 enable_win32_dll=yes
8323 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8324 if test "${enable_libtool_lock+set}" = set; then
8325 enableval="$enable_libtool_lock"
8328 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8331 # Check whether --with-pic or --without-pic was given.
8332 if test "${with_pic+set}" = set; then
8338 test -z "$pic_mode" && pic_mode=default
8340 # Use C for the default configuration in the libtool script
8344 ac_cpp='$CPP $CPPFLAGS'
8345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350 # Source file extension for C test sources.
8353 # Object file extension for compiled C test sources.
8357 # Code to be used in simple compile tests
8358 lt_simple_compile_test_code="int some_variable = 0;\n"
8360 # Code to be used in simple link tests
8361 lt_simple_link_test_code='int main(){return(0);}\n'
8364 # If no C compiler was specified, use CC.
8367 # Allow CC to be a program name with arguments.
8371 # save warnings/boilerplate of simple test code
8372 ac_outfile=conftest.$ac_objext
8373 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8375 _lt_compiler_boilerplate=`cat conftest.err`
8378 ac_outfile=conftest.$ac_objext
8379 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8381 _lt_linker_boilerplate=`cat conftest.err`
8386 # Check for any special shared library compilation flags.
8389 if test "$GCC" = no; then
8392 lt_prog_cc_shlib='-belf'
8396 if test -n "$lt_prog_cc_shlib"; then
8397 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8398 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8399 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8401 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8402 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8403 lt_cv_prog_cc_can_build_shared=no
8409 # Check to make sure the static flag actually works.
8411 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8412 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8413 if test "${lt_prog_compiler_static_works+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 lt_prog_compiler_static_works=no
8417 save_LDFLAGS="$LDFLAGS"
8418 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8419 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8421 # The compiler can only warn and ignore the option if not recognized
8422 # So say no if there are warnings
8423 if test -s conftest.err; then
8424 # Append any errors to the config.log.
8425 cat conftest.err 1>&5
8426 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8427 $SED '/^$/d' conftest.err >conftest.er2
8428 if diff conftest.exp conftest.er2 >/dev/null; then
8429 lt_prog_compiler_static_works=yes
8432 lt_prog_compiler_static_works=yes
8436 LDFLAGS="$save_LDFLAGS"
8439 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8440 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8442 if test x"$lt_prog_compiler_static_works" = xyes; then
8445 lt_prog_compiler_static=
8451 lt_prog_compiler_no_builtin_flag=
8453 if test "$GCC" = yes; then
8454 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8457 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8458 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8459 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 lt_cv_prog_compiler_rtti_exceptions=no
8463 ac_outfile=conftest.$ac_objext
8464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8465 lt_compiler_flag="-fno-rtti -fno-exceptions"
8466 # Insert the option either (1) after the last *FLAGS variable, or
8467 # (2) before a word containing "conftest.", or (3) at the end.
8468 # Note that $ac_compile itself does not contain backslashes and begins
8469 # with a dollar sign (not a hyphen), so the echo should work correctly.
8470 # The option is referenced via a variable to avoid confusing sed.
8471 lt_compile=`echo "$ac_compile" | $SED \
8472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474 -e 's:$: $lt_compiler_flag:'`
8475 (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
8476 (eval "$lt_compile" 2>conftest.err)
8478 cat conftest.err >&5
8479 echo "$as_me:8479: \$? = $ac_status" >&5
8480 if (exit $ac_status) && test -s "$ac_outfile"; then
8481 # The compiler can only warn and ignore the option if not recognized
8482 # So say no if there are warnings other than the usual output.
8483 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8484 $SED '/^$/d' conftest.err >conftest.er2
8485 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8486 lt_cv_prog_compiler_rtti_exceptions=yes
8492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8493 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8495 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8496 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8503 lt_prog_compiler_wl=
8504 lt_prog_compiler_pic=
8505 lt_prog_compiler_static=
8507 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8510 if test "$GCC" = yes; then
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_static='-static'
8516 # All AIX code is PIC.
8517 if test "$host_cpu" = ia64; then
8518 # AIX 5 now supports IA64 processor
8519 lt_prog_compiler_static='-Bstatic'
8524 # FIXME: we need at least 68020 code to build shared libraries, but
8525 # adding the `-m68020' flag to GCC prevents building anything better,
8527 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8530 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8531 # PIC is the default for these OSes.
8534 mingw* | pw32* | os2*)
8535 # This hack is so that the source file can tell whether it is being
8536 # built for inclusion in a dll (and should export symbols for example).
8537 lt_prog_compiler_pic='-DDLL_EXPORT'
8540 darwin* | rhapsody*)
8541 # PIC is the default on this platform
8542 # Common symbols not allowed in MH_DYLIB files
8543 lt_prog_compiler_pic='-fno-common'
8547 # Just because we use GCC doesn't mean we suddenly get shared libraries
8548 # on systems that don't support them.
8549 lt_prog_compiler_can_build_shared=no
8554 if test -d /usr/nec; then
8555 lt_prog_compiler_pic=-Kconform_pic
8560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8567 lt_prog_compiler_pic='-fPIC'
8573 lt_prog_compiler_pic='-fPIC'
8577 # PORTME Check for flag to pass linker flags through the system compiler.
8580 lt_prog_compiler_wl='-Wl,'
8581 if test "$host_cpu" = ia64; then
8582 # AIX 5 now supports IA64 processor
8583 lt_prog_compiler_static='-Bstatic'
8585 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8589 # PIC is the default on this platform
8590 # Common symbols not allowed in MH_DYLIB files
8591 case $cc_basename in
8593 lt_prog_compiler_pic='-qnocommon'
8594 lt_prog_compiler_wl='-Wl,'
8599 mingw* | pw32* | os2*)
8600 # This hack is so that the source file can tell whether it is being
8601 # built for inclusion in a dll (and should export symbols for example).
8602 lt_prog_compiler_pic='-DDLL_EXPORT'
8605 hpux9* | hpux10* | hpux11*)
8606 lt_prog_compiler_wl='-Wl,'
8607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8614 lt_prog_compiler_pic='+Z'
8617 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8618 lt_prog_compiler_static='${wl}-a ${wl}archive'
8621 irix5* | irix6* | nonstopux*)
8622 lt_prog_compiler_wl='-Wl,'
8623 # PIC (with -KPIC) is the default.
8624 lt_prog_compiler_static='-non_shared'
8628 lt_prog_compiler_pic='-KPIC'
8629 lt_prog_compiler_static='-Bstatic'
8633 case $cc_basename in
8635 lt_prog_compiler_wl='-Wl,'
8636 lt_prog_compiler_pic='-KPIC'
8637 lt_prog_compiler_static='-static'
8639 pgcc* | pgf77* | pgf90*)
8640 # Portland Group compilers (*not* the Pentium gcc compiler,
8641 # which looks to be a dead project)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-fpic'
8644 lt_prog_compiler_static='-static'
8647 lt_prog_compiler_wl='-Wl,'
8648 # All Alpha code is PIC.
8649 lt_prog_compiler_static='-non_shared'
8654 osf3* | osf4* | osf5*)
8655 lt_prog_compiler_wl='-Wl,'
8656 # All OSF/1 code is PIC.
8657 lt_prog_compiler_static='-non_shared'
8661 lt_prog_compiler_pic='-Kpic'
8662 lt_prog_compiler_static='-dn'
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 case $cc_basename in
8670 lt_prog_compiler_wl='-Qoption ld ';;
8672 lt_prog_compiler_wl='-Wl,';;
8677 lt_prog_compiler_wl='-Qoption ld '
8678 lt_prog_compiler_pic='-PIC'
8679 lt_prog_compiler_static='-Bstatic'
8682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_pic='-KPIC'
8685 lt_prog_compiler_static='-Bstatic'
8689 if test -d /usr/nec ;then
8690 lt_prog_compiler_pic='-Kconform_pic'
8691 lt_prog_compiler_static='-Bstatic'
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_can_build_shared=no
8701 lt_prog_compiler_pic='-pic'
8702 lt_prog_compiler_static='-Bstatic'
8706 lt_prog_compiler_can_build_shared=no
8711 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8712 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8715 # Check to make sure the PIC flag actually works.
8717 if test -n "$lt_prog_compiler_pic"; then
8719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8721 if test "${lt_prog_compiler_pic_works+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 lt_prog_compiler_pic_works=no
8725 ac_outfile=conftest.$ac_objext
8726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8727 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8728 # Insert the option either (1) after the last *FLAGS variable, or
8729 # (2) before a word containing "conftest.", or (3) at the end.
8730 # Note that $ac_compile itself does not contain backslashes and begins
8731 # with a dollar sign (not a hyphen), so the echo should work correctly.
8732 # The option is referenced via a variable to avoid confusing sed.
8733 lt_compile=`echo "$ac_compile" | $SED \
8734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736 -e 's:$: $lt_compiler_flag:'`
8737 (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
8738 (eval "$lt_compile" 2>conftest.err)
8740 cat conftest.err >&5
8741 echo "$as_me:8741: \$? = $ac_status" >&5
8742 if (exit $ac_status) && test -s "$ac_outfile"; then
8743 # The compiler can only warn and ignore the option if not recognized
8744 # So say no if there are warnings other than the usual output.
8745 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8746 $SED '/^$/d' conftest.err >conftest.er2
8747 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8748 lt_prog_compiler_pic_works=yes
8754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8755 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8757 if test x"$lt_prog_compiler_pic_works" = xyes; then
8758 case $lt_prog_compiler_pic in
8760 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8763 lt_prog_compiler_pic=
8764 lt_prog_compiler_can_build_shared=no
8769 # For platforms which do not support PIC, -DPIC is meaningless:
8771 lt_prog_compiler_pic=
8774 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8778 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8780 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 lt_cv_prog_compiler_c_o=no
8784 $rm -r conftest 2>/dev/null
8788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8790 lt_compiler_flag="-o out/conftest2.$ac_objext"
8791 # Insert the option either (1) after the last *FLAGS variable, or
8792 # (2) before a word containing "conftest.", or (3) at the end.
8793 # Note that $ac_compile itself does not contain backslashes and begins
8794 # with a dollar sign (not a hyphen), so the echo should work correctly.
8795 lt_compile=`echo "$ac_compile" | $SED \
8796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798 -e 's:$: $lt_compiler_flag:'`
8799 (eval echo "\"\$as_me:8799: $lt_compile\"" >&5)
8800 (eval "$lt_compile" 2>out/conftest.err)
8802 cat out/conftest.err >&5
8803 echo "$as_me:8803: \$? = $ac_status" >&5
8804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8806 # The compiler can only warn and ignore the option if not recognized
8807 # So say no if there are warnings
8808 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8809 $SED '/^$/d' out/conftest.err >out/conftest.er2
8810 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_c_o=yes
8816 # SGI C++ compiler will create directory out/ii_files/ for
8817 # template instantiation
8818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8819 $rm out/* && rmdir out
8825 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8829 hard_links="nottested"
8830 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8831 # do not overwrite the value of need_locks provided by the user
8832 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8838 ln conftest.a conftest.b 2>&5 || hard_links=no
8839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8840 echo "$as_me:$LINENO: result: $hard_links" >&5
8841 echo "${ECHO_T}$hard_links" >&6
8842 if test "$hard_links" = no; then
8843 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8851 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8855 allow_undefined_flag=
8856 enable_shared_with_static_runtimes=no
8858 archive_expsym_cmds=
8859 old_archive_From_new_cmds=
8860 old_archive_from_expsyms_cmds=
8861 export_dynamic_flag_spec=
8862 whole_archive_flag_spec=
8863 thread_safe_flag_spec=
8864 hardcode_libdir_flag_spec=
8865 hardcode_libdir_flag_spec_ld=
8866 hardcode_libdir_separator=
8869 hardcode_shlibpath_var=unsupported
8870 link_all_deplibs=unknown
8871 hardcode_automatic=no
8874 always_export_symbols=no
8875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8876 # include_expsyms should be a list of space-separated symbols to be *always*
8877 # included in the symbol list
8879 # exclude_expsyms can be an extended regexp of symbols to exclude
8880 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8882 # as well as any symbol that contains `d'.
8883 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8885 # platforms (ab)use it in PIC code, but their linkers get confused if
8886 # the symbol is explicitly referenced. Since portable code cannot
8887 # rely on this symbol name, it's probably fine to never include it in
8888 # preloaded symbol tables.
8889 extract_expsyms_cmds=
8890 # Just being paranoid about ensuring that cc_basename is set.
8891 for cc_temp in $compiler""; do
8893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8902 cygwin* | mingw* | pw32*)
8903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8904 # When not using gcc, we currently assume that we are using
8905 # Microsoft Visual C++.
8906 if test "$GCC" != yes; then
8916 if test "$with_gnu_ld" = yes; then
8917 # If archive_cmds runs LD, not CC, wlarc should be empty
8920 # Set some defaults for GNU ld with shared library support. These
8921 # are reset later if shared libraries are not supported. Putting them
8922 # here allows them to be overridden if necessary.
8923 runpath_var=LD_RUN_PATH
8924 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8925 export_dynamic_flag_spec='${wl}--export-dynamic'
8926 # ancient GNU ld didn't support --whole-archive et. al.
8927 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8928 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8930 whole_archive_flag_spec=
8932 supports_anon_versioning=no
8933 case `$LD -v 2>/dev/null` in
8934 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8935 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8936 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8937 *\ 2.11.*) ;; # other 2.11 versions
8938 *) supports_anon_versioning=yes ;;
8941 # See if GNU ld supports shared libraries.
8943 aix3* | aix4* | aix5*)
8944 # On AIX/PPC, the GNU linker is very broken
8945 if test "$host_cpu" != ia64; then
8949 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8950 *** to be unable to reliably create shared libraries on AIX.
8951 *** Therefore, libtool is disabling shared libraries support. If you
8952 *** really care for shared libraries, you may want to modify your PATH
8953 *** so that a non-GNU linker is found, and then restart.
8960 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8961 hardcode_libdir_flag_spec='-L$libdir'
8962 hardcode_minus_L=yes
8964 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8965 # that the semantics of dynamic libraries on AmigaOS, at least up
8966 # to version 4, is to share data among multiple programs linked
8967 # with the same dynamic library. Since this doesn't match the
8968 # behavior of shared libraries on other platforms, we can't use
8974 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8975 allow_undefined_flag=unsupported
8976 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8977 # support --undefined. This deserves some investigation. FIXME
8978 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 cygwin* | mingw* | pw32*)
8985 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986 # as there is no search path for DLLs.
8987 hardcode_libdir_flag_spec='-L$libdir'
8988 allow_undefined_flag=unsupported
8989 always_export_symbols=no
8990 enable_shared_with_static_runtimes=yes
8991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8993 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8995 # If the export-symbols file already is a .def file (1st line
8996 # is EXPORTS), use it as is; otherwise, prepend...
8997 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8998 cp $export_symbols $output_objdir/$soname.def;
9000 echo EXPORTS > $output_objdir/$soname.def;
9001 cat $export_symbols >> $output_objdir/$soname.def;
9003 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9012 case $cc_basename,$host_cpu in
9013 pgcc*) # Portland Group C compiler
9014 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9015 tmp_addflag=' $pic_flag'
9017 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9018 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9019 tmp_addflag=' $pic_flag -Mnomain' ;;
9020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9021 tmp_addflag=' -i_dynamic' ;;
9022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9023 tmp_addflag=' -i_dynamic -nofor_main' ;;
9024 ifc* | ifort*) # Intel Fortran compiler
9025 tmp_addflag=' -nofor_main' ;;
9027 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 if test $supports_anon_versioning = yes; then
9030 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9031 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9032 $echo "local: *; };" >> $output_objdir/$libname.ver~
9033 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9051 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9056 *** create shared libraries on Solaris systems. Therefore, libtool
9057 *** is disabling shared libraries support. We urge you to upgrade GNU
9058 *** binutils to release 2.9.1 or newer. Another option is to modify
9059 *** your PATH or compiler configuration so that the native linker is
9060 *** used, and then restart.
9063 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9072 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_shlibpath_var=no
9079 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088 if test "$ld_shlibs" = no; then
9090 hardcode_libdir_flag_spec=
9091 export_dynamic_flag_spec=
9092 whole_archive_flag_spec=
9095 # PORTME fill in a description of your system's linker (not GNU ld)
9098 allow_undefined_flag=unsupported
9099 always_export_symbols=yes
9100 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9101 # Note: this linker hardcodes the directories in LIBPATH if there
9102 # are no directories specified by -L.
9103 hardcode_minus_L=yes
9104 if test "$GCC" = yes && test -z "$link_static_flag"; then
9105 # Neither direct hardcoding nor static linking is supported with a
9107 hardcode_direct=unsupported
9112 if test "$host_cpu" = ia64; then
9113 # On IA64, the linker does run time linking by default, so we don't
9114 # have to do anything special.
9115 aix_use_runtimelinking=no
9116 exp_sym_flag='-Bexport'
9119 # If we're using GNU nm, then we don't want the "-C" option.
9120 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9122 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9124 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9126 aix_use_runtimelinking=no
9128 # Test if we are trying to use run time linking or normal
9129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9130 # need to do runtime linking.
9131 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9132 for ld_flag in $LDFLAGS; do
9133 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9134 aix_use_runtimelinking=yes
9140 exp_sym_flag='-bexport'
9141 no_entry_flag='-bnoentry'
9144 # When large executables or shared objects are built, AIX ld can
9145 # have problems creating the table of contents. If linking a library
9146 # or program results in "error TOC overflow" add -mminimal-toc to
9147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9152 hardcode_libdir_separator=':'
9153 link_all_deplibs=yes
9155 if test "$GCC" = yes; then
9156 case $host_os in aix4.[012]|aix4.[012].*)
9157 # We only want to do this on AIX 4.2 and lower, the check
9158 # below for broken collect2 doesn't work under 4.3+
9159 collect2name=`${CC} -print-prog-name=collect2`
9160 if test -f "$collect2name" && \
9161 strings "$collect2name" | grep resolve_lib_name >/dev/null
9163 # We have reworked collect2
9166 # We have old collect2
9167 hardcode_direct=unsupported
9168 # It fails to find uninstalled libraries when the uninstalled
9169 # path is not listed in the libpath. Setting hardcode_minus_L
9170 # to unsupported forces relinking
9171 hardcode_minus_L=yes
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_libdir_separator=
9176 shared_flag='-shared'
9177 if test "$aix_use_runtimelinking" = yes; then
9178 shared_flag="$shared_flag "'${wl}-G'
9182 if test "$host_cpu" = ia64; then
9183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9184 # chokes on -Wl,-G. The following line is correct:
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag='${wl}-G'
9190 shared_flag='${wl}-bM:SRE'
9195 # It seems that -bexpall does not export symbols beginning with
9196 # underscore (_), so it is better to generate a list of symbols to export.
9197 always_export_symbols=yes
9198 if test "$aix_use_runtimelinking" = yes; then
9199 # Warning - without using the other runtime loading flags (-brtl),
9200 # -berok will link without error, but may produce a broken library.
9201 allow_undefined_flag='-berok'
9202 # Determine the default libpath from the value encoded in an empty executable.
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220 (eval $ac_link) 2>conftest.er1
9222 grep -v '^ *+' conftest.er1 >conftest.err
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -z "$ac_c_werror_flag"
9228 || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9251 rm -f conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9256 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9258 if test "$host_cpu" = ia64; then
9259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9260 allow_undefined_flag="-z nodefs"
9261 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9263 # Determine the default libpath from the value encoded in an empty executable.
9264 cat >conftest.$ac_ext <<_ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9283 grep -v '^ *+' conftest.er1 >conftest.err
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9304 # Check for a 64-bit object if we didn't find anything.
9305 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9312 rm -f conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317 # Warning - without using the other run time loading flags,
9318 # -berok will link without error, but may produce a broken library.
9319 no_undefined_flag=' ${wl}-bernotok'
9320 allow_undefined_flag=' ${wl}-berok'
9321 # -bexpall does not export symbols beginning with underscore (_)
9322 always_export_symbols=yes
9323 # Exported symbols can be pulled into shared objects from archives
9324 whole_archive_flag_spec=' '
9325 archive_cmds_need_lc=yes
9326 # This is similar to how AIX traditionally builds it's shared libraries.
9327 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9333 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9334 hardcode_libdir_flag_spec='-L$libdir'
9335 hardcode_minus_L=yes
9336 # see comment about different semantics on the GNU ld section
9341 export_dynamic_flag_spec=-rdynamic
9344 cygwin* | mingw* | pw32*)
9345 # When not using gcc, we currently assume that we are using
9346 # Microsoft Visual C++.
9347 # hardcode_libdir_flag_spec is actually meaningless, as there is
9348 # no search path for DLLs.
9349 hardcode_libdir_flag_spec=' '
9350 allow_undefined_flag=unsupported
9351 # Tell ltmain to make .lib files, not .a files.
9353 # Tell ltmain to make .dll files, not .so files.
9355 # FIXME: Setting linknames here is a bad hack.
9356 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9357 # The linker will automatically build a .lib file if we build a DLL.
9358 old_archive_From_new_cmds='true'
9359 # FIXME: Should let the user specify the lib program.
9360 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9361 fix_srcfile_path='`cygpath -w "$srcfile"`'
9362 enable_shared_with_static_runtimes=yes
9365 darwin* | rhapsody*)
9367 rhapsody* | darwin1.[012])
9368 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9371 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9372 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9374 case ${MACOSX_DEPLOYMENT_TARGET} in
9376 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9379 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9385 archive_cmds_need_lc=no
9387 hardcode_automatic=yes
9388 hardcode_shlibpath_var=unsupported
9389 whole_archive_flag_spec=''
9390 link_all_deplibs=yes
9391 if test "$GCC" = yes ; then
9392 output_verbose_link_cmd='echo'
9393 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9394 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9396 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9397 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9399 case $cc_basename in
9401 output_verbose_link_cmd='echo'
9402 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9403 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9405 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9406 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_libdir_flag_spec='-L$libdir'
9418 hardcode_shlibpath_var=no
9425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9426 # support. Future versions do this automatically, but an explicit c++rt0.o
9427 # does not break anything, and helps significantly (at the cost of a little
9430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9431 hardcode_libdir_flag_spec='-R$libdir'
9433 hardcode_shlibpath_var=no
9436 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9440 hardcode_minus_L=yes
9441 hardcode_shlibpath_var=no
9444 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9445 freebsd* | kfreebsd*-gnu | dragonfly*)
9446 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9447 hardcode_libdir_flag_spec='-R$libdir'
9449 hardcode_shlibpath_var=no
9453 if test "$GCC" = yes; then
9454 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9456 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459 hardcode_libdir_separator=:
9462 # hardcode_minus_L: Not really in the search PATH,
9463 # but as the default location of the library.
9464 hardcode_minus_L=yes
9465 export_dynamic_flag_spec='${wl}-E'
9469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9472 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9475 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9488 if test "$with_gnu_ld" = no; then
9491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9492 hardcode_libdir_flag_spec_ld='+b $libdir'
9493 hardcode_libdir_separator=:
9495 hardcode_shlibpath_var=no
9498 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_shlibpath_var=no
9502 # hardcode_minus_L: Not really in the search PATH,
9503 # but as the default location of the library.
9504 hardcode_minus_L=yes
9507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9508 hardcode_libdir_separator=:
9510 export_dynamic_flag_spec='${wl}-E'
9512 # hardcode_minus_L: Not really in the search PATH,
9513 # but as the default location of the library.
9514 hardcode_minus_L=yes
9520 irix5* | irix6* | nonstopux*)
9521 if test "$GCC" = yes; then
9522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9524 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9525 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528 hardcode_libdir_separator=:
9529 link_all_deplibs=yes
9533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9538 hardcode_libdir_flag_spec='-R$libdir'
9540 hardcode_shlibpath_var=no
9544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547 hardcode_libdir_separator=:
9548 hardcode_shlibpath_var=no
9553 hardcode_shlibpath_var=no
9554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9558 export_dynamic_flag_spec='${wl}-E'
9561 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec='-R$libdir'
9566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9574 hardcode_libdir_flag_spec='-L$libdir'
9575 hardcode_minus_L=yes
9576 allow_undefined_flag=unsupported
9577 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9578 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9582 if test "$GCC" = yes; then
9583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9586 allow_undefined_flag=' -expect_unresolved \*'
9587 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9593 osf4* | osf5*) # as osf3* with the addition of -msym flag
9594 if test "$GCC" = yes; then
9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9601 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9602 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9604 # Both c and cxx compiler support -rpath directly
9605 hardcode_libdir_flag_spec='-rpath $libdir'
9607 hardcode_libdir_separator=:
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_shlibpath_var=no
9613 export_dynamic_flag_spec='${wl}-Bexport'
9614 runpath_var=LD_RUN_PATH
9615 hardcode_runpath_var=yes
9619 no_undefined_flag=' -z text'
9620 if test "$GCC" = yes; then
9622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9631 hardcode_libdir_flag_spec='-R$libdir'
9632 hardcode_shlibpath_var=no
9634 solaris2.[0-5] | solaris2.[0-5].*) ;;
9636 # The compiler driver will combine linker options so we
9637 # cannot just pass the convience library names through
9638 # without $wl, iff we do not link with $LD.
9639 # Luckily, gcc supports the same syntax we need for Sun Studio.
9640 # Supported since Solaris 2.6 (maybe 2.5.1?)
9643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9645 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9648 link_all_deplibs=yes
9652 if test "x$host_vendor" = xsequent; then
9653 # Use $CC to link under sequent, because it throws in some extra .o
9654 # files that make .init and .fini sections work.
9655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_minus_L=yes
9662 hardcode_shlibpath_var=no
9666 case $host_vendor in
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=yes # is this really true???
9672 ## LD is ld it makes a PLAMLIB
9673 ## CC just makes a GrossModule.
9674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9675 reload_cmds='$CC -r -o $output$reload_objs'
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9683 runpath_var='LD_RUN_PATH'
9684 hardcode_shlibpath_var=no
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_shlibpath_var=no
9690 export_dynamic_flag_spec='-Bexport'
9694 if test -d /usr/nec; then
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 runpath_var=LD_RUN_PATH
9698 hardcode_runpath_var=yes
9704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_shlibpath_var=no
9708 hardcode_runpath_var=yes
9709 runpath_var=LD_RUN_PATH
9712 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9713 no_undefined_flag='${wl}-z ${wl}text'
9714 if test "$GCC" = yes; then
9715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 runpath_var='LD_RUN_PATH'
9720 hardcode_shlibpath_var=no
9724 no_undefined_flag=' -z text'
9725 # $CC -shared without GNU ld will not create a library from C++
9726 # object files and a static libstdc++, better avoid it by now
9727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9730 hardcode_libdir_flag_spec=
9731 hardcode_shlibpath_var=no
9732 runpath_var='LD_RUN_PATH'
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_libdir_flag_spec='-L$libdir'
9738 hardcode_shlibpath_var=no
9747 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9748 echo "${ECHO_T}$ld_shlibs" >&6
9749 test "$ld_shlibs" = no && can_build_shared=no
9751 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9752 if test "$GCC" = yes; then
9753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9757 # Do we need to explicitly link libc?
9759 case "x$archive_cmds_need_lc" in
9761 # Assume -lc should be added
9762 archive_cmds_need_lc=yes
9764 if test "$enable_shared" = yes && test "$GCC" = yes; then
9765 case $archive_cmds in
9767 # FIXME: we may have to deal with multi-command sequences.
9770 # Test whether the compiler implicitly links with -lc since on some
9771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9772 # to ld, don't add -lc before -lgcc.
9773 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9774 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } 2>conftest.err; then
9785 libobjs=conftest.$ac_objext
9787 wl=$lt_prog_compiler_wl
9793 lt_save_allow_undefined_flag=$allow_undefined_flag
9794 allow_undefined_flag=
9795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9796 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }
9801 archive_cmds_need_lc=no
9803 archive_cmds_need_lc=yes
9805 allow_undefined_flag=$lt_save_allow_undefined_flag
9807 cat conftest.err 1>&5
9810 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9811 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9818 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9819 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9821 libname_spec='lib$name'
9829 shlibpath_overrides_runpath=unknown
9831 dynamic_linker="$host_os ld.so"
9832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9833 if test "$GCC" = yes; then
9834 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9835 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9836 # if the path contains ";" then we assume it to be the separator
9837 # otherwise default to the standard path separator (i.e. ":") - it is
9838 # assumed that no part of a normal pathname contains ";" but that should
9839 # okay in the real world where ";" in dirpaths is itself problematic.
9840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9845 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9847 need_lib_prefix=unknown
9848 hardcode_into_libs=no
9850 # when you set need_version to no, make sure it does not cause -set_version
9851 # flags to be left without arguments
9852 need_version=unknown
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9858 shlibpath_var=LIBPATH
9860 # AIX 3 has no versioning support, so we append a major version to the name.
9861 soname_spec='${libname}${release}${shared_ext}$major'
9868 hardcode_into_libs=yes
9869 if test "$host_cpu" = ia64; then
9870 # AIX 5 supports IA64
9871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9872 shlibpath_var=LD_LIBRARY_PATH
9874 # With GCC up to 2.95.x, collect2 would create an import file
9875 # for dependence libraries. The import file would start with
9876 # the line `#! .'. This would cause the generated library to
9877 # depend on `.', always an invalid library. This was fixed in
9878 # development snapshots of GCC prior to 3.0.
9880 aix4 | aix4.[01] | aix4.[01].*)
9881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9891 # soname into executable. Probably we can add versioning support to
9892 # collect2, so additional links can be useful in future.
9893 if test "$aix_use_runtimelinking" = yes; then
9894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9895 # instead of lib<name>.a to let people know that these are not
9896 # typical AIX shared libraries.
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 # We preserve .a as extension for shared libraries through AIX4.2
9900 # and later when we are not doing run time linking.
9901 library_names_spec='${libname}${release}.a $libname.a'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9904 shlibpath_var=LIBPATH
9909 library_names_spec='$libname.ixlibrary $libname.a'
9910 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9911 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9915 library_names_spec='${libname}${shared_ext}'
9916 dynamic_linker="$host_os ld.so"
9917 shlibpath_var=LIBRARY_PATH
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9929 # the default ld.so.conf also contains /usr/contrib/lib and
9930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9931 # libtool to hard-code these into programs
9934 cygwin* | mingw* | pw32*)
9935 version_type=windows
9940 case $GCC,$host_os in
9941 yes,cygwin* | yes,mingw* | yes,pw32*)
9942 library_names_spec='$libname.dll.a'
9943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9944 postinstall_cmds='base_file=`basename \${file}`~
9945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9946 dldir=$destdir/`dirname \$dlpath`~
9947 test -d \$dldir || mkdir -p \$dldir~
9948 $install_prog $dir/$dlname \$dldir/$dlname'
9949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9950 dlpath=$dir/\$dldll~
9952 shlibpath_overrides_runpath=yes
9956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9961 # MinGW DLLs use traditional 'lib' prefix
9962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9963 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9964 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9965 # It is most probably a Windows format PATH printed by
9966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9967 # path with ; separators, and with drive letters. We can handle the
9968 # drive letters (cygwin fileutils understands them), so leave them,
9969 # especially as we might pass files found there to a mingw objdump,
9970 # which wouldn't understand a cygwinified path. Ahh.
9971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9977 # pw32 DLLs use 'pw' prefix rather than 'lib'
9978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9987 dynamic_linker='Win32 ld.exe'
9988 # FIXME: first we should search . and the directory the executable is in
9992 darwin* | rhapsody*)
9993 dynamic_linker="$host_os dyld"
9997 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9998 soname_spec='${libname}${release}${major}$shared_ext'
9999 shlibpath_overrides_runpath=yes
10000 shlibpath_var=DYLD_LIBRARY_PATH
10001 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10002 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10003 if test "$GCC" = yes; then
10004 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10006 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10016 soname_spec='${libname}${release}${shared_ext}$major'
10017 shlibpath_var=LD_LIBRARY_PATH
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 shlibpath_overrides_runpath=no
10032 hardcode_into_libs=yes
10033 dynamic_linker='GNU ld.so'
10036 freebsd* | dragonfly*)
10037 # DragonFly does not have aout. When/if they implement a new
10038 # versioning mechanism, adjust this.
10039 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10040 version_type=freebsd-$objformat
10041 case $version_type in
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10052 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=yes
10057 freebsd3.[01]* | freebsdelf3.[01]*)
10058 shlibpath_overrides_runpath=yes
10059 hardcode_into_libs=yes
10062 shlibpath_overrides_runpath=no
10063 hardcode_into_libs=yes
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 hardcode_into_libs=yes
10078 hpux9* | hpux10* | hpux11*)
10079 # Give a soname corresponding to the major version so that dld.sl refuses to
10080 # link against other versions.
10084 case "$host_cpu" in
10087 hardcode_into_libs=yes
10088 dynamic_linker="$host_os dld.so"
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 if test "X$HPUX_IA64_MODE" = X32; then
10094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10102 hardcode_into_libs=yes
10103 dynamic_linker="$host_os dld.sl"
10104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113 dynamic_linker="$host_os dld.sl"
10114 shlibpath_var=SHLIB_PATH
10115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10121 postinstall_cmds='chmod 555 $lib'
10124 irix5* | irix6* | nonstopux*)
10126 nonstopux*) version_type=nonstopux ;;
10128 if test "$lt_cv_prog_gnu_ld" = yes; then
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10139 irix5* | nonstopux*)
10140 libsuff= shlibsuff=
10143 case $LD in # libtool.m4 will add one of these switches to LD
10144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10145 libsuff= shlibsuff= libmagic=32-bit;;
10146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10147 libsuff=32 shlibsuff=N32 libmagic=N32;;
10148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10150 *) libsuff= shlibsuff= libmagic=never-match;;
10154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10155 shlibpath_overrides_runpath=no
10156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10158 hardcode_into_libs=yes
10161 # No shared lib support for Linux oldld, aout, or coff.
10162 linux*oldld* | linux*aout* | linux*coff*)
10166 # This must be Linux ELF.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=no
10176 # This implies no fast_install, which is unacceptable.
10177 # Some rework will be needed to allow for fast_install
10178 # before this can be enabled.
10179 hardcode_into_libs=yes
10181 # Append ld.so.conf contents to the search path
10182 if test -f /etc/ld.so.conf; then
10183 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10184 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10187 # We used to test for /lib/ld.so.1 and disable shared libraries on
10188 # powerpc, because MkLinux only supported shared libraries with the
10189 # GNU dynamic linker. Since this was broken with cross compilers,
10190 # most powerpc-linux boxes support dynamic linking these days and
10191 # people can always --disable-shared, the test was removed, and we
10192 # assume the GNU/Linux dynamic linker is in use.
10193 dynamic_linker='GNU/Linux ld.so'
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 shlibpath_overrides_runpath=no
10204 hardcode_into_libs=yes
10205 dynamic_linker='GNU ld.so'
10212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10215 dynamic_linker='NetBSD (a.out) ld.so'
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 dynamic_linker='NetBSD ld.elf_so'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=yes
10223 hardcode_into_libs=yes
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10248 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10249 *) need_version=no ;;
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10256 openbsd2.[89] | openbsd2.[89].*)
10257 shlibpath_overrides_runpath=no
10260 shlibpath_overrides_runpath=yes
10264 shlibpath_overrides_runpath=yes
10269 libname_spec='$name'
10272 library_names_spec='$libname${shared_ext} $libname.a'
10273 dynamic_linker='OS/2 ld.exe'
10274 shlibpath_var=LIBPATH
10277 osf3* | osf4* | osf5*)
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 shlibpath_var=LD_LIBRARY_PATH
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10303 hardcode_into_libs=yes
10304 # ldd complains unless libraries are executable
10305 postinstall_cmds='chmod +x $lib'
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=yes
10314 if test "$with_gnu_ld" = yes; then
10320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 case $host_vendor in
10327 shlibpath_overrides_runpath=no
10329 export_dynamic_flag_spec='${wl}-Blargedynsym'
10330 runpath_var=LD_RUN_PATH
10338 shlibpath_overrides_runpath=no
10339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10345 if test -d /usr/nec ;then
10347 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10348 soname_spec='$libname${shared_ext}.$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 shlibpath_var=LD_LIBRARY_PATH
10364 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10365 echo "${ECHO_T}$dynamic_linker" >&6
10366 test "$dynamic_linker" = no && can_build_shared=no
10368 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10371 if test -n "$hardcode_libdir_flag_spec" || \
10372 test -n "$runpath_var" || \
10373 test "X$hardcode_automatic" = "Xyes" ; then
10375 # We can hardcode non-existant directories.
10376 if test "$hardcode_direct" != no &&
10377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10378 # have to relink, otherwise we might link with an installed library
10379 # when we should be linking with a yet-to-be-installed one
10380 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10381 test "$hardcode_minus_L" != no; then
10382 # Linking always hardcodes the temporary library directory.
10383 hardcode_action=relink
10385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10386 hardcode_action=immediate
10389 # We cannot hardcode anything, or else we can only hardcode existing
10391 hardcode_action=unsupported
10393 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10394 echo "${ECHO_T}$hardcode_action" >&6
10396 if test "$hardcode_action" = relink; then
10397 # Fast installation is not supported
10398 enable_fast_install=no
10399 elif test "$shlibpath_overrides_runpath" = yes ||
10400 test "$enable_shared" = no; then
10401 # Fast installation is not necessary
10402 enable_fast_install=needless
10407 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10408 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10409 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10410 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10411 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10412 echo "$as_me:$LINENO: result: yes" >&5
10413 echo "${ECHO_T}yes" >&6
10415 # FIXME - insert some real tests, host_os isn't really good enough
10418 if test -n "$STRIP" ; then
10419 striplib="$STRIP -x"
10420 echo "$as_me:$LINENO: result: yes" >&5
10421 echo "${ECHO_T}yes" >&6
10423 echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6
10428 echo "$as_me:$LINENO: result: no" >&5
10429 echo "${ECHO_T}no" >&6
10434 if test "x$enable_dlopen" != xyes; then
10435 enable_dlopen=unknown
10436 enable_dlopen_self=unknown
10437 enable_dlopen_self_static=unknown
10444 lt_cv_dlopen="load_add_on"
10446 lt_cv_dlopen_self=yes
10450 lt_cv_dlopen="LoadLibrary"
10455 lt_cv_dlopen="dlopen"
10460 # if libdl is installed we need to link against it
10461 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 ac_check_lib_save_LIBS=$LIBS
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 /* Override any gcc2 internal prototype to avoid an error. */
10479 /* We use char because int might match the return type of a gcc2
10480 builtin and then its argument prototype would still apply. */
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492 (eval $ac_link) 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag"
10500 || test ! -s conftest.err'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; } &&
10506 { ac_try='test -s conftest$ac_exeext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 ac_cv_lib_dl_dlopen=yes
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 ac_cv_lib_dl_dlopen=no
10519 rm -f conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10525 if test $ac_cv_lib_dl_dlopen = yes; then
10526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10529 lt_cv_dlopen="dyld"
10531 lt_cv_dlopen_self=yes
10538 echo "$as_me:$LINENO: checking for shl_load" >&5
10539 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10540 if test "${ac_cv_func_shl_load+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 cat >conftest.$ac_ext <<_ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10551 #define shl_load innocuous_shl_load
10553 /* System header to define __stub macros and hopefully few prototypes,
10554 which can conflict with char shl_load (); below.
10555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10556 <limits.h> exists even on freestanding compilers. */
10559 # include <limits.h>
10561 # include <assert.h>
10566 /* Override any gcc2 internal prototype to avoid an error. */
10571 /* We use char because int might match the return type of a gcc2
10572 builtin and then its argument prototype would still apply. */
10574 /* The GNU C library defines this for functions which it implements
10575 to always fail with ENOSYS. Some functions are actually named
10576 something starting with __ and the normal name is an alias. */
10577 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10580 char (*f) () = shl_load;
10589 return f != shl_load;
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -z "$ac_c_werror_flag"
10604 || test ! -s conftest.err'
10605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_func_shl_load=yes
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 ac_cv_func_shl_load=no
10623 rm -f conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10626 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10627 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10628 if test $ac_cv_func_shl_load = yes; then
10629 lt_cv_dlopen="shl_load"
10631 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10632 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10633 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 ac_check_lib_save_LIBS=$LIBS
10638 cat >conftest.$ac_ext <<_ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10645 /* Override any gcc2 internal prototype to avoid an error. */
10649 /* We use char because int might match the return type of a gcc2
10650 builtin and then its argument prototype would still apply. */
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>conftest.er1
10664 grep -v '^ *+' conftest.er1 >conftest.err
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag"
10670 || test ! -s conftest.err'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; } &&
10676 { ac_try='test -s conftest$ac_exeext'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_cv_lib_dld_shl_load=yes
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_cv_lib_dld_shl_load=no
10689 rm -f conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10695 if test $ac_cv_lib_dld_shl_load = yes; then
10696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10698 echo "$as_me:$LINENO: checking for dlopen" >&5
10699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10700 if test "${ac_cv_func_dlopen+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10711 #define dlopen innocuous_dlopen
10713 /* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char dlopen (); below.
10715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716 <limits.h> exists even on freestanding compilers. */
10719 # include <limits.h>
10721 # include <assert.h>
10726 /* Override any gcc2 internal prototype to avoid an error. */
10731 /* We use char because int might match the return type of a gcc2
10732 builtin and then its argument prototype would still apply. */
10734 /* The GNU C library defines this for functions which it implements
10735 to always fail with ENOSYS. Some functions are actually named
10736 something starting with __ and the normal name is an alias. */
10737 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10740 char (*f) () = dlopen;
10749 return f != dlopen;
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -z "$ac_c_werror_flag"
10764 || test ! -s conftest.err'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; } &&
10770 { ac_try='test -s conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_func_dlopen=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ac_cv_func_dlopen=no
10783 rm -f conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10786 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10788 if test $ac_cv_func_dlopen = yes; then
10789 lt_cv_dlopen="dlopen"
10791 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 ac_check_lib_save_LIBS=$LIBS
10798 cat >conftest.$ac_ext <<_ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10805 /* Override any gcc2 internal prototype to avoid an error. */
10809 /* We use char because int might match the return type of a gcc2
10810 builtin and then its argument prototype would still apply. */
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822 (eval $ac_link) 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try='test -s conftest$ac_exeext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_lib_dl_dlopen=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 ac_cv_lib_dl_dlopen=no
10849 rm -f conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10855 if test $ac_cv_lib_dl_dlopen = yes; then
10856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10858 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10859 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10860 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-lsvld $LIBS"
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10872 /* Override any gcc2 internal prototype to avoid an error. */
10876 /* We use char because int might match the return type of a gcc2
10877 builtin and then its argument prototype would still apply. */
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889 (eval $ac_link) 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -z "$ac_c_werror_flag"
10897 || test ! -s conftest.err'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_lib_svld_dlopen=yes
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 ac_cv_lib_svld_dlopen=no
10916 rm -f conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10921 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10922 if test $ac_cv_lib_svld_dlopen = yes; then
10923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10925 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10926 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10927 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 ac_check_lib_save_LIBS=$LIBS
10932 cat >conftest.$ac_ext <<_ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10939 /* Override any gcc2 internal prototype to avoid an error. */
10943 /* We use char because int might match the return type of a gcc2
10944 builtin and then its argument prototype would still apply. */
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956 (eval $ac_link) 2>conftest.er1
10958 grep -v '^ *+' conftest.er1 >conftest.err
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -z "$ac_c_werror_flag"
10964 || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest$ac_exeext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_lib_dld_dld_link=yes
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_cv_lib_dld_dld_link=no
10983 rm -f conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10989 if test $ac_cv_lib_dld_dld_link = yes; then
10990 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11011 if test "x$lt_cv_dlopen" != xno; then
11017 case $lt_cv_dlopen in
11019 save_CPPFLAGS="$CPPFLAGS"
11020 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11022 save_LDFLAGS="$LDFLAGS"
11023 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11026 LIBS="$lt_cv_dlopen_libs $LIBS"
11028 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11030 if test "${lt_cv_dlopen_self+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 if test "$cross_compiling" = yes; then :
11034 lt_cv_dlopen_self=cross
11036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11037 lt_status=$lt_dlunknown
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11039 "configure"
11040 #include "confdefs.h"
11049 # define LT_DLGLOBAL RTLD_GLOBAL
11052 # define LT_DLGLOBAL DL_GLOBAL
11054 # define LT_DLGLOBAL 0
11058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11059 find out it does not work in some platform. */
11060 #ifndef LT_DLLAZY_OR_NOW
11062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11065 # define LT_DLLAZY_OR_NOW DL_LAZY
11068 # define LT_DLLAZY_OR_NOW RTLD_NOW
11071 # define LT_DLLAZY_OR_NOW DL_NOW
11073 # define LT_DLLAZY_OR_NOW 0
11081 extern "C" void exit (int);
11084 void fnord() { int i=42;}
11087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088 int status = $lt_dlunknown;
11092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11094 /* dlclose (self); */
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11105 (./conftest; exit; ) 2>/dev/null
11107 case x$lt_status in
11108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11110 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11113 # compilation failed
11114 lt_cv_dlopen_self=no
11121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11124 if test "x$lt_cv_dlopen_self" = xyes; then
11125 LDFLAGS="$LDFLAGS $link_static_flag"
11126 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11128 if test "${lt_cv_dlopen_self_static+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 if test "$cross_compiling" = yes; then :
11132 lt_cv_dlopen_self_static=cross
11134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11135 lt_status=$lt_dlunknown
11136 cat > conftest.$ac_ext <<EOF
11137 #line 11137 "configure"
11138 #include "confdefs.h"
11147 # define LT_DLGLOBAL RTLD_GLOBAL
11150 # define LT_DLGLOBAL DL_GLOBAL
11152 # define LT_DLGLOBAL 0
11156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11157 find out it does not work in some platform. */
11158 #ifndef LT_DLLAZY_OR_NOW
11160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11163 # define LT_DLLAZY_OR_NOW DL_LAZY
11166 # define LT_DLLAZY_OR_NOW RTLD_NOW
11169 # define LT_DLLAZY_OR_NOW DL_NOW
11171 # define LT_DLLAZY_OR_NOW 0
11179 extern "C" void exit (int);
11182 void fnord() { int i=42;}
11185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11186 int status = $lt_dlunknown;
11190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11192 /* dlclose (self); */
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199 (eval $ac_link) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11203 (./conftest; exit; ) 2>/dev/null
11205 case x$lt_status in
11206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11208 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11211 # compilation failed
11212 lt_cv_dlopen_self_static=no
11219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11223 CPPFLAGS="$save_CPPFLAGS"
11224 LDFLAGS="$save_LDFLAGS"
11229 case $lt_cv_dlopen_self in
11230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11231 *) enable_dlopen_self=unknown ;;
11234 case $lt_cv_dlopen_self_static in
11235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11236 *) enable_dlopen_self_static=unknown ;;
11241 # Report which librarie types wil actually be built
11242 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11243 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11244 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11245 echo "${ECHO_T}$can_build_shared" >&6
11247 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11248 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11249 test "$can_build_shared" = "no" && enable_shared=no
11251 # On AIX, shared libraries and static libraries use the same namespace, and
11252 # are all built from PIC.
11255 test "$enable_shared" = yes && enable_static=no
11256 if test -n "$RANLIB"; then
11257 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11258 postinstall_cmds='$RANLIB $lib'
11263 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11264 test "$enable_shared" = yes && enable_static=no
11268 echo "$as_me:$LINENO: result: $enable_shared" >&5
11269 echo "${ECHO_T}$enable_shared" >&6
11271 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11272 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11273 # Make sure either enable_shared or enable_static is yes.
11274 test "$enable_shared" = yes || enable_static=yes
11275 echo "$as_me:$LINENO: result: $enable_static" >&5
11276 echo "${ECHO_T}$enable_static" >&6
11278 # The else clause should only fire when bootstrapping the
11279 # libtool distribution, otherwise you forgot to ship ltmain.sh
11280 # with your package, and you will get complaints that there are
11281 # no rules to generate ltmain.sh.
11282 if test -f "$ltmain"; then
11283 # See if we are running on zsh, and set the options which allow our commands through
11284 # without removal of \ escapes.
11285 if test -n "${ZSH_VERSION+set}" ; then
11286 setopt NO_GLOB_SUBST
11288 # Now quote all the things that may contain metacharacters while being
11289 # careful not to overquote the AC_SUBSTed values. We take copies of the
11290 # variables and quote the copies for generation of the libtool script.
11291 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11293 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11294 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11295 deplibs_check_method reload_flag reload_cmds need_locks \
11296 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11297 lt_cv_sys_global_symbol_to_c_name_address \
11298 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11299 old_postinstall_cmds old_postuninstall_cmds \
11303 lt_prog_compiler_wl \
11304 lt_prog_compiler_pic \
11305 lt_prog_compiler_static \
11306 lt_prog_compiler_no_builtin_flag \
11307 export_dynamic_flag_spec \
11308 thread_safe_flag_spec \
11309 whole_archive_flag_spec \
11310 enable_shared_with_static_runtimes \
11312 old_archive_from_new_cmds \
11317 compiler_lib_search_path \
11319 archive_expsym_cmds \
11321 postuninstall_cmds \
11322 old_archive_from_expsyms_cmds \
11323 allow_undefined_flag \
11324 no_undefined_flag \
11325 export_symbols_cmds \
11326 hardcode_libdir_flag_spec \
11327 hardcode_libdir_flag_spec_ld \
11328 hardcode_libdir_separator \
11329 hardcode_automatic \
11331 module_expsym_cmds \
11332 lt_cv_prog_compiler_c_o \
11334 include_expsyms; do
11337 old_archive_cmds | \
11338 old_archive_from_new_cmds | \
11340 archive_expsym_cmds | \
11342 module_expsym_cmds | \
11343 old_archive_from_expsyms_cmds | \
11344 export_symbols_cmds | \
11345 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11346 postinstall_cmds | postuninstall_cmds | \
11347 old_postinstall_cmds | old_postuninstall_cmds | \
11348 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11349 # Double-quote double-evaled strings.
11350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11359 *'\$0 --fallback-echo"')
11360 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11364 cfgfile="${ofile}T"
11365 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11367 { echo "$as_me:$LINENO: creating $ofile" >&5
11368 echo "$as_me: creating $ofile" >&6;}
11370 cat <<__EOF__ >> "$cfgfile"
11373 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11374 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11377 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11378 # Free Software Foundation, Inc.
11380 # This file is part of GNU Libtool:
11381 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11383 # This program is free software; you can redistribute it and/or modify
11384 # it under the terms of the GNU General Public License as published by
11385 # the Free Software Foundation; either version 2 of the License, or
11386 # (at your option) any later version.
11388 # This program is distributed in the hope that it will be useful, but
11389 # WITHOUT ANY WARRANTY; without even the implied warranty of
11390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11391 # General Public License for more details.
11393 # You should have received a copy of the GNU General Public License
11394 # along with this program; if not, write to the Free Software
11395 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11397 # As a special exception to the GNU General Public License, if you
11398 # distribute this file as part of a program that contains a
11399 # configuration script generated by Autoconf, you may include it under
11400 # the same distribution terms that you use for the rest of that program.
11402 # A sed program that does not truncate output.
11405 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11406 Xsed="$SED -e 1s/^X//"
11408 # The HP-UX ksh and POSIX shell print the target directory to stdout
11409 # if CDPATH is set.
11410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11412 # The names of the tagged configurations supported by this script.
11415 # ### BEGIN LIBTOOL CONFIG
11417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11419 # Shell to use when invoking shell scripts.
11422 # Whether or not to build shared libraries.
11423 build_libtool_libs=$enable_shared
11425 # Whether or not to build static libraries.
11426 build_old_libs=$enable_static
11428 # Whether or not to add -lc for building shared libraries.
11429 build_libtool_need_lc=$archive_cmds_need_lc
11431 # Whether or not to disallow shared libs when runtime libs are static
11432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11434 # Whether or not to optimize for fast installation.
11435 fast_install=$enable_fast_install
11438 host_alias=$host_alias
11442 # The build system.
11443 build_alias=$build_alias
11447 # An echo program that does not interpret backslashes.
11452 AR_FLAGS=$lt_AR_FLAGS
11457 # A language-specific compiler.
11460 # Is the compiler the GNU C compiler?
11466 # The linker used to build libraries.
11469 # Whether we need hard or soft links.
11472 # A BSD-compatible nm program.
11475 # A symbol stripping program
11478 # Used to examine libraries when file_magic_cmd begins "file"
11479 MAGIC_CMD=$MAGIC_CMD
11481 # Used on cygwin: DLL creation program.
11484 # Used on cygwin: object dumper.
11487 # Used on cygwin: assembler.
11490 # The name of the directory that contains temporary libtool files.
11493 # How to create reloadable object files.
11494 reload_flag=$lt_reload_flag
11495 reload_cmds=$lt_reload_cmds
11497 # How to pass a linker flag through the compiler.
11498 wl=$lt_lt_prog_compiler_wl
11500 # Object file suffix (normally "o").
11501 objext="$ac_objext"
11503 # Old archive suffix (normally "a").
11506 # Shared library suffix (normally ".so").
11507 shrext_cmds='$shrext_cmds'
11509 # Executable file suffix (normally "").
11512 # Additional compiler flags for building library objects.
11513 pic_flag=$lt_lt_prog_compiler_pic
11516 # What is the maximum length of a command?
11517 max_cmd_len=$lt_cv_sys_max_cmd_len
11519 # Does compiler simultaneously support -c and -o options?
11520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11522 # Must we lock files when doing compilation?
11523 need_locks=$lt_need_locks
11525 # Do we need the lib prefix for modules?
11526 need_lib_prefix=$need_lib_prefix
11528 # Do we need a version for libraries?
11529 need_version=$need_version
11531 # Whether dlopen is supported.
11532 dlopen_support=$enable_dlopen
11534 # Whether dlopen of programs is supported.
11535 dlopen_self=$enable_dlopen_self
11537 # Whether dlopen of statically linked programs is supported.
11538 dlopen_self_static=$enable_dlopen_self_static
11540 # Compiler flag to prevent dynamic linking.
11541 link_static_flag=$lt_lt_prog_compiler_static
11543 # Compiler flag to turn off builtin functions.
11544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11546 # Compiler flag to allow reflexive dlopens.
11547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11549 # Compiler flag to generate shared objects directly from archives.
11550 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11552 # Compiler flag to generate thread-safe objects.
11553 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11555 # Library versioning type.
11556 version_type=$version_type
11558 # Format of library name prefix.
11559 libname_spec=$lt_libname_spec
11561 # List of archive names. First name is the real one, the rest are links.
11562 # The last name is the one that the linker finds with -lNAME.
11563 library_names_spec=$lt_library_names_spec
11565 # The coded name of the library, if different from the real name.
11566 soname_spec=$lt_soname_spec
11568 # Commands used to build and install an old-style archive.
11570 old_archive_cmds=$lt_old_archive_cmds
11571 old_postinstall_cmds=$lt_old_postinstall_cmds
11572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11574 # Create an old-style archive from a shared archive.
11575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11577 # Create a temporary old-style archive to link instead of a shared archive.
11578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11580 # Commands used to build and install a shared archive.
11581 archive_cmds=$lt_archive_cmds
11582 archive_expsym_cmds=$lt_archive_expsym_cmds
11583 postinstall_cmds=$lt_postinstall_cmds
11584 postuninstall_cmds=$lt_postuninstall_cmds
11586 # Commands used to build a loadable module (assumed same as above if empty)
11587 module_cmds=$lt_module_cmds
11588 module_expsym_cmds=$lt_module_expsym_cmds
11590 # Commands to strip libraries.
11591 old_striplib=$lt_old_striplib
11592 striplib=$lt_striplib
11594 # Dependencies to place before the objects being linked to create a
11596 predep_objects=$lt_predep_objects
11598 # Dependencies to place after the objects being linked to create a
11600 postdep_objects=$lt_postdep_objects
11602 # Dependencies to place before the objects being linked to create a
11604 predeps=$lt_predeps
11606 # Dependencies to place after the objects being linked to create a
11608 postdeps=$lt_postdeps
11610 # The library search path used internally by the compiler when linking
11611 # a shared library.
11612 compiler_lib_search_path=$lt_compiler_lib_search_path
11614 # Method to check whether dependent libraries are shared objects.
11615 deplibs_check_method=$lt_deplibs_check_method
11617 # Command to use when deplibs_check_method == file_magic.
11618 file_magic_cmd=$lt_file_magic_cmd
11620 # Flag that allows shared libraries with undefined symbols to be built.
11621 allow_undefined_flag=$lt_allow_undefined_flag
11623 # Flag that forces no undefined symbols.
11624 no_undefined_flag=$lt_no_undefined_flag
11626 # Commands used to finish a libtool library installation in a directory.
11627 finish_cmds=$lt_finish_cmds
11629 # Same as above, but a single script fragment to be evaled but not shown.
11630 finish_eval=$lt_finish_eval
11632 # Take the output of nm and produce a listing of raw symbols and C names.
11633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11635 # Transform the output of nm in a proper C declaration
11636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11638 # Transform the output of nm in a C name address pair
11639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11641 # This is the shared library runtime path variable.
11642 runpath_var=$runpath_var
11644 # This is the shared library path variable.
11645 shlibpath_var=$shlibpath_var
11647 # Is shlibpath searched before the hard-coded library search path?
11648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11650 # How to hardcode a shared library path into an executable.
11651 hardcode_action=$hardcode_action
11653 # Whether we should hardcode library paths into libraries.
11654 hardcode_into_libs=$hardcode_into_libs
11656 # Flag to hardcode \$libdir into a binary during linking.
11657 # This must work even if \$libdir does not exist.
11658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11660 # If ld is used when linking, flag to hardcode \$libdir into
11661 # a binary during linking. This must work even if \$libdir does
11663 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11665 # Whether we need a single -rpath flag with a separated argument.
11666 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11668 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11669 # resulting binary.
11670 hardcode_direct=$hardcode_direct
11672 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11673 # resulting binary.
11674 hardcode_minus_L=$hardcode_minus_L
11676 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11677 # the resulting binary.
11678 hardcode_shlibpath_var=$hardcode_shlibpath_var
11680 # Set to yes if building a shared library automatically hardcodes DIR into the library
11681 # and all subsequent libraries and executables linked against it.
11682 hardcode_automatic=$hardcode_automatic
11684 # Variables whose values should be saved in libtool wrapper scripts and
11685 # restored at relink time.
11686 variables_saved_for_relink="$variables_saved_for_relink"
11688 # Whether libtool must link a program against all its dependency libraries.
11689 link_all_deplibs=$link_all_deplibs
11691 # Compile-time system search path for libraries
11692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11694 # Run-time system search path for libraries
11695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11697 # Fix the shell variable \$srcfile for the compiler.
11698 fix_srcfile_path="$fix_srcfile_path"
11700 # Set to yes if exported symbols are required.
11701 always_export_symbols=$always_export_symbols
11703 # The commands to list exported symbols.
11704 export_symbols_cmds=$lt_export_symbols_cmds
11706 # The commands to extract the exported symbol list from a shared archive.
11707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11709 # Symbols that should not be listed in the preloaded symbols.
11710 exclude_expsyms=$lt_exclude_expsyms
11712 # Symbols that must always be exported.
11713 include_expsyms=$lt_include_expsyms
11715 # ### END LIBTOOL CONFIG
11722 cat <<\EOF >> "$cfgfile"
11724 # AIX sometimes has problems with the GCC collect2 program. For some
11725 # reason, if we set the COLLECT_NAMES environment variable, the problems
11726 # vanish in a puff of smoke.
11727 if test "X${COLLECT_NAMES+set}" != Xset; then
11729 export COLLECT_NAMES
11735 # We use sed instead of cat because bash on DJGPP gets confused if
11736 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11737 # text mode, it properly converts lines to CR/LF. This bash problem
11738 # is reportedly fixed, but why not run on old versions too?
11739 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11741 mv -f "$cfgfile" "$ofile" || \
11742 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11746 # If there is no Makefile yet, we rely on a make rule to execute
11747 # `config.status --recheck' to rerun these tests and create the
11748 # libtool script then.
11749 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11750 if test -f "$ltmain_in"; then
11751 test -f Makefile && make "$ltmain"
11757 ac_cpp='$CPP $CPPFLAGS'
11758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765 # Check whether --with-tags or --without-tags was given.
11766 if test "${with_tags+set}" = set; then
11767 withval="$with_tags"
11768 tagnames="$withval"
11771 if test -f "$ltmain" && test -n "$tagnames"; then
11772 if test ! -f "${ofile}"; then
11773 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11774 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11777 if test -z "$LTCC"; then
11778 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11779 if test -z "$LTCC"; then
11780 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11781 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11784 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11788 # Extract list of available tagged configurations in $ofile.
11789 # Note that this assumes the entire list is on one line.
11790 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11793 for tagname in $tagnames; do
11795 # Check whether tagname contains only valid characters
11796 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11798 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11799 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11800 { (exit 1); exit 1; }; }
11804 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11806 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11807 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11808 { (exit 1); exit 1; }; }
11811 # Update the list of available tags.
11812 if test -n "$tagname"; then
11813 echo appending configuration tag \"$tagname\" to $ofile
11817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11819 (test "X$CXX" != "Xg++"))) ; then
11821 ac_cpp='$CXXCPP $CPPFLAGS'
11822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11829 archive_cmds_need_lc_CXX=no
11830 allow_undefined_flag_CXX=
11831 always_export_symbols_CXX=no
11832 archive_expsym_cmds_CXX=
11833 export_dynamic_flag_spec_CXX=
11834 hardcode_direct_CXX=no
11835 hardcode_libdir_flag_spec_CXX=
11836 hardcode_libdir_flag_spec_ld_CXX=
11837 hardcode_libdir_separator_CXX=
11838 hardcode_minus_L_CXX=no
11839 hardcode_automatic_CXX=no
11841 module_expsym_cmds_CXX=
11842 link_all_deplibs_CXX=unknown
11843 old_archive_cmds_CXX=$old_archive_cmds
11844 no_undefined_flag_CXX=
11845 whole_archive_flag_spec_CXX=
11846 enable_shared_with_static_runtimes_CXX=no
11848 # Dependencies to place before and after the object being linked:
11849 predep_objects_CXX=
11850 postdep_objects_CXX=
11853 compiler_lib_search_path_CXX=
11855 # Source file extension for C++ test sources.
11858 # Object file extension for compiled C++ test sources.
11862 # Code to be used in simple compile tests
11863 lt_simple_compile_test_code="int some_variable = 0;\n"
11865 # Code to be used in simple link tests
11866 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11870 # If no C compiler was specified, use CC.
11873 # Allow CC to be a program name with arguments.
11877 # save warnings/boilerplate of simple test code
11878 ac_outfile=conftest.$ac_objext
11879 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11881 _lt_compiler_boilerplate=`cat conftest.err`
11884 ac_outfile=conftest.$ac_objext
11885 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11887 _lt_linker_boilerplate=`cat conftest.err`
11891 # Allow CC to be a program name with arguments.
11896 lt_save_with_gnu_ld=$with_gnu_ld
11897 lt_save_path_LD=$lt_cv_path_LD
11898 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11899 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11901 unset lt_cv_prog_gnu_ld
11903 if test -n "${lt_cv_path_LDCXX+set}"; then
11904 lt_cv_path_LD=$lt_cv_path_LDCXX
11906 unset lt_cv_path_LD
11908 test -z "${LDCXX+set}" || LD=$LDCXX
11912 for cc_temp in $compiler""; do
11914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11923 # We don't want -fno-exception wen compiling C++ code, so set the
11924 # no_builtin_flag separately
11925 if test "$GXX" = yes; then
11926 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11928 lt_prog_compiler_no_builtin_flag_CXX=
11931 if test "$GXX" = yes; then
11932 # Set up default GNU C++ configuration
11935 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11936 if test "${with_gnu_ld+set}" = set; then
11937 withval="$with_gnu_ld"
11938 test "$withval" = no || with_gnu_ld=yes
11943 if test "$GCC" = yes; then
11944 # Check if gcc -print-prog-name=ld gives a path.
11945 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11946 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11949 # gcc leaves a trailing carriage return which upsets mingw
11950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11955 # Accept absolute paths.
11957 re_direlt='/[^/][^/]*/\.\./'
11958 # Canonicalize the pathname of ld
11959 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11961 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11963 test -z "$LD" && LD="$ac_prog"
11966 # If it fails, then pretend we aren't using GCC.
11970 # If it is relative, then search for the first ld in PATH.
11971 with_gnu_ld=unknown
11974 elif test "$with_gnu_ld" = yes; then
11975 echo "$as_me:$LINENO: checking for GNU ld" >&5
11976 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11978 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11979 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11981 if test "${lt_cv_path_LD+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 if test -z "$LD"; then
11985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11986 for ac_dir in $PATH; do
11988 test -z "$ac_dir" && ac_dir=.
11989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11990 lt_cv_path_LD="$ac_dir/$ac_prog"
11991 # Check to see if the program is GNU ld. I'd rather use --version,
11992 # but apparently some GNU ld's only accept -v.
11993 # Break only if it was the GNU/non-GNU ld that we prefer.
11994 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11995 *GNU* | *'with BFD'*)
11996 test "$with_gnu_ld" != no && break
11999 test "$with_gnu_ld" != yes && break
12006 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12010 LD="$lt_cv_path_LD"
12011 if test -n "$LD"; then
12012 echo "$as_me:$LINENO: result: $LD" >&5
12013 echo "${ECHO_T}$LD" >&6
12015 echo "$as_me:$LINENO: result: no" >&5
12016 echo "${ECHO_T}no" >&6
12018 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12019 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12020 { (exit 1); exit 1; }; }
12021 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12022 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12023 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12027 case `$LD -v 2>&1 </dev/null` in
12028 *GNU* | *'with BFD'*)
12029 lt_cv_prog_gnu_ld=yes
12032 lt_cv_prog_gnu_ld=no
12036 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12037 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12038 with_gnu_ld=$lt_cv_prog_gnu_ld
12042 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12043 # archiving commands below assume that GNU ld is being used.
12044 if test "$with_gnu_ld" = yes; then
12045 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12048 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12049 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12051 # If archive_cmds runs LD, not CC, wlarc should be empty
12052 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12053 # investigate it a little bit more. (MM)
12056 # ancient GNU ld didn't support --whole-archive et. al.
12057 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12058 grep 'no-whole-archive' > /dev/null; then
12059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12061 whole_archive_flag_spec_CXX=
12067 # A generic and very simple default shared library creation
12068 # command for GNU C++ for the case where it uses the native
12069 # linker, instead of GNU ld. If possible, this setting should
12070 # overridden to take advantage of the native linker features on
12071 # the platform it is being used on.
12072 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12075 # Commands to make compiler produce verbose output that lists
12076 # what "hidden" libraries, object files and flags are used when
12077 # linking a shared library.
12078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12086 # PORTME: fill in a description of your system's C++ link characteristics
12087 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12088 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12092 # FIXME: insert proper C++ library support
12096 if test "$host_cpu" = ia64; then
12097 # On IA64, the linker does run time linking by default, so we don't
12098 # have to do anything special.
12099 aix_use_runtimelinking=no
12100 exp_sym_flag='-Bexport'
12103 aix_use_runtimelinking=no
12105 # Test if we are trying to use run time linking or normal
12106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12107 # need to do runtime linking.
12108 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12109 for ld_flag in $LDFLAGS; do
12112 aix_use_runtimelinking=yes
12119 exp_sym_flag='-bexport'
12120 no_entry_flag='-bnoentry'
12123 # When large executables or shared objects are built, AIX ld can
12124 # have problems creating the table of contents. If linking a library
12125 # or program results in "error TOC overflow" add -mminimal-toc to
12126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12129 archive_cmds_CXX=''
12130 hardcode_direct_CXX=yes
12131 hardcode_libdir_separator_CXX=':'
12132 link_all_deplibs_CXX=yes
12134 if test "$GXX" = yes; then
12135 case $host_os in aix4.[012]|aix4.[012].*)
12136 # We only want to do this on AIX 4.2 and lower, the check
12137 # below for broken collect2 doesn't work under 4.3+
12138 collect2name=`${CC} -print-prog-name=collect2`
12139 if test -f "$collect2name" && \
12140 strings "$collect2name" | grep resolve_lib_name >/dev/null
12142 # We have reworked collect2
12143 hardcode_direct_CXX=yes
12145 # We have old collect2
12146 hardcode_direct_CXX=unsupported
12147 # It fails to find uninstalled libraries when the uninstalled
12148 # path is not listed in the libpath. Setting hardcode_minus_L
12149 # to unsupported forces relinking
12150 hardcode_minus_L_CXX=yes
12151 hardcode_libdir_flag_spec_CXX='-L$libdir'
12152 hardcode_libdir_separator_CXX=
12155 shared_flag='-shared'
12156 if test "$aix_use_runtimelinking" = yes; then
12157 shared_flag="$shared_flag "'${wl}-G'
12161 if test "$host_cpu" = ia64; then
12162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12163 # chokes on -Wl,-G. The following line is correct:
12166 if test "$aix_use_runtimelinking" = yes; then
12167 shared_flag='${wl}-G'
12169 shared_flag='${wl}-bM:SRE'
12174 # It seems that -bexpall does not export symbols beginning with
12175 # underscore (_), so it is better to generate a list of symbols to export.
12176 always_export_symbols_CXX=yes
12177 if test "$aix_use_runtimelinking" = yes; then
12178 # Warning - without using the other runtime loading flags (-brtl),
12179 # -berok will link without error, but may produce a broken library.
12180 allow_undefined_flag_CXX='-berok'
12181 # Determine the default libpath from the value encoded in an empty executable.
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>conftest.er1
12201 grep -v '^ *+' conftest.er1 >conftest.err
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_cxx_werror_flag"
12207 || test ! -s conftest.err'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest$ac_exeext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12222 # Check for a 64-bit object if we didn't find anything.
12223 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12230 rm -f conftest.err conftest.$ac_objext \
12231 conftest$ac_exeext conftest.$ac_ext
12232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12234 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12236 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12238 if test "$host_cpu" = ia64; then
12239 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12240 allow_undefined_flag_CXX="-z nodefs"
12241 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12243 # Determine the default libpath from the value encoded in an empty executable.
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261 (eval $ac_link) 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_cxx_werror_flag"
12269 || test ! -s conftest.err'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest$ac_exeext'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12284 # Check for a 64-bit object if we didn't find anything.
12285 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12292 rm -f conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12297 # Warning - without using the other run time loading flags,
12298 # -berok will link without error, but may produce a broken library.
12299 no_undefined_flag_CXX=' ${wl}-bernotok'
12300 allow_undefined_flag_CXX=' ${wl}-berok'
12301 # -bexpall does not export symbols beginning with underscore (_)
12302 always_export_symbols_CXX=yes
12303 # Exported symbols can be pulled into shared objects from archives
12304 whole_archive_flag_spec_CXX=' '
12305 archive_cmds_need_lc_CXX=yes
12306 # This is similar to how AIX traditionally builds it's shared libraries.
12307 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12312 case $cc_basename in
12314 # FIXME: insert proper C++ library support
12321 cygwin* | mingw* | pw32*)
12322 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12323 # as there is no search path for DLLs.
12324 hardcode_libdir_flag_spec_CXX='-L$libdir'
12325 allow_undefined_flag_CXX=unsupported
12326 always_export_symbols_CXX=no
12327 enable_shared_with_static_runtimes_CXX=yes
12329 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12330 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12331 # If the export-symbols file already is a .def file (1st line
12332 # is EXPORTS), use it as is; otherwise, prepend...
12333 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12334 cp $export_symbols $output_objdir/$soname.def;
12336 echo EXPORTS > $output_objdir/$soname.def;
12337 cat $export_symbols >> $output_objdir/$soname.def;
12339 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12344 darwin* | rhapsody*)
12346 rhapsody* | darwin1.[012])
12347 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12350 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12351 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12353 case ${MACOSX_DEPLOYMENT_TARGET} in
12355 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12358 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12364 archive_cmds_need_lc_CXX=no
12365 hardcode_direct_CXX=no
12366 hardcode_automatic_CXX=yes
12367 hardcode_shlibpath_var_CXX=unsupported
12368 whole_archive_flag_spec_CXX=''
12369 link_all_deplibs_CXX=yes
12371 if test "$GXX" = yes ; then
12372 lt_int_apple_cc_single_mod=no
12373 output_verbose_link_cmd='echo'
12374 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12375 lt_int_apple_cc_single_mod=yes
12377 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12378 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12380 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12382 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12384 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12385 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12387 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12389 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12391 case $cc_basename in
12393 output_verbose_link_cmd='echo'
12394 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12395 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12397 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12398 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12408 case $cc_basename in
12410 # FIXME: insert proper C++ library support
12414 # Green Hills C++ Compiler
12415 # FIXME: insert proper C++ library support
12419 # FIXME: insert proper C++ library support
12425 # C++ shared libraries reported to be fairly broken before switch to ELF
12429 archive_cmds_need_lc_CXX=no
12431 freebsd* | kfreebsd*-gnu | dragonfly*)
12432 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12439 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12440 hardcode_libdir_separator_CXX=:
12441 export_dynamic_flag_spec_CXX='${wl}-E'
12442 hardcode_direct_CXX=yes
12443 hardcode_minus_L_CXX=yes # Not in the search PATH,
12444 # but as the default
12445 # location of the library.
12447 case $cc_basename in
12449 # FIXME: insert proper C++ library support
12453 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12454 # Commands to make compiler produce verbose output that lists
12455 # what "hidden" libraries, object files and flags are used when
12456 # linking a shared library.
12458 # There doesn't appear to be a way to prevent this compiler from
12459 # explicitly linking system object files so we need to strip them
12460 # from the output so that they don't get included in the library
12462 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12465 if test "$GXX" = yes; then
12466 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12468 # FIXME: insert proper C++ library support
12475 if test $with_gnu_ld = no; then
12476 case "$host_cpu" in
12478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12479 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12480 hardcode_libdir_separator_CXX=:
12483 hardcode_libdir_flag_spec_CXX='-L$libdir'
12486 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12487 hardcode_libdir_separator_CXX=:
12488 export_dynamic_flag_spec_CXX='${wl}-E'
12492 case "$host_cpu" in
12494 hardcode_direct_CXX=no
12495 hardcode_shlibpath_var_CXX=no
12498 hardcode_direct_CXX=no
12499 hardcode_shlibpath_var_CXX=no
12500 hardcode_minus_L_CXX=yes # Not in the search PATH,
12501 # but as the default
12502 # location of the library.
12505 hardcode_direct_CXX=yes
12506 hardcode_minus_L_CXX=yes # Not in the search PATH,
12507 # but as the default
12508 # location of the library.
12512 case $cc_basename in
12514 # FIXME: insert proper C++ library support
12518 case "$host_cpu" in
12520 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526 # Commands to make compiler produce verbose output that lists
12527 # what "hidden" libraries, object files and flags are used when
12528 # linking a shared library.
12530 # There doesn't appear to be a way to prevent this compiler from
12531 # explicitly linking system object files so we need to strip them
12532 # from the output so that they don't get included in the library
12534 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12537 if test "$GXX" = yes; then
12538 if test $with_gnu_ld = no; then
12539 case "$host_cpu" in
12541 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12544 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12549 # FIXME: insert proper C++ library support
12556 case $cc_basename in
12559 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12561 # Archives containing C++ object files must be created using
12562 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12563 # necessary to make sure instantiated templates are included
12565 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12568 if test "$GXX" = yes; then
12569 if test "$with_gnu_ld" = no; then
12570 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12575 link_all_deplibs_CXX=yes
12578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12579 hardcode_libdir_separator_CXX=:
12582 case $cc_basename in
12584 # Kuck and Associates, Inc. (KAI) C++ Compiler
12586 # KCC will only create a shared library if the output file
12587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12588 # to its proper name (with version) after linking.
12589 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12590 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12591 # Commands to make compiler produce verbose output that lists
12592 # what "hidden" libraries, object files and flags are used when
12593 # linking a shared library.
12595 # There doesn't appear to be a way to prevent this compiler from
12596 # explicitly linking system object files so we need to strip them
12597 # from the output so that they don't get included in the library
12599 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12601 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12602 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12604 # Archives containing C++ object files must be created using
12605 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12606 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12611 # version 8.0 and above of icpc choke on multiply defined symbols
12612 # if we add $predep_objects and $postdep_objects, however 7.1 and
12613 # earlier do not add the objects themselves.
12614 case `$CC -V 2>&1` in
12616 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12619 *) # Version 8.0 or newer
12622 ia64*) tmp_idyn=' -i_dynamic';;
12624 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12625 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12628 archive_cmds_need_lc_CXX=no
12629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12631 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12634 # Portland Group C++ compiler
12635 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12636 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12638 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12639 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12640 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12644 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12647 runpath_var=LD_RUN_PATH
12648 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12649 hardcode_libdir_separator_CXX=:
12651 # Commands to make compiler produce verbose output that lists
12652 # what "hidden" libraries, object files and flags are used when
12653 # linking a shared library.
12655 # There doesn't appear to be a way to prevent this compiler from
12656 # explicitly linking system object files so we need to strip them
12657 # from the output so that they don't get included in the library
12659 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12664 # FIXME: insert proper C++ library support
12668 # FIXME: insert proper C++ library support
12672 case $cc_basename in
12674 # FIXME: insert proper C++ library support
12678 # FIXME: insert proper C++ library support
12684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12685 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12687 hardcode_libdir_flag_spec_CXX='-R$libdir'
12688 hardcode_direct_CXX=yes
12689 hardcode_shlibpath_var_CXX=no
12691 # Workaround some broken pre-1.5 toolchains
12692 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12695 # C++ shared libraries are fairly broken
12699 hardcode_direct_CXX=yes
12700 hardcode_shlibpath_var_CXX=no
12701 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12704 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12705 export_dynamic_flag_spec_CXX='${wl}-E'
12706 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12708 output_verbose_link_cmd='echo'
12711 case $cc_basename in
12713 # Kuck and Associates, Inc. (KAI) C++ Compiler
12715 # KCC will only create a shared library if the output file
12716 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12717 # to its proper name (with version) after linking.
12718 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12721 hardcode_libdir_separator_CXX=:
12723 # Archives containing C++ object files must be created using
12724 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12725 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12729 # Rational C++ 2.4.1
12730 # FIXME: insert proper C++ library support
12734 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12735 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12738 hardcode_libdir_separator_CXX=:
12740 # Commands to make compiler produce verbose output that lists
12741 # what "hidden" libraries, object files and flags are used when
12742 # linking a shared library.
12744 # There doesn't appear to be a way to prevent this compiler from
12745 # explicitly linking system object files so we need to strip them
12746 # from the output so that they don't get included in the library
12748 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12751 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12752 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12753 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12756 hardcode_libdir_separator_CXX=:
12758 # Commands to make compiler produce verbose output that lists
12759 # what "hidden" libraries, object files and flags are used when
12760 # linking a shared library.
12761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12764 # FIXME: insert proper C++ library support
12771 case $cc_basename in
12773 # Kuck and Associates, Inc. (KAI) C++ Compiler
12775 # KCC will only create a shared library if the output file
12776 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12777 # to its proper name (with version) after linking.
12778 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12781 hardcode_libdir_separator_CXX=:
12783 # Archives containing C++ object files must be created using
12784 # the KAI C++ compiler.
12785 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12788 # Rational C++ 2.4.1
12789 # FIXME: insert proper C++ library support
12793 allow_undefined_flag_CXX=' -expect_unresolved \*'
12794 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12795 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12796 echo "-hidden">> $lib.exp~
12797 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12800 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12801 hardcode_libdir_separator_CXX=:
12803 # Commands to make compiler produce verbose output that lists
12804 # what "hidden" libraries, object files and flags are used when
12805 # linking a shared library.
12807 # There doesn't appear to be a way to prevent this compiler from
12808 # explicitly linking system object files so we need to strip them
12809 # from the output so that they don't get included in the library
12811 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12814 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12815 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12816 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12819 hardcode_libdir_separator_CXX=:
12821 # Commands to make compiler produce verbose output that lists
12822 # what "hidden" libraries, object files and flags are used when
12823 # linking a shared library.
12824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12827 # FIXME: insert proper C++ library support
12834 # FIXME: insert proper C++ library support
12838 archive_cmds_need_lc_CXX=no
12839 case $cc_basename in
12841 # FIXME: insert proper C++ library support
12845 # FIXME: insert proper C++ library support
12851 case $cc_basename in
12854 # FIXME: insert proper C++ library support
12859 # FIXME: insert proper C++ library support
12863 # FIXME: insert proper C++ library support
12869 case $cc_basename in
12871 # Sun C++ 4.2, 5.x and Centerline C++
12872 no_undefined_flag_CXX=' -zdefs'
12873 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12875 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12877 hardcode_libdir_flag_spec_CXX='-R$libdir'
12878 hardcode_shlibpath_var_CXX=no
12880 solaris2.[0-5] | solaris2.[0-5].*) ;;
12882 # The C++ compiler is used as linker so we must use $wl
12883 # flag to pass the commands to the underlying system
12884 # linker. We must also pass each convience library through
12885 # to the system linker between allextract/defaultextract.
12886 # The C++ compiler will combine linker options so we
12887 # cannot just pass the convience library names through
12889 # Supported since Solaris 2.6 (maybe 2.5.1?)
12890 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12893 link_all_deplibs_CXX=yes
12895 # Commands to make compiler produce verbose output that lists
12896 # what "hidden" libraries, object files and flags are used when
12897 # linking a shared library.
12899 # There doesn't appear to be a way to prevent this compiler from
12900 # explicitly linking system object files so we need to strip them
12901 # from the output so that they don't get included in the library
12903 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12905 # Archives containing C++ object files must be created using
12906 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12907 # necessary to make sure instantiated templates are included
12909 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12912 # Green Hills C++ Compiler
12913 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12915 # The C++ compiler must be used to create the archive.
12916 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12919 # GNU C++ compiler with Solaris linker
12920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12921 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12922 if $CC --version | grep -v '^2\.7' > /dev/null; then
12923 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12924 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12925 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12927 # Commands to make compiler produce verbose output that lists
12928 # what "hidden" libraries, object files and flags are used when
12929 # linking a shared library.
12930 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12932 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12934 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12935 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12936 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12938 # Commands to make compiler produce verbose output that lists
12939 # what "hidden" libraries, object files and flags are used when
12940 # linking a shared library.
12941 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12944 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12949 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12950 archive_cmds_need_lc_CXX=no
12953 case $cc_basename in
12955 # NonStop-UX NCC 3.20
12956 # FIXME: insert proper C++ library support
12960 # FIXME: insert proper C++ library support
12966 # FIXME: insert proper C++ library support
12970 # FIXME: insert proper C++ library support
12974 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12975 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12976 test "$ld_shlibs_CXX" = no && can_build_shared=no
12982 cat > conftest.$ac_ext <<EOF
12986 Foo (void) { a = 0; }
12992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; then
12997 # Parse the compiler output and extract the necessary
12998 # objects, libraries and library flags.
13000 # Sentinel used to keep track of whether or not we are before
13001 # the conftest object file.
13002 pre_test_object_deps_done=no
13004 # The `*' in the case matches for architectures that use `case' in
13005 # $output_verbose_cmd can trigger glob expansion during the loop
13006 # eval without this substitution.
13007 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13009 for p in `eval $output_verbose_link_cmd`; do
13013 # Some compilers place space between "-{L,R}" and the path.
13014 # Remove the space.
13015 if test $p = "-L" \
13016 || test $p = "-R"; then
13023 if test "$pre_test_object_deps_done" = no; then
13026 # Internal compiler library paths should come after those
13027 # provided the user. The postdeps already come after the
13028 # user supplied libs so there is no need to process them.
13029 if test -z "$compiler_lib_search_path_CXX"; then
13030 compiler_lib_search_path_CXX="${prev}${p}"
13032 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13035 # The "-l" case would never come before the object being
13036 # linked, so don't bother handling this case.
13039 if test -z "$postdeps_CXX"; then
13040 postdeps_CXX="${prev}${p}"
13042 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13048 # This assumes that the test object file only shows up
13049 # once in the compiler output.
13050 if test "$p" = "conftest.$objext"; then
13051 pre_test_object_deps_done=yes
13055 if test "$pre_test_object_deps_done" = no; then
13056 if test -z "$predep_objects_CXX"; then
13057 predep_objects_CXX="$p"
13059 predep_objects_CXX="$predep_objects_CXX $p"
13062 if test -z "$postdep_objects_CXX"; then
13063 postdep_objects_CXX="$p"
13065 postdep_objects_CXX="$postdep_objects_CXX $p"
13070 *) ;; # Ignore the rest.
13078 echo "libtool.m4: error: problem compiling CXX test program"
13081 $rm -f confest.$objext
13083 case " $postdeps_CXX " in
13084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13087 lt_prog_compiler_wl_CXX=
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX=
13091 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13092 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13094 # C++ specific cases for pic, static, wl, etc.
13095 if test "$GXX" = yes; then
13096 lt_prog_compiler_wl_CXX='-Wl,'
13097 lt_prog_compiler_static_CXX='-static'
13101 # All AIX code is PIC.
13102 if test "$host_cpu" = ia64; then
13103 # AIX 5 now supports IA64 processor
13104 lt_prog_compiler_static_CXX='-Bstatic'
13108 # FIXME: we need at least 68020 code to build shared libraries, but
13109 # adding the `-m68020' flag to GCC prevents building anything better,
13111 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13113 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114 # PIC is the default for these OSes.
13116 mingw* | os2* | pw32*)
13117 # This hack is so that the source file can tell whether it is being
13118 # built for inclusion in a dll (and should export symbols for example).
13119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13121 darwin* | rhapsody*)
13122 # PIC is the default on this platform
13123 # Common symbols not allowed in MH_DYLIB files
13124 lt_prog_compiler_pic_CXX='-fno-common'
13127 # DJGPP does not support shared libraries at all
13128 lt_prog_compiler_pic_CXX=
13131 if test -d /usr/nec; then
13132 lt_prog_compiler_pic_CXX=-Kconform_pic
13136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13137 # not for PA HP-UX.
13138 case "$host_cpu" in
13142 lt_prog_compiler_pic_CXX='-fPIC'
13147 lt_prog_compiler_pic_CXX='-fPIC'
13153 # All AIX code is PIC.
13154 if test "$host_cpu" = ia64; then
13155 # AIX 5 now supports IA64 processor
13156 lt_prog_compiler_static_CXX='-Bstatic'
13158 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13162 case $cc_basename in
13164 # Green Hills C++ Compiler
13165 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13170 # PIC is the default on this platform
13171 # Common symbols not allowed in MH_DYLIB files
13172 case $cc_basename in
13174 lt_prog_compiler_pic_CXX='-qnocommon'
13175 lt_prog_compiler_wl_CXX='-Wl,'
13180 case $cc_basename in
13182 lt_prog_compiler_pic_CXX='-KPIC'
13185 # Green Hills C++ Compiler
13186 lt_prog_compiler_pic_CXX='-pic'
13192 freebsd* | kfreebsd*-gnu | dragonfly*)
13193 # FreeBSD uses GNU C++
13195 hpux9* | hpux10* | hpux11*)
13196 case $cc_basename in
13198 lt_prog_compiler_wl_CXX='-Wl,'
13199 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13200 if test "$host_cpu" != ia64; then
13201 lt_prog_compiler_pic_CXX='+Z'
13205 lt_prog_compiler_wl_CXX='-Wl,'
13206 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13207 case "$host_cpu" in
13212 lt_prog_compiler_pic_CXX='+Z'
13220 irix5* | irix6* | nonstopux*)
13221 case $cc_basename in
13223 lt_prog_compiler_wl_CXX='-Wl,'
13224 lt_prog_compiler_static_CXX='-non_shared'
13225 # CC pic flag -KPIC is the default.
13232 case $cc_basename in
13235 lt_prog_compiler_wl_CXX='--backend -Wl,'
13236 lt_prog_compiler_pic_CXX='-fPIC'
13240 lt_prog_compiler_wl_CXX='-Wl,'
13241 lt_prog_compiler_pic_CXX='-KPIC'
13242 lt_prog_compiler_static_CXX='-static'
13245 # Portland Group C++ compiler.
13246 lt_prog_compiler_wl_CXX='-Wl,'
13247 lt_prog_compiler_pic_CXX='-fpic'
13248 lt_prog_compiler_static_CXX='-static'
13252 # Make sure the PIC flag is empty. It appears that all Alpha
13253 # Linux and Compaq Tru64 Unix objects are PIC.
13254 lt_prog_compiler_pic_CXX=
13255 lt_prog_compiler_static_CXX='-non_shared'
13266 case $cc_basename in
13268 lt_prog_compiler_pic_CXX='-W c,exportall'
13276 osf3* | osf4* | osf5*)
13277 case $cc_basename in
13279 lt_prog_compiler_wl_CXX='--backend -Wl,'
13282 # Rational C++ 2.4.1
13283 lt_prog_compiler_pic_CXX='-pic'
13286 # Digital/Compaq C++
13287 lt_prog_compiler_wl_CXX='-Wl,'
13288 # Make sure the PIC flag is empty. It appears that all Alpha
13289 # Linux and Compaq Tru64 Unix objects are PIC.
13290 lt_prog_compiler_pic_CXX=
13291 lt_prog_compiler_static_CXX='-non_shared'
13300 case $cc_basename in
13302 lt_prog_compiler_pic_CXX='-fPIC'
13309 case $cc_basename in
13311 # Sun C++ 4.2, 5.x and Centerline C++
13312 lt_prog_compiler_pic_CXX='-KPIC'
13313 lt_prog_compiler_static_CXX='-Bstatic'
13314 lt_prog_compiler_wl_CXX='-Qoption ld '
13317 # Green Hills C++ Compiler
13318 lt_prog_compiler_pic_CXX='-PIC'
13325 case $cc_basename in
13328 lt_prog_compiler_pic_CXX='-pic'
13329 lt_prog_compiler_static_CXX='-Bstatic'
13333 lt_prog_compiler_pic_CXX='-pic'
13340 case $cc_basename in
13342 # NonStop-UX NCC 3.20
13343 lt_prog_compiler_pic_CXX='-KPIC'
13354 lt_prog_compiler_can_build_shared_CXX=no
13359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13360 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13363 # Check to make sure the PIC flag actually works.
13365 if test -n "$lt_prog_compiler_pic_CXX"; then
13367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13369 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 lt_prog_compiler_pic_works_CXX=no
13373 ac_outfile=conftest.$ac_objext
13374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13376 # Insert the option either (1) after the last *FLAGS variable, or
13377 # (2) before a word containing "conftest.", or (3) at the end.
13378 # Note that $ac_compile itself does not contain backslashes and begins
13379 # with a dollar sign (not a hyphen), so the echo should work correctly.
13380 # The option is referenced via a variable to avoid confusing sed.
13381 lt_compile=`echo "$ac_compile" | $SED \
13382 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384 -e 's:$: $lt_compiler_flag:'`
13385 (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
13386 (eval "$lt_compile" 2>conftest.err)
13388 cat conftest.err >&5
13389 echo "$as_me:13389: \$? = $ac_status" >&5
13390 if (exit $ac_status) && test -s "$ac_outfile"; then
13391 # The compiler can only warn and ignore the option if not recognized
13392 # So say no if there are warnings other than the usual output.
13393 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13394 $SED '/^$/d' conftest.err >conftest.er2
13395 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13396 lt_prog_compiler_pic_works_CXX=yes
13402 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13403 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13405 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13406 case $lt_prog_compiler_pic_CXX in
13408 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13411 lt_prog_compiler_pic_CXX=
13412 lt_prog_compiler_can_build_shared_CXX=no
13417 # For platforms which do not support PIC, -DPIC is meaningless:
13419 lt_prog_compiler_pic_CXX=
13422 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13426 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13427 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13428 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 lt_cv_prog_compiler_c_o_CXX=no
13432 $rm -r conftest 2>/dev/null
13436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13438 lt_compiler_flag="-o out/conftest2.$ac_objext"
13439 # Insert the option either (1) after the last *FLAGS variable, or
13440 # (2) before a word containing "conftest.", or (3) at the end.
13441 # Note that $ac_compile itself does not contain backslashes and begins
13442 # with a dollar sign (not a hyphen), so the echo should work correctly.
13443 lt_compile=`echo "$ac_compile" | $SED \
13444 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13446 -e 's:$: $lt_compiler_flag:'`
13447 (eval echo "\"\$as_me:13447: $lt_compile\"" >&5)
13448 (eval "$lt_compile" 2>out/conftest.err)
13450 cat out/conftest.err >&5
13451 echo "$as_me:13451: \$? = $ac_status" >&5
13452 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13454 # The compiler can only warn and ignore the option if not recognized
13455 # So say no if there are warnings
13456 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13457 $SED '/^$/d' out/conftest.err >out/conftest.er2
13458 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13459 lt_cv_prog_compiler_c_o_CXX=yes
13464 # SGI C++ compiler will create directory out/ii_files/ for
13465 # template instantiation
13466 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13467 $rm out/* && rmdir out
13473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13477 hard_links="nottested"
13478 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13479 # do not overwrite the value of need_locks provided by the user
13480 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13486 ln conftest.a conftest.b 2>&5 || hard_links=no
13487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13488 echo "$as_me:$LINENO: result: $hard_links" >&5
13489 echo "${ECHO_T}$hard_links" >&6
13490 if test "$hard_links" = no; then
13491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13502 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13505 # If we're using GNU nm, then we don't want the "-C" option.
13506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13507 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13508 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13510 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13514 export_symbols_cmds_CXX="$ltdll_cmds"
13517 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13520 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13524 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13525 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13526 test "$ld_shlibs_CXX" = no && can_build_shared=no
13528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529 if test "$GCC" = yes; then
13530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13534 # Do we need to explicitly link libc?
13536 case "x$archive_cmds_need_lc_CXX" in
13538 # Assume -lc should be added
13539 archive_cmds_need_lc_CXX=yes
13541 if test "$enable_shared" = yes && test "$GCC" = yes; then
13542 case $archive_cmds_CXX in
13544 # FIXME: we may have to deal with multi-command sequences.
13547 # Test whether the compiler implicitly links with -lc since on some
13548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13549 # to ld, don't add -lc before -lgcc.
13550 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13551 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } 2>conftest.err; then
13562 libobjs=conftest.$ac_objext
13564 wl=$lt_prog_compiler_wl_CXX
13570 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13571 allow_undefined_flag_CXX=
13572 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13573 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }
13578 archive_cmds_need_lc_CXX=no
13580 archive_cmds_need_lc_CXX=yes
13582 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13584 cat conftest.err 1>&5
13587 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13588 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13595 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13596 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13597 library_names_spec=
13598 libname_spec='lib$name'
13602 postuninstall_cmds=
13606 shlibpath_overrides_runpath=unknown
13608 dynamic_linker="$host_os ld.so"
13609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13610 if test "$GCC" = yes; then
13611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13612 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13613 # if the path contains ";" then we assume it to be the separator
13614 # otherwise default to the standard path separator (i.e. ":") - it is
13615 # assumed that no part of a normal pathname contains ";" but that should
13616 # okay in the real world where ";" in dirpaths is itself problematic.
13617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13624 need_lib_prefix=unknown
13625 hardcode_into_libs=no
13627 # when you set need_version to no, make sure it does not cause -set_version
13628 # flags to be left without arguments
13629 need_version=unknown
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13635 shlibpath_var=LIBPATH
13637 # AIX 3 has no versioning support, so we append a major version to the name.
13638 soname_spec='${libname}${release}${shared_ext}$major'
13645 hardcode_into_libs=yes
13646 if test "$host_cpu" = ia64; then
13647 # AIX 5 supports IA64
13648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13649 shlibpath_var=LD_LIBRARY_PATH
13651 # With GCC up to 2.95.x, collect2 would create an import file
13652 # for dependence libraries. The import file would start with
13653 # the line `#! .'. This would cause the generated library to
13654 # depend on `.', always an invalid library. This was fixed in
13655 # development snapshots of GCC prior to 3.0.
13657 aix4 | aix4.[01] | aix4.[01].*)
13658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13663 can_build_shared=no
13667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13668 # soname into executable. Probably we can add versioning support to
13669 # collect2, so additional links can be useful in future.
13670 if test "$aix_use_runtimelinking" = yes; then
13671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13672 # instead of lib<name>.a to let people know that these are not
13673 # typical AIX shared libraries.
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676 # We preserve .a as extension for shared libraries through AIX4.2
13677 # and later when we are not doing run time linking.
13678 library_names_spec='${libname}${release}.a $libname.a'
13679 soname_spec='${libname}${release}${shared_ext}$major'
13681 shlibpath_var=LIBPATH
13686 library_names_spec='$libname.ixlibrary $libname.a'
13687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13688 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13692 library_names_spec='${libname}${shared_ext}'
13693 dynamic_linker="$host_os ld.so"
13694 shlibpath_var=LIBRARY_PATH
13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701 soname_spec='${libname}${release}${shared_ext}$major'
13702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13706 # the default ld.so.conf also contains /usr/contrib/lib and
13707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13708 # libtool to hard-code these into programs
13711 cygwin* | mingw* | pw32*)
13712 version_type=windows
13717 case $GCC,$host_os in
13718 yes,cygwin* | yes,mingw* | yes,pw32*)
13719 library_names_spec='$libname.dll.a'
13720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13721 postinstall_cmds='base_file=`basename \${file}`~
13722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13723 dldir=$destdir/`dirname \$dlpath`~
13724 test -d \$dldir || mkdir -p \$dldir~
13725 $install_prog $dir/$dlname \$dldir/$dlname'
13726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13727 dlpath=$dir/\$dldll~
13729 shlibpath_overrides_runpath=yes
13733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13738 # MinGW DLLs use traditional 'lib' prefix
13739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13742 # It is most probably a Windows format PATH printed by
13743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13744 # path with ; separators, and with drive letters. We can handle the
13745 # drive letters (cygwin fileutils understands them), so leave them,
13746 # especially as we might pass files found there to a mingw objdump,
13747 # which wouldn't understand a cygwinified path. Ahh.
13748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13754 # pw32 DLLs use 'pw' prefix rather than 'lib'
13755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13764 dynamic_linker='Win32 ld.exe'
13765 # FIXME: first we should search . and the directory the executable is in
13769 darwin* | rhapsody*)
13770 dynamic_linker="$host_os dyld"
13771 version_type=darwin
13774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13775 soname_spec='${libname}${release}${major}$shared_ext'
13776 shlibpath_overrides_runpath=yes
13777 shlibpath_var=DYLD_LIBRARY_PATH
13778 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13779 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13780 if test "$GCC" = yes; then
13781 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13783 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13793 soname_spec='${libname}${release}${shared_ext}$major'
13794 shlibpath_var=LD_LIBRARY_PATH
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13806 soname_spec='${libname}${release}${shared_ext}$major'
13807 shlibpath_var=LD_LIBRARY_PATH
13808 shlibpath_overrides_runpath=no
13809 hardcode_into_libs=yes
13810 dynamic_linker='GNU ld.so'
13813 freebsd* | dragonfly*)
13814 # DragonFly does not have aout. When/if they implement a new
13815 # versioning mechanism, adjust this.
13816 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13817 version_type=freebsd-$objformat
13818 case $version_type in
13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13829 shlibpath_var=LD_LIBRARY_PATH
13832 shlibpath_overrides_runpath=yes
13834 freebsd3.[01]* | freebsdelf3.[01]*)
13835 shlibpath_overrides_runpath=yes
13836 hardcode_into_libs=yes
13839 shlibpath_overrides_runpath=no
13840 hardcode_into_libs=yes
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 hardcode_into_libs=yes
13855 hpux9* | hpux10* | hpux11*)
13856 # Give a soname corresponding to the major version so that dld.sl refuses to
13857 # link against other versions.
13861 case "$host_cpu" in
13864 hardcode_into_libs=yes
13865 dynamic_linker="$host_os dld.so"
13866 shlibpath_var=LD_LIBRARY_PATH
13867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 if test "X$HPUX_IA64_MODE" = X32; then
13871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13879 hardcode_into_libs=yes
13880 dynamic_linker="$host_os dld.sl"
13881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13890 dynamic_linker="$host_os dld.sl"
13891 shlibpath_var=SHLIB_PATH
13892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13897 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13898 postinstall_cmds='chmod 555 $lib'
13901 irix5* | irix6* | nonstopux*)
13903 nonstopux*) version_type=nonstopux ;;
13905 if test "$lt_cv_prog_gnu_ld" = yes; then
13913 soname_spec='${libname}${release}${shared_ext}$major'
13914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13916 irix5* | nonstopux*)
13917 libsuff= shlibsuff=
13920 case $LD in # libtool.m4 will add one of these switches to LD
13921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13922 libsuff= shlibsuff= libmagic=32-bit;;
13923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13924 libsuff=32 shlibsuff=N32 libmagic=N32;;
13925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13927 *) libsuff= shlibsuff= libmagic=never-match;;
13931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13932 shlibpath_overrides_runpath=no
13933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13935 hardcode_into_libs=yes
13938 # No shared lib support for Linux oldld, aout, or coff.
13939 linux*oldld* | linux*aout* | linux*coff*)
13943 # This must be Linux ELF.
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949 soname_spec='${libname}${release}${shared_ext}$major'
13950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13951 shlibpath_var=LD_LIBRARY_PATH
13952 shlibpath_overrides_runpath=no
13953 # This implies no fast_install, which is unacceptable.
13954 # Some rework will be needed to allow for fast_install
13955 # before this can be enabled.
13956 hardcode_into_libs=yes
13958 # Append ld.so.conf contents to the search path
13959 if test -f /etc/ld.so.conf; then
13960 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13964 # We used to test for /lib/ld.so.1 and disable shared libraries on
13965 # powerpc, because MkLinux only supported shared libraries with the
13966 # GNU dynamic linker. Since this was broken with cross compilers,
13967 # most powerpc-linux boxes support dynamic linking these days and
13968 # people can always --disable-shared, the test was removed, and we
13969 # assume the GNU/Linux dynamic linker is in use.
13970 dynamic_linker='GNU/Linux ld.so'
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=no
13981 hardcode_into_libs=yes
13982 dynamic_linker='GNU ld.so'
13989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13992 dynamic_linker='NetBSD (a.out) ld.so'
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13995 soname_spec='${libname}${release}${shared_ext}$major'
13996 dynamic_linker='NetBSD ld.elf_so'
13998 shlibpath_var=LD_LIBRARY_PATH
13999 shlibpath_overrides_runpath=yes
14000 hardcode_into_libs=yes
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 shlibpath_var=LD_LIBRARY_PATH
14007 shlibpath_overrides_runpath=yes
14014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 shlibpath_var=LD_LIBRARY_PATH
14017 shlibpath_overrides_runpath=yes
14023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14026 *) need_version=no ;;
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14033 openbsd2.[89] | openbsd2.[89].*)
14034 shlibpath_overrides_runpath=no
14037 shlibpath_overrides_runpath=yes
14041 shlibpath_overrides_runpath=yes
14046 libname_spec='$name'
14049 library_names_spec='$libname${shared_ext} $libname.a'
14050 dynamic_linker='OS/2 ld.exe'
14051 shlibpath_var=LIBPATH
14054 osf3* | osf4* | osf5*)
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14067 soname_spec='${libname}${release}${shared_ext}$major'
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069 shlibpath_var=LD_LIBRARY_PATH
14076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077 soname_spec='${libname}${release}${shared_ext}$major'
14078 shlibpath_var=LD_LIBRARY_PATH
14079 shlibpath_overrides_runpath=yes
14080 hardcode_into_libs=yes
14081 # ldd complains unless libraries are executable
14082 postinstall_cmds='chmod +x $lib'
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes
14091 if test "$with_gnu_ld" = yes; then
14097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 shlibpath_var=LD_LIBRARY_PATH
14102 case $host_vendor in
14104 shlibpath_overrides_runpath=no
14106 export_dynamic_flag_spec='${wl}-Blargedynsym'
14107 runpath_var=LD_RUN_PATH
14115 shlibpath_overrides_runpath=no
14116 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14122 if test -d /usr/nec ;then
14124 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14125 soname_spec='$libname${shared_ext}.$major'
14126 shlibpath_var=LD_LIBRARY_PATH
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 shlibpath_var=LD_LIBRARY_PATH
14141 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14142 echo "${ECHO_T}$dynamic_linker" >&6
14143 test "$dynamic_linker" = no && can_build_shared=no
14145 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14146 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14147 hardcode_action_CXX=
14148 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14149 test -n "$runpath_var_CXX" || \
14150 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14152 # We can hardcode non-existant directories.
14153 if test "$hardcode_direct_CXX" != no &&
14154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14155 # have to relink, otherwise we might link with an installed library
14156 # when we should be linking with a yet-to-be-installed one
14157 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14158 test "$hardcode_minus_L_CXX" != no; then
14159 # Linking always hardcodes the temporary library directory.
14160 hardcode_action_CXX=relink
14162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14163 hardcode_action_CXX=immediate
14166 # We cannot hardcode anything, or else we can only hardcode existing
14168 hardcode_action_CXX=unsupported
14170 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14171 echo "${ECHO_T}$hardcode_action_CXX" >&6
14173 if test "$hardcode_action_CXX" = relink; then
14174 # Fast installation is not supported
14175 enable_fast_install=no
14176 elif test "$shlibpath_overrides_runpath" = yes ||
14177 test "$enable_shared" = no; then
14178 # Fast installation is not necessary
14179 enable_fast_install=needless
14184 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14185 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14186 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14187 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14188 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14189 echo "$as_me:$LINENO: result: yes" >&5
14190 echo "${ECHO_T}yes" >&6
14192 # FIXME - insert some real tests, host_os isn't really good enough
14195 if test -n "$STRIP" ; then
14196 striplib="$STRIP -x"
14197 echo "$as_me:$LINENO: result: yes" >&5
14198 echo "${ECHO_T}yes" >&6
14200 echo "$as_me:$LINENO: result: no" >&5
14201 echo "${ECHO_T}no" >&6
14205 echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6
14211 if test "x$enable_dlopen" != xyes; then
14212 enable_dlopen=unknown
14213 enable_dlopen_self=unknown
14214 enable_dlopen_self_static=unknown
14221 lt_cv_dlopen="load_add_on"
14223 lt_cv_dlopen_self=yes
14227 lt_cv_dlopen="LoadLibrary"
14232 lt_cv_dlopen="dlopen"
14237 # if libdl is installed we need to link against it
14238 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14239 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 ac_check_lib_save_LIBS=$LIBS
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14252 /* Override any gcc2 internal prototype to avoid an error. */
14256 /* We use char because int might match the return type of a gcc2
14257 builtin and then its argument prototype would still apply. */
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269 (eval $ac_link) 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_cxx_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest$ac_exeext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 ac_cv_lib_dl_dlopen=yes
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 ac_cv_lib_dl_dlopen=no
14296 rm -f conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 LIBS=$ac_check_lib_save_LIBS
14300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14302 if test $ac_cv_lib_dl_dlopen = yes; then
14303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14306 lt_cv_dlopen="dyld"
14308 lt_cv_dlopen_self=yes
14315 echo "$as_me:$LINENO: checking for shl_load" >&5
14316 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14317 if test "${ac_cv_func_shl_load+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 cat >conftest.$ac_ext <<_ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14328 #define shl_load innocuous_shl_load
14330 /* System header to define __stub macros and hopefully few prototypes,
14331 which can conflict with char shl_load (); below.
14332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14333 <limits.h> exists even on freestanding compilers. */
14336 # include <limits.h>
14338 # include <assert.h>
14343 /* Override any gcc2 internal prototype to avoid an error. */
14348 /* We use char because int might match the return type of a gcc2
14349 builtin and then its argument prototype would still apply. */
14351 /* The GNU C library defines this for functions which it implements
14352 to always fail with ENOSYS. Some functions are actually named
14353 something starting with __ and the normal name is an alias. */
14354 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14357 char (*f) () = shl_load;
14366 return f != shl_load;
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>conftest.er1
14375 grep -v '^ *+' conftest.er1 >conftest.err
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -z "$ac_cxx_werror_flag"
14381 || test ! -s conftest.err'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; } &&
14387 { ac_try='test -s conftest$ac_exeext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_cv_func_shl_load=yes
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 ac_cv_func_shl_load=no
14400 rm -f conftest.err conftest.$ac_objext \
14401 conftest$ac_exeext conftest.$ac_ext
14403 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14405 if test $ac_cv_func_shl_load = yes; then
14406 lt_cv_dlopen="shl_load"
14408 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 ac_check_lib_save_LIBS=$LIBS
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14422 /* Override any gcc2 internal prototype to avoid an error. */
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14439 (eval $ac_link) 2>conftest.er1
14441 grep -v '^ *+' conftest.er1 >conftest.err
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_cxx_werror_flag"
14447 || test ! -s conftest.err'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; } &&
14453 { ac_try='test -s conftest$ac_exeext'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }; then
14459 ac_cv_lib_dld_shl_load=yes
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ac_cv_lib_dld_shl_load=no
14466 rm -f conftest.err conftest.$ac_objext \
14467 conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14471 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14472 if test $ac_cv_lib_dld_shl_load = yes; then
14473 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14475 echo "$as_me:$LINENO: checking for dlopen" >&5
14476 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14477 if test "${ac_cv_func_dlopen+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 cat >conftest.$ac_ext <<_ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14488 #define dlopen innocuous_dlopen
14490 /* System header to define __stub macros and hopefully few prototypes,
14491 which can conflict with char dlopen (); below.
14492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14493 <limits.h> exists even on freestanding compilers. */
14496 # include <limits.h>
14498 # include <assert.h>
14503 /* Override any gcc2 internal prototype to avoid an error. */
14508 /* We use char because int might match the return type of a gcc2
14509 builtin and then its argument prototype would still apply. */
14511 /* The GNU C library defines this for functions which it implements
14512 to always fail with ENOSYS. Some functions are actually named
14513 something starting with __ and the normal name is an alias. */
14514 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14517 char (*f) () = dlopen;
14526 return f != dlopen;
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_cxx_werror_flag"
14541 || test ! -s conftest.err'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try='test -s conftest$ac_exeext'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_func_dlopen=yes
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_cv_func_dlopen=no
14560 rm -f conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14563 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14564 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14565 if test $ac_cv_func_dlopen = yes; then
14566 lt_cv_dlopen="dlopen"
14568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 ac_check_lib_save_LIBS=$LIBS
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14582 /* Override any gcc2 internal prototype to avoid an error. */
14586 /* We use char because int might match the return type of a gcc2
14587 builtin and then its argument prototype would still apply. */
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14599 (eval $ac_link) 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_cxx_werror_flag"
14607 || test ! -s conftest.err'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest$ac_exeext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_lib_dl_dlopen=yes
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 ac_cv_lib_dl_dlopen=no
14626 rm -f conftest.err conftest.$ac_objext \
14627 conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14630 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14632 if test $ac_cv_lib_dl_dlopen = yes; then
14633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14635 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 ac_check_lib_save_LIBS=$LIBS
14641 LIBS="-lsvld $LIBS"
14642 cat >conftest.$ac_ext <<_ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14649 /* Override any gcc2 internal prototype to avoid an error. */
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14666 (eval $ac_link) 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -z "$ac_cxx_werror_flag"
14674 || test ! -s conftest.err'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } &&
14680 { ac_try='test -s conftest$ac_exeext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_cv_lib_svld_dlopen=yes
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_cv_lib_svld_dlopen=no
14693 rm -f conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695 LIBS=$ac_check_lib_save_LIBS
14697 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14698 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14699 if test $ac_cv_lib_svld_dlopen = yes; then
14700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14702 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14703 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14704 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 ac_check_lib_save_LIBS=$LIBS
14709 cat >conftest.$ac_ext <<_ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14716 /* Override any gcc2 internal prototype to avoid an error. */
14720 /* We use char because int might match the return type of a gcc2
14721 builtin and then its argument prototype would still apply. */
14731 rm -f conftest.$ac_objext conftest$ac_exeext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14733 (eval $ac_link) 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
14740 { ac_try='test -z "$ac_cxx_werror_flag"
14741 || test ! -s conftest.err'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest$ac_exeext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 ac_cv_lib_dld_dld_link=yes
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14758 ac_cv_lib_dld_dld_link=no
14760 rm -f conftest.err conftest.$ac_objext \
14761 conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14764 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14766 if test $ac_cv_lib_dld_dld_link = yes; then
14767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14788 if test "x$lt_cv_dlopen" != xno; then
14794 case $lt_cv_dlopen in
14796 save_CPPFLAGS="$CPPFLAGS"
14797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14799 save_LDFLAGS="$LDFLAGS"
14800 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14803 LIBS="$lt_cv_dlopen_libs $LIBS"
14805 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14807 if test "${lt_cv_dlopen_self+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 if test "$cross_compiling" = yes; then :
14811 lt_cv_dlopen_self=cross
14813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14814 lt_status=$lt_dlunknown
14815 cat > conftest.$ac_ext <<EOF
14816 #line 14816 "configure"
14817 #include "confdefs.h"
14826 # define LT_DLGLOBAL RTLD_GLOBAL
14829 # define LT_DLGLOBAL DL_GLOBAL
14831 # define LT_DLGLOBAL 0
14835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14836 find out it does not work in some platform. */
14837 #ifndef LT_DLLAZY_OR_NOW
14839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14842 # define LT_DLLAZY_OR_NOW DL_LAZY
14845 # define LT_DLLAZY_OR_NOW RTLD_NOW
14848 # define LT_DLLAZY_OR_NOW DL_NOW
14850 # define LT_DLLAZY_OR_NOW 0
14858 extern "C" void exit (int);
14861 void fnord() { int i=42;}
14864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14865 int status = $lt_dlunknown;
14869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14871 /* dlclose (self); */
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14882 (./conftest; exit; ) 2>/dev/null
14884 case x$lt_status in
14885 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14886 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14887 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14890 # compilation failed
14891 lt_cv_dlopen_self=no
14898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14899 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14901 if test "x$lt_cv_dlopen_self" = xyes; then
14902 LDFLAGS="$LDFLAGS $link_static_flag"
14903 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14904 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14905 if test "${lt_cv_dlopen_self_static+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 if test "$cross_compiling" = yes; then :
14909 lt_cv_dlopen_self_static=cross
14911 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14912 lt_status=$lt_dlunknown
14913 cat > conftest.$ac_ext <<EOF
14914 #line 14914 "configure"
14915 #include "confdefs.h"
14924 # define LT_DLGLOBAL RTLD_GLOBAL
14927 # define LT_DLGLOBAL DL_GLOBAL
14929 # define LT_DLGLOBAL 0
14933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14934 find out it does not work in some platform. */
14935 #ifndef LT_DLLAZY_OR_NOW
14937 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14940 # define LT_DLLAZY_OR_NOW DL_LAZY
14943 # define LT_DLLAZY_OR_NOW RTLD_NOW
14946 # define LT_DLLAZY_OR_NOW DL_NOW
14948 # define LT_DLLAZY_OR_NOW 0
14956 extern "C" void exit (int);
14959 void fnord() { int i=42;}
14962 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14963 int status = $lt_dlunknown;
14967 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14968 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14969 /* dlclose (self); */
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976 (eval $ac_link) 2>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14980 (./conftest; exit; ) 2>/dev/null
14982 case x$lt_status in
14983 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14984 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14985 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14988 # compilation failed
14989 lt_cv_dlopen_self_static=no
14996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14997 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15000 CPPFLAGS="$save_CPPFLAGS"
15001 LDFLAGS="$save_LDFLAGS"
15006 case $lt_cv_dlopen_self in
15007 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15008 *) enable_dlopen_self=unknown ;;
15011 case $lt_cv_dlopen_self_static in
15012 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15013 *) enable_dlopen_self_static=unknown ;;
15018 # The else clause should only fire when bootstrapping the
15019 # libtool distribution, otherwise you forgot to ship ltmain.sh
15020 # with your package, and you will get complaints that there are
15021 # no rules to generate ltmain.sh.
15022 if test -f "$ltmain"; then
15023 # See if we are running on zsh, and set the options which allow our commands through
15024 # without removal of \ escapes.
15025 if test -n "${ZSH_VERSION+set}" ; then
15026 setopt NO_GLOB_SUBST
15028 # Now quote all the things that may contain metacharacters while being
15029 # careful not to overquote the AC_SUBSTed values. We take copies of the
15030 # variables and quote the copies for generation of the libtool script.
15031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15035 deplibs_check_method reload_flag reload_cmds need_locks \
15036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15037 lt_cv_sys_global_symbol_to_c_name_address \
15038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15039 old_postinstall_cmds old_postuninstall_cmds \
15043 lt_prog_compiler_wl_CXX \
15044 lt_prog_compiler_pic_CXX \
15045 lt_prog_compiler_static_CXX \
15046 lt_prog_compiler_no_builtin_flag_CXX \
15047 export_dynamic_flag_spec_CXX \
15048 thread_safe_flag_spec_CXX \
15049 whole_archive_flag_spec_CXX \
15050 enable_shared_with_static_runtimes_CXX \
15051 old_archive_cmds_CXX \
15052 old_archive_from_new_cmds_CXX \
15053 predep_objects_CXX \
15054 postdep_objects_CXX \
15057 compiler_lib_search_path_CXX \
15059 archive_expsym_cmds_CXX \
15060 postinstall_cmds_CXX \
15061 postuninstall_cmds_CXX \
15062 old_archive_from_expsyms_cmds_CXX \
15063 allow_undefined_flag_CXX \
15064 no_undefined_flag_CXX \
15065 export_symbols_cmds_CXX \
15066 hardcode_libdir_flag_spec_CXX \
15067 hardcode_libdir_flag_spec_ld_CXX \
15068 hardcode_libdir_separator_CXX \
15069 hardcode_automatic_CXX \
15071 module_expsym_cmds_CXX \
15072 lt_cv_prog_compiler_c_o_CXX \
15073 exclude_expsyms_CXX \
15074 include_expsyms_CXX; do
15077 old_archive_cmds_CXX | \
15078 old_archive_from_new_cmds_CXX | \
15079 archive_cmds_CXX | \
15080 archive_expsym_cmds_CXX | \
15081 module_cmds_CXX | \
15082 module_expsym_cmds_CXX | \
15083 old_archive_from_expsyms_cmds_CXX | \
15084 export_symbols_cmds_CXX | \
15085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15086 postinstall_cmds | postuninstall_cmds | \
15087 old_postinstall_cmds | old_postuninstall_cmds | \
15088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15089 # Double-quote double-evaled strings.
15090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15099 *'\$0 --fallback-echo"')
15100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15106 cat <<__EOF__ >> "$cfgfile"
15107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15111 # Shell to use when invoking shell scripts.
15114 # Whether or not to build shared libraries.
15115 build_libtool_libs=$enable_shared
15117 # Whether or not to build static libraries.
15118 build_old_libs=$enable_static
15120 # Whether or not to add -lc for building shared libraries.
15121 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15123 # Whether or not to disallow shared libs when runtime libs are static
15124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15126 # Whether or not to optimize for fast installation.
15127 fast_install=$enable_fast_install
15130 host_alias=$host_alias
15134 # The build system.
15135 build_alias=$build_alias
15139 # An echo program that does not interpret backslashes.
15144 AR_FLAGS=$lt_AR_FLAGS
15149 # A language-specific compiler.
15150 CC=$lt_compiler_CXX
15152 # Is the compiler the GNU C compiler?
15158 # The linker used to build libraries.
15161 # Whether we need hard or soft links.
15164 # A BSD-compatible nm program.
15167 # A symbol stripping program
15170 # Used to examine libraries when file_magic_cmd begins "file"
15171 MAGIC_CMD=$MAGIC_CMD
15173 # Used on cygwin: DLL creation program.
15176 # Used on cygwin: object dumper.
15179 # Used on cygwin: assembler.
15182 # The name of the directory that contains temporary libtool files.
15185 # How to create reloadable object files.
15186 reload_flag=$lt_reload_flag
15187 reload_cmds=$lt_reload_cmds
15189 # How to pass a linker flag through the compiler.
15190 wl=$lt_lt_prog_compiler_wl_CXX
15192 # Object file suffix (normally "o").
15193 objext="$ac_objext"
15195 # Old archive suffix (normally "a").
15198 # Shared library suffix (normally ".so").
15199 shrext_cmds='$shrext_cmds'
15201 # Executable file suffix (normally "").
15204 # Additional compiler flags for building library objects.
15205 pic_flag=$lt_lt_prog_compiler_pic_CXX
15208 # What is the maximum length of a command?
15209 max_cmd_len=$lt_cv_sys_max_cmd_len
15211 # Does compiler simultaneously support -c and -o options?
15212 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15214 # Must we lock files when doing compilation?
15215 need_locks=$lt_need_locks
15217 # Do we need the lib prefix for modules?
15218 need_lib_prefix=$need_lib_prefix
15220 # Do we need a version for libraries?
15221 need_version=$need_version
15223 # Whether dlopen is supported.
15224 dlopen_support=$enable_dlopen
15226 # Whether dlopen of programs is supported.
15227 dlopen_self=$enable_dlopen_self
15229 # Whether dlopen of statically linked programs is supported.
15230 dlopen_self_static=$enable_dlopen_self_static
15232 # Compiler flag to prevent dynamic linking.
15233 link_static_flag=$lt_lt_prog_compiler_static_CXX
15235 # Compiler flag to turn off builtin functions.
15236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15238 # Compiler flag to allow reflexive dlopens.
15239 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15241 # Compiler flag to generate shared objects directly from archives.
15242 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15244 # Compiler flag to generate thread-safe objects.
15245 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15247 # Library versioning type.
15248 version_type=$version_type
15250 # Format of library name prefix.
15251 libname_spec=$lt_libname_spec
15253 # List of archive names. First name is the real one, the rest are links.
15254 # The last name is the one that the linker finds with -lNAME.
15255 library_names_spec=$lt_library_names_spec
15257 # The coded name of the library, if different from the real name.
15258 soname_spec=$lt_soname_spec
15260 # Commands used to build and install an old-style archive.
15262 old_archive_cmds=$lt_old_archive_cmds_CXX
15263 old_postinstall_cmds=$lt_old_postinstall_cmds
15264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15266 # Create an old-style archive from a shared archive.
15267 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15269 # Create a temporary old-style archive to link instead of a shared archive.
15270 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15272 # Commands used to build and install a shared archive.
15273 archive_cmds=$lt_archive_cmds_CXX
15274 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15275 postinstall_cmds=$lt_postinstall_cmds
15276 postuninstall_cmds=$lt_postuninstall_cmds
15278 # Commands used to build a loadable module (assumed same as above if empty)
15279 module_cmds=$lt_module_cmds_CXX
15280 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15282 # Commands to strip libraries.
15283 old_striplib=$lt_old_striplib
15284 striplib=$lt_striplib
15286 # Dependencies to place before the objects being linked to create a
15288 predep_objects=$lt_predep_objects_CXX
15290 # Dependencies to place after the objects being linked to create a
15292 postdep_objects=$lt_postdep_objects_CXX
15294 # Dependencies to place before the objects being linked to create a
15296 predeps=$lt_predeps_CXX
15298 # Dependencies to place after the objects being linked to create a
15300 postdeps=$lt_postdeps_CXX
15302 # The library search path used internally by the compiler when linking
15303 # a shared library.
15304 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15306 # Method to check whether dependent libraries are shared objects.
15307 deplibs_check_method=$lt_deplibs_check_method
15309 # Command to use when deplibs_check_method == file_magic.
15310 file_magic_cmd=$lt_file_magic_cmd
15312 # Flag that allows shared libraries with undefined symbols to be built.
15313 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15315 # Flag that forces no undefined symbols.
15316 no_undefined_flag=$lt_no_undefined_flag_CXX
15318 # Commands used to finish a libtool library installation in a directory.
15319 finish_cmds=$lt_finish_cmds
15321 # Same as above, but a single script fragment to be evaled but not shown.
15322 finish_eval=$lt_finish_eval
15324 # Take the output of nm and produce a listing of raw symbols and C names.
15325 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15327 # Transform the output of nm in a proper C declaration
15328 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15330 # Transform the output of nm in a C name address pair
15331 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15333 # This is the shared library runtime path variable.
15334 runpath_var=$runpath_var
15336 # This is the shared library path variable.
15337 shlibpath_var=$shlibpath_var
15339 # Is shlibpath searched before the hard-coded library search path?
15340 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15342 # How to hardcode a shared library path into an executable.
15343 hardcode_action=$hardcode_action_CXX
15345 # Whether we should hardcode library paths into libraries.
15346 hardcode_into_libs=$hardcode_into_libs
15348 # Flag to hardcode \$libdir into a binary during linking.
15349 # This must work even if \$libdir does not exist.
15350 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15352 # If ld is used when linking, flag to hardcode \$libdir into
15353 # a binary during linking. This must work even if \$libdir does
15355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15357 # Whether we need a single -rpath flag with a separated argument.
15358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15360 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15361 # resulting binary.
15362 hardcode_direct=$hardcode_direct_CXX
15364 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15365 # resulting binary.
15366 hardcode_minus_L=$hardcode_minus_L_CXX
15368 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15369 # the resulting binary.
15370 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15372 # Set to yes if building a shared library automatically hardcodes DIR into the library
15373 # and all subsequent libraries and executables linked against it.
15374 hardcode_automatic=$hardcode_automatic_CXX
15376 # Variables whose values should be saved in libtool wrapper scripts and
15377 # restored at relink time.
15378 variables_saved_for_relink="$variables_saved_for_relink"
15380 # Whether libtool must link a program against all its dependency libraries.
15381 link_all_deplibs=$link_all_deplibs_CXX
15383 # Compile-time system search path for libraries
15384 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15386 # Run-time system search path for libraries
15387 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15389 # Fix the shell variable \$srcfile for the compiler.
15390 fix_srcfile_path="$fix_srcfile_path_CXX"
15392 # Set to yes if exported symbols are required.
15393 always_export_symbols=$always_export_symbols_CXX
15395 # The commands to list exported symbols.
15396 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15398 # The commands to extract the exported symbol list from a shared archive.
15399 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15401 # Symbols that should not be listed in the preloaded symbols.
15402 exclude_expsyms=$lt_exclude_expsyms_CXX
15404 # Symbols that must always be exported.
15405 include_expsyms=$lt_include_expsyms_CXX
15407 # ### END LIBTOOL TAG CONFIG: $tagname
15413 # If there is no Makefile yet, we rely on a make rule to execute
15414 # `config.status --recheck' to rerun these tests and create the
15415 # libtool script then.
15416 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15417 if test -f "$ltmain_in"; then
15418 test -f Makefile && make "$ltmain"
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15433 with_gnu_ldcxx=$with_gnu_ld
15434 with_gnu_ld=$lt_save_with_gnu_ld
15435 lt_cv_path_LDCXX=$lt_cv_path_LD
15436 lt_cv_path_LD=$lt_save_path_LD
15437 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15438 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15446 if test -n "$F77" && test "X$F77" != "Xno"; then
15449 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15450 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15451 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15454 archive_cmds_need_lc_F77=no
15455 allow_undefined_flag_F77=
15456 always_export_symbols_F77=no
15457 archive_expsym_cmds_F77=
15458 export_dynamic_flag_spec_F77=
15459 hardcode_direct_F77=no
15460 hardcode_libdir_flag_spec_F77=
15461 hardcode_libdir_flag_spec_ld_F77=
15462 hardcode_libdir_separator_F77=
15463 hardcode_minus_L_F77=no
15464 hardcode_automatic_F77=no
15466 module_expsym_cmds_F77=
15467 link_all_deplibs_F77=unknown
15468 old_archive_cmds_F77=$old_archive_cmds
15469 no_undefined_flag_F77=
15470 whole_archive_flag_spec_F77=
15471 enable_shared_with_static_runtimes_F77=no
15473 # Source file extension for f77 test sources.
15476 # Object file extension for compiled f77 test sources.
15480 # Code to be used in simple compile tests
15481 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15483 # Code to be used in simple link tests
15484 lt_simple_link_test_code=" program t\n end\n"
15486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15488 # If no C compiler was specified, use CC.
15491 # Allow CC to be a program name with arguments.
15495 # save warnings/boilerplate of simple test code
15496 ac_outfile=conftest.$ac_objext
15497 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15499 _lt_compiler_boilerplate=`cat conftest.err`
15502 ac_outfile=conftest.$ac_objext
15503 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15505 _lt_linker_boilerplate=`cat conftest.err`
15509 # Allow CC to be a program name with arguments.
15514 for cc_temp in $compiler""; do
15516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15522 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15525 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15526 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15527 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15528 echo "${ECHO_T}$can_build_shared" >&6
15530 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15531 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15532 test "$can_build_shared" = "no" && enable_shared=no
15534 # On AIX, shared libraries and static libraries use the same namespace, and
15535 # are all built from PIC.
15538 test "$enable_shared" = yes && enable_static=no
15539 if test -n "$RANLIB"; then
15540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15541 postinstall_cmds='$RANLIB $lib'
15545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15546 test "$enable_shared" = yes && enable_static=no
15550 echo "$as_me:$LINENO: result: $enable_shared" >&5
15551 echo "${ECHO_T}$enable_shared" >&6
15553 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15554 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15555 # Make sure either enable_shared or enable_static is yes.
15556 test "$enable_shared" = yes || enable_static=yes
15557 echo "$as_me:$LINENO: result: $enable_static" >&5
15558 echo "${ECHO_T}$enable_static" >&6
15560 test "$ld_shlibs_F77" = no && can_build_shared=no
15565 lt_prog_compiler_wl_F77=
15566 lt_prog_compiler_pic_F77=
15567 lt_prog_compiler_static_F77=
15569 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15570 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15572 if test "$GCC" = yes; then
15573 lt_prog_compiler_wl_F77='-Wl,'
15574 lt_prog_compiler_static_F77='-static'
15578 # All AIX code is PIC.
15579 if test "$host_cpu" = ia64; then
15580 # AIX 5 now supports IA64 processor
15581 lt_prog_compiler_static_F77='-Bstatic'
15586 # FIXME: we need at least 68020 code to build shared libraries, but
15587 # adding the `-m68020' flag to GCC prevents building anything better,
15589 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15592 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15593 # PIC is the default for these OSes.
15596 mingw* | pw32* | os2*)
15597 # This hack is so that the source file can tell whether it is being
15598 # built for inclusion in a dll (and should export symbols for example).
15599 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15602 darwin* | rhapsody*)
15603 # PIC is the default on this platform
15604 # Common symbols not allowed in MH_DYLIB files
15605 lt_prog_compiler_pic_F77='-fno-common'
15609 # Just because we use GCC doesn't mean we suddenly get shared libraries
15610 # on systems that don't support them.
15611 lt_prog_compiler_can_build_shared_F77=no
15616 if test -d /usr/nec; then
15617 lt_prog_compiler_pic_F77=-Kconform_pic
15622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15623 # not for PA HP-UX.
15624 case "$host_cpu" in
15629 lt_prog_compiler_pic_F77='-fPIC'
15635 lt_prog_compiler_pic_F77='-fPIC'
15639 # PORTME Check for flag to pass linker flags through the system compiler.
15642 lt_prog_compiler_wl_F77='-Wl,'
15643 if test "$host_cpu" = ia64; then
15644 # AIX 5 now supports IA64 processor
15645 lt_prog_compiler_static_F77='-Bstatic'
15647 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15651 # PIC is the default on this platform
15652 # Common symbols not allowed in MH_DYLIB files
15653 case $cc_basename in
15655 lt_prog_compiler_pic_F77='-qnocommon'
15656 lt_prog_compiler_wl_F77='-Wl,'
15661 mingw* | pw32* | os2*)
15662 # This hack is so that the source file can tell whether it is being
15663 # built for inclusion in a dll (and should export symbols for example).
15664 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15667 hpux9* | hpux10* | hpux11*)
15668 lt_prog_compiler_wl_F77='-Wl,'
15669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15670 # not for PA HP-UX.
15671 case "$host_cpu" in
15676 lt_prog_compiler_pic_F77='+Z'
15679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15680 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15683 irix5* | irix6* | nonstopux*)
15684 lt_prog_compiler_wl_F77='-Wl,'
15685 # PIC (with -KPIC) is the default.
15686 lt_prog_compiler_static_F77='-non_shared'
15690 lt_prog_compiler_pic_F77='-KPIC'
15691 lt_prog_compiler_static_F77='-Bstatic'
15695 case $cc_basename in
15697 lt_prog_compiler_wl_F77='-Wl,'
15698 lt_prog_compiler_pic_F77='-KPIC'
15699 lt_prog_compiler_static_F77='-static'
15701 pgcc* | pgf77* | pgf90*)
15702 # Portland Group compilers (*not* the Pentium gcc compiler,
15703 # which looks to be a dead project)
15704 lt_prog_compiler_wl_F77='-Wl,'
15705 lt_prog_compiler_pic_F77='-fpic'
15706 lt_prog_compiler_static_F77='-static'
15709 lt_prog_compiler_wl_F77='-Wl,'
15710 # All Alpha code is PIC.
15711 lt_prog_compiler_static_F77='-non_shared'
15716 osf3* | osf4* | osf5*)
15717 lt_prog_compiler_wl_F77='-Wl,'
15718 # All OSF/1 code is PIC.
15719 lt_prog_compiler_static_F77='-non_shared'
15723 lt_prog_compiler_pic_F77='-Kpic'
15724 lt_prog_compiler_static_F77='-dn'
15728 lt_prog_compiler_pic_F77='-KPIC'
15729 lt_prog_compiler_static_F77='-Bstatic'
15730 case $cc_basename in
15731 f77* | f90* | f95*)
15732 lt_prog_compiler_wl_F77='-Qoption ld ';;
15734 lt_prog_compiler_wl_F77='-Wl,';;
15739 lt_prog_compiler_wl_F77='-Qoption ld '
15740 lt_prog_compiler_pic_F77='-PIC'
15741 lt_prog_compiler_static_F77='-Bstatic'
15744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15745 lt_prog_compiler_wl_F77='-Wl,'
15746 lt_prog_compiler_pic_F77='-KPIC'
15747 lt_prog_compiler_static_F77='-Bstatic'
15751 if test -d /usr/nec ;then
15752 lt_prog_compiler_pic_F77='-Kconform_pic'
15753 lt_prog_compiler_static_F77='-Bstatic'
15758 lt_prog_compiler_wl_F77='-Wl,'
15759 lt_prog_compiler_can_build_shared_F77=no
15763 lt_prog_compiler_pic_F77='-pic'
15764 lt_prog_compiler_static_F77='-Bstatic'
15768 lt_prog_compiler_can_build_shared_F77=no
15773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15774 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15777 # Check to make sure the PIC flag actually works.
15779 if test -n "$lt_prog_compiler_pic_F77"; then
15781 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15783 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 lt_prog_compiler_pic_works_F77=no
15787 ac_outfile=conftest.$ac_objext
15788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15789 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15790 # Insert the option either (1) after the last *FLAGS variable, or
15791 # (2) before a word containing "conftest.", or (3) at the end.
15792 # Note that $ac_compile itself does not contain backslashes and begins
15793 # with a dollar sign (not a hyphen), so the echo should work correctly.
15794 # The option is referenced via a variable to avoid confusing sed.
15795 lt_compile=`echo "$ac_compile" | $SED \
15796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798 -e 's:$: $lt_compiler_flag:'`
15799 (eval echo "\"\$as_me:15799: $lt_compile\"" >&5)
15800 (eval "$lt_compile" 2>conftest.err)
15802 cat conftest.err >&5
15803 echo "$as_me:15803: \$? = $ac_status" >&5
15804 if (exit $ac_status) && test -s "$ac_outfile"; then
15805 # The compiler can only warn and ignore the option if not recognized
15806 # So say no if there are warnings other than the usual output.
15807 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15808 $SED '/^$/d' conftest.err >conftest.er2
15809 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15810 lt_prog_compiler_pic_works_F77=yes
15816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15817 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15819 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15820 case $lt_prog_compiler_pic_F77 in
15822 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15825 lt_prog_compiler_pic_F77=
15826 lt_prog_compiler_can_build_shared_F77=no
15831 # For platforms which do not support PIC, -DPIC is meaningless:
15833 lt_prog_compiler_pic_F77=
15836 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15840 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15842 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 lt_cv_prog_compiler_c_o_F77=no
15846 $rm -r conftest 2>/dev/null
15850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15852 lt_compiler_flag="-o out/conftest2.$ac_objext"
15853 # Insert the option either (1) after the last *FLAGS variable, or
15854 # (2) before a word containing "conftest.", or (3) at the end.
15855 # Note that $ac_compile itself does not contain backslashes and begins
15856 # with a dollar sign (not a hyphen), so the echo should work correctly.
15857 lt_compile=`echo "$ac_compile" | $SED \
15858 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15860 -e 's:$: $lt_compiler_flag:'`
15861 (eval echo "\"\$as_me:15861: $lt_compile\"" >&5)
15862 (eval "$lt_compile" 2>out/conftest.err)
15864 cat out/conftest.err >&5
15865 echo "$as_me:15865: \$? = $ac_status" >&5
15866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15868 # The compiler can only warn and ignore the option if not recognized
15869 # So say no if there are warnings
15870 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15871 $SED '/^$/d' out/conftest.err >out/conftest.er2
15872 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15873 lt_cv_prog_compiler_c_o_F77=yes
15878 # SGI C++ compiler will create directory out/ii_files/ for
15879 # template instantiation
15880 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15881 $rm out/* && rmdir out
15887 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15888 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15891 hard_links="nottested"
15892 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15893 # do not overwrite the value of need_locks provided by the user
15894 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15895 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15900 ln conftest.a conftest.b 2>&5 || hard_links=no
15901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902 echo "$as_me:$LINENO: result: $hard_links" >&5
15903 echo "${ECHO_T}$hard_links" >&6
15904 if test "$hard_links" = no; then
15905 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15906 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15913 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15914 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15917 allow_undefined_flag_F77=
15918 enable_shared_with_static_runtimes_F77=no
15920 archive_expsym_cmds_F77=
15921 old_archive_From_new_cmds_F77=
15922 old_archive_from_expsyms_cmds_F77=
15923 export_dynamic_flag_spec_F77=
15924 whole_archive_flag_spec_F77=
15925 thread_safe_flag_spec_F77=
15926 hardcode_libdir_flag_spec_F77=
15927 hardcode_libdir_flag_spec_ld_F77=
15928 hardcode_libdir_separator_F77=
15929 hardcode_direct_F77=no
15930 hardcode_minus_L_F77=no
15931 hardcode_shlibpath_var_F77=unsupported
15932 link_all_deplibs_F77=unknown
15933 hardcode_automatic_F77=no
15935 module_expsym_cmds_F77=
15936 always_export_symbols_F77=no
15937 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15938 # include_expsyms should be a list of space-separated symbols to be *always*
15939 # included in the symbol list
15940 include_expsyms_F77=
15941 # exclude_expsyms can be an extended regexp of symbols to exclude
15942 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15943 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15944 # as well as any symbol that contains `d'.
15945 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15946 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15947 # platforms (ab)use it in PIC code, but their linkers get confused if
15948 # the symbol is explicitly referenced. Since portable code cannot
15949 # rely on this symbol name, it's probably fine to never include it in
15950 # preloaded symbol tables.
15951 extract_expsyms_cmds=
15952 # Just being paranoid about ensuring that cc_basename is set.
15953 for cc_temp in $compiler""; do
15955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15961 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15964 cygwin* | mingw* | pw32*)
15965 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15966 # When not using gcc, we currently assume that we are using
15967 # Microsoft Visual C++.
15968 if test "$GCC" != yes; then
15978 if test "$with_gnu_ld" = yes; then
15979 # If archive_cmds runs LD, not CC, wlarc should be empty
15982 # Set some defaults for GNU ld with shared library support. These
15983 # are reset later if shared libraries are not supported. Putting them
15984 # here allows them to be overridden if necessary.
15985 runpath_var=LD_RUN_PATH
15986 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15987 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15988 # ancient GNU ld didn't support --whole-archive et. al.
15989 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15990 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15992 whole_archive_flag_spec_F77=
15994 supports_anon_versioning=no
15995 case `$LD -v 2>/dev/null` in
15996 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15997 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15998 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15999 *\ 2.11.*) ;; # other 2.11 versions
16000 *) supports_anon_versioning=yes ;;
16003 # See if GNU ld supports shared libraries.
16005 aix3* | aix4* | aix5*)
16006 # On AIX/PPC, the GNU linker is very broken
16007 if test "$host_cpu" != ia64; then
16011 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16012 *** to be unable to reliably create shared libraries on AIX.
16013 *** Therefore, libtool is disabling shared libraries support. If you
16014 *** really care for shared libraries, you may want to modify your PATH
16015 *** so that a non-GNU linker is found, and then restart.
16022 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16023 hardcode_libdir_flag_spec_F77='-L$libdir'
16024 hardcode_minus_L_F77=yes
16026 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16027 # that the semantics of dynamic libraries on AmigaOS, at least up
16028 # to version 4, is to share data among multiple programs linked
16029 # with the same dynamic library. Since this doesn't match the
16030 # behavior of shared libraries on other platforms, we can't use
16036 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16037 allow_undefined_flag_F77=unsupported
16038 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16039 # support --undefined. This deserves some investigation. FIXME
16040 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16046 cygwin* | mingw* | pw32*)
16047 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16048 # as there is no search path for DLLs.
16049 hardcode_libdir_flag_spec_F77='-L$libdir'
16050 allow_undefined_flag_F77=unsupported
16051 always_export_symbols_F77=no
16052 enable_shared_with_static_runtimes_F77=yes
16053 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16055 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16056 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16057 # If the export-symbols file already is a .def file (1st line
16058 # is EXPORTS), use it as is; otherwise, prepend...
16059 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16060 cp $export_symbols $output_objdir/$soname.def;
16062 echo EXPORTS > $output_objdir/$soname.def;
16063 cat $export_symbols >> $output_objdir/$soname.def;
16065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16074 case $cc_basename,$host_cpu in
16075 pgcc*) # Portland Group C compiler
16076 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16077 tmp_addflag=' $pic_flag'
16079 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16080 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16081 tmp_addflag=' $pic_flag -Mnomain' ;;
16082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16083 tmp_addflag=' -i_dynamic' ;;
16084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16085 tmp_addflag=' -i_dynamic -nofor_main' ;;
16086 ifc* | ifort*) # Intel Fortran compiler
16087 tmp_addflag=' -nofor_main' ;;
16089 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 if test $supports_anon_versioning = yes; then
16092 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16094 $echo "local: *; };" >> $output_objdir/$libname.ver~
16095 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16104 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16107 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16113 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16118 *** create shared libraries on Solaris systems. Therefore, libtool
16119 *** is disabling shared libraries support. We urge you to upgrade GNU
16120 *** binutils to release 2.9.1 or newer. Another option is to modify
16121 *** your PATH or compiler configuration so that the native linker is
16122 *** used, and then restart.
16125 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16126 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16134 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_direct_F77=yes
16137 hardcode_shlibpath_var_F77=no
16141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16142 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16143 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16150 if test "$ld_shlibs_F77" = no; then
16152 hardcode_libdir_flag_spec_F77=
16153 export_dynamic_flag_spec_F77=
16154 whole_archive_flag_spec_F77=
16157 # PORTME fill in a description of your system's linker (not GNU ld)
16160 allow_undefined_flag_F77=unsupported
16161 always_export_symbols_F77=yes
16162 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16163 # Note: this linker hardcodes the directories in LIBPATH if there
16164 # are no directories specified by -L.
16165 hardcode_minus_L_F77=yes
16166 if test "$GCC" = yes && test -z "$link_static_flag"; then
16167 # Neither direct hardcoding nor static linking is supported with a
16169 hardcode_direct_F77=unsupported
16174 if test "$host_cpu" = ia64; then
16175 # On IA64, the linker does run time linking by default, so we don't
16176 # have to do anything special.
16177 aix_use_runtimelinking=no
16178 exp_sym_flag='-Bexport'
16181 # If we're using GNU nm, then we don't want the "-C" option.
16182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16183 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16184 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16186 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16188 aix_use_runtimelinking=no
16190 # Test if we are trying to use run time linking or normal
16191 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16192 # need to do runtime linking.
16193 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16194 for ld_flag in $LDFLAGS; do
16195 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16196 aix_use_runtimelinking=yes
16202 exp_sym_flag='-bexport'
16203 no_entry_flag='-bnoentry'
16206 # When large executables or shared objects are built, AIX ld can
16207 # have problems creating the table of contents. If linking a library
16208 # or program results in "error TOC overflow" add -mminimal-toc to
16209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16212 archive_cmds_F77=''
16213 hardcode_direct_F77=yes
16214 hardcode_libdir_separator_F77=':'
16215 link_all_deplibs_F77=yes
16217 if test "$GCC" = yes; then
16218 case $host_os in aix4.[012]|aix4.[012].*)
16219 # We only want to do this on AIX 4.2 and lower, the check
16220 # below for broken collect2 doesn't work under 4.3+
16221 collect2name=`${CC} -print-prog-name=collect2`
16222 if test -f "$collect2name" && \
16223 strings "$collect2name" | grep resolve_lib_name >/dev/null
16225 # We have reworked collect2
16226 hardcode_direct_F77=yes
16228 # We have old collect2
16229 hardcode_direct_F77=unsupported
16230 # It fails to find uninstalled libraries when the uninstalled
16231 # path is not listed in the libpath. Setting hardcode_minus_L
16232 # to unsupported forces relinking
16233 hardcode_minus_L_F77=yes
16234 hardcode_libdir_flag_spec_F77='-L$libdir'
16235 hardcode_libdir_separator_F77=
16238 shared_flag='-shared'
16239 if test "$aix_use_runtimelinking" = yes; then
16240 shared_flag="$shared_flag "'${wl}-G'
16244 if test "$host_cpu" = ia64; then
16245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16246 # chokes on -Wl,-G. The following line is correct:
16249 if test "$aix_use_runtimelinking" = yes; then
16250 shared_flag='${wl}-G'
16252 shared_flag='${wl}-bM:SRE'
16257 # It seems that -bexpall does not export symbols beginning with
16258 # underscore (_), so it is better to generate a list of symbols to export.
16259 always_export_symbols_F77=yes
16260 if test "$aix_use_runtimelinking" = yes; then
16261 # Warning - without using the other runtime loading flags (-brtl),
16262 # -berok will link without error, but may produce a broken library.
16263 allow_undefined_flag_F77='-berok'
16264 # Determine the default libpath from the value encoded in an empty executable.
16265 cat >conftest.$ac_ext <<_ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16272 (eval $ac_link) 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -z "$ac_f77_werror_flag"
16280 || test ! -s conftest.err'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; } &&
16286 { ac_try='test -s conftest$ac_exeext'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16295 # Check for a 64-bit object if we didn't find anything.
16296 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16303 rm -f conftest.err conftest.$ac_objext \
16304 conftest$ac_exeext conftest.$ac_ext
16305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16307 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16308 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16310 if test "$host_cpu" = ia64; then
16311 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16312 allow_undefined_flag_F77="-z nodefs"
16313 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16315 # Determine the default libpath from the value encoded in an empty executable.
16316 cat >conftest.$ac_ext <<_ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323 (eval $ac_link) 2>conftest.er1
16325 grep -v '^ *+' conftest.er1 >conftest.err
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_f77_werror_flag"
16331 || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest$ac_exeext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16346 # Check for a 64-bit object if we didn't find anything.
16347 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16354 rm -f conftest.err conftest.$ac_objext \
16355 conftest$ac_exeext conftest.$ac_ext
16356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16358 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16359 # Warning - without using the other run time loading flags,
16360 # -berok will link without error, but may produce a broken library.
16361 no_undefined_flag_F77=' ${wl}-bernotok'
16362 allow_undefined_flag_F77=' ${wl}-berok'
16363 # -bexpall does not export symbols beginning with underscore (_)
16364 always_export_symbols_F77=yes
16365 # Exported symbols can be pulled into shared objects from archives
16366 whole_archive_flag_spec_F77=' '
16367 archive_cmds_need_lc_F77=yes
16368 # This is similar to how AIX traditionally builds it's shared libraries.
16369 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16375 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16376 hardcode_libdir_flag_spec_F77='-L$libdir'
16377 hardcode_minus_L_F77=yes
16378 # see comment about different semantics on the GNU ld section
16383 export_dynamic_flag_spec_F77=-rdynamic
16386 cygwin* | mingw* | pw32*)
16387 # When not using gcc, we currently assume that we are using
16388 # Microsoft Visual C++.
16389 # hardcode_libdir_flag_spec is actually meaningless, as there is
16390 # no search path for DLLs.
16391 hardcode_libdir_flag_spec_F77=' '
16392 allow_undefined_flag_F77=unsupported
16393 # Tell ltmain to make .lib files, not .a files.
16395 # Tell ltmain to make .dll files, not .so files.
16397 # FIXME: Setting linknames here is a bad hack.
16398 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16399 # The linker will automatically build a .lib file if we build a DLL.
16400 old_archive_From_new_cmds_F77='true'
16401 # FIXME: Should let the user specify the lib program.
16402 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16403 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16404 enable_shared_with_static_runtimes_F77=yes
16407 darwin* | rhapsody*)
16409 rhapsody* | darwin1.[012])
16410 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16413 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16414 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16416 case ${MACOSX_DEPLOYMENT_TARGET} in
16418 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16421 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16427 archive_cmds_need_lc_F77=no
16428 hardcode_direct_F77=no
16429 hardcode_automatic_F77=yes
16430 hardcode_shlibpath_var_F77=unsupported
16431 whole_archive_flag_spec_F77=''
16432 link_all_deplibs_F77=yes
16433 if test "$GCC" = yes ; then
16434 output_verbose_link_cmd='echo'
16435 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16436 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16437 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16438 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16439 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16441 case $cc_basename in
16443 output_verbose_link_cmd='echo'
16444 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16445 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16447 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16448 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16458 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16459 hardcode_libdir_flag_spec_F77='-L$libdir'
16460 hardcode_shlibpath_var_F77=no
16467 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16468 # support. Future versions do this automatically, but an explicit c++rt0.o
16469 # does not break anything, and helps significantly (at the cost of a little
16472 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16473 hardcode_libdir_flag_spec_F77='-R$libdir'
16474 hardcode_direct_F77=yes
16475 hardcode_shlibpath_var_F77=no
16478 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16480 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16481 hardcode_direct_F77=yes
16482 hardcode_minus_L_F77=yes
16483 hardcode_shlibpath_var_F77=no
16486 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16487 freebsd* | kfreebsd*-gnu | dragonfly*)
16488 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16489 hardcode_libdir_flag_spec_F77='-R$libdir'
16490 hardcode_direct_F77=yes
16491 hardcode_shlibpath_var_F77=no
16495 if test "$GCC" = yes; then
16496 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16498 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16500 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16501 hardcode_libdir_separator_F77=:
16502 hardcode_direct_F77=yes
16504 # hardcode_minus_L: Not really in the search PATH,
16505 # but as the default location of the library.
16506 hardcode_minus_L_F77=yes
16507 export_dynamic_flag_spec_F77='${wl}-E'
16511 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16512 case "$host_cpu" in
16514 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16521 case "$host_cpu" in
16523 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16526 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16530 if test "$with_gnu_ld" = no; then
16531 case "$host_cpu" in
16533 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16534 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16535 hardcode_libdir_separator_F77=:
16536 hardcode_direct_F77=no
16537 hardcode_shlibpath_var_F77=no
16540 hardcode_libdir_flag_spec_F77='-L$libdir'
16541 hardcode_direct_F77=no
16542 hardcode_shlibpath_var_F77=no
16544 # hardcode_minus_L: Not really in the search PATH,
16545 # but as the default location of the library.
16546 hardcode_minus_L_F77=yes
16549 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16550 hardcode_libdir_separator_F77=:
16551 hardcode_direct_F77=yes
16552 export_dynamic_flag_spec_F77='${wl}-E'
16554 # hardcode_minus_L: Not really in the search PATH,
16555 # but as the default location of the library.
16556 hardcode_minus_L_F77=yes
16562 irix5* | irix6* | nonstopux*)
16563 if test "$GCC" = yes; then
16564 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16566 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16567 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16569 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16570 hardcode_libdir_separator_F77=:
16571 link_all_deplibs_F77=yes
16575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16576 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16578 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16580 hardcode_libdir_flag_spec_F77='-R$libdir'
16581 hardcode_direct_F77=yes
16582 hardcode_shlibpath_var_F77=no
16586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_direct_F77=yes
16588 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16589 hardcode_libdir_separator_F77=:
16590 hardcode_shlibpath_var_F77=no
16594 hardcode_direct_F77=yes
16595 hardcode_shlibpath_var_F77=no
16596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16597 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16598 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16600 export_dynamic_flag_spec_F77='${wl}-E'
16603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16604 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_libdir_flag_spec_F77='-R$libdir'
16608 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16616 hardcode_libdir_flag_spec_F77='-L$libdir'
16617 hardcode_minus_L_F77=yes
16618 allow_undefined_flag_F77=unsupported
16619 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16620 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16624 if test "$GCC" = yes; then
16625 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16626 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16628 allow_undefined_flag_F77=' -expect_unresolved \*'
16629 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16631 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16632 hardcode_libdir_separator_F77=:
16635 osf4* | osf5*) # as osf3* with the addition of -msym flag
16636 if test "$GCC" = yes; then
16637 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16638 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16639 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16641 allow_undefined_flag_F77=' -expect_unresolved \*'
16642 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16643 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16644 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16646 # Both c and cxx compiler support -rpath directly
16647 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16649 hardcode_libdir_separator_F77=:
16653 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_shlibpath_var_F77=no
16655 export_dynamic_flag_spec_F77='${wl}-Bexport'
16656 runpath_var=LD_RUN_PATH
16657 hardcode_runpath_var=yes
16661 no_undefined_flag_F77=' -z text'
16662 if test "$GCC" = yes; then
16664 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16666 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16669 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16671 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16673 hardcode_libdir_flag_spec_F77='-R$libdir'
16674 hardcode_shlibpath_var_F77=no
16676 solaris2.[0-5] | solaris2.[0-5].*) ;;
16678 # The compiler driver will combine linker options so we
16679 # cannot just pass the convience library names through
16680 # without $wl, iff we do not link with $LD.
16681 # Luckily, gcc supports the same syntax we need for Sun Studio.
16682 # Supported since Solaris 2.6 (maybe 2.5.1?)
16685 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16687 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16690 link_all_deplibs_F77=yes
16694 if test "x$host_vendor" = xsequent; then
16695 # Use $CC to link under sequent, because it throws in some extra .o
16696 # files that make .init and .fini sections work.
16697 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16699 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_libdir_flag_spec_F77='-L$libdir'
16702 hardcode_direct_F77=yes
16703 hardcode_minus_L_F77=yes
16704 hardcode_shlibpath_var_F77=no
16708 case $host_vendor in
16710 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct_F77=yes # is this really true???
16714 ## LD is ld it makes a PLAMLIB
16715 ## CC just makes a GrossModule.
16716 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16717 reload_cmds_F77='$CC -r -o $output$reload_objs'
16718 hardcode_direct_F77=no
16721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16725 runpath_var='LD_RUN_PATH'
16726 hardcode_shlibpath_var_F77=no
16730 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731 hardcode_shlibpath_var_F77=no
16732 export_dynamic_flag_spec_F77='-Bexport'
16736 if test -d /usr/nec; then
16737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738 hardcode_shlibpath_var_F77=no
16739 runpath_var=LD_RUN_PATH
16740 hardcode_runpath_var=yes
16746 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16747 hardcode_direct_F77=yes
16748 hardcode_minus_L_F77=no
16749 hardcode_shlibpath_var_F77=no
16750 hardcode_runpath_var=yes
16751 runpath_var=LD_RUN_PATH
16754 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16755 no_undefined_flag_F77='${wl}-z ${wl}text'
16756 if test "$GCC" = yes; then
16757 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16759 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16761 runpath_var='LD_RUN_PATH'
16762 hardcode_shlibpath_var_F77=no
16766 no_undefined_flag_F77=' -z text'
16767 # $CC -shared without GNU ld will not create a library from C++
16768 # object files and a static libstdc++, better avoid it by now
16769 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16772 hardcode_libdir_flag_spec_F77=
16773 hardcode_shlibpath_var_F77=no
16774 runpath_var='LD_RUN_PATH'
16778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_libdir_flag_spec_F77='-L$libdir'
16780 hardcode_shlibpath_var_F77=no
16789 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16790 echo "${ECHO_T}$ld_shlibs_F77" >&6
16791 test "$ld_shlibs_F77" = no && can_build_shared=no
16793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16794 if test "$GCC" = yes; then
16795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16799 # Do we need to explicitly link libc?
16801 case "x$archive_cmds_need_lc_F77" in
16803 # Assume -lc should be added
16804 archive_cmds_need_lc_F77=yes
16806 if test "$enable_shared" = yes && test "$GCC" = yes; then
16807 case $archive_cmds_F77 in
16809 # FIXME: we may have to deal with multi-command sequences.
16812 # Test whether the compiler implicitly links with -lc since on some
16813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16814 # to ld, don't add -lc before -lgcc.
16815 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } 2>conftest.err; then
16827 libobjs=conftest.$ac_objext
16829 wl=$lt_prog_compiler_wl_F77
16835 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16836 allow_undefined_flag_F77=
16837 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16838 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }
16843 archive_cmds_need_lc_F77=no
16845 archive_cmds_need_lc_F77=yes
16847 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16849 cat conftest.err 1>&5
16852 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16853 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16860 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16862 library_names_spec=
16863 libname_spec='lib$name'
16867 postuninstall_cmds=
16871 shlibpath_overrides_runpath=unknown
16873 dynamic_linker="$host_os ld.so"
16874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16875 if test "$GCC" = yes; then
16876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16877 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16878 # if the path contains ";" then we assume it to be the separator
16879 # otherwise default to the standard path separator (i.e. ":") - it is
16880 # assumed that no part of a normal pathname contains ";" but that should
16881 # okay in the real world where ";" in dirpaths is itself problematic.
16882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16889 need_lib_prefix=unknown
16890 hardcode_into_libs=no
16892 # when you set need_version to no, make sure it does not cause -set_version
16893 # flags to be left without arguments
16894 need_version=unknown
16899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16900 shlibpath_var=LIBPATH
16902 # AIX 3 has no versioning support, so we append a major version to the name.
16903 soname_spec='${libname}${release}${shared_ext}$major'
16910 hardcode_into_libs=yes
16911 if test "$host_cpu" = ia64; then
16912 # AIX 5 supports IA64
16913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16914 shlibpath_var=LD_LIBRARY_PATH
16916 # With GCC up to 2.95.x, collect2 would create an import file
16917 # for dependence libraries. The import file would start with
16918 # the line `#! .'. This would cause the generated library to
16919 # depend on `.', always an invalid library. This was fixed in
16920 # development snapshots of GCC prior to 3.0.
16922 aix4 | aix4.[01] | aix4.[01].*)
16923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16925 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16928 can_build_shared=no
16932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16933 # soname into executable. Probably we can add versioning support to
16934 # collect2, so additional links can be useful in future.
16935 if test "$aix_use_runtimelinking" = yes; then
16936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16937 # instead of lib<name>.a to let people know that these are not
16938 # typical AIX shared libraries.
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941 # We preserve .a as extension for shared libraries through AIX4.2
16942 # and later when we are not doing run time linking.
16943 library_names_spec='${libname}${release}.a $libname.a'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16946 shlibpath_var=LIBPATH
16951 library_names_spec='$libname.ixlibrary $libname.a'
16952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16953 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16957 library_names_spec='${libname}${shared_ext}'
16958 dynamic_linker="$host_os ld.so"
16959 shlibpath_var=LIBRARY_PATH
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16971 # the default ld.so.conf also contains /usr/contrib/lib and
16972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16973 # libtool to hard-code these into programs
16976 cygwin* | mingw* | pw32*)
16977 version_type=windows
16982 case $GCC,$host_os in
16983 yes,cygwin* | yes,mingw* | yes,pw32*)
16984 library_names_spec='$libname.dll.a'
16985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16986 postinstall_cmds='base_file=`basename \${file}`~
16987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16988 dldir=$destdir/`dirname \$dlpath`~
16989 test -d \$dldir || mkdir -p \$dldir~
16990 $install_prog $dir/$dlname \$dldir/$dlname'
16991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16992 dlpath=$dir/\$dldll~
16994 shlibpath_overrides_runpath=yes
16998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17000 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17003 # MinGW DLLs use traditional 'lib' prefix
17004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17007 # It is most probably a Windows format PATH printed by
17008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17009 # path with ; separators, and with drive letters. We can handle the
17010 # drive letters (cygwin fileutils understands them), so leave them,
17011 # especially as we might pass files found there to a mingw objdump,
17012 # which wouldn't understand a cygwinified path. Ahh.
17013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17019 # pw32 DLLs use 'pw' prefix rather than 'lib'
17020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17029 dynamic_linker='Win32 ld.exe'
17030 # FIXME: first we should search . and the directory the executable is in
17034 darwin* | rhapsody*)
17035 dynamic_linker="$host_os dyld"
17036 version_type=darwin
17039 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17040 soname_spec='${libname}${release}${major}$shared_ext'
17041 shlibpath_overrides_runpath=yes
17042 shlibpath_var=DYLD_LIBRARY_PATH
17043 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17044 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17045 if test "$GCC" = yes; then
17046 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17048 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17050 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17058 soname_spec='${libname}${release}${shared_ext}$major'
17059 shlibpath_var=LD_LIBRARY_PATH
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=no
17074 hardcode_into_libs=yes
17075 dynamic_linker='GNU ld.so'
17078 freebsd* | dragonfly*)
17079 # DragonFly does not have aout. When/if they implement a new
17080 # versioning mechanism, adjust this.
17081 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17082 version_type=freebsd-$objformat
17083 case $version_type in
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17094 shlibpath_var=LD_LIBRARY_PATH
17097 shlibpath_overrides_runpath=yes
17099 freebsd3.[01]* | freebsdelf3.[01]*)
17100 shlibpath_overrides_runpath=yes
17101 hardcode_into_libs=yes
17104 shlibpath_overrides_runpath=no
17105 hardcode_into_libs=yes
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 shlibpath_var=LD_LIBRARY_PATH
17117 hardcode_into_libs=yes
17120 hpux9* | hpux10* | hpux11*)
17121 # Give a soname corresponding to the major version so that dld.sl refuses to
17122 # link against other versions.
17126 case "$host_cpu" in
17129 hardcode_into_libs=yes
17130 dynamic_linker="$host_os dld.so"
17131 shlibpath_var=LD_LIBRARY_PATH
17132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 if test "X$HPUX_IA64_MODE" = X32; then
17136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17144 hardcode_into_libs=yes
17145 dynamic_linker="$host_os dld.sl"
17146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17155 dynamic_linker="$host_os dld.sl"
17156 shlibpath_var=SHLIB_PATH
17157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17163 postinstall_cmds='chmod 555 $lib'
17166 irix5* | irix6* | nonstopux*)
17168 nonstopux*) version_type=nonstopux ;;
17170 if test "$lt_cv_prog_gnu_ld" = yes; then
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17181 irix5* | nonstopux*)
17182 libsuff= shlibsuff=
17185 case $LD in # libtool.m4 will add one of these switches to LD
17186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17187 libsuff= shlibsuff= libmagic=32-bit;;
17188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17189 libsuff=32 shlibsuff=N32 libmagic=N32;;
17190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17192 *) libsuff= shlibsuff= libmagic=never-match;;
17196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17197 shlibpath_overrides_runpath=no
17198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17200 hardcode_into_libs=yes
17203 # No shared lib support for Linux oldld, aout, or coff.
17204 linux*oldld* | linux*aout* | linux*coff*)
17208 # This must be Linux ELF.
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=no
17218 # This implies no fast_install, which is unacceptable.
17219 # Some rework will be needed to allow for fast_install
17220 # before this can be enabled.
17221 hardcode_into_libs=yes
17223 # Append ld.so.conf contents to the search path
17224 if test -f /etc/ld.so.conf; then
17225 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17229 # We used to test for /lib/ld.so.1 and disable shared libraries on
17230 # powerpc, because MkLinux only supported shared libraries with the
17231 # GNU dynamic linker. Since this was broken with cross compilers,
17232 # most powerpc-linux boxes support dynamic linking these days and
17233 # people can always --disable-shared, the test was removed, and we
17234 # assume the GNU/Linux dynamic linker is in use.
17235 dynamic_linker='GNU/Linux ld.so'
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17243 soname_spec='${libname}${release}${shared_ext}$major'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=no
17246 hardcode_into_libs=yes
17247 dynamic_linker='GNU ld.so'
17254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17257 dynamic_linker='NetBSD (a.out) ld.so'
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 dynamic_linker='NetBSD ld.elf_so'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17265 hardcode_into_libs=yes
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=yes
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes
17288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17291 *) need_version=no ;;
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17295 shlibpath_var=LD_LIBRARY_PATH
17296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17298 openbsd2.[89] | openbsd2.[89].*)
17299 shlibpath_overrides_runpath=no
17302 shlibpath_overrides_runpath=yes
17306 shlibpath_overrides_runpath=yes
17311 libname_spec='$name'
17314 library_names_spec='$libname${shared_ext} $libname.a'
17315 dynamic_linker='OS/2 ld.exe'
17316 shlibpath_var=LIBPATH
17319 osf3* | osf4* | osf5*)
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325 shlibpath_var=LD_LIBRARY_PATH
17326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334 shlibpath_var=LD_LIBRARY_PATH
17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342 soname_spec='${libname}${release}${shared_ext}$major'
17343 shlibpath_var=LD_LIBRARY_PATH
17344 shlibpath_overrides_runpath=yes
17345 hardcode_into_libs=yes
17346 # ldd complains unless libraries are executable
17347 postinstall_cmds='chmod +x $lib'
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 shlibpath_overrides_runpath=yes
17356 if test "$with_gnu_ld" = yes; then
17362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 case $host_vendor in
17369 shlibpath_overrides_runpath=no
17371 export_dynamic_flag_spec='${wl}-Blargedynsym'
17372 runpath_var=LD_RUN_PATH
17380 shlibpath_overrides_runpath=no
17381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17387 if test -d /usr/nec ;then
17389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17390 soname_spec='$libname${shared_ext}.$major'
17391 shlibpath_var=LD_LIBRARY_PATH
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 shlibpath_var=LD_LIBRARY_PATH
17406 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17407 echo "${ECHO_T}$dynamic_linker" >&6
17408 test "$dynamic_linker" = no && can_build_shared=no
17410 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17411 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17412 hardcode_action_F77=
17413 if test -n "$hardcode_libdir_flag_spec_F77" || \
17414 test -n "$runpath_var_F77" || \
17415 test "X$hardcode_automatic_F77" = "Xyes" ; then
17417 # We can hardcode non-existant directories.
17418 if test "$hardcode_direct_F77" != no &&
17419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17420 # have to relink, otherwise we might link with an installed library
17421 # when we should be linking with a yet-to-be-installed one
17422 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17423 test "$hardcode_minus_L_F77" != no; then
17424 # Linking always hardcodes the temporary library directory.
17425 hardcode_action_F77=relink
17427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17428 hardcode_action_F77=immediate
17431 # We cannot hardcode anything, or else we can only hardcode existing
17433 hardcode_action_F77=unsupported
17435 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17436 echo "${ECHO_T}$hardcode_action_F77" >&6
17438 if test "$hardcode_action_F77" = relink; then
17439 # Fast installation is not supported
17440 enable_fast_install=no
17441 elif test "$shlibpath_overrides_runpath" = yes ||
17442 test "$enable_shared" = no; then
17443 # Fast installation is not necessary
17444 enable_fast_install=needless
17449 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17450 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17451 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17452 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17453 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17454 echo "$as_me:$LINENO: result: yes" >&5
17455 echo "${ECHO_T}yes" >&6
17457 # FIXME - insert some real tests, host_os isn't really good enough
17460 if test -n "$STRIP" ; then
17461 striplib="$STRIP -x"
17462 echo "$as_me:$LINENO: result: yes" >&5
17463 echo "${ECHO_T}yes" >&6
17465 echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6
17470 echo "$as_me:$LINENO: result: no" >&5
17471 echo "${ECHO_T}no" >&6
17478 # The else clause should only fire when bootstrapping the
17479 # libtool distribution, otherwise you forgot to ship ltmain.sh
17480 # with your package, and you will get complaints that there are
17481 # no rules to generate ltmain.sh.
17482 if test -f "$ltmain"; then
17483 # See if we are running on zsh, and set the options which allow our commands through
17484 # without removal of \ escapes.
17485 if test -n "${ZSH_VERSION+set}" ; then
17486 setopt NO_GLOB_SUBST
17488 # Now quote all the things that may contain metacharacters while being
17489 # careful not to overquote the AC_SUBSTed values. We take copies of the
17490 # variables and quote the copies for generation of the libtool script.
17491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17495 deplibs_check_method reload_flag reload_cmds need_locks \
17496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17497 lt_cv_sys_global_symbol_to_c_name_address \
17498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17499 old_postinstall_cmds old_postuninstall_cmds \
17503 lt_prog_compiler_wl_F77 \
17504 lt_prog_compiler_pic_F77 \
17505 lt_prog_compiler_static_F77 \
17506 lt_prog_compiler_no_builtin_flag_F77 \
17507 export_dynamic_flag_spec_F77 \
17508 thread_safe_flag_spec_F77 \
17509 whole_archive_flag_spec_F77 \
17510 enable_shared_with_static_runtimes_F77 \
17511 old_archive_cmds_F77 \
17512 old_archive_from_new_cmds_F77 \
17513 predep_objects_F77 \
17514 postdep_objects_F77 \
17517 compiler_lib_search_path_F77 \
17519 archive_expsym_cmds_F77 \
17520 postinstall_cmds_F77 \
17521 postuninstall_cmds_F77 \
17522 old_archive_from_expsyms_cmds_F77 \
17523 allow_undefined_flag_F77 \
17524 no_undefined_flag_F77 \
17525 export_symbols_cmds_F77 \
17526 hardcode_libdir_flag_spec_F77 \
17527 hardcode_libdir_flag_spec_ld_F77 \
17528 hardcode_libdir_separator_F77 \
17529 hardcode_automatic_F77 \
17531 module_expsym_cmds_F77 \
17532 lt_cv_prog_compiler_c_o_F77 \
17533 exclude_expsyms_F77 \
17534 include_expsyms_F77; do
17537 old_archive_cmds_F77 | \
17538 old_archive_from_new_cmds_F77 | \
17539 archive_cmds_F77 | \
17540 archive_expsym_cmds_F77 | \
17541 module_cmds_F77 | \
17542 module_expsym_cmds_F77 | \
17543 old_archive_from_expsyms_cmds_F77 | \
17544 export_symbols_cmds_F77 | \
17545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17546 postinstall_cmds | postuninstall_cmds | \
17547 old_postinstall_cmds | old_postuninstall_cmds | \
17548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17549 # Double-quote double-evaled strings.
17550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17559 *'\$0 --fallback-echo"')
17560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17566 cat <<__EOF__ >> "$cfgfile"
17567 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17571 # Shell to use when invoking shell scripts.
17574 # Whether or not to build shared libraries.
17575 build_libtool_libs=$enable_shared
17577 # Whether or not to build static libraries.
17578 build_old_libs=$enable_static
17580 # Whether or not to add -lc for building shared libraries.
17581 build_libtool_need_lc=$archive_cmds_need_lc_F77
17583 # Whether or not to disallow shared libs when runtime libs are static
17584 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17586 # Whether or not to optimize for fast installation.
17587 fast_install=$enable_fast_install
17590 host_alias=$host_alias
17594 # The build system.
17595 build_alias=$build_alias
17599 # An echo program that does not interpret backslashes.
17604 AR_FLAGS=$lt_AR_FLAGS
17609 # A language-specific compiler.
17610 CC=$lt_compiler_F77
17612 # Is the compiler the GNU C compiler?
17618 # The linker used to build libraries.
17621 # Whether we need hard or soft links.
17624 # A BSD-compatible nm program.
17627 # A symbol stripping program
17630 # Used to examine libraries when file_magic_cmd begins "file"
17631 MAGIC_CMD=$MAGIC_CMD
17633 # Used on cygwin: DLL creation program.
17636 # Used on cygwin: object dumper.
17639 # Used on cygwin: assembler.
17642 # The name of the directory that contains temporary libtool files.
17645 # How to create reloadable object files.
17646 reload_flag=$lt_reload_flag
17647 reload_cmds=$lt_reload_cmds
17649 # How to pass a linker flag through the compiler.
17650 wl=$lt_lt_prog_compiler_wl_F77
17652 # Object file suffix (normally "o").
17653 objext="$ac_objext"
17655 # Old archive suffix (normally "a").
17658 # Shared library suffix (normally ".so").
17659 shrext_cmds='$shrext_cmds'
17661 # Executable file suffix (normally "").
17664 # Additional compiler flags for building library objects.
17665 pic_flag=$lt_lt_prog_compiler_pic_F77
17668 # What is the maximum length of a command?
17669 max_cmd_len=$lt_cv_sys_max_cmd_len
17671 # Does compiler simultaneously support -c and -o options?
17672 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17674 # Must we lock files when doing compilation?
17675 need_locks=$lt_need_locks
17677 # Do we need the lib prefix for modules?
17678 need_lib_prefix=$need_lib_prefix
17680 # Do we need a version for libraries?
17681 need_version=$need_version
17683 # Whether dlopen is supported.
17684 dlopen_support=$enable_dlopen
17686 # Whether dlopen of programs is supported.
17687 dlopen_self=$enable_dlopen_self
17689 # Whether dlopen of statically linked programs is supported.
17690 dlopen_self_static=$enable_dlopen_self_static
17692 # Compiler flag to prevent dynamic linking.
17693 link_static_flag=$lt_lt_prog_compiler_static_F77
17695 # Compiler flag to turn off builtin functions.
17696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17698 # Compiler flag to allow reflexive dlopens.
17699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17701 # Compiler flag to generate shared objects directly from archives.
17702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17704 # Compiler flag to generate thread-safe objects.
17705 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17707 # Library versioning type.
17708 version_type=$version_type
17710 # Format of library name prefix.
17711 libname_spec=$lt_libname_spec
17713 # List of archive names. First name is the real one, the rest are links.
17714 # The last name is the one that the linker finds with -lNAME.
17715 library_names_spec=$lt_library_names_spec
17717 # The coded name of the library, if different from the real name.
17718 soname_spec=$lt_soname_spec
17720 # Commands used to build and install an old-style archive.
17722 old_archive_cmds=$lt_old_archive_cmds_F77
17723 old_postinstall_cmds=$lt_old_postinstall_cmds
17724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17726 # Create an old-style archive from a shared archive.
17727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17729 # Create a temporary old-style archive to link instead of a shared archive.
17730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17732 # Commands used to build and install a shared archive.
17733 archive_cmds=$lt_archive_cmds_F77
17734 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17735 postinstall_cmds=$lt_postinstall_cmds
17736 postuninstall_cmds=$lt_postuninstall_cmds
17738 # Commands used to build a loadable module (assumed same as above if empty)
17739 module_cmds=$lt_module_cmds_F77
17740 module_expsym_cmds=$lt_module_expsym_cmds_F77
17742 # Commands to strip libraries.
17743 old_striplib=$lt_old_striplib
17744 striplib=$lt_striplib
17746 # Dependencies to place before the objects being linked to create a
17748 predep_objects=$lt_predep_objects_F77
17750 # Dependencies to place after the objects being linked to create a
17752 postdep_objects=$lt_postdep_objects_F77
17754 # Dependencies to place before the objects being linked to create a
17756 predeps=$lt_predeps_F77
17758 # Dependencies to place after the objects being linked to create a
17760 postdeps=$lt_postdeps_F77
17762 # The library search path used internally by the compiler when linking
17763 # a shared library.
17764 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17766 # Method to check whether dependent libraries are shared objects.
17767 deplibs_check_method=$lt_deplibs_check_method
17769 # Command to use when deplibs_check_method == file_magic.
17770 file_magic_cmd=$lt_file_magic_cmd
17772 # Flag that allows shared libraries with undefined symbols to be built.
17773 allow_undefined_flag=$lt_allow_undefined_flag_F77
17775 # Flag that forces no undefined symbols.
17776 no_undefined_flag=$lt_no_undefined_flag_F77
17778 # Commands used to finish a libtool library installation in a directory.
17779 finish_cmds=$lt_finish_cmds
17781 # Same as above, but a single script fragment to be evaled but not shown.
17782 finish_eval=$lt_finish_eval
17784 # Take the output of nm and produce a listing of raw symbols and C names.
17785 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17787 # Transform the output of nm in a proper C declaration
17788 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17790 # Transform the output of nm in a C name address pair
17791 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17793 # This is the shared library runtime path variable.
17794 runpath_var=$runpath_var
17796 # This is the shared library path variable.
17797 shlibpath_var=$shlibpath_var
17799 # Is shlibpath searched before the hard-coded library search path?
17800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17802 # How to hardcode a shared library path into an executable.
17803 hardcode_action=$hardcode_action_F77
17805 # Whether we should hardcode library paths into libraries.
17806 hardcode_into_libs=$hardcode_into_libs
17808 # Flag to hardcode \$libdir into a binary during linking.
17809 # This must work even if \$libdir does not exist.
17810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17812 # If ld is used when linking, flag to hardcode \$libdir into
17813 # a binary during linking. This must work even if \$libdir does
17815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17817 # Whether we need a single -rpath flag with a separated argument.
17818 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17820 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17821 # resulting binary.
17822 hardcode_direct=$hardcode_direct_F77
17824 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17825 # resulting binary.
17826 hardcode_minus_L=$hardcode_minus_L_F77
17828 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17829 # the resulting binary.
17830 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17832 # Set to yes if building a shared library automatically hardcodes DIR into the library
17833 # and all subsequent libraries and executables linked against it.
17834 hardcode_automatic=$hardcode_automatic_F77
17836 # Variables whose values should be saved in libtool wrapper scripts and
17837 # restored at relink time.
17838 variables_saved_for_relink="$variables_saved_for_relink"
17840 # Whether libtool must link a program against all its dependency libraries.
17841 link_all_deplibs=$link_all_deplibs_F77
17843 # Compile-time system search path for libraries
17844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17846 # Run-time system search path for libraries
17847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17849 # Fix the shell variable \$srcfile for the compiler.
17850 fix_srcfile_path="$fix_srcfile_path_F77"
17852 # Set to yes if exported symbols are required.
17853 always_export_symbols=$always_export_symbols_F77
17855 # The commands to list exported symbols.
17856 export_symbols_cmds=$lt_export_symbols_cmds_F77
17858 # The commands to extract the exported symbol list from a shared archive.
17859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17861 # Symbols that should not be listed in the preloaded symbols.
17862 exclude_expsyms=$lt_exclude_expsyms_F77
17864 # Symbols that must always be exported.
17865 include_expsyms=$lt_include_expsyms_F77
17867 # ### END LIBTOOL TAG CONFIG: $tagname
17873 # If there is no Makefile yet, we rely on a make rule to execute
17874 # `config.status --recheck' to rerun these tests and create the
17875 # libtool script then.
17876 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17877 if test -f "$ltmain_in"; then
17878 test -f Makefile && make "$ltmain"
17884 ac_cpp='$CPP $CPPFLAGS'
17885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17897 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17901 # Source file extension for Java test sources.
17904 # Object file extension for compiled Java test sources.
17908 # Code to be used in simple compile tests
17909 lt_simple_compile_test_code="class foo {}\n"
17911 # Code to be used in simple link tests
17912 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17916 # If no C compiler was specified, use CC.
17919 # Allow CC to be a program name with arguments.
17923 # save warnings/boilerplate of simple test code
17924 ac_outfile=conftest.$ac_objext
17925 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17927 _lt_compiler_boilerplate=`cat conftest.err`
17930 ac_outfile=conftest.$ac_objext
17931 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17933 _lt_linker_boilerplate=`cat conftest.err`
17937 # Allow CC to be a program name with arguments.
17942 for cc_temp in $compiler""; do
17944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17953 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17954 archive_cmds_need_lc_GCJ=no
17956 old_archive_cmds_GCJ=$old_archive_cmds
17959 lt_prog_compiler_no_builtin_flag_GCJ=
17961 if test "$GCC" = yes; then
17962 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17965 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17966 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 lt_cv_prog_compiler_rtti_exceptions=no
17971 ac_outfile=conftest.$ac_objext
17972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17973 lt_compiler_flag="-fno-rtti -fno-exceptions"
17974 # Insert the option either (1) after the last *FLAGS variable, or
17975 # (2) before a word containing "conftest.", or (3) at the end.
17976 # Note that $ac_compile itself does not contain backslashes and begins
17977 # with a dollar sign (not a hyphen), so the echo should work correctly.
17978 # The option is referenced via a variable to avoid confusing sed.
17979 lt_compile=`echo "$ac_compile" | $SED \
17980 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17982 -e 's:$: $lt_compiler_flag:'`
17983 (eval echo "\"\$as_me:17983: $lt_compile\"" >&5)
17984 (eval "$lt_compile" 2>conftest.err)
17986 cat conftest.err >&5
17987 echo "$as_me:17987: \$? = $ac_status" >&5
17988 if (exit $ac_status) && test -s "$ac_outfile"; then
17989 # The compiler can only warn and ignore the option if not recognized
17990 # So say no if there are warnings other than the usual output.
17991 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17992 $SED '/^$/d' conftest.err >conftest.er2
17993 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17994 lt_cv_prog_compiler_rtti_exceptions=yes
18000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18001 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18004 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18011 lt_prog_compiler_wl_GCJ=
18012 lt_prog_compiler_pic_GCJ=
18013 lt_prog_compiler_static_GCJ=
18015 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18016 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18018 if test "$GCC" = yes; then
18019 lt_prog_compiler_wl_GCJ='-Wl,'
18020 lt_prog_compiler_static_GCJ='-static'
18024 # All AIX code is PIC.
18025 if test "$host_cpu" = ia64; then
18026 # AIX 5 now supports IA64 processor
18027 lt_prog_compiler_static_GCJ='-Bstatic'
18032 # FIXME: we need at least 68020 code to build shared libraries, but
18033 # adding the `-m68020' flag to GCC prevents building anything better,
18035 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18038 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18039 # PIC is the default for these OSes.
18042 mingw* | pw32* | os2*)
18043 # This hack is so that the source file can tell whether it is being
18044 # built for inclusion in a dll (and should export symbols for example).
18045 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18048 darwin* | rhapsody*)
18049 # PIC is the default on this platform
18050 # Common symbols not allowed in MH_DYLIB files
18051 lt_prog_compiler_pic_GCJ='-fno-common'
18055 # Just because we use GCC doesn't mean we suddenly get shared libraries
18056 # on systems that don't support them.
18057 lt_prog_compiler_can_build_shared_GCJ=no
18062 if test -d /usr/nec; then
18063 lt_prog_compiler_pic_GCJ=-Kconform_pic
18068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18069 # not for PA HP-UX.
18070 case "$host_cpu" in
18075 lt_prog_compiler_pic_GCJ='-fPIC'
18081 lt_prog_compiler_pic_GCJ='-fPIC'
18085 # PORTME Check for flag to pass linker flags through the system compiler.
18088 lt_prog_compiler_wl_GCJ='-Wl,'
18089 if test "$host_cpu" = ia64; then
18090 # AIX 5 now supports IA64 processor
18091 lt_prog_compiler_static_GCJ='-Bstatic'
18093 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18097 # PIC is the default on this platform
18098 # Common symbols not allowed in MH_DYLIB files
18099 case $cc_basename in
18101 lt_prog_compiler_pic_GCJ='-qnocommon'
18102 lt_prog_compiler_wl_GCJ='-Wl,'
18107 mingw* | pw32* | os2*)
18108 # This hack is so that the source file can tell whether it is being
18109 # built for inclusion in a dll (and should export symbols for example).
18110 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18113 hpux9* | hpux10* | hpux11*)
18114 lt_prog_compiler_wl_GCJ='-Wl,'
18115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18116 # not for PA HP-UX.
18117 case "$host_cpu" in
18122 lt_prog_compiler_pic_GCJ='+Z'
18125 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18126 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18129 irix5* | irix6* | nonstopux*)
18130 lt_prog_compiler_wl_GCJ='-Wl,'
18131 # PIC (with -KPIC) is the default.
18132 lt_prog_compiler_static_GCJ='-non_shared'
18136 lt_prog_compiler_pic_GCJ='-KPIC'
18137 lt_prog_compiler_static_GCJ='-Bstatic'
18141 case $cc_basename in
18143 lt_prog_compiler_wl_GCJ='-Wl,'
18144 lt_prog_compiler_pic_GCJ='-KPIC'
18145 lt_prog_compiler_static_GCJ='-static'
18147 pgcc* | pgf77* | pgf90*)
18148 # Portland Group compilers (*not* the Pentium gcc compiler,
18149 # which looks to be a dead project)
18150 lt_prog_compiler_wl_GCJ='-Wl,'
18151 lt_prog_compiler_pic_GCJ='-fpic'
18152 lt_prog_compiler_static_GCJ='-static'
18155 lt_prog_compiler_wl_GCJ='-Wl,'
18156 # All Alpha code is PIC.
18157 lt_prog_compiler_static_GCJ='-non_shared'
18162 osf3* | osf4* | osf5*)
18163 lt_prog_compiler_wl_GCJ='-Wl,'
18164 # All OSF/1 code is PIC.
18165 lt_prog_compiler_static_GCJ='-non_shared'
18169 lt_prog_compiler_pic_GCJ='-Kpic'
18170 lt_prog_compiler_static_GCJ='-dn'
18174 lt_prog_compiler_pic_GCJ='-KPIC'
18175 lt_prog_compiler_static_GCJ='-Bstatic'
18176 case $cc_basename in
18177 f77* | f90* | f95*)
18178 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18180 lt_prog_compiler_wl_GCJ='-Wl,';;
18185 lt_prog_compiler_wl_GCJ='-Qoption ld '
18186 lt_prog_compiler_pic_GCJ='-PIC'
18187 lt_prog_compiler_static_GCJ='-Bstatic'
18190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18191 lt_prog_compiler_wl_GCJ='-Wl,'
18192 lt_prog_compiler_pic_GCJ='-KPIC'
18193 lt_prog_compiler_static_GCJ='-Bstatic'
18197 if test -d /usr/nec ;then
18198 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18199 lt_prog_compiler_static_GCJ='-Bstatic'
18204 lt_prog_compiler_wl_GCJ='-Wl,'
18205 lt_prog_compiler_can_build_shared_GCJ=no
18209 lt_prog_compiler_pic_GCJ='-pic'
18210 lt_prog_compiler_static_GCJ='-Bstatic'
18214 lt_prog_compiler_can_build_shared_GCJ=no
18219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18220 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18223 # Check to make sure the PIC flag actually works.
18225 if test -n "$lt_prog_compiler_pic_GCJ"; then
18227 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18229 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 lt_prog_compiler_pic_works_GCJ=no
18233 ac_outfile=conftest.$ac_objext
18234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18235 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18236 # Insert the option either (1) after the last *FLAGS variable, or
18237 # (2) before a word containing "conftest.", or (3) at the end.
18238 # Note that $ac_compile itself does not contain backslashes and begins
18239 # with a dollar sign (not a hyphen), so the echo should work correctly.
18240 # The option is referenced via a variable to avoid confusing sed.
18241 lt_compile=`echo "$ac_compile" | $SED \
18242 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18244 -e 's:$: $lt_compiler_flag:'`
18245 (eval echo "\"\$as_me:18245: $lt_compile\"" >&5)
18246 (eval "$lt_compile" 2>conftest.err)
18248 cat conftest.err >&5
18249 echo "$as_me:18249: \$? = $ac_status" >&5
18250 if (exit $ac_status) && test -s "$ac_outfile"; then
18251 # The compiler can only warn and ignore the option if not recognized
18252 # So say no if there are warnings other than the usual output.
18253 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18254 $SED '/^$/d' conftest.err >conftest.er2
18255 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18256 lt_prog_compiler_pic_works_GCJ=yes
18262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18263 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18265 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18266 case $lt_prog_compiler_pic_GCJ in
18268 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18271 lt_prog_compiler_pic_GCJ=
18272 lt_prog_compiler_can_build_shared_GCJ=no
18277 # For platforms which do not support PIC, -DPIC is meaningless:
18279 lt_prog_compiler_pic_GCJ=
18282 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18288 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 lt_cv_prog_compiler_c_o_GCJ=no
18292 $rm -r conftest 2>/dev/null
18296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18298 lt_compiler_flag="-o out/conftest2.$ac_objext"
18299 # Insert the option either (1) after the last *FLAGS variable, or
18300 # (2) before a word containing "conftest.", or (3) at the end.
18301 # Note that $ac_compile itself does not contain backslashes and begins
18302 # with a dollar sign (not a hyphen), so the echo should work correctly.
18303 lt_compile=`echo "$ac_compile" | $SED \
18304 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18306 -e 's:$: $lt_compiler_flag:'`
18307 (eval echo "\"\$as_me:18307: $lt_compile\"" >&5)
18308 (eval "$lt_compile" 2>out/conftest.err)
18310 cat out/conftest.err >&5
18311 echo "$as_me:18311: \$? = $ac_status" >&5
18312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18314 # The compiler can only warn and ignore the option if not recognized
18315 # So say no if there are warnings
18316 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18317 $SED '/^$/d' out/conftest.err >out/conftest.er2
18318 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18319 lt_cv_prog_compiler_c_o_GCJ=yes
18324 # SGI C++ compiler will create directory out/ii_files/ for
18325 # template instantiation
18326 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18327 $rm out/* && rmdir out
18333 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18337 hard_links="nottested"
18338 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18339 # do not overwrite the value of need_locks provided by the user
18340 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18346 ln conftest.a conftest.b 2>&5 || hard_links=no
18347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18348 echo "$as_me:$LINENO: result: $hard_links" >&5
18349 echo "${ECHO_T}$hard_links" >&6
18350 if test "$hard_links" = no; then
18351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18359 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18363 allow_undefined_flag_GCJ=
18364 enable_shared_with_static_runtimes_GCJ=no
18366 archive_expsym_cmds_GCJ=
18367 old_archive_From_new_cmds_GCJ=
18368 old_archive_from_expsyms_cmds_GCJ=
18369 export_dynamic_flag_spec_GCJ=
18370 whole_archive_flag_spec_GCJ=
18371 thread_safe_flag_spec_GCJ=
18372 hardcode_libdir_flag_spec_GCJ=
18373 hardcode_libdir_flag_spec_ld_GCJ=
18374 hardcode_libdir_separator_GCJ=
18375 hardcode_direct_GCJ=no
18376 hardcode_minus_L_GCJ=no
18377 hardcode_shlibpath_var_GCJ=unsupported
18378 link_all_deplibs_GCJ=unknown
18379 hardcode_automatic_GCJ=no
18381 module_expsym_cmds_GCJ=
18382 always_export_symbols_GCJ=no
18383 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18384 # include_expsyms should be a list of space-separated symbols to be *always*
18385 # included in the symbol list
18386 include_expsyms_GCJ=
18387 # exclude_expsyms can be an extended regexp of symbols to exclude
18388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18390 # as well as any symbol that contains `d'.
18391 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18393 # platforms (ab)use it in PIC code, but their linkers get confused if
18394 # the symbol is explicitly referenced. Since portable code cannot
18395 # rely on this symbol name, it's probably fine to never include it in
18396 # preloaded symbol tables.
18397 extract_expsyms_cmds=
18398 # Just being paranoid about ensuring that cc_basename is set.
18399 for cc_temp in $compiler""; do
18401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18407 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18410 cygwin* | mingw* | pw32*)
18411 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18412 # When not using gcc, we currently assume that we are using
18413 # Microsoft Visual C++.
18414 if test "$GCC" != yes; then
18424 if test "$with_gnu_ld" = yes; then
18425 # If archive_cmds runs LD, not CC, wlarc should be empty
18428 # Set some defaults for GNU ld with shared library support. These
18429 # are reset later if shared libraries are not supported. Putting them
18430 # here allows them to be overridden if necessary.
18431 runpath_var=LD_RUN_PATH
18432 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18433 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18434 # ancient GNU ld didn't support --whole-archive et. al.
18435 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18436 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18438 whole_archive_flag_spec_GCJ=
18440 supports_anon_versioning=no
18441 case `$LD -v 2>/dev/null` in
18442 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18443 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18444 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18445 *\ 2.11.*) ;; # other 2.11 versions
18446 *) supports_anon_versioning=yes ;;
18449 # See if GNU ld supports shared libraries.
18451 aix3* | aix4* | aix5*)
18452 # On AIX/PPC, the GNU linker is very broken
18453 if test "$host_cpu" != ia64; then
18457 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18458 *** to be unable to reliably create shared libraries on AIX.
18459 *** Therefore, libtool is disabling shared libraries support. If you
18460 *** really care for shared libraries, you may want to modify your PATH
18461 *** so that a non-GNU linker is found, and then restart.
18468 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18470 hardcode_minus_L_GCJ=yes
18472 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18473 # that the semantics of dynamic libraries on AmigaOS, at least up
18474 # to version 4, is to share data among multiple programs linked
18475 # with the same dynamic library. Since this doesn't match the
18476 # behavior of shared libraries on other platforms, we can't use
18482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18483 allow_undefined_flag_GCJ=unsupported
18484 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18485 # support --undefined. This deserves some investigation. FIXME
18486 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18492 cygwin* | mingw* | pw32*)
18493 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18494 # as there is no search path for DLLs.
18495 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18496 allow_undefined_flag_GCJ=unsupported
18497 always_export_symbols_GCJ=no
18498 enable_shared_with_static_runtimes_GCJ=yes
18499 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18501 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18502 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18503 # If the export-symbols file already is a .def file (1st line
18504 # is EXPORTS), use it as is; otherwise, prepend...
18505 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18506 cp $export_symbols $output_objdir/$soname.def;
18508 echo EXPORTS > $output_objdir/$soname.def;
18509 cat $export_symbols >> $output_objdir/$soname.def;
18511 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18520 case $cc_basename,$host_cpu in
18521 pgcc*) # Portland Group C compiler
18522 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18523 tmp_addflag=' $pic_flag'
18525 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18526 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18527 tmp_addflag=' $pic_flag -Mnomain' ;;
18528 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18529 tmp_addflag=' -i_dynamic' ;;
18530 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18531 tmp_addflag=' -i_dynamic -nofor_main' ;;
18532 ifc* | ifort*) # Intel Fortran compiler
18533 tmp_addflag=' -nofor_main' ;;
18535 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537 if test $supports_anon_versioning = yes; then
18538 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18540 $echo "local: *; };" >> $output_objdir/$libname.ver~
18541 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18550 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18553 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18559 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18564 *** create shared libraries on Solaris systems. Therefore, libtool
18565 *** is disabling shared libraries support. We urge you to upgrade GNU
18566 *** binutils to release 2.9.1 or newer. Another option is to modify
18567 *** your PATH or compiler configuration so that the native linker is
18568 *** used, and then restart.
18571 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18572 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18573 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18580 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18582 hardcode_direct_GCJ=yes
18583 hardcode_shlibpath_var_GCJ=no
18587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18596 if test "$ld_shlibs_GCJ" = no; then
18598 hardcode_libdir_flag_spec_GCJ=
18599 export_dynamic_flag_spec_GCJ=
18600 whole_archive_flag_spec_GCJ=
18603 # PORTME fill in a description of your system's linker (not GNU ld)
18606 allow_undefined_flag_GCJ=unsupported
18607 always_export_symbols_GCJ=yes
18608 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18609 # Note: this linker hardcodes the directories in LIBPATH if there
18610 # are no directories specified by -L.
18611 hardcode_minus_L_GCJ=yes
18612 if test "$GCC" = yes && test -z "$link_static_flag"; then
18613 # Neither direct hardcoding nor static linking is supported with a
18615 hardcode_direct_GCJ=unsupported
18620 if test "$host_cpu" = ia64; then
18621 # On IA64, the linker does run time linking by default, so we don't
18622 # have to do anything special.
18623 aix_use_runtimelinking=no
18624 exp_sym_flag='-Bexport'
18627 # If we're using GNU nm, then we don't want the "-C" option.
18628 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18629 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18630 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18632 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18634 aix_use_runtimelinking=no
18636 # Test if we are trying to use run time linking or normal
18637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18638 # need to do runtime linking.
18639 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18640 for ld_flag in $LDFLAGS; do
18641 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18642 aix_use_runtimelinking=yes
18648 exp_sym_flag='-bexport'
18649 no_entry_flag='-bnoentry'
18652 # When large executables or shared objects are built, AIX ld can
18653 # have problems creating the table of contents. If linking a library
18654 # or program results in "error TOC overflow" add -mminimal-toc to
18655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18658 archive_cmds_GCJ=''
18659 hardcode_direct_GCJ=yes
18660 hardcode_libdir_separator_GCJ=':'
18661 link_all_deplibs_GCJ=yes
18663 if test "$GCC" = yes; then
18664 case $host_os in aix4.[012]|aix4.[012].*)
18665 # We only want to do this on AIX 4.2 and lower, the check
18666 # below for broken collect2 doesn't work under 4.3+
18667 collect2name=`${CC} -print-prog-name=collect2`
18668 if test -f "$collect2name" && \
18669 strings "$collect2name" | grep resolve_lib_name >/dev/null
18671 # We have reworked collect2
18672 hardcode_direct_GCJ=yes
18674 # We have old collect2
18675 hardcode_direct_GCJ=unsupported
18676 # It fails to find uninstalled libraries when the uninstalled
18677 # path is not listed in the libpath. Setting hardcode_minus_L
18678 # to unsupported forces relinking
18679 hardcode_minus_L_GCJ=yes
18680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18681 hardcode_libdir_separator_GCJ=
18684 shared_flag='-shared'
18685 if test "$aix_use_runtimelinking" = yes; then
18686 shared_flag="$shared_flag "'${wl}-G'
18690 if test "$host_cpu" = ia64; then
18691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18692 # chokes on -Wl,-G. The following line is correct:
18695 if test "$aix_use_runtimelinking" = yes; then
18696 shared_flag='${wl}-G'
18698 shared_flag='${wl}-bM:SRE'
18703 # It seems that -bexpall does not export symbols beginning with
18704 # underscore (_), so it is better to generate a list of symbols to export.
18705 always_export_symbols_GCJ=yes
18706 if test "$aix_use_runtimelinking" = yes; then
18707 # Warning - without using the other runtime loading flags (-brtl),
18708 # -berok will link without error, but may produce a broken library.
18709 allow_undefined_flag_GCJ='-berok'
18710 # Determine the default libpath from the value encoded in an empty executable.
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18728 (eval $ac_link) 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } &&
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest$ac_exeext'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18751 # Check for a 64-bit object if we didn't find anything.
18752 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18759 rm -f conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18763 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18764 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18766 if test "$host_cpu" = ia64; then
18767 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18768 allow_undefined_flag_GCJ="-z nodefs"
18769 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18771 # Determine the default libpath from the value encoded in an empty executable.
18772 cat >conftest.$ac_ext <<_ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h. */
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789 (eval $ac_link) 2>conftest.er1
18791 grep -v '^ *+' conftest.er1 >conftest.err
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -z "$ac_c_werror_flag"
18797 || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18812 # Check for a 64-bit object if we didn't find anything.
18813 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18820 rm -f conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18824 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18825 # Warning - without using the other run time loading flags,
18826 # -berok will link without error, but may produce a broken library.
18827 no_undefined_flag_GCJ=' ${wl}-bernotok'
18828 allow_undefined_flag_GCJ=' ${wl}-berok'
18829 # -bexpall does not export symbols beginning with underscore (_)
18830 always_export_symbols_GCJ=yes
18831 # Exported symbols can be pulled into shared objects from archives
18832 whole_archive_flag_spec_GCJ=' '
18833 archive_cmds_need_lc_GCJ=yes
18834 # This is similar to how AIX traditionally builds it's shared libraries.
18835 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18841 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18842 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18843 hardcode_minus_L_GCJ=yes
18844 # see comment about different semantics on the GNU ld section
18849 export_dynamic_flag_spec_GCJ=-rdynamic
18852 cygwin* | mingw* | pw32*)
18853 # When not using gcc, we currently assume that we are using
18854 # Microsoft Visual C++.
18855 # hardcode_libdir_flag_spec is actually meaningless, as there is
18856 # no search path for DLLs.
18857 hardcode_libdir_flag_spec_GCJ=' '
18858 allow_undefined_flag_GCJ=unsupported
18859 # Tell ltmain to make .lib files, not .a files.
18861 # Tell ltmain to make .dll files, not .so files.
18863 # FIXME: Setting linknames here is a bad hack.
18864 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18865 # The linker will automatically build a .lib file if we build a DLL.
18866 old_archive_From_new_cmds_GCJ='true'
18867 # FIXME: Should let the user specify the lib program.
18868 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18869 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18870 enable_shared_with_static_runtimes_GCJ=yes
18873 darwin* | rhapsody*)
18875 rhapsody* | darwin1.[012])
18876 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18879 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18880 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18882 case ${MACOSX_DEPLOYMENT_TARGET} in
18884 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18887 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18893 archive_cmds_need_lc_GCJ=no
18894 hardcode_direct_GCJ=no
18895 hardcode_automatic_GCJ=yes
18896 hardcode_shlibpath_var_GCJ=unsupported
18897 whole_archive_flag_spec_GCJ=''
18898 link_all_deplibs_GCJ=yes
18899 if test "$GCC" = yes ; then
18900 output_verbose_link_cmd='echo'
18901 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18902 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18904 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18905 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18907 case $cc_basename in
18909 output_verbose_link_cmd='echo'
18910 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18911 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18913 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18914 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18924 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18925 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18926 hardcode_shlibpath_var_GCJ=no
18933 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18934 # support. Future versions do this automatically, but an explicit c++rt0.o
18935 # does not break anything, and helps significantly (at the cost of a little
18938 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18940 hardcode_direct_GCJ=yes
18941 hardcode_shlibpath_var_GCJ=no
18944 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18946 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18947 hardcode_direct_GCJ=yes
18948 hardcode_minus_L_GCJ=yes
18949 hardcode_shlibpath_var_GCJ=no
18952 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18953 freebsd* | kfreebsd*-gnu | dragonfly*)
18954 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18955 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18956 hardcode_direct_GCJ=yes
18957 hardcode_shlibpath_var_GCJ=no
18961 if test "$GCC" = yes; then
18962 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18964 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18966 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18967 hardcode_libdir_separator_GCJ=:
18968 hardcode_direct_GCJ=yes
18970 # hardcode_minus_L: Not really in the search PATH,
18971 # but as the default location of the library.
18972 hardcode_minus_L_GCJ=yes
18973 export_dynamic_flag_spec_GCJ='${wl}-E'
18977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18978 case "$host_cpu" in
18980 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18983 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18987 case "$host_cpu" in
18989 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18992 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18996 if test "$with_gnu_ld" = no; then
18997 case "$host_cpu" in
18999 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19000 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19001 hardcode_libdir_separator_GCJ=:
19002 hardcode_direct_GCJ=no
19003 hardcode_shlibpath_var_GCJ=no
19006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19007 hardcode_direct_GCJ=no
19008 hardcode_shlibpath_var_GCJ=no
19010 # hardcode_minus_L: Not really in the search PATH,
19011 # but as the default location of the library.
19012 hardcode_minus_L_GCJ=yes
19015 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19016 hardcode_libdir_separator_GCJ=:
19017 hardcode_direct_GCJ=yes
19018 export_dynamic_flag_spec_GCJ='${wl}-E'
19020 # hardcode_minus_L: Not really in the search PATH,
19021 # but as the default location of the library.
19022 hardcode_minus_L_GCJ=yes
19028 irix5* | irix6* | nonstopux*)
19029 if test "$GCC" = yes; then
19030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19032 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19033 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19036 hardcode_libdir_separator_GCJ=:
19037 link_all_deplibs_GCJ=yes
19041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19042 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19044 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19046 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19047 hardcode_direct_GCJ=yes
19048 hardcode_shlibpath_var_GCJ=no
19052 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19053 hardcode_direct_GCJ=yes
19054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19055 hardcode_libdir_separator_GCJ=:
19056 hardcode_shlibpath_var_GCJ=no
19060 hardcode_direct_GCJ=yes
19061 hardcode_shlibpath_var_GCJ=no
19062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19064 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19066 export_dynamic_flag_spec_GCJ='${wl}-E'
19069 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19074 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19083 hardcode_minus_L_GCJ=yes
19084 allow_undefined_flag_GCJ=unsupported
19085 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19086 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19090 if test "$GCC" = yes; then
19091 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19092 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19094 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19095 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19098 hardcode_libdir_separator_GCJ=:
19101 osf4* | osf5*) # as osf3* with the addition of -msym flag
19102 if test "$GCC" = yes; then
19103 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19104 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19105 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19107 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19108 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19109 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19110 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19112 # Both c and cxx compiler support -rpath directly
19113 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19115 hardcode_libdir_separator_GCJ=:
19119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19120 hardcode_shlibpath_var_GCJ=no
19121 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19122 runpath_var=LD_RUN_PATH
19123 hardcode_runpath_var=yes
19127 no_undefined_flag_GCJ=' -z text'
19128 if test "$GCC" = yes; then
19130 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19131 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19132 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19135 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19136 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19139 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19140 hardcode_shlibpath_var_GCJ=no
19142 solaris2.[0-5] | solaris2.[0-5].*) ;;
19144 # The compiler driver will combine linker options so we
19145 # cannot just pass the convience library names through
19146 # without $wl, iff we do not link with $LD.
19147 # Luckily, gcc supports the same syntax we need for Sun Studio.
19148 # Supported since Solaris 2.6 (maybe 2.5.1?)
19151 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19153 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19156 link_all_deplibs_GCJ=yes
19160 if test "x$host_vendor" = xsequent; then
19161 # Use $CC to link under sequent, because it throws in some extra .o
19162 # files that make .init and .fini sections work.
19163 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19165 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19168 hardcode_direct_GCJ=yes
19169 hardcode_minus_L_GCJ=yes
19170 hardcode_shlibpath_var_GCJ=no
19174 case $host_vendor in
19176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19177 hardcode_direct_GCJ=yes # is this really true???
19180 ## LD is ld it makes a PLAMLIB
19181 ## CC just makes a GrossModule.
19182 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19183 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19184 hardcode_direct_GCJ=no
19187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19188 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19191 runpath_var='LD_RUN_PATH'
19192 hardcode_shlibpath_var_GCJ=no
19196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19197 hardcode_shlibpath_var_GCJ=no
19198 export_dynamic_flag_spec_GCJ='-Bexport'
19202 if test -d /usr/nec; then
19203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19204 hardcode_shlibpath_var_GCJ=no
19205 runpath_var=LD_RUN_PATH
19206 hardcode_runpath_var=yes
19212 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19213 hardcode_direct_GCJ=yes
19214 hardcode_minus_L_GCJ=no
19215 hardcode_shlibpath_var_GCJ=no
19216 hardcode_runpath_var=yes
19217 runpath_var=LD_RUN_PATH
19220 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19221 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19222 if test "$GCC" = yes; then
19223 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19225 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19227 runpath_var='LD_RUN_PATH'
19228 hardcode_shlibpath_var_GCJ=no
19232 no_undefined_flag_GCJ=' -z text'
19233 # $CC -shared without GNU ld will not create a library from C++
19234 # object files and a static libstdc++, better avoid it by now
19235 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19236 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19238 hardcode_libdir_flag_spec_GCJ=
19239 hardcode_shlibpath_var_GCJ=no
19240 runpath_var='LD_RUN_PATH'
19244 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19246 hardcode_shlibpath_var_GCJ=no
19255 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19256 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19257 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19260 if test "$GCC" = yes; then
19261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19265 # Do we need to explicitly link libc?
19267 case "x$archive_cmds_need_lc_GCJ" in
19269 # Assume -lc should be added
19270 archive_cmds_need_lc_GCJ=yes
19272 if test "$enable_shared" = yes && test "$GCC" = yes; then
19273 case $archive_cmds_GCJ in
19275 # FIXME: we may have to deal with multi-command sequences.
19278 # Test whether the compiler implicitly links with -lc since on some
19279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19280 # to ld, don't add -lc before -lgcc.
19281 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287 (eval $ac_compile) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } 2>conftest.err; then
19293 libobjs=conftest.$ac_objext
19295 wl=$lt_prog_compiler_wl_GCJ
19301 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19302 allow_undefined_flag_GCJ=
19303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19304 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }
19309 archive_cmds_need_lc_GCJ=no
19311 archive_cmds_need_lc_GCJ=yes
19313 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19315 cat conftest.err 1>&5
19318 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19319 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19326 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19327 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19328 library_names_spec=
19329 libname_spec='lib$name'
19333 postuninstall_cmds=
19337 shlibpath_overrides_runpath=unknown
19339 dynamic_linker="$host_os ld.so"
19340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19341 if test "$GCC" = yes; then
19342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19344 # if the path contains ";" then we assume it to be the separator
19345 # otherwise default to the standard path separator (i.e. ":") - it is
19346 # assumed that no part of a normal pathname contains ";" but that should
19347 # okay in the real world where ";" in dirpaths is itself problematic.
19348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19355 need_lib_prefix=unknown
19356 hardcode_into_libs=no
19358 # when you set need_version to no, make sure it does not cause -set_version
19359 # flags to be left without arguments
19360 need_version=unknown
19365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19366 shlibpath_var=LIBPATH
19368 # AIX 3 has no versioning support, so we append a major version to the name.
19369 soname_spec='${libname}${release}${shared_ext}$major'
19376 hardcode_into_libs=yes
19377 if test "$host_cpu" = ia64; then
19378 # AIX 5 supports IA64
19379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19380 shlibpath_var=LD_LIBRARY_PATH
19382 # With GCC up to 2.95.x, collect2 would create an import file
19383 # for dependence libraries. The import file would start with
19384 # the line `#! .'. This would cause the generated library to
19385 # depend on `.', always an invalid library. This was fixed in
19386 # development snapshots of GCC prior to 3.0.
19388 aix4 | aix4.[01] | aix4.[01].*)
19389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19394 can_build_shared=no
19398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19399 # soname into executable. Probably we can add versioning support to
19400 # collect2, so additional links can be useful in future.
19401 if test "$aix_use_runtimelinking" = yes; then
19402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19403 # instead of lib<name>.a to let people know that these are not
19404 # typical AIX shared libraries.
19405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19407 # We preserve .a as extension for shared libraries through AIX4.2
19408 # and later when we are not doing run time linking.
19409 library_names_spec='${libname}${release}.a $libname.a'
19410 soname_spec='${libname}${release}${shared_ext}$major'
19412 shlibpath_var=LIBPATH
19417 library_names_spec='$libname.ixlibrary $libname.a'
19418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19419 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19423 library_names_spec='${libname}${shared_ext}'
19424 dynamic_linker="$host_os ld.so"
19425 shlibpath_var=LIBRARY_PATH
19431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19432 soname_spec='${libname}${release}${shared_ext}$major'
19433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19434 shlibpath_var=LD_LIBRARY_PATH
19435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19437 # the default ld.so.conf also contains /usr/contrib/lib and
19438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19439 # libtool to hard-code these into programs
19442 cygwin* | mingw* | pw32*)
19443 version_type=windows
19448 case $GCC,$host_os in
19449 yes,cygwin* | yes,mingw* | yes,pw32*)
19450 library_names_spec='$libname.dll.a'
19451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19452 postinstall_cmds='base_file=`basename \${file}`~
19453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19454 dldir=$destdir/`dirname \$dlpath`~
19455 test -d \$dldir || mkdir -p \$dldir~
19456 $install_prog $dir/$dlname \$dldir/$dlname'
19457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19458 dlpath=$dir/\$dldll~
19460 shlibpath_overrides_runpath=yes
19464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19469 # MinGW DLLs use traditional 'lib' prefix
19470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19473 # It is most probably a Windows format PATH printed by
19474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19475 # path with ; separators, and with drive letters. We can handle the
19476 # drive letters (cygwin fileutils understands them), so leave them,
19477 # especially as we might pass files found there to a mingw objdump,
19478 # which wouldn't understand a cygwinified path. Ahh.
19479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19485 # pw32 DLLs use 'pw' prefix rather than 'lib'
19486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19495 dynamic_linker='Win32 ld.exe'
19496 # FIXME: first we should search . and the directory the executable is in
19500 darwin* | rhapsody*)
19501 dynamic_linker="$host_os dyld"
19502 version_type=darwin
19505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19506 soname_spec='${libname}${release}${major}$shared_ext'
19507 shlibpath_overrides_runpath=yes
19508 shlibpath_var=DYLD_LIBRARY_PATH
19509 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19511 if test "$GCC" = yes; then
19512 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19514 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19524 soname_spec='${libname}${release}${shared_ext}$major'
19525 shlibpath_var=LD_LIBRARY_PATH
19536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19537 soname_spec='${libname}${release}${shared_ext}$major'
19538 shlibpath_var=LD_LIBRARY_PATH
19539 shlibpath_overrides_runpath=no
19540 hardcode_into_libs=yes
19541 dynamic_linker='GNU ld.so'
19544 freebsd* | dragonfly*)
19545 # DragonFly does not have aout. When/if they implement a new
19546 # versioning mechanism, adjust this.
19547 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19548 version_type=freebsd-$objformat
19549 case $version_type in
19551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19560 shlibpath_var=LD_LIBRARY_PATH
19563 shlibpath_overrides_runpath=yes
19565 freebsd3.[01]* | freebsdelf3.[01]*)
19566 shlibpath_overrides_runpath=yes
19567 hardcode_into_libs=yes
19570 shlibpath_overrides_runpath=no
19571 hardcode_into_libs=yes
19580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19581 soname_spec='${libname}${release}${shared_ext}$major'
19582 shlibpath_var=LD_LIBRARY_PATH
19583 hardcode_into_libs=yes
19586 hpux9* | hpux10* | hpux11*)
19587 # Give a soname corresponding to the major version so that dld.sl refuses to
19588 # link against other versions.
19592 case "$host_cpu" in
19595 hardcode_into_libs=yes
19596 dynamic_linker="$host_os dld.so"
19597 shlibpath_var=LD_LIBRARY_PATH
19598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19600 soname_spec='${libname}${release}${shared_ext}$major'
19601 if test "X$HPUX_IA64_MODE" = X32; then
19602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19610 hardcode_into_libs=yes
19611 dynamic_linker="$host_os dld.sl"
19612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19615 soname_spec='${libname}${release}${shared_ext}$major'
19616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19621 dynamic_linker="$host_os dld.sl"
19622 shlibpath_var=SHLIB_PATH
19623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19625 soname_spec='${libname}${release}${shared_ext}$major'
19628 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19629 postinstall_cmds='chmod 555 $lib'
19632 irix5* | irix6* | nonstopux*)
19634 nonstopux*) version_type=nonstopux ;;
19636 if test "$lt_cv_prog_gnu_ld" = yes; then
19644 soname_spec='${libname}${release}${shared_ext}$major'
19645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19647 irix5* | nonstopux*)
19648 libsuff= shlibsuff=
19651 case $LD in # libtool.m4 will add one of these switches to LD
19652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19653 libsuff= shlibsuff= libmagic=32-bit;;
19654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19655 libsuff=32 shlibsuff=N32 libmagic=N32;;
19656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19658 *) libsuff= shlibsuff= libmagic=never-match;;
19662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19663 shlibpath_overrides_runpath=no
19664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19666 hardcode_into_libs=yes
19669 # No shared lib support for Linux oldld, aout, or coff.
19670 linux*oldld* | linux*aout* | linux*coff*)
19674 # This must be Linux ELF.
19679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19680 soname_spec='${libname}${release}${shared_ext}$major'
19681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19682 shlibpath_var=LD_LIBRARY_PATH
19683 shlibpath_overrides_runpath=no
19684 # This implies no fast_install, which is unacceptable.
19685 # Some rework will be needed to allow for fast_install
19686 # before this can be enabled.
19687 hardcode_into_libs=yes
19689 # Append ld.so.conf contents to the search path
19690 if test -f /etc/ld.so.conf; then
19691 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19692 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19695 # We used to test for /lib/ld.so.1 and disable shared libraries on
19696 # powerpc, because MkLinux only supported shared libraries with the
19697 # GNU dynamic linker. Since this was broken with cross compilers,
19698 # most powerpc-linux boxes support dynamic linking these days and
19699 # people can always --disable-shared, the test was removed, and we
19700 # assume the GNU/Linux dynamic linker is in use.
19701 dynamic_linker='GNU/Linux ld.so'
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19709 soname_spec='${libname}${release}${shared_ext}$major'
19710 shlibpath_var=LD_LIBRARY_PATH
19711 shlibpath_overrides_runpath=no
19712 hardcode_into_libs=yes
19713 dynamic_linker='GNU ld.so'
19720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19723 dynamic_linker='NetBSD (a.out) ld.so'
19725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19726 soname_spec='${libname}${release}${shared_ext}$major'
19727 dynamic_linker='NetBSD ld.elf_so'
19729 shlibpath_var=LD_LIBRARY_PATH
19730 shlibpath_overrides_runpath=yes
19731 hardcode_into_libs=yes
19736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19737 shlibpath_var=LD_LIBRARY_PATH
19738 shlibpath_overrides_runpath=yes
19745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19746 soname_spec='${libname}${release}${shared_ext}$major'
19747 shlibpath_var=LD_LIBRARY_PATH
19748 shlibpath_overrides_runpath=yes
19754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19756 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19757 *) need_version=no ;;
19759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19761 shlibpath_var=LD_LIBRARY_PATH
19762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19764 openbsd2.[89] | openbsd2.[89].*)
19765 shlibpath_overrides_runpath=no
19768 shlibpath_overrides_runpath=yes
19772 shlibpath_overrides_runpath=yes
19777 libname_spec='$name'
19780 library_names_spec='$libname${shared_ext} $libname.a'
19781 dynamic_linker='OS/2 ld.exe'
19782 shlibpath_var=LIBPATH
19785 osf3* | osf4* | osf5*)
19789 soname_spec='${libname}${release}${shared_ext}$major'
19790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19791 shlibpath_var=LD_LIBRARY_PATH
19792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19800 shlibpath_var=LD_LIBRARY_PATH
19807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19808 soname_spec='${libname}${release}${shared_ext}$major'
19809 shlibpath_var=LD_LIBRARY_PATH
19810 shlibpath_overrides_runpath=yes
19811 hardcode_into_libs=yes
19812 # ldd complains unless libraries are executable
19813 postinstall_cmds='chmod +x $lib'
19818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19820 shlibpath_var=LD_LIBRARY_PATH
19821 shlibpath_overrides_runpath=yes
19822 if test "$with_gnu_ld" = yes; then
19828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19831 soname_spec='${libname}${release}${shared_ext}$major'
19832 shlibpath_var=LD_LIBRARY_PATH
19833 case $host_vendor in
19835 shlibpath_overrides_runpath=no
19837 export_dynamic_flag_spec='${wl}-Blargedynsym'
19838 runpath_var=LD_RUN_PATH
19846 shlibpath_overrides_runpath=no
19847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19853 if test -d /usr/nec ;then
19855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19856 soname_spec='$libname${shared_ext}.$major'
19857 shlibpath_var=LD_LIBRARY_PATH
19863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19864 soname_spec='${libname}${release}${shared_ext}$major'
19865 shlibpath_var=LD_LIBRARY_PATH
19872 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19873 echo "${ECHO_T}$dynamic_linker" >&6
19874 test "$dynamic_linker" = no && can_build_shared=no
19876 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19877 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19878 hardcode_action_GCJ=
19879 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19880 test -n "$runpath_var_GCJ" || \
19881 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19883 # We can hardcode non-existant directories.
19884 if test "$hardcode_direct_GCJ" != no &&
19885 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19886 # have to relink, otherwise we might link with an installed library
19887 # when we should be linking with a yet-to-be-installed one
19888 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19889 test "$hardcode_minus_L_GCJ" != no; then
19890 # Linking always hardcodes the temporary library directory.
19891 hardcode_action_GCJ=relink
19893 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19894 hardcode_action_GCJ=immediate
19897 # We cannot hardcode anything, or else we can only hardcode existing
19899 hardcode_action_GCJ=unsupported
19901 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19902 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19904 if test "$hardcode_action_GCJ" = relink; then
19905 # Fast installation is not supported
19906 enable_fast_install=no
19907 elif test "$shlibpath_overrides_runpath" = yes ||
19908 test "$enable_shared" = no; then
19909 # Fast installation is not necessary
19910 enable_fast_install=needless
19915 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19916 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19917 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19918 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19919 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19920 echo "$as_me:$LINENO: result: yes" >&5
19921 echo "${ECHO_T}yes" >&6
19923 # FIXME - insert some real tests, host_os isn't really good enough
19926 if test -n "$STRIP" ; then
19927 striplib="$STRIP -x"
19928 echo "$as_me:$LINENO: result: yes" >&5
19929 echo "${ECHO_T}yes" >&6
19931 echo "$as_me:$LINENO: result: no" >&5
19932 echo "${ECHO_T}no" >&6
19936 echo "$as_me:$LINENO: result: no" >&5
19937 echo "${ECHO_T}no" >&6
19942 if test "x$enable_dlopen" != xyes; then
19943 enable_dlopen=unknown
19944 enable_dlopen_self=unknown
19945 enable_dlopen_self_static=unknown
19952 lt_cv_dlopen="load_add_on"
19954 lt_cv_dlopen_self=yes
19958 lt_cv_dlopen="LoadLibrary"
19963 lt_cv_dlopen="dlopen"
19968 # if libdl is installed we need to link against it
19969 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 ac_check_lib_save_LIBS=$LIBS
19976 cat >conftest.$ac_ext <<_ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19983 /* Override any gcc2 internal prototype to avoid an error. */
19987 /* We use char because int might match the return type of a gcc2
19988 builtin and then its argument prototype would still apply. */
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000 (eval $ac_link) 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -z "$ac_c_werror_flag"
20008 || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_lib_dl_dlopen=yes
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_cv_lib_dl_dlopen=no
20027 rm -f conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20033 if test $ac_cv_lib_dl_dlopen = yes; then
20034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20037 lt_cv_dlopen="dyld"
20039 lt_cv_dlopen_self=yes
20046 echo "$as_me:$LINENO: checking for shl_load" >&5
20047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20048 if test "${ac_cv_func_shl_load+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20059 #define shl_load innocuous_shl_load
20061 /* System header to define __stub macros and hopefully few prototypes,
20062 which can conflict with char shl_load (); below.
20063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20064 <limits.h> exists even on freestanding compilers. */
20067 # include <limits.h>
20069 # include <assert.h>
20074 /* Override any gcc2 internal prototype to avoid an error. */
20079 /* We use char because int might match the return type of a gcc2
20080 builtin and then its argument prototype would still apply. */
20082 /* The GNU C library defines this for functions which it implements
20083 to always fail with ENOSYS. Some functions are actually named
20084 something starting with __ and the normal name is an alias. */
20085 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20088 char (*f) () = shl_load;
20097 return f != shl_load;
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104 (eval $ac_link) 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
20111 { ac_try='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest$ac_exeext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_cv_func_shl_load=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_cv_func_shl_load=no
20131 rm -f conftest.err conftest.$ac_objext \
20132 conftest$ac_exeext conftest.$ac_ext
20134 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20135 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20136 if test $ac_cv_func_shl_load = yes; then
20137 lt_cv_dlopen="shl_load"
20139 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20140 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 ac_check_lib_save_LIBS=$LIBS
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20153 /* Override any gcc2 internal prototype to avoid an error. */
20157 /* We use char because int might match the return type of a gcc2
20158 builtin and then its argument prototype would still apply. */
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170 (eval $ac_link) 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try='test -s conftest$ac_exeext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_lib_dld_shl_load=yes
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_lib_dld_shl_load=no
20197 rm -f conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20203 if test $ac_cv_lib_dld_shl_load = yes; then
20204 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20206 echo "$as_me:$LINENO: checking for dlopen" >&5
20207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20208 if test "${ac_cv_func_dlopen+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 cat >conftest.$ac_ext <<_ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20219 #define dlopen innocuous_dlopen
20221 /* System header to define __stub macros and hopefully few prototypes,
20222 which can conflict with char dlopen (); below.
20223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20224 <limits.h> exists even on freestanding compilers. */
20227 # include <limits.h>
20229 # include <assert.h>
20234 /* Override any gcc2 internal prototype to avoid an error. */
20239 /* We use char because int might match the return type of a gcc2
20240 builtin and then its argument prototype would still apply. */
20242 /* The GNU C library defines this for functions which it implements
20243 to always fail with ENOSYS. Some functions are actually named
20244 something starting with __ and the normal name is an alias. */
20245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20248 char (*f) () = dlopen;
20257 return f != dlopen;
20262 rm -f conftest.$ac_objext conftest$ac_exeext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20264 (eval $ac_link) 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag"
20272 || test ! -s conftest.err'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 ac_cv_func_dlopen=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_func_dlopen=no
20291 rm -f conftest.err conftest.$ac_objext \
20292 conftest$ac_exeext conftest.$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20296 if test $ac_cv_func_dlopen = yes; then
20297 lt_cv_dlopen="dlopen"
20299 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 ac_check_lib_save_LIBS=$LIBS
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20313 /* Override any gcc2 internal prototype to avoid an error. */
20317 /* We use char because int might match the return type of a gcc2
20318 builtin and then its argument prototype would still apply. */
20328 rm -f conftest.$ac_objext conftest$ac_exeext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20330 (eval $ac_link) 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
20337 { ac_try='test -z "$ac_c_werror_flag"
20338 || test ! -s conftest.err'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest$ac_exeext'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 ac_cv_lib_dl_dlopen=yes
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20355 ac_cv_lib_dl_dlopen=no
20357 rm -f conftest.err conftest.$ac_objext \
20358 conftest$ac_exeext conftest.$ac_ext
20359 LIBS=$ac_check_lib_save_LIBS
20361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20363 if test $ac_cv_lib_dl_dlopen = yes; then
20364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20366 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lsvld $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20380 /* Override any gcc2 internal prototype to avoid an error. */
20384 /* We use char because int might match the return type of a gcc2
20385 builtin and then its argument prototype would still apply. */
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397 (eval $ac_link) 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag"
20405 || test ! -s conftest.err'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest$ac_exeext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_lib_svld_dlopen=yes
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_cv_lib_svld_dlopen=no
20424 rm -f conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20430 if test $ac_cv_lib_svld_dlopen = yes; then
20431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20433 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20434 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20435 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 ac_check_lib_save_LIBS=$LIBS
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20447 /* Override any gcc2 internal prototype to avoid an error. */
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464 (eval $ac_link) 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_c_werror_flag"
20472 || test ! -s conftest.err'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest$ac_exeext'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
20484 ac_cv_lib_dld_dld_link=yes
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_cv_lib_dld_dld_link=no
20491 rm -f conftest.err conftest.$ac_objext \
20492 conftest$ac_exeext conftest.$ac_ext
20493 LIBS=$ac_check_lib_save_LIBS
20495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20497 if test $ac_cv_lib_dld_dld_link = yes; then
20498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20519 if test "x$lt_cv_dlopen" != xno; then
20525 case $lt_cv_dlopen in
20527 save_CPPFLAGS="$CPPFLAGS"
20528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20530 save_LDFLAGS="$LDFLAGS"
20531 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20534 LIBS="$lt_cv_dlopen_libs $LIBS"
20536 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20538 if test "${lt_cv_dlopen_self+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 if test "$cross_compiling" = yes; then :
20542 lt_cv_dlopen_self=cross
20544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20545 lt_status=$lt_dlunknown
20546 cat > conftest.$ac_ext <<EOF
20547 #line 20547 "configure"
20548 #include "confdefs.h"
20557 # define LT_DLGLOBAL RTLD_GLOBAL
20560 # define LT_DLGLOBAL DL_GLOBAL
20562 # define LT_DLGLOBAL 0
20566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20567 find out it does not work in some platform. */
20568 #ifndef LT_DLLAZY_OR_NOW
20570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20573 # define LT_DLLAZY_OR_NOW DL_LAZY
20576 # define LT_DLLAZY_OR_NOW RTLD_NOW
20579 # define LT_DLLAZY_OR_NOW DL_NOW
20581 # define LT_DLLAZY_OR_NOW 0
20589 extern "C" void exit (int);
20592 void fnord() { int i=42;}
20595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20596 int status = $lt_dlunknown;
20600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20602 /* dlclose (self); */
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609 (eval $ac_link) 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20613 (./conftest; exit; ) 2>/dev/null
20615 case x$lt_status in
20616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20618 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20621 # compilation failed
20622 lt_cv_dlopen_self=no
20629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20632 if test "x$lt_cv_dlopen_self" = xyes; then
20633 LDFLAGS="$LDFLAGS $link_static_flag"
20634 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20636 if test "${lt_cv_dlopen_self_static+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 if test "$cross_compiling" = yes; then :
20640 lt_cv_dlopen_self_static=cross
20642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20643 lt_status=$lt_dlunknown
20644 cat > conftest.$ac_ext <<EOF
20645 #line 20645 "configure"
20646 #include "confdefs.h"
20655 # define LT_DLGLOBAL RTLD_GLOBAL
20658 # define LT_DLGLOBAL DL_GLOBAL
20660 # define LT_DLGLOBAL 0
20664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20665 find out it does not work in some platform. */
20666 #ifndef LT_DLLAZY_OR_NOW
20668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20671 # define LT_DLLAZY_OR_NOW DL_LAZY
20674 # define LT_DLLAZY_OR_NOW RTLD_NOW
20677 # define LT_DLLAZY_OR_NOW DL_NOW
20679 # define LT_DLLAZY_OR_NOW 0
20687 extern "C" void exit (int);
20690 void fnord() { int i=42;}
20693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20694 int status = $lt_dlunknown;
20698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20700 /* dlclose (self); */
20706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707 (eval $ac_link) 2>&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20711 (./conftest; exit; ) 2>/dev/null
20713 case x$lt_status in
20714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20716 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20719 # compilation failed
20720 lt_cv_dlopen_self_static=no
20727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20731 CPPFLAGS="$save_CPPFLAGS"
20732 LDFLAGS="$save_LDFLAGS"
20737 case $lt_cv_dlopen_self in
20738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20739 *) enable_dlopen_self=unknown ;;
20742 case $lt_cv_dlopen_self_static in
20743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20744 *) enable_dlopen_self_static=unknown ;;
20749 # The else clause should only fire when bootstrapping the
20750 # libtool distribution, otherwise you forgot to ship ltmain.sh
20751 # with your package, and you will get complaints that there are
20752 # no rules to generate ltmain.sh.
20753 if test -f "$ltmain"; then
20754 # See if we are running on zsh, and set the options which allow our commands through
20755 # without removal of \ escapes.
20756 if test -n "${ZSH_VERSION+set}" ; then
20757 setopt NO_GLOB_SUBST
20759 # Now quote all the things that may contain metacharacters while being
20760 # careful not to overquote the AC_SUBSTed values. We take copies of the
20761 # variables and quote the copies for generation of the libtool script.
20762 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20764 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20765 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20766 deplibs_check_method reload_flag reload_cmds need_locks \
20767 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20768 lt_cv_sys_global_symbol_to_c_name_address \
20769 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20770 old_postinstall_cmds old_postuninstall_cmds \
20774 lt_prog_compiler_wl_GCJ \
20775 lt_prog_compiler_pic_GCJ \
20776 lt_prog_compiler_static_GCJ \
20777 lt_prog_compiler_no_builtin_flag_GCJ \
20778 export_dynamic_flag_spec_GCJ \
20779 thread_safe_flag_spec_GCJ \
20780 whole_archive_flag_spec_GCJ \
20781 enable_shared_with_static_runtimes_GCJ \
20782 old_archive_cmds_GCJ \
20783 old_archive_from_new_cmds_GCJ \
20784 predep_objects_GCJ \
20785 postdep_objects_GCJ \
20788 compiler_lib_search_path_GCJ \
20790 archive_expsym_cmds_GCJ \
20791 postinstall_cmds_GCJ \
20792 postuninstall_cmds_GCJ \
20793 old_archive_from_expsyms_cmds_GCJ \
20794 allow_undefined_flag_GCJ \
20795 no_undefined_flag_GCJ \
20796 export_symbols_cmds_GCJ \
20797 hardcode_libdir_flag_spec_GCJ \
20798 hardcode_libdir_flag_spec_ld_GCJ \
20799 hardcode_libdir_separator_GCJ \
20800 hardcode_automatic_GCJ \
20802 module_expsym_cmds_GCJ \
20803 lt_cv_prog_compiler_c_o_GCJ \
20804 exclude_expsyms_GCJ \
20805 include_expsyms_GCJ; do
20808 old_archive_cmds_GCJ | \
20809 old_archive_from_new_cmds_GCJ | \
20810 archive_cmds_GCJ | \
20811 archive_expsym_cmds_GCJ | \
20812 module_cmds_GCJ | \
20813 module_expsym_cmds_GCJ | \
20814 old_archive_from_expsyms_cmds_GCJ | \
20815 export_symbols_cmds_GCJ | \
20816 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20817 postinstall_cmds | postuninstall_cmds | \
20818 old_postinstall_cmds | old_postuninstall_cmds | \
20819 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20820 # Double-quote double-evaled strings.
20821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20830 *'\$0 --fallback-echo"')
20831 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20837 cat <<__EOF__ >> "$cfgfile"
20838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20842 # Shell to use when invoking shell scripts.
20845 # Whether or not to build shared libraries.
20846 build_libtool_libs=$enable_shared
20848 # Whether or not to build static libraries.
20849 build_old_libs=$enable_static
20851 # Whether or not to add -lc for building shared libraries.
20852 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20854 # Whether or not to disallow shared libs when runtime libs are static
20855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20857 # Whether or not to optimize for fast installation.
20858 fast_install=$enable_fast_install
20861 host_alias=$host_alias
20865 # The build system.
20866 build_alias=$build_alias
20870 # An echo program that does not interpret backslashes.
20875 AR_FLAGS=$lt_AR_FLAGS
20880 # A language-specific compiler.
20881 CC=$lt_compiler_GCJ
20883 # Is the compiler the GNU C compiler?
20889 # The linker used to build libraries.
20892 # Whether we need hard or soft links.
20895 # A BSD-compatible nm program.
20898 # A symbol stripping program
20901 # Used to examine libraries when file_magic_cmd begins "file"
20902 MAGIC_CMD=$MAGIC_CMD
20904 # Used on cygwin: DLL creation program.
20907 # Used on cygwin: object dumper.
20910 # Used on cygwin: assembler.
20913 # The name of the directory that contains temporary libtool files.
20916 # How to create reloadable object files.
20917 reload_flag=$lt_reload_flag
20918 reload_cmds=$lt_reload_cmds
20920 # How to pass a linker flag through the compiler.
20921 wl=$lt_lt_prog_compiler_wl_GCJ
20923 # Object file suffix (normally "o").
20924 objext="$ac_objext"
20926 # Old archive suffix (normally "a").
20929 # Shared library suffix (normally ".so").
20930 shrext_cmds='$shrext_cmds'
20932 # Executable file suffix (normally "").
20935 # Additional compiler flags for building library objects.
20936 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20939 # What is the maximum length of a command?
20940 max_cmd_len=$lt_cv_sys_max_cmd_len
20942 # Does compiler simultaneously support -c and -o options?
20943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20945 # Must we lock files when doing compilation?
20946 need_locks=$lt_need_locks
20948 # Do we need the lib prefix for modules?
20949 need_lib_prefix=$need_lib_prefix
20951 # Do we need a version for libraries?
20952 need_version=$need_version
20954 # Whether dlopen is supported.
20955 dlopen_support=$enable_dlopen
20957 # Whether dlopen of programs is supported.
20958 dlopen_self=$enable_dlopen_self
20960 # Whether dlopen of statically linked programs is supported.
20961 dlopen_self_static=$enable_dlopen_self_static
20963 # Compiler flag to prevent dynamic linking.
20964 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20966 # Compiler flag to turn off builtin functions.
20967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20969 # Compiler flag to allow reflexive dlopens.
20970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20972 # Compiler flag to generate shared objects directly from archives.
20973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20975 # Compiler flag to generate thread-safe objects.
20976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20978 # Library versioning type.
20979 version_type=$version_type
20981 # Format of library name prefix.
20982 libname_spec=$lt_libname_spec
20984 # List of archive names. First name is the real one, the rest are links.
20985 # The last name is the one that the linker finds with -lNAME.
20986 library_names_spec=$lt_library_names_spec
20988 # The coded name of the library, if different from the real name.
20989 soname_spec=$lt_soname_spec
20991 # Commands used to build and install an old-style archive.
20993 old_archive_cmds=$lt_old_archive_cmds_GCJ
20994 old_postinstall_cmds=$lt_old_postinstall_cmds
20995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20997 # Create an old-style archive from a shared archive.
20998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21000 # Create a temporary old-style archive to link instead of a shared archive.
21001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21003 # Commands used to build and install a shared archive.
21004 archive_cmds=$lt_archive_cmds_GCJ
21005 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21006 postinstall_cmds=$lt_postinstall_cmds
21007 postuninstall_cmds=$lt_postuninstall_cmds
21009 # Commands used to build a loadable module (assumed same as above if empty)
21010 module_cmds=$lt_module_cmds_GCJ
21011 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21013 # Commands to strip libraries.
21014 old_striplib=$lt_old_striplib
21015 striplib=$lt_striplib
21017 # Dependencies to place before the objects being linked to create a
21019 predep_objects=$lt_predep_objects_GCJ
21021 # Dependencies to place after the objects being linked to create a
21023 postdep_objects=$lt_postdep_objects_GCJ
21025 # Dependencies to place before the objects being linked to create a
21027 predeps=$lt_predeps_GCJ
21029 # Dependencies to place after the objects being linked to create a
21031 postdeps=$lt_postdeps_GCJ
21033 # The library search path used internally by the compiler when linking
21034 # a shared library.
21035 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21037 # Method to check whether dependent libraries are shared objects.
21038 deplibs_check_method=$lt_deplibs_check_method
21040 # Command to use when deplibs_check_method == file_magic.
21041 file_magic_cmd=$lt_file_magic_cmd
21043 # Flag that allows shared libraries with undefined symbols to be built.
21044 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21046 # Flag that forces no undefined symbols.
21047 no_undefined_flag=$lt_no_undefined_flag_GCJ
21049 # Commands used to finish a libtool library installation in a directory.
21050 finish_cmds=$lt_finish_cmds
21052 # Same as above, but a single script fragment to be evaled but not shown.
21053 finish_eval=$lt_finish_eval
21055 # Take the output of nm and produce a listing of raw symbols and C names.
21056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21058 # Transform the output of nm in a proper C declaration
21059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21061 # Transform the output of nm in a C name address pair
21062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21064 # This is the shared library runtime path variable.
21065 runpath_var=$runpath_var
21067 # This is the shared library path variable.
21068 shlibpath_var=$shlibpath_var
21070 # Is shlibpath searched before the hard-coded library search path?
21071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21073 # How to hardcode a shared library path into an executable.
21074 hardcode_action=$hardcode_action_GCJ
21076 # Whether we should hardcode library paths into libraries.
21077 hardcode_into_libs=$hardcode_into_libs
21079 # Flag to hardcode \$libdir into a binary during linking.
21080 # This must work even if \$libdir does not exist.
21081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21083 # If ld is used when linking, flag to hardcode \$libdir into
21084 # a binary during linking. This must work even if \$libdir does
21086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21088 # Whether we need a single -rpath flag with a separated argument.
21089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21092 # resulting binary.
21093 hardcode_direct=$hardcode_direct_GCJ
21095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21096 # resulting binary.
21097 hardcode_minus_L=$hardcode_minus_L_GCJ
21099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21100 # the resulting binary.
21101 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21103 # Set to yes if building a shared library automatically hardcodes DIR into the library
21104 # and all subsequent libraries and executables linked against it.
21105 hardcode_automatic=$hardcode_automatic_GCJ
21107 # Variables whose values should be saved in libtool wrapper scripts and
21108 # restored at relink time.
21109 variables_saved_for_relink="$variables_saved_for_relink"
21111 # Whether libtool must link a program against all its dependency libraries.
21112 link_all_deplibs=$link_all_deplibs_GCJ
21114 # Compile-time system search path for libraries
21115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21117 # Run-time system search path for libraries
21118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21120 # Fix the shell variable \$srcfile for the compiler.
21121 fix_srcfile_path="$fix_srcfile_path_GCJ"
21123 # Set to yes if exported symbols are required.
21124 always_export_symbols=$always_export_symbols_GCJ
21126 # The commands to list exported symbols.
21127 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21129 # The commands to extract the exported symbol list from a shared archive.
21130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21132 # Symbols that should not be listed in the preloaded symbols.
21133 exclude_expsyms=$lt_exclude_expsyms_GCJ
21135 # Symbols that must always be exported.
21136 include_expsyms=$lt_include_expsyms_GCJ
21138 # ### END LIBTOOL TAG CONFIG: $tagname
21144 # If there is no Makefile yet, we rely on a make rule to execute
21145 # `config.status --recheck' to rerun these tests and create the
21146 # libtool script then.
21147 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21148 if test -f "$ltmain_in"; then
21149 test -f Makefile && make "$ltmain"
21155 ac_cpp='$CPP $CPPFLAGS'
21156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21171 # Source file extension for RC test sources.
21174 # Object file extension for compiled RC test sources.
21178 # Code to be used in simple compile tests
21179 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21181 # Code to be used in simple link tests
21182 lt_simple_link_test_code="$lt_simple_compile_test_code"
21184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21186 # If no C compiler was specified, use CC.
21189 # Allow CC to be a program name with arguments.
21193 # save warnings/boilerplate of simple test code
21194 ac_outfile=conftest.$ac_objext
21195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21197 _lt_compiler_boilerplate=`cat conftest.err`
21200 ac_outfile=conftest.$ac_objext
21201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21203 _lt_linker_boilerplate=`cat conftest.err`
21207 # Allow CC to be a program name with arguments.
21212 for cc_temp in $compiler""; do
21214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21222 lt_cv_prog_compiler_c_o_RC=yes
21224 # The else clause should only fire when bootstrapping the
21225 # libtool distribution, otherwise you forgot to ship ltmain.sh
21226 # with your package, and you will get complaints that there are
21227 # no rules to generate ltmain.sh.
21228 if test -f "$ltmain"; then
21229 # See if we are running on zsh, and set the options which allow our commands through
21230 # without removal of \ escapes.
21231 if test -n "${ZSH_VERSION+set}" ; then
21232 setopt NO_GLOB_SUBST
21234 # Now quote all the things that may contain metacharacters while being
21235 # careful not to overquote the AC_SUBSTed values. We take copies of the
21236 # variables and quote the copies for generation of the libtool script.
21237 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21241 deplibs_check_method reload_flag reload_cmds need_locks \
21242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21243 lt_cv_sys_global_symbol_to_c_name_address \
21244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21245 old_postinstall_cmds old_postuninstall_cmds \
21249 lt_prog_compiler_wl_RC \
21250 lt_prog_compiler_pic_RC \
21251 lt_prog_compiler_static_RC \
21252 lt_prog_compiler_no_builtin_flag_RC \
21253 export_dynamic_flag_spec_RC \
21254 thread_safe_flag_spec_RC \
21255 whole_archive_flag_spec_RC \
21256 enable_shared_with_static_runtimes_RC \
21257 old_archive_cmds_RC \
21258 old_archive_from_new_cmds_RC \
21259 predep_objects_RC \
21260 postdep_objects_RC \
21263 compiler_lib_search_path_RC \
21265 archive_expsym_cmds_RC \
21266 postinstall_cmds_RC \
21267 postuninstall_cmds_RC \
21268 old_archive_from_expsyms_cmds_RC \
21269 allow_undefined_flag_RC \
21270 no_undefined_flag_RC \
21271 export_symbols_cmds_RC \
21272 hardcode_libdir_flag_spec_RC \
21273 hardcode_libdir_flag_spec_ld_RC \
21274 hardcode_libdir_separator_RC \
21275 hardcode_automatic_RC \
21277 module_expsym_cmds_RC \
21278 lt_cv_prog_compiler_c_o_RC \
21279 exclude_expsyms_RC \
21280 include_expsyms_RC; do
21283 old_archive_cmds_RC | \
21284 old_archive_from_new_cmds_RC | \
21285 archive_cmds_RC | \
21286 archive_expsym_cmds_RC | \
21288 module_expsym_cmds_RC | \
21289 old_archive_from_expsyms_cmds_RC | \
21290 export_symbols_cmds_RC | \
21291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21292 postinstall_cmds | postuninstall_cmds | \
21293 old_postinstall_cmds | old_postuninstall_cmds | \
21294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21295 # Double-quote double-evaled strings.
21296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21305 *'\$0 --fallback-echo"')
21306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21312 cat <<__EOF__ >> "$cfgfile"
21313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21317 # Shell to use when invoking shell scripts.
21320 # Whether or not to build shared libraries.
21321 build_libtool_libs=$enable_shared
21323 # Whether or not to build static libraries.
21324 build_old_libs=$enable_static
21326 # Whether or not to add -lc for building shared libraries.
21327 build_libtool_need_lc=$archive_cmds_need_lc_RC
21329 # Whether or not to disallow shared libs when runtime libs are static
21330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21332 # Whether or not to optimize for fast installation.
21333 fast_install=$enable_fast_install
21336 host_alias=$host_alias
21340 # The build system.
21341 build_alias=$build_alias
21345 # An echo program that does not interpret backslashes.
21350 AR_FLAGS=$lt_AR_FLAGS
21355 # A language-specific compiler.
21358 # Is the compiler the GNU C compiler?
21364 # The linker used to build libraries.
21367 # Whether we need hard or soft links.
21370 # A BSD-compatible nm program.
21373 # A symbol stripping program
21376 # Used to examine libraries when file_magic_cmd begins "file"
21377 MAGIC_CMD=$MAGIC_CMD
21379 # Used on cygwin: DLL creation program.
21382 # Used on cygwin: object dumper.
21385 # Used on cygwin: assembler.
21388 # The name of the directory that contains temporary libtool files.
21391 # How to create reloadable object files.
21392 reload_flag=$lt_reload_flag
21393 reload_cmds=$lt_reload_cmds
21395 # How to pass a linker flag through the compiler.
21396 wl=$lt_lt_prog_compiler_wl_RC
21398 # Object file suffix (normally "o").
21399 objext="$ac_objext"
21401 # Old archive suffix (normally "a").
21404 # Shared library suffix (normally ".so").
21405 shrext_cmds='$shrext_cmds'
21407 # Executable file suffix (normally "").
21410 # Additional compiler flags for building library objects.
21411 pic_flag=$lt_lt_prog_compiler_pic_RC
21414 # What is the maximum length of a command?
21415 max_cmd_len=$lt_cv_sys_max_cmd_len
21417 # Does compiler simultaneously support -c and -o options?
21418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21420 # Must we lock files when doing compilation?
21421 need_locks=$lt_need_locks
21423 # Do we need the lib prefix for modules?
21424 need_lib_prefix=$need_lib_prefix
21426 # Do we need a version for libraries?
21427 need_version=$need_version
21429 # Whether dlopen is supported.
21430 dlopen_support=$enable_dlopen
21432 # Whether dlopen of programs is supported.
21433 dlopen_self=$enable_dlopen_self
21435 # Whether dlopen of statically linked programs is supported.
21436 dlopen_self_static=$enable_dlopen_self_static
21438 # Compiler flag to prevent dynamic linking.
21439 link_static_flag=$lt_lt_prog_compiler_static_RC
21441 # Compiler flag to turn off builtin functions.
21442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21444 # Compiler flag to allow reflexive dlopens.
21445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21447 # Compiler flag to generate shared objects directly from archives.
21448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21450 # Compiler flag to generate thread-safe objects.
21451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21453 # Library versioning type.
21454 version_type=$version_type
21456 # Format of library name prefix.
21457 libname_spec=$lt_libname_spec
21459 # List of archive names. First name is the real one, the rest are links.
21460 # The last name is the one that the linker finds with -lNAME.
21461 library_names_spec=$lt_library_names_spec
21463 # The coded name of the library, if different from the real name.
21464 soname_spec=$lt_soname_spec
21466 # Commands used to build and install an old-style archive.
21468 old_archive_cmds=$lt_old_archive_cmds_RC
21469 old_postinstall_cmds=$lt_old_postinstall_cmds
21470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21472 # Create an old-style archive from a shared archive.
21473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21475 # Create a temporary old-style archive to link instead of a shared archive.
21476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21478 # Commands used to build and install a shared archive.
21479 archive_cmds=$lt_archive_cmds_RC
21480 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21481 postinstall_cmds=$lt_postinstall_cmds
21482 postuninstall_cmds=$lt_postuninstall_cmds
21484 # Commands used to build a loadable module (assumed same as above if empty)
21485 module_cmds=$lt_module_cmds_RC
21486 module_expsym_cmds=$lt_module_expsym_cmds_RC
21488 # Commands to strip libraries.
21489 old_striplib=$lt_old_striplib
21490 striplib=$lt_striplib
21492 # Dependencies to place before the objects being linked to create a
21494 predep_objects=$lt_predep_objects_RC
21496 # Dependencies to place after the objects being linked to create a
21498 postdep_objects=$lt_postdep_objects_RC
21500 # Dependencies to place before the objects being linked to create a
21502 predeps=$lt_predeps_RC
21504 # Dependencies to place after the objects being linked to create a
21506 postdeps=$lt_postdeps_RC
21508 # The library search path used internally by the compiler when linking
21509 # a shared library.
21510 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21512 # Method to check whether dependent libraries are shared objects.
21513 deplibs_check_method=$lt_deplibs_check_method
21515 # Command to use when deplibs_check_method == file_magic.
21516 file_magic_cmd=$lt_file_magic_cmd
21518 # Flag that allows shared libraries with undefined symbols to be built.
21519 allow_undefined_flag=$lt_allow_undefined_flag_RC
21521 # Flag that forces no undefined symbols.
21522 no_undefined_flag=$lt_no_undefined_flag_RC
21524 # Commands used to finish a libtool library installation in a directory.
21525 finish_cmds=$lt_finish_cmds
21527 # Same as above, but a single script fragment to be evaled but not shown.
21528 finish_eval=$lt_finish_eval
21530 # Take the output of nm and produce a listing of raw symbols and C names.
21531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21533 # Transform the output of nm in a proper C declaration
21534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21536 # Transform the output of nm in a C name address pair
21537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21539 # This is the shared library runtime path variable.
21540 runpath_var=$runpath_var
21542 # This is the shared library path variable.
21543 shlibpath_var=$shlibpath_var
21545 # Is shlibpath searched before the hard-coded library search path?
21546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21548 # How to hardcode a shared library path into an executable.
21549 hardcode_action=$hardcode_action_RC
21551 # Whether we should hardcode library paths into libraries.
21552 hardcode_into_libs=$hardcode_into_libs
21554 # Flag to hardcode \$libdir into a binary during linking.
21555 # This must work even if \$libdir does not exist.
21556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21558 # If ld is used when linking, flag to hardcode \$libdir into
21559 # a binary during linking. This must work even if \$libdir does
21561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21563 # Whether we need a single -rpath flag with a separated argument.
21564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21567 # resulting binary.
21568 hardcode_direct=$hardcode_direct_RC
21570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21571 # resulting binary.
21572 hardcode_minus_L=$hardcode_minus_L_RC
21574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21575 # the resulting binary.
21576 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21578 # Set to yes if building a shared library automatically hardcodes DIR into the library
21579 # and all subsequent libraries and executables linked against it.
21580 hardcode_automatic=$hardcode_automatic_RC
21582 # Variables whose values should be saved in libtool wrapper scripts and
21583 # restored at relink time.
21584 variables_saved_for_relink="$variables_saved_for_relink"
21586 # Whether libtool must link a program against all its dependency libraries.
21587 link_all_deplibs=$link_all_deplibs_RC
21589 # Compile-time system search path for libraries
21590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21592 # Run-time system search path for libraries
21593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21595 # Fix the shell variable \$srcfile for the compiler.
21596 fix_srcfile_path="$fix_srcfile_path_RC"
21598 # Set to yes if exported symbols are required.
21599 always_export_symbols=$always_export_symbols_RC
21601 # The commands to list exported symbols.
21602 export_symbols_cmds=$lt_export_symbols_cmds_RC
21604 # The commands to extract the exported symbol list from a shared archive.
21605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21607 # Symbols that should not be listed in the preloaded symbols.
21608 exclude_expsyms=$lt_exclude_expsyms_RC
21610 # Symbols that must always be exported.
21611 include_expsyms=$lt_include_expsyms_RC
21613 # ### END LIBTOOL TAG CONFIG: $tagname
21619 # If there is no Makefile yet, we rely on a make rule to execute
21620 # `config.status --recheck' to rerun these tests and create the
21621 # libtool script then.
21622 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21623 if test -f "$ltmain_in"; then
21624 test -f Makefile && make "$ltmain"
21630 ac_cpp='$CPP $CPPFLAGS'
21631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21640 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21641 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21642 { (exit 1); exit 1; }; }
21646 # Append the new tag name to the list of available tags.
21647 if test -n "$tagname" ; then
21648 available_tags="$available_tags $tagname"
21654 # Now substitute the updated list of available tags.
21655 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21656 mv "${ofile}T" "$ofile"
21660 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21661 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21662 { (exit 1); exit 1; }; }
21668 # This can be used to rebuild libtool when needed
21669 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21671 # Always use our own libtool.
21672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21674 # Prevent multiple expansion
21697 if test $ol_enable_perl != no ; then
21698 # Extract the first word of "perl", so it can be a program name with args.
21699 set dummy perl; ac_word=$2
21700 echo "$as_me:$LINENO: checking for $ac_word" >&5
21701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21702 if test "${ac_cv_path_PERLBIN+set}" = set; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21714 test -z "$as_dir" && as_dir=.
21715 for ac_exec_ext in '' $ac_executable_extensions; do
21716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21717 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21724 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21728 PERLBIN=$ac_cv_path_PERLBIN
21730 if test -n "$PERLBIN"; then
21731 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21732 echo "${ECHO_T}$PERLBIN" >&6
21734 echo "$as_me:$LINENO: result: no" >&5
21735 echo "${ECHO_T}no" >&6
21739 if test "no$PERLBIN" = "no" ; then
21740 if test $ol_enable_perl = yes ; then
21741 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21742 echo "$as_me: error: could not locate perl" >&2;}
21743 { (exit 1); exit 1; }; }
21747 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21748 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21750 if test x"$ol_enable_perl" = "xyes" ; then
21751 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21753 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21760 ac_cpp='$CPP $CPPFLAGS'
21761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21764 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21765 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21766 # On Suns, sometimes $CPP names a directory.
21767 if test -n "$CPP" && test -d "$CPP"; then
21770 if test -z "$CPP"; then
21771 if test "${ac_cv_prog_CPP+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 # Double quotes because CPP needs to be expanded
21775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21777 ac_preproc_ok=false
21778 for ac_c_preproc_warn_flag in '' yes
21780 # Use a header file that comes with gcc, so configuring glibc
21781 # with a fresh cross-compiler works.
21782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21783 # <limits.h> exists even on freestanding compilers.
21784 # On the NeXT, cc -E runs the code through the compiler's parser,
21785 # not just through cpp. "Syntax error" is here to catch this case.
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21793 # include <limits.h>
21795 # include <assert.h>
21799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } >/dev/null; then
21807 if test -s conftest.err; then
21808 ac_cpp_err=$ac_c_preproc_warn_flag
21809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21816 if test -z "$ac_cpp_err"; then
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21822 # Broken: fails on valid input.
21825 rm -f conftest.err conftest.$ac_ext
21827 # OK, works on sane cases. Now check whether non-existent headers
21828 # can be detected and how.
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 #include <ac_nonexistent.h>
21837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21840 grep -v '^ *+' conftest.er1 >conftest.err
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } >/dev/null; then
21845 if test -s conftest.err; then
21846 ac_cpp_err=$ac_c_preproc_warn_flag
21847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21854 if test -z "$ac_cpp_err"; then
21855 # Broken: success on invalid input.
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21861 # Passes both tests.
21865 rm -f conftest.err conftest.$ac_ext
21868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21869 rm -f conftest.err conftest.$ac_ext
21870 if $ac_preproc_ok; then
21875 ac_cv_prog_CPP=$CPP
21878 CPP=$ac_cv_prog_CPP
21880 ac_cv_prog_CPP=$CPP
21882 echo "$as_me:$LINENO: result: $CPP" >&5
21883 echo "${ECHO_T}$CPP" >&6
21884 ac_preproc_ok=false
21885 for ac_c_preproc_warn_flag in '' yes
21887 # Use a header file that comes with gcc, so configuring glibc
21888 # with a fresh cross-compiler works.
21889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21890 # <limits.h> exists even on freestanding compilers.
21891 # On the NeXT, cc -E runs the code through the compiler's parser,
21892 # not just through cpp. "Syntax error" is here to catch this case.
21893 cat >conftest.$ac_ext <<_ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21900 # include <limits.h>
21902 # include <assert.h>
21906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21909 grep -v '^ *+' conftest.er1 >conftest.err
21911 cat conftest.err >&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } >/dev/null; then
21914 if test -s conftest.err; then
21915 ac_cpp_err=$ac_c_preproc_warn_flag
21916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21923 if test -z "$ac_cpp_err"; then
21926 echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 # Broken: fails on valid input.
21932 rm -f conftest.err conftest.$ac_ext
21934 # OK, works on sane cases. Now check whether non-existent headers
21935 # can be detected and how.
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 #include <ac_nonexistent.h>
21944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21947 grep -v '^ *+' conftest.er1 >conftest.err
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } >/dev/null; then
21952 if test -s conftest.err; then
21953 ac_cpp_err=$ac_c_preproc_warn_flag
21954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21961 if test -z "$ac_cpp_err"; then
21962 # Broken: success on invalid input.
21965 echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21968 # Passes both tests.
21972 rm -f conftest.err conftest.$ac_ext
21975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21976 rm -f conftest.err conftest.$ac_ext
21977 if $ac_preproc_ok; then
21980 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21981 See \`config.log' for more details." >&5
21982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21983 See \`config.log' for more details." >&2;}
21984 { (exit 1); exit 1; }; }
21988 ac_cpp='$CPP $CPPFLAGS'
21989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21997 *cygwin* ) CYGWIN=yes;;
22003 *mingw32* ) MINGW32=yes;;
22011 cat >>confdefs.h <<_ACEOF
22012 #define EXEEXT "${EXEEXT}"
22016 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22017 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22018 if test "${ac_cv_lib_be_be_app+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 ac_check_lib_save_LIBS=$LIBS
22022 LIBS="-lbe -lroot -lnet $LIBS"
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22030 /* Override any gcc2 internal prototype to avoid an error. */
22034 /* We use char because int might match the return type of a gcc2
22035 builtin and then its argument prototype would still apply. */
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22047 (eval $ac_link) 2>conftest.er1
22049 grep -v '^ *+' conftest.er1 >conftest.err
22051 cat conftest.err >&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } &&
22054 { ac_try='test -z "$ac_c_werror_flag"
22055 || test ! -s conftest.err'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest$ac_exeext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 ac_cv_lib_be_be_app=yes
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22072 ac_cv_lib_be_be_app=no
22074 rm -f conftest.err conftest.$ac_objext \
22075 conftest$ac_exeext conftest.$ac_ext
22076 LIBS=$ac_check_lib_save_LIBS
22078 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22079 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22080 if test $ac_cv_lib_be_be_app = yes; then
22081 LIBS="$LIBS -lbe -lroot -lnet"
22088 ac_cpp='$CPP $CPPFLAGS'
22089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22092 if test -n "$ac_tool_prefix"; then
22093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22095 echo "$as_me:$LINENO: checking for $ac_word" >&5
22096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22097 if test "${ac_cv_prog_CC+set}" = set; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22100 if test -n "$CC"; then
22101 ac_cv_prog_CC="$CC" # Let the user override the test.
22103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22104 for as_dir in $PATH
22107 test -z "$as_dir" && as_dir=.
22108 for ac_exec_ext in '' $ac_executable_extensions; do
22109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22120 if test -n "$CC"; then
22121 echo "$as_me:$LINENO: result: $CC" >&5
22122 echo "${ECHO_T}$CC" >&6
22124 echo "$as_me:$LINENO: result: no" >&5
22125 echo "${ECHO_T}no" >&6
22129 if test -z "$ac_cv_prog_CC"; then
22131 # Extract the first word of "gcc", so it can be a program name with args.
22132 set dummy gcc; ac_word=$2
22133 echo "$as_me:$LINENO: checking for $ac_word" >&5
22134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 if test -n "$ac_ct_CC"; then
22139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22142 for as_dir in $PATH
22145 test -z "$as_dir" && as_dir=.
22146 for ac_exec_ext in '' $ac_executable_extensions; do
22147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22148 ac_cv_prog_ac_ct_CC="gcc"
22149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22158 if test -n "$ac_ct_CC"; then
22159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22160 echo "${ECHO_T}$ac_ct_CC" >&6
22162 echo "$as_me:$LINENO: result: no" >&5
22163 echo "${ECHO_T}no" >&6
22168 CC="$ac_cv_prog_CC"
22171 if test -z "$CC"; then
22172 if test -n "$ac_tool_prefix"; then
22173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22174 set dummy ${ac_tool_prefix}cc; ac_word=$2
22175 echo "$as_me:$LINENO: checking for $ac_word" >&5
22176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22177 if test "${ac_cv_prog_CC+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 if test -n "$CC"; then
22181 ac_cv_prog_CC="$CC" # Let the user override the test.
22183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22184 for as_dir in $PATH
22187 test -z "$as_dir" && as_dir=.
22188 for ac_exec_ext in '' $ac_executable_extensions; do
22189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22190 ac_cv_prog_CC="${ac_tool_prefix}cc"
22191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22200 if test -n "$CC"; then
22201 echo "$as_me:$LINENO: result: $CC" >&5
22202 echo "${ECHO_T}$CC" >&6
22204 echo "$as_me:$LINENO: result: no" >&5
22205 echo "${ECHO_T}no" >&6
22209 if test -z "$ac_cv_prog_CC"; then
22211 # Extract the first word of "cc", so it can be a program name with args.
22212 set dummy cc; ac_word=$2
22213 echo "$as_me:$LINENO: checking for $ac_word" >&5
22214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 if test -n "$ac_ct_CC"; then
22219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22222 for as_dir in $PATH
22225 test -z "$as_dir" && as_dir=.
22226 for ac_exec_ext in '' $ac_executable_extensions; do
22227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22228 ac_cv_prog_ac_ct_CC="cc"
22229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22238 if test -n "$ac_ct_CC"; then
22239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22240 echo "${ECHO_T}$ac_ct_CC" >&6
22242 echo "$as_me:$LINENO: result: no" >&5
22243 echo "${ECHO_T}no" >&6
22248 CC="$ac_cv_prog_CC"
22252 if test -z "$CC"; then
22253 # Extract the first word of "cc", so it can be a program name with args.
22254 set dummy cc; ac_word=$2
22255 echo "$as_me:$LINENO: checking for $ac_word" >&5
22256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22257 if test "${ac_cv_prog_CC+set}" = set; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 if test -n "$CC"; then
22261 ac_cv_prog_CC="$CC" # Let the user override the test.
22263 ac_prog_rejected=no
22264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22265 for as_dir in $PATH
22268 test -z "$as_dir" && as_dir=.
22269 for ac_exec_ext in '' $ac_executable_extensions; do
22270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22272 ac_prog_rejected=yes
22276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22282 if test $ac_prog_rejected = yes; then
22283 # We found a bogon in the path, so make sure we never use it.
22284 set dummy $ac_cv_prog_CC
22286 if test $# != 0; then
22287 # We chose a different compiler from the bogus one.
22288 # However, it has the same basename, so the bogon will be chosen
22289 # first if we set CC to just the basename; use the full file name.
22291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22297 if test -n "$CC"; then
22298 echo "$as_me:$LINENO: result: $CC" >&5
22299 echo "${ECHO_T}$CC" >&6
22301 echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6
22306 if test -z "$CC"; then
22307 if test -n "$ac_tool_prefix"; then
22310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22312 echo "$as_me:$LINENO: checking for $ac_word" >&5
22313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22314 if test "${ac_cv_prog_CC+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 if test -n "$CC"; then
22318 ac_cv_prog_CC="$CC" # Let the user override the test.
22320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22321 for as_dir in $PATH
22324 test -z "$as_dir" && as_dir=.
22325 for ac_exec_ext in '' $ac_executable_extensions; do
22326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22337 if test -n "$CC"; then
22338 echo "$as_me:$LINENO: result: $CC" >&5
22339 echo "${ECHO_T}$CC" >&6
22341 echo "$as_me:$LINENO: result: no" >&5
22342 echo "${ECHO_T}no" >&6
22345 test -n "$CC" && break
22348 if test -z "$CC"; then
22352 # Extract the first word of "$ac_prog", so it can be a program name with args.
22353 set dummy $ac_prog; ac_word=$2
22354 echo "$as_me:$LINENO: checking for $ac_word" >&5
22355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22359 if test -n "$ac_ct_CC"; then
22360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22366 test -z "$as_dir" && as_dir=.
22367 for ac_exec_ext in '' $ac_executable_extensions; do
22368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22369 ac_cv_prog_ac_ct_CC="$ac_prog"
22370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22379 if test -n "$ac_ct_CC"; then
22380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22381 echo "${ECHO_T}$ac_ct_CC" >&6
22383 echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22387 test -n "$ac_ct_CC" && break
22396 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22397 See \`config.log' for more details." >&5
22398 echo "$as_me: error: no acceptable C compiler found in \$PATH
22399 See \`config.log' for more details." >&2;}
22400 { (exit 1); exit 1; }; }
22402 # Provide some information about the compiler.
22403 echo "$as_me:$LINENO:" \
22404 "checking for C compiler version" >&5
22405 ac_compiler=`set X $ac_compile; echo $2`
22406 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22407 (eval $ac_compiler --version </dev/null >&5) 2>&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }
22411 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22412 (eval $ac_compiler -v </dev/null >&5) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }
22416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22417 (eval $ac_compiler -V </dev/null >&5) 2>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }
22422 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22423 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22424 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22445 rm -f conftest.$ac_objext
22446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22447 (eval $ac_compile) 2>conftest.er1
22449 grep -v '^ *+' conftest.er1 >conftest.err
22451 cat conftest.err >&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } &&
22454 { ac_try='test -z "$ac_c_werror_flag"
22455 || test ! -s conftest.err'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; } &&
22461 { ac_try='test -s conftest.$ac_objext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ac_compiler_gnu=yes
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22475 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22478 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22479 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22480 GCC=`test $ac_compiler_gnu = yes && echo yes`
22481 ac_test_CFLAGS=${CFLAGS+set}
22482 ac_save_CFLAGS=$CFLAGS
22484 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22485 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22486 if test "${ac_cv_prog_cc_g+set}" = set; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -z "$ac_c_werror_flag"
22514 || test ! -s conftest.err'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; } &&
22520 { ac_try='test -s conftest.$ac_objext'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22526 ac_cv_prog_cc_g=yes
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22536 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22537 if test "$ac_test_CFLAGS" = set; then
22538 CFLAGS=$ac_save_CFLAGS
22539 elif test $ac_cv_prog_cc_g = yes; then
22540 if test "$GCC" = yes; then
22546 if test "$GCC" = yes; then
22552 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22553 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22554 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 ac_cv_prog_cc_stdc=no
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 #include <stdarg.h>
22567 #include <sys/types.h>
22568 #include <sys/stat.h>
22569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22570 struct buf { int x; };
22571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22572 static char *e (p, i)
22578 static char *f (char * (*g) (char **, int), char **p, ...)
22583 s = g (p, va_arg (v,int));
22588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22589 function prototypes and stuff, but not '\xHH' hex character constants.
22590 These don't provoke an error unfortunately, instead are silently treated
22591 as 'x'. The following induces an error, until -std1 is added to get
22592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22593 array size at least. It's necessary to write '\x00'==0 to get something
22594 that's true only with -std1. */
22595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22597 int test (int i, double x);
22598 struct s1 {int (*f) (int a);};
22599 struct s2 {int (*f) (double a);};
22600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22606 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22611 # Don't try gcc -ansi; that turns off useful extensions and
22612 # breaks some systems' header files.
22613 # AIX -qlanglvl=ansi
22614 # Ultrix and OSF/1 -std1
22615 # HP-UX 10.20 and later -Ae
22616 # HP-UX older versions -Aa -D_HPUX_SOURCE
22617 # SVR4 -Xc -D__EXTENSIONS__
22618 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22620 CC="$ac_save_CC $ac_arg"
22621 rm -f conftest.$ac_objext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>conftest.er1
22625 grep -v '^ *+' conftest.er1 >conftest.err
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -z "$ac_c_werror_flag"
22631 || test ! -s conftest.err'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } &&
22637 { ac_try='test -s conftest.$ac_objext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 ac_cv_prog_cc_stdc=$ac_arg
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22650 rm -f conftest.err conftest.$ac_objext
22652 rm -f conftest.$ac_ext conftest.$ac_objext
22657 case "x$ac_cv_prog_cc_stdc" in
22659 echo "$as_me:$LINENO: result: none needed" >&5
22660 echo "${ECHO_T}none needed" >&6 ;;
22662 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22663 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22664 CC="$CC $ac_cv_prog_cc_stdc" ;;
22667 # Some people use a C++ compiler to compile C. Since we use `exit',
22668 # in C++ we need to declare it. In case someone uses the same compiler
22669 # for both compiling C and C++ we need to have the C++ compiler decide
22670 # the declaration of exit, since it's the most demanding environment.
22671 cat >conftest.$ac_ext <<_ACEOF
22672 #ifndef __cplusplus
22676 rm -f conftest.$ac_objext
22677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22678 (eval $ac_compile) 2>conftest.er1
22680 grep -v '^ *+' conftest.er1 >conftest.err
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
22685 { ac_try='test -z "$ac_c_werror_flag"
22686 || test ! -s conftest.err'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; } &&
22692 { ac_try='test -s conftest.$ac_objext'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 for ac_declaration in \
22700 'extern "C" void std::exit (int) throw (); using std::exit;' \
22701 'extern "C" void std::exit (int); using std::exit;' \
22702 'extern "C" void exit (int) throw ();' \
22703 'extern "C" void exit (int);' \
22706 cat >conftest.$ac_ext <<_ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22713 #include <stdlib.h>
22722 rm -f conftest.$ac_objext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22724 (eval $ac_compile) 2>conftest.er1
22726 grep -v '^ *+' conftest.er1 >conftest.err
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } &&
22731 { ac_try='test -z "$ac_c_werror_flag"
22732 || test ! -s conftest.err'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; } &&
22738 { ac_try='test -s conftest.$ac_objext'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22752 cat >conftest.$ac_ext <<_ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h. */
22767 rm -f conftest.$ac_objext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22769 (eval $ac_compile) 2>conftest.er1
22771 grep -v '^ *+' conftest.er1 >conftest.err
22773 cat conftest.err >&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } &&
22776 { ac_try='test -z "$ac_c_werror_flag"
22777 || test ! -s conftest.err'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; } &&
22783 { ac_try='test -s conftest.$ac_objext'
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; }; then
22791 echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22798 if test -n "$ac_declaration"; then
22799 echo '#ifdef __cplusplus' >>confdefs.h
22800 echo $ac_declaration >>confdefs.h
22801 echo '#endif' >>confdefs.h
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22811 ac_cpp='$CPP $CPPFLAGS'
22812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22816 depcc="$CC" am_compiler_list=
22818 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22819 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22820 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22824 # We make a subdir and do the tests there. Otherwise we can end up
22825 # making bogus files that we don't know about and never remove. For
22826 # instance it was reported that on HP-UX the gcc test will end up
22827 # making a dummy file named `D' -- because `-MD' means `put the output
22830 # Copy depcomp to subdir because otherwise we won't find it if we're
22831 # using a relative directory.
22832 cp "$am_depcomp" conftest.dir
22834 # We will build objects and dependencies in a subdirectory because
22835 # it helps to detect inapplicable dependency modes. For instance
22836 # both Tru64's cc and ICC support -MD to output dependencies as a
22837 # side effect of compilation, but ICC will put the dependencies in
22838 # the current directory while Tru64 will put them in the object
22842 am_cv_CC_dependencies_compiler_type=none
22843 if test "$am_compiler_list" = ""; then
22844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22846 for depmode in $am_compiler_list; do
22847 # Setup a source with many dependencies, because some compilers
22848 # like to wrap large dependency lists on column 80 (with \), and
22849 # we should not choose a depcomp mode which is confused by this.
22851 # We need to recreate these files for each test, as the compiler may
22852 # overwrite some of them when testing with obscure command lines.
22853 # This happens at least with the AIX C compiler.
22855 for i in 1 2 3 4 5 6; do
22856 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22857 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22858 # Solaris 8's {/usr,}/bin/sh.
22859 touch sub/conftst$i.h
22861 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22865 # after this tag, mechanisms are not by side-effect, so they'll
22866 # only be used when explicitly requested
22867 if test "x$enable_dependency_tracking" = xyes; then
22875 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22876 # mode. It turns out that the SunPro C++ compiler does not properly
22877 # handle `-M -o', and we need to detect this.
22878 if depmode=$depmode \
22879 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22881 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22882 >/dev/null 2>conftest.err &&
22883 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22884 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22885 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22886 # icc doesn't choke on unknown options, it will just issue warnings
22887 # or remarks (even with -Werror). So we grep stderr for any message
22888 # that says an option was ignored or not supported.
22889 # When given -MP, icc 7.0 and 7.1 complain thusly:
22890 # icc: Command line warning: ignoring option '-M'; no argument required
22891 # The diagnosis changed in icc 8.0:
22892 # icc: Command line remark: option '-MP' not supported
22893 if (grep 'ignoring option' conftest.err ||
22894 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22895 am_cv_CC_dependencies_compiler_type=$depmode
22902 rm -rf conftest.dir
22904 am_cv_CC_dependencies_compiler_type=none
22908 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22909 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22915 test "x$enable_dependency_tracking" != xno \
22916 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22917 am__fastdepCC_TRUE=
22918 am__fastdepCC_FALSE='#'
22920 am__fastdepCC_TRUE='#'
22921 am__fastdepCC_FALSE=
22926 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
22928 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
22929 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22930 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22931 { (exit 1); exit 1; }; }
22934 # test for make depend flag
22937 if test -z "${MKDEP}"; then
22938 OL_MKDEP="${CC-cc}"
22939 if test -z "${MKDEP_FLAGS}"; then
22940 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22941 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22942 if test "${ol_cv_mkdep+set}" = set; then
22943 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 for flag in "-M" "-xM"; do
22948 cat > conftest.c <<EOF
22951 if { ac_try='$OL_MKDEP $flag conftest.c'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; } \
22957 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22959 if test ! -f conftest."${ac_object}" ; then
22961 OL_MKDEP_FLAGS="$flag"
22969 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22970 echo "${ECHO_T}$ol_cv_mkdep" >&6
22973 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22977 OL_MKDEP="${MKDEP}"
22978 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22983 if test "${ol_cv_mkdep}" = no ; then
22984 # this will soon become an error
22985 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22986 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22989 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22990 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22991 if test "${ac_cv_lib_s_afopen+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 ac_check_lib_save_LIBS=$LIBS
22996 cat >conftest.$ac_ext <<_ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23003 /* Override any gcc2 internal prototype to avoid an error. */
23007 /* We use char because int might match the return type of a gcc2
23008 builtin and then its argument prototype would still apply. */
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>conftest.er1
23022 grep -v '^ *+' conftest.er1 >conftest.err
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
23027 { ac_try='test -z "$ac_c_werror_flag"
23028 || test ! -s conftest.err'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; } &&
23034 { ac_try='test -s conftest$ac_exeext'
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; }; then
23040 ac_cv_lib_s_afopen=yes
23042 echo "$as_me: failed program was:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23045 ac_cv_lib_s_afopen=no
23047 rm -f conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
23049 LIBS=$ac_check_lib_save_LIBS
23051 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23052 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23053 if test $ac_cv_lib_s_afopen = yes; then
23057 cat >>confdefs.h <<\_ACEOF
23058 #define HAVE_AIX_SECURITY 1
23067 ac_cv_func_getopt=no
23069 cat >>confdefs.h <<\_ACEOF
23070 #define BOTH_STRINGS_H 1
23077 WITH_MODULES_ENABLED=no
23078 if test $ol_enable_modules != no ; then
23080 for ac_header in ltdl.h
23082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23084 echo "$as_me:$LINENO: checking for $ac_header" >&5
23085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23092 # Is the header compilable?
23093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23102 #include <$ac_header>
23104 rm -f conftest.$ac_objext
23105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23106 (eval $ac_compile) 2>conftest.er1
23108 grep -v '^ *+' conftest.er1 >conftest.err
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } &&
23113 { ac_try='test -z "$ac_c_werror_flag"
23114 || test ! -s conftest.err'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; } &&
23120 { ac_try='test -s conftest.$ac_objext'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 ac_header_compiler=yes
23128 echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23131 ac_header_compiler=no
23133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23135 echo "${ECHO_T}$ac_header_compiler" >&6
23137 # Is the header present?
23138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23140 cat >conftest.$ac_ext <<_ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 #include <$ac_header>
23148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } >/dev/null; then
23156 if test -s conftest.err; then
23157 ac_cpp_err=$ac_c_preproc_warn_flag
23158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23165 if test -z "$ac_cpp_err"; then
23166 ac_header_preproc=yes
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ac_header_preproc=no
23173 rm -f conftest.err conftest.$ac_ext
23174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23175 echo "${ECHO_T}$ac_header_preproc" >&6
23177 # So? What about this header?
23178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23184 ac_header_preproc=yes
23187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23201 ## ------------------------------------------ ##
23202 ## Report this to the AC_PACKAGE_NAME lists. ##
23203 ## ------------------------------------------ ##
23206 sed "s/^/$as_me: WARNING: /" >&2
23209 echo "$as_me:$LINENO: checking for $ac_header" >&5
23210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23212 echo $ECHO_N "(cached) $ECHO_C" >&6
23214 eval "$as_ac_Header=\$ac_header_preproc"
23216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23221 cat >>confdefs.h <<_ACEOF
23222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23230 if test $ac_cv_header_ltdl_h = no ; then
23231 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23232 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23233 { (exit 1); exit 1; }; }
23236 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23237 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23238 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 ac_check_lib_save_LIBS=$LIBS
23242 LIBS="-lltdl $LIBS"
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 /* Override any gcc2 internal prototype to avoid an error. */
23254 /* We use char because int might match the return type of a gcc2
23255 builtin and then its argument prototype would still apply. */
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267 (eval $ac_link) 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -z "$ac_c_werror_flag"
23275 || test ! -s conftest.err'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest$ac_exeext'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_cv_lib_ltdl_lt_dlinit=yes
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ac_cv_lib_ltdl_lt_dlinit=no
23294 rm -f conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23298 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23299 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23300 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23302 MODULES_LIBS=-lltdl
23304 cat >>confdefs.h <<\_ACEOF
23305 #define HAVE_LIBLTDL 1
23312 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23313 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23314 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23315 { (exit 1); exit 1; }; }
23317 ol_link_modules=yes
23318 WITH_MODULES_ENABLED=yes
23321 for i in $Backends; do
23322 eval "ol_tmp=\$ol_enable_$i"
23323 if test $ol_tmp = mod ; then
23324 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23325 echo "$as_me: WARNING: building static $i backend" >&2;}
23326 eval "ol_enable_$i=yes"
23329 for i in $Overlays; do
23330 eval "ol_tmp=\$ol_enable_$i"
23331 if test $ol_tmp = mod ; then
23332 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23333 echo "$as_me: WARNING: building static $i overlay" >&2;}
23334 eval "ol_enable_$i=yes"
23340 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23341 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23342 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23343 echo $ECHO_N "(cached) $ECHO_C" >&6
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23354 #include <__ASCII__/generate_error.h>
23358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23361 grep -v '^ *+' conftest.er1 >conftest.err
23363 cat conftest.err >&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } >/dev/null; then
23366 if test -s conftest.err; then
23367 ac_cpp_err=$ac_c_preproc_warn_flag
23368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23375 if test -z "$ac_cpp_err"; then
23376 ol_cv_cpp_ebcdic=yes
23378 echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23381 ol_cv_cpp_ebcdic=no
23383 rm -f conftest.err conftest.$ac_ext
23385 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23386 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23387 if test $ol_cv_cpp_ebcdic = yes ; then
23389 cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_EBCDIC 1
23395 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23396 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23397 if test "${ol_cv_header_stdc+set}" = set; then
23398 echo $ECHO_N "(cached) $ECHO_C" >&6
23400 cat >conftest.$ac_ext <<_ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h. */
23406 #include <stdlib.h>
23407 #include <stdarg.h>
23408 #include <string.h>
23411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } >/dev/null; then
23419 if test -s conftest.err; then
23420 ac_cpp_err=$ac_c_preproc_warn_flag
23421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23428 if test -z "$ac_cpp_err"; then
23429 ol_cv_header_stdc=yes
23431 echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23434 ol_cv_header_stdc=no
23436 rm -f conftest.err conftest.$ac_ext
23438 if test $ol_cv_header_stdc = yes; then
23439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23440 cat >conftest.$ac_ext <<_ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23446 #include <string.h>
23449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23450 $EGREP "memchr" >/dev/null 2>&1; then
23453 ol_cv_header_stdc=no
23459 if test $ol_cv_header_stdc = yes; then
23460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23461 cat >conftest.$ac_ext <<_ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h. */
23467 #include <stdlib.h>
23470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23471 $EGREP "free" >/dev/null 2>&1; then
23474 ol_cv_header_stdc=no
23480 if test $ol_cv_header_stdc = yes; then
23481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23482 if test "$cross_compiling" = yes; then
23485 cat >conftest.$ac_ext <<_ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23492 #ifndef HAVE_EBCDIC
23493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23496 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23497 || ('j' <= (c) && (c) <= 'r') \
23498 || ('s' <= (c) && (c) <= 'z'))
23499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23502 int main () { int i; for (i = 0; i < 256; i++)
23503 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23507 rm -f conftest$ac_exeext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509 (eval $ac_link) 2>&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; }; then
23520 echo "$as_me: program exited with status $ac_status" >&5
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23524 ( exit $ac_status )
23525 ol_cv_header_stdc=no
23527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23531 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23532 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23533 if test $ol_cv_header_stdc = yes; then
23534 cat >>confdefs.h <<\_ACEOF
23535 #define STDC_HEADERS 1
23539 ac_cv_header_stdc=disable
23542 if test $ol_cv_header_stdc != yes; then
23543 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23544 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23552 ac_header_dirent=no
23553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23554 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23555 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23558 echo $ECHO_N "(cached) $ECHO_C" >&6
23560 cat >conftest.$ac_ext <<_ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23566 #include <sys/types.h>
23578 rm -f conftest.$ac_objext
23579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23580 (eval $ac_compile) 2>conftest.er1
23582 grep -v '^ *+' conftest.er1 >conftest.err
23584 cat conftest.err >&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } &&
23587 { ac_try='test -z "$ac_c_werror_flag"
23588 || test ! -s conftest.err'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; } &&
23594 { ac_try='test -s conftest.$ac_objext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 eval "$as_ac_Header=yes"
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 eval "$as_ac_Header=no"
23607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23612 cat >>confdefs.h <<_ACEOF
23613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23616 ac_header_dirent=$ac_hdr; break
23620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23621 if test $ac_header_dirent = dirent.h; then
23622 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23624 if test "${ac_cv_search_opendir+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23627 ac_func_search_save_LIBS=$LIBS
23628 ac_cv_search_opendir=no
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23636 /* Override any gcc2 internal prototype to avoid an error. */
23640 /* We use char because int might match the return type of a gcc2
23641 builtin and then its argument prototype would still apply. */
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>conftest.er1
23655 grep -v '^ *+' conftest.er1 >conftest.err
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } &&
23660 { ac_try='test -z "$ac_c_werror_flag"
23661 || test ! -s conftest.err'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; } &&
23667 { ac_try='test -s conftest$ac_exeext'
23668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669 (eval $ac_try) 2>&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); }; }; then
23673 ac_cv_search_opendir="none required"
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23679 rm -f conftest.err conftest.$ac_objext \
23680 conftest$ac_exeext conftest.$ac_ext
23681 if test "$ac_cv_search_opendir" = no; then
23682 for ac_lib in dir; do
23683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23691 /* Override any gcc2 internal prototype to avoid an error. */
23695 /* We use char because int might match the return type of a gcc2
23696 builtin and then its argument prototype would still apply. */
23706 rm -f conftest.$ac_objext conftest$ac_exeext
23707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23708 (eval $ac_link) 2>conftest.er1
23710 grep -v '^ *+' conftest.er1 >conftest.err
23712 cat conftest.err >&5
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } &&
23715 { ac_try='test -z "$ac_c_werror_flag"
23716 || test ! -s conftest.err'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; } &&
23722 { ac_try='test -s conftest$ac_exeext'
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; }; then
23728 ac_cv_search_opendir="-l$ac_lib"
23731 echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23735 rm -f conftest.err conftest.$ac_objext \
23736 conftest$ac_exeext conftest.$ac_ext
23739 LIBS=$ac_func_search_save_LIBS
23741 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23742 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23743 if test "$ac_cv_search_opendir" != no; then
23744 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23749 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23751 if test "${ac_cv_search_opendir+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 ac_func_search_save_LIBS=$LIBS
23755 ac_cv_search_opendir=no
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23763 /* Override any gcc2 internal prototype to avoid an error. */
23767 /* We use char because int might match the return type of a gcc2
23768 builtin and then its argument prototype would still apply. */
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23780 (eval $ac_link) 2>conftest.er1
23782 grep -v '^ *+' conftest.er1 >conftest.err
23784 cat conftest.err >&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
23787 { ac_try='test -z "$ac_c_werror_flag"
23788 || test ! -s conftest.err'
23789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790 (eval $ac_try) 2>&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); }; } &&
23794 { ac_try='test -s conftest$ac_exeext'
23795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796 (eval $ac_try) 2>&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23800 ac_cv_search_opendir="none required"
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23806 rm -f conftest.err conftest.$ac_objext \
23807 conftest$ac_exeext conftest.$ac_ext
23808 if test "$ac_cv_search_opendir" = no; then
23809 for ac_lib in x; do
23810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23811 cat >conftest.$ac_ext <<_ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23818 /* Override any gcc2 internal prototype to avoid an error. */
23822 /* We use char because int might match the return type of a gcc2
23823 builtin and then its argument prototype would still apply. */
23833 rm -f conftest.$ac_objext conftest$ac_exeext
23834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23835 (eval $ac_link) 2>conftest.er1
23837 grep -v '^ *+' conftest.er1 >conftest.err
23839 cat conftest.err >&5
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } &&
23842 { ac_try='test -z "$ac_c_werror_flag"
23843 || test ! -s conftest.err'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; } &&
23849 { ac_try='test -s conftest$ac_exeext'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
23855 ac_cv_search_opendir="-l$ac_lib"
23858 echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23862 rm -f conftest.err conftest.$ac_objext \
23863 conftest$ac_exeext conftest.$ac_ext
23866 LIBS=$ac_func_search_save_LIBS
23868 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23869 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23870 if test "$ac_cv_search_opendir" != no; then
23871 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23877 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23878 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23879 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23880 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 #include <sys/types.h>
23889 #include <sys/wait.h>
23890 #ifndef WEXITSTATUS
23891 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23894 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23902 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23907 rm -f conftest.$ac_objext
23908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23909 (eval $ac_compile) 2>conftest.er1
23911 grep -v '^ *+' conftest.er1 >conftest.err
23913 cat conftest.err >&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } &&
23916 { ac_try='test -z "$ac_c_werror_flag"
23917 || test ! -s conftest.err'
23918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919 (eval $ac_try) 2>&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; } &&
23923 { ac_try='test -s conftest.$ac_objext'
23924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925 (eval $ac_try) 2>&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); }; }; then
23929 ac_cv_header_sys_wait_h=yes
23931 echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23934 ac_cv_header_sys_wait_h=no
23936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23938 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23939 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23940 if test $ac_cv_header_sys_wait_h = yes; then
23942 cat >>confdefs.h <<\_ACEOF
23943 #define HAVE_SYS_WAIT_H 1
23948 AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
23949 if test $am_cv_sys_posix_termios = yes ; then
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_POSIX_TERMIOS 1
24058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24060 echo "$as_me:$LINENO: checking for $ac_header" >&5
24061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24068 # Is the header compilable?
24069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24071 cat >conftest.$ac_ext <<_ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24077 $ac_includes_default
24078 #include <$ac_header>
24080 rm -f conftest.$ac_objext
24081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24082 (eval $ac_compile) 2>conftest.er1
24084 grep -v '^ *+' conftest.er1 >conftest.err
24086 cat conftest.err >&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } &&
24089 { ac_try='test -z "$ac_c_werror_flag"
24090 || test ! -s conftest.err'
24091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24092 (eval $ac_try) 2>&5
24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); }; } &&
24096 { ac_try='test -s conftest.$ac_objext'
24097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098 (eval $ac_try) 2>&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); }; }; then
24102 ac_header_compiler=yes
24104 echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24107 ac_header_compiler=no
24109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24111 echo "${ECHO_T}$ac_header_compiler" >&6
24113 # Is the header present?
24114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24116 cat >conftest.$ac_ext <<_ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 #include <$ac_header>
24124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24127 grep -v '^ *+' conftest.er1 >conftest.err
24129 cat conftest.err >&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } >/dev/null; then
24132 if test -s conftest.err; then
24133 ac_cpp_err=$ac_c_preproc_warn_flag
24134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24141 if test -z "$ac_cpp_err"; then
24142 ac_header_preproc=yes
24144 echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24147 ac_header_preproc=no
24149 rm -f conftest.err conftest.$ac_ext
24150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24151 echo "${ECHO_T}$ac_header_preproc" >&6
24153 # So? What about this header?
24154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24160 ac_header_preproc=yes
24163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24177 ## ------------------------------------------ ##
24178 ## Report this to the AC_PACKAGE_NAME lists. ##
24179 ## ------------------------------------------ ##
24182 sed "s/^/$as_me: WARNING: /" >&2
24185 echo "$as_me:$LINENO: checking for $ac_header" >&5
24186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24188 echo $ECHO_N "(cached) $ECHO_C" >&6
24190 eval "$as_ac_Header=\$ac_header_preproc"
24192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24197 cat >>confdefs.h <<_ACEOF
24198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24209 for ac_func in sigaction sigset
24211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24212 echo "$as_me:$LINENO: checking for $ac_func" >&5
24213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24214 if eval "test \"\${$as_ac_var+set}\" = set"; then
24215 echo $ECHO_N "(cached) $ECHO_C" >&6
24217 cat >conftest.$ac_ext <<_ACEOF
24220 cat confdefs.h >>conftest.$ac_ext
24221 cat >>conftest.$ac_ext <<_ACEOF
24222 /* end confdefs.h. */
24223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24225 #define $ac_func innocuous_$ac_func
24227 /* System header to define __stub macros and hopefully few prototypes,
24228 which can conflict with char $ac_func (); below.
24229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24230 <limits.h> exists even on freestanding compilers. */
24233 # include <limits.h>
24235 # include <assert.h>
24240 /* Override any gcc2 internal prototype to avoid an error. */
24245 /* We use char because int might match the return type of a gcc2
24246 builtin and then its argument prototype would still apply. */
24248 /* The GNU C library defines this for functions which it implements
24249 to always fail with ENOSYS. Some functions are actually named
24250 something starting with __ and the normal name is an alias. */
24251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24254 char (*f) () = $ac_func;
24263 return f != $ac_func;
24268 rm -f conftest.$ac_objext conftest$ac_exeext
24269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24270 (eval $ac_link) 2>conftest.er1
24272 grep -v '^ *+' conftest.er1 >conftest.err
24274 cat conftest.err >&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } &&
24277 { ac_try='test -z "$ac_c_werror_flag"
24278 || test ! -s conftest.err'
24279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280 (eval $ac_try) 2>&5
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); }; } &&
24284 { ac_try='test -s conftest$ac_exeext'
24285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286 (eval $ac_try) 2>&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; }; then
24290 eval "$as_ac_var=yes"
24292 echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24295 eval "$as_ac_var=no"
24297 rm -f conftest.err conftest.$ac_objext \
24298 conftest$ac_exeext conftest.$ac_ext
24300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24302 if test `eval echo '${'$as_ac_var'}'` = yes; then
24303 cat >>confdefs.h <<_ACEOF
24304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24311 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24313 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24314 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24315 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24316 echo $ECHO_N "(cached) $ECHO_C" >&6
24318 ac_check_lib_save_LIBS=$LIBS
24320 cat >conftest.$ac_ext <<_ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24327 /* Override any gcc2 internal prototype to avoid an error. */
24331 /* We use char because int might match the return type of a gcc2
24332 builtin and then its argument prototype would still apply. */
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24344 (eval $ac_link) 2>conftest.er1
24346 grep -v '^ *+' conftest.er1 >conftest.err
24348 cat conftest.err >&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } &&
24351 { ac_try='test -z "$ac_c_werror_flag"
24352 || test ! -s conftest.err'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; } &&
24358 { ac_try='test -s conftest$ac_exeext'
24359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360 (eval $ac_try) 2>&5
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); }; }; then
24364 ac_cv_lib_V3_sigset=yes
24366 echo "$as_me: failed program was:" >&5
24367 sed 's/^/| /' conftest.$ac_ext >&5
24369 ac_cv_lib_V3_sigset=no
24371 rm -f conftest.err conftest.$ac_objext \
24372 conftest$ac_exeext conftest.$ac_ext
24373 LIBS=$ac_check_lib_save_LIBS
24375 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24376 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24377 if test $ac_cv_lib_V3_sigset = yes; then
24378 cat >>confdefs.h <<_ACEOF
24379 #define HAVE_LIBV3 1
24388 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24389 echo "$as_me:$LINENO: checking for winsock" >&5
24390 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24391 if test "${ol_cv_winsock+set}" = set; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24395 for curlib in ws2_32 wsock32; do
24396 LIBS="$LIBS -l$curlib"
24397 cat >conftest.$ac_ext <<_ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h. */
24403 #include <winsock.h>
24410 select(0,NULL,NULL,NULL,NULL);
24412 gethostname(NULL,0);
24418 rm -f conftest.$ac_objext conftest$ac_exeext
24419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24420 (eval $ac_link) 2>conftest.er1
24422 grep -v '^ *+' conftest.er1 >conftest.err
24424 cat conftest.err >&5
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } &&
24427 { ac_try='test -z "$ac_c_werror_flag"
24428 || test ! -s conftest.err'
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest$ac_exeext'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24447 rm -f conftest.err conftest.$ac_objext \
24448 conftest$ac_exeext conftest.$ac_ext
24450 if test $ol_cv_winsock = yes; then
24452 cat >>confdefs.h <<\_ACEOF
24453 #define HAVE_WINSOCK 1
24456 ac_cv_func_socket=yes
24457 ac_cv_func_select=yes
24458 ac_cv_func_closesocket=yes
24459 ac_cv_func_gethostname=yes
24460 if test $curlib = ws2_32; then
24461 ol_cv_winsock=winsock2
24463 cat >>confdefs.h <<\_ACEOF
24464 #define HAVE_WINSOCK2 1
24473 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24474 echo "${ECHO_T}$ol_cv_winsock" >&6
24478 echo "$as_me:$LINENO: checking for socket" >&5
24479 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24480 if test "${ac_cv_func_socket+set}" = set; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24491 #define socket innocuous_socket
24493 /* System header to define __stub macros and hopefully few prototypes,
24494 which can conflict with char socket (); below.
24495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24496 <limits.h> exists even on freestanding compilers. */
24499 # include <limits.h>
24501 # include <assert.h>
24506 /* Override any gcc2 internal prototype to avoid an error. */
24511 /* We use char because int might match the return type of a gcc2
24512 builtin and then its argument prototype would still apply. */
24514 /* The GNU C library defines this for functions which it implements
24515 to always fail with ENOSYS. Some functions are actually named
24516 something starting with __ and the normal name is an alias. */
24517 #if defined (__stub_socket) || defined (__stub___socket)
24520 char (*f) () = socket;
24529 return f != socket;
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536 (eval $ac_link) 2>conftest.er1
24538 grep -v '^ *+' conftest.er1 >conftest.err
24540 cat conftest.err >&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } &&
24543 { ac_try='test -z "$ac_c_werror_flag"
24544 || test ! -s conftest.err'
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; } &&
24550 { ac_try='test -s conftest$ac_exeext'
24551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552 (eval $ac_try) 2>&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); }; }; then
24556 ac_cv_func_socket=yes
24558 echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24561 ac_cv_func_socket=no
24563 rm -f conftest.err conftest.$ac_objext \
24564 conftest$ac_exeext conftest.$ac_ext
24566 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24567 echo "${ECHO_T}$ac_cv_func_socket" >&6
24568 if test $ac_cv_func_socket = yes; then
24573 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24574 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24575 if test "${ac_cv_lib_socket_main+set}" = set; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24578 ac_check_lib_save_LIBS=$LIBS
24579 LIBS="-lsocket $LIBS"
24580 cat >conftest.$ac_ext <<_ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24596 rm -f conftest.$ac_objext conftest$ac_exeext
24597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24598 (eval $ac_link) 2>conftest.er1
24600 grep -v '^ *+' conftest.er1 >conftest.err
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } &&
24605 { ac_try='test -z "$ac_c_werror_flag"
24606 || test ! -s conftest.err'
24607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608 (eval $ac_try) 2>&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); }; } &&
24612 { ac_try='test -s conftest$ac_exeext'
24613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614 (eval $ac_try) 2>&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
24618 ac_cv_lib_socket_main=yes
24620 echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 ac_cv_lib_socket_main=no
24625 rm -f conftest.err conftest.$ac_objext \
24626 conftest$ac_exeext conftest.$ac_ext
24627 LIBS=$ac_check_lib_save_LIBS
24629 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24630 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24631 if test $ac_cv_lib_socket_main = yes; then
24632 cat >>confdefs.h <<_ACEOF
24633 #define HAVE_LIBSOCKET 1
24636 LIBS="-lsocket $LIBS"
24641 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24642 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24643 if test "${ac_cv_lib_net_main+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 ac_check_lib_save_LIBS=$LIBS
24648 cat >conftest.$ac_ext <<_ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24664 rm -f conftest.$ac_objext conftest$ac_exeext
24665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24666 (eval $ac_link) 2>conftest.er1
24668 grep -v '^ *+' conftest.er1 >conftest.err
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } &&
24673 { ac_try='test -z "$ac_c_werror_flag"
24674 || test ! -s conftest.err'
24675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676 (eval $ac_try) 2>&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); }; } &&
24680 { ac_try='test -s conftest$ac_exeext'
24681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682 (eval $ac_try) 2>&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; }; then
24686 ac_cv_lib_net_main=yes
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 ac_cv_lib_net_main=no
24693 rm -f conftest.err conftest.$ac_objext \
24694 conftest$ac_exeext conftest.$ac_ext
24695 LIBS=$ac_check_lib_save_LIBS
24697 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24698 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24699 if test $ac_cv_lib_net_main = yes; then
24700 cat >>confdefs.h <<_ACEOF
24701 #define HAVE_LIBNET 1
24709 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24710 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24711 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24712 echo $ECHO_N "(cached) $ECHO_C" >&6
24714 ac_check_lib_save_LIBS=$LIBS
24715 LIBS="-lnsl_s $LIBS"
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734 (eval $ac_link) 2>conftest.er1
24736 grep -v '^ *+' conftest.er1 >conftest.err
24738 cat conftest.err >&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } &&
24741 { ac_try='test -z "$ac_c_werror_flag"
24742 || test ! -s conftest.err'
24743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744 (eval $ac_try) 2>&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; } &&
24748 { ac_try='test -s conftest$ac_exeext'
24749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750 (eval $ac_try) 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; }; then
24754 ac_cv_lib_nsl_s_main=yes
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24759 ac_cv_lib_nsl_s_main=no
24761 rm -f conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
24763 LIBS=$ac_check_lib_save_LIBS
24765 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24766 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24767 if test $ac_cv_lib_nsl_s_main = yes; then
24768 cat >>confdefs.h <<_ACEOF
24769 #define HAVE_LIBNSL_S 1
24772 LIBS="-lnsl_s $LIBS"
24777 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24778 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24779 if test "${ac_cv_lib_nsl_main+set}" = set; then
24780 echo $ECHO_N "(cached) $ECHO_C" >&6
24782 ac_check_lib_save_LIBS=$LIBS
24784 cat >conftest.$ac_ext <<_ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h. */
24800 rm -f conftest.$ac_objext conftest$ac_exeext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24802 (eval $ac_link) 2>conftest.er1
24804 grep -v '^ *+' conftest.er1 >conftest.err
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } &&
24809 { ac_try='test -z "$ac_c_werror_flag"
24810 || test ! -s conftest.err'
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; } &&
24816 { ac_try='test -s conftest$ac_exeext'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
24822 ac_cv_lib_nsl_main=yes
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ac_cv_lib_nsl_main=no
24829 rm -f conftest.err conftest.$ac_objext \
24830 conftest$ac_exeext conftest.$ac_ext
24831 LIBS=$ac_check_lib_save_LIBS
24833 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24834 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24835 if test $ac_cv_lib_nsl_main = yes; then
24836 cat >>confdefs.h <<_ACEOF
24837 #define HAVE_LIBNSL 1
24845 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24846 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24847 if test "${ac_cv_lib_inet_socket+set}" = set; then
24848 echo $ECHO_N "(cached) $ECHO_C" >&6
24850 ac_check_lib_save_LIBS=$LIBS
24851 LIBS="-linet $LIBS"
24852 cat >conftest.$ac_ext <<_ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h. */
24859 /* Override any gcc2 internal prototype to avoid an error. */
24863 /* We use char because int might match the return type of a gcc2
24864 builtin and then its argument prototype would still apply. */
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24876 (eval $ac_link) 2>conftest.er1
24878 grep -v '^ *+' conftest.er1 >conftest.err
24880 cat conftest.err >&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } &&
24883 { ac_try='test -z "$ac_c_werror_flag"
24884 || test ! -s conftest.err'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; } &&
24890 { ac_try='test -s conftest$ac_exeext'
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; }; then
24896 ac_cv_lib_inet_socket=yes
24898 echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24901 ac_cv_lib_inet_socket=no
24903 rm -f conftest.err conftest.$ac_objext \
24904 conftest$ac_exeext conftest.$ac_ext
24905 LIBS=$ac_check_lib_save_LIBS
24907 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24908 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24909 if test $ac_cv_lib_inet_socket = yes; then
24910 cat >>confdefs.h <<_ACEOF
24911 #define HAVE_LIBINET 1
24914 LIBS="-linet $LIBS"
24919 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24920 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24921 if test "${ac_cv_lib_gen_main+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 ac_check_lib_save_LIBS=$LIBS
24926 cat >conftest.$ac_ext <<_ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944 (eval $ac_link) 2>conftest.er1
24946 grep -v '^ *+' conftest.er1 >conftest.err
24948 cat conftest.err >&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } &&
24951 { ac_try='test -z "$ac_c_werror_flag"
24952 || test ! -s conftest.err'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; } &&
24958 { ac_try='test -s conftest$ac_exeext'
24959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; }; then
24964 ac_cv_lib_gen_main=yes
24966 echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24969 ac_cv_lib_gen_main=no
24971 rm -f conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext conftest.$ac_ext
24973 LIBS=$ac_check_lib_save_LIBS
24975 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
24976 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
24977 if test $ac_cv_lib_gen_main = yes; then
24978 cat >>confdefs.h <<_ACEOF
24979 #define HAVE_LIBGEN 1
24990 echo "$as_me:$LINENO: checking for select" >&5
24991 echo $ECHO_N "checking for select... $ECHO_C" >&6
24992 if test "${ac_cv_func_select+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001 /* Define select to an innocuous variant, in case <limits.h> declares select.
25002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25003 #define select innocuous_select
25005 /* System header to define __stub macros and hopefully few prototypes,
25006 which can conflict with char select (); below.
25007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25008 <limits.h> exists even on freestanding compilers. */
25011 # include <limits.h>
25013 # include <assert.h>
25018 /* Override any gcc2 internal prototype to avoid an error. */
25023 /* We use char because int might match the return type of a gcc2
25024 builtin and then its argument prototype would still apply. */
25026 /* The GNU C library defines this for functions which it implements
25027 to always fail with ENOSYS. Some functions are actually named
25028 something starting with __ and the normal name is an alias. */
25029 #if defined (__stub_select) || defined (__stub___select)
25032 char (*f) () = select;
25041 return f != select;
25046 rm -f conftest.$ac_objext conftest$ac_exeext
25047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25048 (eval $ac_link) 2>conftest.er1
25050 grep -v '^ *+' conftest.er1 >conftest.err
25052 cat conftest.err >&5
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); } &&
25055 { ac_try='test -z "$ac_c_werror_flag"
25056 || test ! -s conftest.err'
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; } &&
25062 { ac_try='test -s conftest$ac_exeext'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068 ac_cv_func_select=yes
25070 echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25073 ac_cv_func_select=no
25075 rm -f conftest.err conftest.$ac_objext \
25076 conftest$ac_exeext conftest.$ac_ext
25078 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25079 echo "${ECHO_T}$ac_cv_func_select" >&6
25080 if test $ac_cv_func_select = yes; then
25083 { { echo "$as_me:$LINENO: error: select() required." >&5
25084 echo "$as_me: error: select() required." >&2;}
25085 { (exit 1); exit 1; }; }
25089 if test "${ac_cv_header_winsock_h}" != yes; then
25092 for ac_header in sys/select.h sys/socket.h
25094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25096 echo "$as_me:$LINENO: checking for $ac_header" >&5
25097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25104 # Is the header compilable?
25105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25107 cat >conftest.$ac_ext <<_ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25113 $ac_includes_default
25114 #include <$ac_header>
25116 rm -f conftest.$ac_objext
25117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25118 (eval $ac_compile) 2>conftest.er1
25120 grep -v '^ *+' conftest.er1 >conftest.err
25122 cat conftest.err >&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } &&
25125 { ac_try='test -z "$ac_c_werror_flag"
25126 || test ! -s conftest.err'
25127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128 (eval $ac_try) 2>&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); }; } &&
25132 { ac_try='test -s conftest.$ac_objext'
25133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25134 (eval $ac_try) 2>&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); }; }; then
25138 ac_header_compiler=yes
25140 echo "$as_me: failed program was:" >&5
25141 sed 's/^/| /' conftest.$ac_ext >&5
25143 ac_header_compiler=no
25145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25147 echo "${ECHO_T}$ac_header_compiler" >&6
25149 # Is the header present?
25150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25152 cat >conftest.$ac_ext <<_ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h. */
25158 #include <$ac_header>
25160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25163 grep -v '^ *+' conftest.er1 >conftest.err
25165 cat conftest.err >&5
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); } >/dev/null; then
25168 if test -s conftest.err; then
25169 ac_cpp_err=$ac_c_preproc_warn_flag
25170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25177 if test -z "$ac_cpp_err"; then
25178 ac_header_preproc=yes
25180 echo "$as_me: failed program was:" >&5
25181 sed 's/^/| /' conftest.$ac_ext >&5
25183 ac_header_preproc=no
25185 rm -f conftest.err conftest.$ac_ext
25186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25187 echo "${ECHO_T}$ac_header_preproc" >&6
25189 # So? What about this header?
25190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25196 ac_header_preproc=yes
25199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25213 ## ------------------------------------------ ##
25214 ## Report this to the AC_PACKAGE_NAME lists. ##
25215 ## ------------------------------------------ ##
25218 sed "s/^/$as_me: WARNING: /" >&2
25221 echo "$as_me:$LINENO: checking for $ac_header" >&5
25222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25226 eval "$as_ac_Header=\$ac_header_preproc"
25228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25233 cat >>confdefs.h <<_ACEOF
25234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25241 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25242 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25243 if test "${ac_cv_func_select_args+set}" = set; then
25244 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25247 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25248 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25249 cat >conftest.$ac_ext <<_ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h. */
25255 $ac_includes_default
25256 #if HAVE_SYS_SELECT_H
25257 # include <sys/select.h>
25259 #if HAVE_SYS_SOCKET_H
25260 # include <sys/socket.h>
25266 extern int select ($ac_arg1,
25267 $ac_arg234, $ac_arg234, $ac_arg234,
25273 rm -f conftest.$ac_objext
25274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25275 (eval $ac_compile) 2>conftest.er1
25277 grep -v '^ *+' conftest.er1 >conftest.err
25279 cat conftest.err >&5
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); } &&
25282 { ac_try='test -z "$ac_c_werror_flag"
25283 || test ! -s conftest.err'
25284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285 (eval $ac_try) 2>&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; } &&
25289 { ac_try='test -s conftest.$ac_objext'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; }; then
25295 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25297 echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25305 # Provide a safe default value.
25306 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25309 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25310 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25311 ac_save_IFS=$IFS; IFS=','
25312 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25316 cat >>confdefs.h <<_ACEOF
25317 #define SELECT_TYPE_ARG1 $1
25321 cat >>confdefs.h <<_ACEOF
25322 #define SELECT_TYPE_ARG234 ($2)
25326 cat >>confdefs.h <<_ACEOF
25327 #define SELECT_TYPE_ARG5 ($3)
25336 for ac_func in poll
25338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25339 echo "$as_me:$LINENO: checking for $ac_func" >&5
25340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25341 if eval "test \"\${$as_ac_var+set}\" = set"; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
25344 cat >conftest.$ac_ext <<_ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25352 #define $ac_func innocuous_$ac_func
25354 /* System header to define __stub macros and hopefully few prototypes,
25355 which can conflict with char $ac_func (); below.
25356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25357 <limits.h> exists even on freestanding compilers. */
25360 # include <limits.h>
25362 # include <assert.h>
25367 /* Override any gcc2 internal prototype to avoid an error. */
25372 /* We use char because int might match the return type of a gcc2
25373 builtin and then its argument prototype would still apply. */
25375 /* The GNU C library defines this for functions which it implements
25376 to always fail with ENOSYS. Some functions are actually named
25377 something starting with __ and the normal name is an alias. */
25378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25381 char (*f) () = $ac_func;
25390 return f != $ac_func;
25395 rm -f conftest.$ac_objext conftest$ac_exeext
25396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25397 (eval $ac_link) 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } &&
25404 { ac_try='test -z "$ac_c_werror_flag"
25405 || test ! -s conftest.err'
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; } &&
25411 { ac_try='test -s conftest$ac_exeext'
25412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413 (eval $ac_try) 2>&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); }; }; then
25417 eval "$as_ac_var=yes"
25419 echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25422 eval "$as_ac_var=no"
25424 rm -f conftest.err conftest.$ac_objext \
25425 conftest$ac_exeext conftest.$ac_ext
25427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25429 if test `eval echo '${'$as_ac_var'}'` = yes; then
25430 cat >>confdefs.h <<_ACEOF
25431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25438 for ac_header in poll.h
25440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25442 echo "$as_me:$LINENO: checking for $ac_header" >&5
25443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25450 # Is the header compilable?
25451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25453 cat >conftest.$ac_ext <<_ACEOF
25456 cat confdefs.h >>conftest.$ac_ext
25457 cat >>conftest.$ac_ext <<_ACEOF
25458 /* end confdefs.h. */
25459 $ac_includes_default
25460 #include <$ac_header>
25462 rm -f conftest.$ac_objext
25463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25464 (eval $ac_compile) 2>conftest.er1
25466 grep -v '^ *+' conftest.er1 >conftest.err
25468 cat conftest.err >&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } &&
25471 { ac_try='test -z "$ac_c_werror_flag"
25472 || test ! -s conftest.err'
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); }; } &&
25478 { ac_try='test -s conftest.$ac_objext'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; }; then
25484 ac_header_compiler=yes
25486 echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25489 ac_header_compiler=no
25491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25493 echo "${ECHO_T}$ac_header_compiler" >&6
25495 # Is the header present?
25496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25498 cat >conftest.$ac_ext <<_ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h. */
25504 #include <$ac_header>
25506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25509 grep -v '^ *+' conftest.er1 >conftest.err
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } >/dev/null; then
25514 if test -s conftest.err; then
25515 ac_cpp_err=$ac_c_preproc_warn_flag
25516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25523 if test -z "$ac_cpp_err"; then
25524 ac_header_preproc=yes
25526 echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25529 ac_header_preproc=no
25531 rm -f conftest.err conftest.$ac_ext
25532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25533 echo "${ECHO_T}$ac_header_preproc" >&6
25535 # So? What about this header?
25536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25542 ac_header_preproc=yes
25545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25559 ## ------------------------------------------ ##
25560 ## Report this to the AC_PACKAGE_NAME lists. ##
25561 ## ------------------------------------------ ##
25564 sed "s/^/$as_me: WARNING: /" >&2
25567 echo "$as_me:$LINENO: checking for $ac_header" >&5
25568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
25572 eval "$as_ac_Header=\$ac_header_preproc"
25574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25579 cat >>confdefs.h <<_ACEOF
25580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25589 for ac_header in sys/epoll.h
25591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25593 echo "$as_me:$LINENO: checking for $ac_header" >&5
25594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25601 # Is the header compilable?
25602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25604 cat >conftest.$ac_ext <<_ACEOF
25607 cat confdefs.h >>conftest.$ac_ext
25608 cat >>conftest.$ac_ext <<_ACEOF
25609 /* end confdefs.h. */
25610 $ac_includes_default
25611 #include <$ac_header>
25613 rm -f conftest.$ac_objext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25615 (eval $ac_compile) 2>conftest.er1
25617 grep -v '^ *+' conftest.er1 >conftest.err
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } &&
25622 { ac_try='test -z "$ac_c_werror_flag"
25623 || test ! -s conftest.err'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; } &&
25629 { ac_try='test -s conftest.$ac_objext'
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; }; then
25635 ac_header_compiler=yes
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 ac_header_compiler=no
25642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25644 echo "${ECHO_T}$ac_header_compiler" >&6
25646 # Is the header present?
25647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25649 cat >conftest.$ac_ext <<_ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h. */
25655 #include <$ac_header>
25657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25660 grep -v '^ *+' conftest.er1 >conftest.err
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } >/dev/null; then
25665 if test -s conftest.err; then
25666 ac_cpp_err=$ac_c_preproc_warn_flag
25667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25674 if test -z "$ac_cpp_err"; then
25675 ac_header_preproc=yes
25677 echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25680 ac_header_preproc=no
25682 rm -f conftest.err conftest.$ac_ext
25683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25684 echo "${ECHO_T}$ac_header_preproc" >&6
25686 # So? What about this header?
25687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25693 ac_header_preproc=yes
25696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25710 ## ------------------------------------------ ##
25711 ## Report this to the AC_PACKAGE_NAME lists. ##
25712 ## ------------------------------------------ ##
25715 sed "s/^/$as_me: WARNING: /" >&2
25718 echo "$as_me:$LINENO: checking for $ac_header" >&5
25719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25721 echo $ECHO_N "(cached) $ECHO_C" >&6
25723 eval "$as_ac_Header=\$ac_header_preproc"
25725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25730 cat >>confdefs.h <<_ACEOF
25731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25738 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25739 echo "$as_me:$LINENO: checking for epoll system call" >&5
25740 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25741 if test "$cross_compiling" = yes; then
25742 echo "$as_me:$LINENO: result: no" >&5
25743 echo "${ECHO_T}no" >&6
25745 cat >conftest.$ac_ext <<_ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h. */
25751 int main(int argc, char *argv)
25753 int epfd = epoll_create(256);
25754 exit (epfd == -1 ? 1 : 0);
25757 rm -f conftest$ac_exeext
25758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25759 (eval $ac_link) 2>&5
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
25768 echo "$as_me:$LINENO: result: yes" >&5
25769 echo "${ECHO_T}yes" >&6
25771 cat >>confdefs.h <<\_ACEOF
25772 #define HAVE_EPOLL 1
25776 echo "$as_me: program exited with status $ac_status" >&5
25777 echo "$as_me: failed program was:" >&5
25778 sed 's/^/| /' conftest.$ac_ext >&5
25780 ( exit $ac_status )
25781 echo "$as_me:$LINENO: result: no" >&5
25782 echo "${ECHO_T}no" >&6
25784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25789 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25790 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25791 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25792 echo $ECHO_N "(cached) $ECHO_C" >&6
25795 cat >conftest.$ac_ext <<_ACEOF
25798 cat confdefs.h >>conftest.$ac_ext
25799 cat >>conftest.$ac_ext <<_ACEOF
25800 /* end confdefs.h. */
25803 #include <sys/types.h>
25806 #include <stdlib.h>
25811 char *c = (char *) *sys_errlist
25816 rm -f conftest.$ac_objext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818 (eval $ac_compile) 2>conftest.er1
25820 grep -v '^ *+' conftest.er1 >conftest.err
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag"
25826 || test ! -s conftest.err'
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; } &&
25832 { ac_try='test -s conftest.$ac_objext'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; }; then
25838 ol_cv_dcl_sys_errlist=yes
25839 ol_cv_have_sys_errlist=yes
25841 echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.$ac_ext >&5
25844 ol_cv_dcl_sys_errlist=no
25846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25848 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25849 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25851 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25852 if test $ol_cv_dcl_sys_errlist = no ; then
25854 cat >>confdefs.h <<\_ACEOF
25855 #define DECL_SYS_ERRLIST 1
25859 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25860 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25861 if test "${ol_cv_have_sys_errlist+set}" = set; then
25862 echo $ECHO_N "(cached) $ECHO_C" >&6
25865 cat >conftest.$ac_ext <<_ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h. */
25875 char *c = (char *) *sys_errlist
25880 rm -f conftest.$ac_objext conftest$ac_exeext
25881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25882 (eval $ac_link) 2>conftest.er1
25884 grep -v '^ *+' conftest.er1 >conftest.err
25886 cat conftest.err >&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } &&
25889 { ac_try='test -z "$ac_c_werror_flag"
25890 || test ! -s conftest.err'
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; } &&
25896 { ac_try='test -s conftest$ac_exeext'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; }; then
25902 ol_cv_have_sys_errlist=yes
25904 echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25907 ol_cv_have_sys_errlist=no
25909 rm -f conftest.err conftest.$ac_objext \
25910 conftest$ac_exeext conftest.$ac_ext
25912 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25913 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25915 if test $ol_cv_have_sys_errlist = yes ; then
25917 cat >>confdefs.h <<\_ACEOF
25918 #define HAVE_SYS_ERRLIST 1
25924 for ac_func in strerror strerror_r
25926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25927 echo "$as_me:$LINENO: checking for $ac_func" >&5
25928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25929 if eval "test \"\${$as_ac_var+set}\" = set"; then
25930 echo $ECHO_N "(cached) $ECHO_C" >&6
25932 cat >conftest.$ac_ext <<_ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h. */
25938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25940 #define $ac_func innocuous_$ac_func
25942 /* System header to define __stub macros and hopefully few prototypes,
25943 which can conflict with char $ac_func (); below.
25944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25945 <limits.h> exists even on freestanding compilers. */
25948 # include <limits.h>
25950 # include <assert.h>
25955 /* Override any gcc2 internal prototype to avoid an error. */
25960 /* We use char because int might match the return type of a gcc2
25961 builtin and then its argument prototype would still apply. */
25963 /* The GNU C library defines this for functions which it implements
25964 to always fail with ENOSYS. Some functions are actually named
25965 something starting with __ and the normal name is an alias. */
25966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25969 char (*f) () = $ac_func;
25978 return f != $ac_func;
25983 rm -f conftest.$ac_objext conftest$ac_exeext
25984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25985 (eval $ac_link) 2>conftest.er1
25987 grep -v '^ *+' conftest.er1 >conftest.err
25989 cat conftest.err >&5
25990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); } &&
25992 { ac_try='test -z "$ac_c_werror_flag"
25993 || test ! -s conftest.err'
25994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995 (eval $ac_try) 2>&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); }; } &&
25999 { ac_try='test -s conftest$ac_exeext'
26000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26001 (eval $ac_try) 2>&5
26003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); }; }; then
26005 eval "$as_ac_var=yes"
26007 echo "$as_me: failed program was:" >&5
26008 sed 's/^/| /' conftest.$ac_ext >&5
26010 eval "$as_ac_var=no"
26012 rm -f conftest.err conftest.$ac_objext \
26013 conftest$ac_exeext conftest.$ac_ext
26015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26017 if test `eval echo '${'$as_ac_var'}'` = yes; then
26018 cat >>confdefs.h <<_ACEOF
26019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26025 ol_cv_func_strerror_r=no
26026 if test "${ac_cv_func_strerror_r}" = yes ; then
26027 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26028 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26029 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 #include <string.h>
26041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26042 $EGREP "strerror_r" >/dev/null 2>&1; then
26043 ol_decl_strerror_r=yes
26045 ol_decl_strerror_r=no
26049 if test $ol_decl_strerror_r = yes ; then
26050 cat >conftest.$ac_ext <<_ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26056 #include <string.h>
26060 /* from autoconf 2.59 */
26062 char x = *strerror_r (0, buf, sizeof buf);
26063 char *p = strerror_r (0, buf, sizeof buf);
26069 rm -f conftest.$ac_objext
26070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26071 (eval $ac_compile) 2>conftest.er1
26073 grep -v '^ *+' conftest.er1 >conftest.err
26075 cat conftest.err >&5
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); } &&
26078 { ac_try='test -z "$ac_c_werror_flag"
26079 || test ! -s conftest.err'
26080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081 (eval $ac_try) 2>&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); }; } &&
26085 { ac_try='test -s conftest.$ac_objext'
26086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087 (eval $ac_try) 2>&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); }; }; then
26091 ol_cv_nonposix_strerror_r=yes
26093 echo "$as_me: failed program was:" >&5
26094 sed 's/^/| /' conftest.$ac_ext >&5
26096 ol_cv_nonposix_strerror_r=no
26098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26100 if test "$cross_compiling" = yes; then
26101 ol_cv_nonposix_strerror=no
26103 cat >conftest.$ac_ext <<_ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h. */
26113 strerror_r( 1, buf, sizeof buf );
26114 exit( buf[0] == 0 );
26118 rm -f conftest$ac_exeext
26119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26120 (eval $ac_link) 2>&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; }; then
26129 ol_cv_nonposix_strerror_r=yes
26131 echo "$as_me: program exited with status $ac_status" >&5
26132 echo "$as_me: failed program was:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26135 ( exit $ac_status )
26136 ol_cv_nonposix_strerror=no
26138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26143 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26144 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26145 if test $ol_cv_nonposix_strerror_r = yes ; then
26147 cat >>confdefs.h <<\_ACEOF
26148 #define HAVE_NONPOSIX_STRERROR_R 1
26153 elif test "${ac_cv_func_strerror}" = no ; then
26154 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26155 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26156 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26160 cat >conftest.$ac_ext <<_ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h. */
26168 #include <sys/types.h>
26171 #include <stdlib.h>
26176 char *c = (char *) *sys_errlist
26181 rm -f conftest.$ac_objext
26182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26183 (eval $ac_compile) 2>conftest.er1
26185 grep -v '^ *+' conftest.er1 >conftest.err
26187 cat conftest.err >&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); } &&
26190 { ac_try='test -z "$ac_c_werror_flag"
26191 || test ! -s conftest.err'
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; } &&
26197 { ac_try='test -s conftest.$ac_objext'
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; }; then
26203 ol_cv_dcl_sys_errlist=yes
26204 ol_cv_have_sys_errlist=yes
26206 echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26209 ol_cv_dcl_sys_errlist=no
26211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26213 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26214 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26216 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26217 if test $ol_cv_dcl_sys_errlist = no ; then
26219 cat >>confdefs.h <<\_ACEOF
26220 #define DECL_SYS_ERRLIST 1
26224 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26225 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26226 if test "${ol_cv_have_sys_errlist+set}" = set; then
26227 echo $ECHO_N "(cached) $ECHO_C" >&6
26230 cat >conftest.$ac_ext <<_ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h. */
26240 char *c = (char *) *sys_errlist
26245 rm -f conftest.$ac_objext conftest$ac_exeext
26246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26247 (eval $ac_link) 2>conftest.er1
26249 grep -v '^ *+' conftest.er1 >conftest.err
26251 cat conftest.err >&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } &&
26254 { ac_try='test -z "$ac_c_werror_flag"
26255 || test ! -s conftest.err'
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; } &&
26261 { ac_try='test -s conftest$ac_exeext'
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; }; then
26267 ol_cv_have_sys_errlist=yes
26269 echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26272 ol_cv_have_sys_errlist=no
26274 rm -f conftest.err conftest.$ac_objext \
26275 conftest$ac_exeext conftest.$ac_ext
26277 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26278 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26280 if test $ol_cv_have_sys_errlist = yes ; then
26282 cat >>confdefs.h <<\_ACEOF
26283 #define HAVE_SYS_ERRLIST 1
26292 for ac_header in regex.h
26294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26296 echo "$as_me:$LINENO: checking for $ac_header" >&5
26297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
26301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26304 # Is the header compilable?
26305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26307 cat >conftest.$ac_ext <<_ACEOF
26310 cat confdefs.h >>conftest.$ac_ext
26311 cat >>conftest.$ac_ext <<_ACEOF
26312 /* end confdefs.h. */
26313 $ac_includes_default
26314 #include <$ac_header>
26316 rm -f conftest.$ac_objext
26317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26318 (eval $ac_compile) 2>conftest.er1
26320 grep -v '^ *+' conftest.er1 >conftest.err
26322 cat conftest.err >&5
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); } &&
26325 { ac_try='test -z "$ac_c_werror_flag"
26326 || test ! -s conftest.err'
26327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26328 (eval $ac_try) 2>&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); }; } &&
26332 { ac_try='test -s conftest.$ac_objext'
26333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334 (eval $ac_try) 2>&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); }; }; then
26338 ac_header_compiler=yes
26340 echo "$as_me: failed program was:" >&5
26341 sed 's/^/| /' conftest.$ac_ext >&5
26343 ac_header_compiler=no
26345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26347 echo "${ECHO_T}$ac_header_compiler" >&6
26349 # Is the header present?
26350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26352 cat >conftest.$ac_ext <<_ACEOF
26355 cat confdefs.h >>conftest.$ac_ext
26356 cat >>conftest.$ac_ext <<_ACEOF
26357 /* end confdefs.h. */
26358 #include <$ac_header>
26360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26363 grep -v '^ *+' conftest.er1 >conftest.err
26365 cat conftest.err >&5
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); } >/dev/null; then
26368 if test -s conftest.err; then
26369 ac_cpp_err=$ac_c_preproc_warn_flag
26370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26377 if test -z "$ac_cpp_err"; then
26378 ac_header_preproc=yes
26380 echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26383 ac_header_preproc=no
26385 rm -f conftest.err conftest.$ac_ext
26386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26387 echo "${ECHO_T}$ac_header_preproc" >&6
26389 # So? What about this header?
26390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26396 ac_header_preproc=yes
26399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26413 ## ------------------------------------------ ##
26414 ## Report this to the AC_PACKAGE_NAME lists. ##
26415 ## ------------------------------------------ ##
26418 sed "s/^/$as_me: WARNING: /" >&2
26421 echo "$as_me:$LINENO: checking for $ac_header" >&5
26422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 eval "$as_ac_Header=\$ac_header_preproc"
26428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26433 cat >>confdefs.h <<_ACEOF
26434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26441 if test "$ac_cv_header_regex_h" != yes ; then
26442 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26443 echo "$as_me: error: POSIX regex.h required." >&2;}
26444 { (exit 1); exit 1; }; }
26446 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26447 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26448 if test "${ac_cv_search_regfree+set}" = set; then
26449 echo $ECHO_N "(cached) $ECHO_C" >&6
26451 ac_func_search_save_LIBS=$LIBS
26452 ac_cv_search_regfree=no
26453 cat >conftest.$ac_ext <<_ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26460 /* Override any gcc2 internal prototype to avoid an error. */
26464 /* We use char because int might match the return type of a gcc2
26465 builtin and then its argument prototype would still apply. */
26475 rm -f conftest.$ac_objext conftest$ac_exeext
26476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26477 (eval $ac_link) 2>conftest.er1
26479 grep -v '^ *+' conftest.er1 >conftest.err
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } &&
26484 { ac_try='test -z "$ac_c_werror_flag"
26485 || test ! -s conftest.err'
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; } &&
26491 { ac_try='test -s conftest$ac_exeext'
26492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26493 (eval $ac_try) 2>&5
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); }; }; then
26497 ac_cv_search_regfree="none required"
26499 echo "$as_me: failed program was:" >&5
26500 sed 's/^/| /' conftest.$ac_ext >&5
26503 rm -f conftest.err conftest.$ac_objext \
26504 conftest$ac_exeext conftest.$ac_ext
26505 if test "$ac_cv_search_regfree" = no; then
26506 for ac_lib in regex gnuregex; do
26507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26508 cat >conftest.$ac_ext <<_ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h. */
26515 /* Override any gcc2 internal prototype to avoid an error. */
26519 /* We use char because int might match the return type of a gcc2
26520 builtin and then its argument prototype would still apply. */
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26532 (eval $ac_link) 2>conftest.er1
26534 grep -v '^ *+' conftest.er1 >conftest.err
26536 cat conftest.err >&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); } &&
26539 { ac_try='test -z "$ac_c_werror_flag"
26540 || test ! -s conftest.err'
26541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542 (eval $ac_try) 2>&5
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); }; } &&
26546 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26552 ac_cv_search_regfree="-l$ac_lib"
26555 echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26559 rm -f conftest.err conftest.$ac_objext \
26560 conftest$ac_exeext conftest.$ac_ext
26563 LIBS=$ac_func_search_save_LIBS
26565 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26566 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26567 if test "$ac_cv_search_regfree" != no; then
26568 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26571 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26572 echo "$as_me: error: POSIX regex required." >&2;}
26573 { (exit 1); exit 1; }; }
26578 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26579 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26580 if test "${ol_cv_c_posix_regex+set}" = set; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26584 if test "$cross_compiling" = yes; then
26585 ol_cv_c_posix_regex=cross
26587 cat >conftest.$ac_ext <<_ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h. */
26594 #include <sys/types.h>
26596 static char *pattern, *string;
26604 if(regcomp(&re, pattern, 0)) {
26608 string = "ALL MATCH";
26610 rc = regexec(&re, string, 0, (void*)0, 0);
26617 rm -f conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619 (eval $ac_link) 2>&5
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624 (eval $ac_try) 2>&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); }; }; then
26628 ol_cv_c_posix_regex=yes
26630 echo "$as_me: program exited with status $ac_status" >&5
26631 echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26634 ( exit $ac_status )
26635 ol_cv_c_posix_regex=no
26637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26640 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26641 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26643 if test "$ol_cv_c_posix_regex" = no ; then
26644 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26645 echo "$as_me: error: broken POSIX regex!" >&2;}
26646 { (exit 1); exit 1; }; }
26652 for ac_header in sys/uuid.h
26654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26656 echo "$as_me:$LINENO: checking for $ac_header" >&5
26657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26659 echo $ECHO_N "(cached) $ECHO_C" >&6
26661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26664 # Is the header compilable?
26665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26667 cat >conftest.$ac_ext <<_ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h. */
26673 $ac_includes_default
26674 #include <$ac_header>
26676 rm -f conftest.$ac_objext
26677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26678 (eval $ac_compile) 2>conftest.er1
26680 grep -v '^ *+' conftest.er1 >conftest.err
26682 cat conftest.err >&5
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } &&
26685 { ac_try='test -z "$ac_c_werror_flag"
26686 || test ! -s conftest.err'
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; } &&
26692 { ac_try='test -s conftest.$ac_objext'
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26698 ac_header_compiler=yes
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 ac_header_compiler=no
26705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26707 echo "${ECHO_T}$ac_header_compiler" >&6
26709 # Is the header present?
26710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26712 cat >conftest.$ac_ext <<_ACEOF
26715 cat confdefs.h >>conftest.$ac_ext
26716 cat >>conftest.$ac_ext <<_ACEOF
26717 /* end confdefs.h. */
26718 #include <$ac_header>
26720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26723 grep -v '^ *+' conftest.er1 >conftest.err
26725 cat conftest.err >&5
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); } >/dev/null; then
26728 if test -s conftest.err; then
26729 ac_cpp_err=$ac_c_preproc_warn_flag
26730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26737 if test -z "$ac_cpp_err"; then
26738 ac_header_preproc=yes
26740 echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26743 ac_header_preproc=no
26745 rm -f conftest.err conftest.$ac_ext
26746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26747 echo "${ECHO_T}$ac_header_preproc" >&6
26749 # So? What about this header?
26750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26756 ac_header_preproc=yes
26759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26773 ## ------------------------------------------ ##
26774 ## Report this to the AC_PACKAGE_NAME lists. ##
26775 ## ------------------------------------------ ##
26778 sed "s/^/$as_me: WARNING: /" >&2
26781 echo "$as_me:$LINENO: checking for $ac_header" >&5
26782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26786 eval "$as_ac_Header=\$ac_header_preproc"
26788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26793 cat >>confdefs.h <<_ACEOF
26794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26801 if test $ac_cv_header_sys_uuid_h = yes ; then
26803 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26804 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26805 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26806 echo $ECHO_N "(cached) $ECHO_C" >&6
26808 ac_func_search_save_LIBS=$LIBS
26809 ac_cv_search_uuid_to_str=no
26810 cat >conftest.$ac_ext <<_ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26817 /* Override any gcc2 internal prototype to avoid an error. */
26821 /* We use char because int might match the return type of a gcc2
26822 builtin and then its argument prototype would still apply. */
26823 char uuid_to_str ();
26832 rm -f conftest.$ac_objext conftest$ac_exeext
26833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26834 (eval $ac_link) 2>conftest.er1
26836 grep -v '^ *+' conftest.er1 >conftest.err
26838 cat conftest.err >&5
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); } &&
26841 { ac_try='test -z "$ac_c_werror_flag"
26842 || test ! -s conftest.err'
26843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844 (eval $ac_try) 2>&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); }; } &&
26848 { ac_try='test -s conftest$ac_exeext'
26849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850 (eval $ac_try) 2>&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); }; }; then
26854 ac_cv_search_uuid_to_str="none required"
26856 echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26860 rm -f conftest.err conftest.$ac_objext \
26861 conftest$ac_exeext conftest.$ac_ext
26862 if test "$ac_cv_search_uuid_to_str" = no; then
26863 for ac_lib in uuid; do
26864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26865 cat >conftest.$ac_ext <<_ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26872 /* Override any gcc2 internal prototype to avoid an error. */
26876 /* We use char because int might match the return type of a gcc2
26877 builtin and then its argument prototype would still apply. */
26878 char uuid_to_str ();
26887 rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26889 (eval $ac_link) 2>conftest.er1
26891 grep -v '^ *+' conftest.er1 >conftest.err
26893 cat conftest.err >&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); } &&
26896 { ac_try='test -z "$ac_c_werror_flag"
26897 || test ! -s conftest.err'
26898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899 (eval $ac_try) 2>&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; } &&
26903 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26909 ac_cv_search_uuid_to_str="-l$ac_lib"
26912 echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26916 rm -f conftest.err conftest.$ac_objext \
26917 conftest$ac_exeext conftest.$ac_ext
26920 LIBS=$ac_func_search_save_LIBS
26922 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26923 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26924 if test "$ac_cv_search_uuid_to_str" != no; then
26925 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26933 if test have_uuid = yes ; then
26935 cat >>confdefs.h <<\_ACEOF
26936 #define HAVE_UUID_TO_STR 1
26940 test "$ac_cv_search_uuid_to_str" = "none required" || \
26941 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
26945 if test $have_uuid = no ; then
26946 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
26947 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
26949 LIBS="$LIBS -lrpcrt4"
26950 cat >conftest.$ac_ext <<_ACEOF
26953 cat confdefs.h >>conftest.$ac_ext
26954 cat >>conftest.$ac_ext <<_ACEOF
26955 /* end confdefs.h. */
26957 int __stdcall UuidCreate(void *);
26958 int __stdcall UuidToStringA(void *,void **);
26965 UuidToStringA(0,0);
26971 rm -f conftest.$ac_objext conftest$ac_exeext
26972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26973 (eval $ac_link) 2>conftest.er1
26975 grep -v '^ *+' conftest.er1 >conftest.err
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -z "$ac_c_werror_flag"
26981 || test ! -s conftest.err'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; } &&
26987 { ac_try='test -s conftest$ac_exeext'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26995 echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
27000 rm -f conftest.err conftest.$ac_objext \
27001 conftest$ac_exeext conftest.$ac_ext
27002 if test $need_rpcrt = yes; then
27003 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27006 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27007 echo "${ECHO_T}$need_rpcrt" >&6
27010 ol_cv_lib_resolver=no
27011 if test $ol_cv_lib_resolver = no ; then
27012 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27013 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27014 if test "${ol_cv_resolver_none+set}" = set; then
27015 echo $ECHO_N "(cached) $ECHO_C" >&6
27020 LIBS="$ol_RESOLVER_LIB $LIBS"
27022 cat >conftest.$ac_ext <<_ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h. */
27029 #ifdef HAVE_SYS_TYPES_H
27030 # include <sys/types.h>
27032 #include <netinet/in.h>
27033 #ifdef HAVE_ARPA_NAMESER_H
27034 # include <arpa/nameser.h>
27036 #ifdef HAVE_RESOLV_H
27037 # include <resolv.h>
27045 char *request = NULL;
27046 unsigned char reply[64*1024];
27047 unsigned char host[64*1024];
27051 /* Bind 8/9 interface */
27052 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27054 /* Bind 4 interface */
27058 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27062 /* Bind 8/9 interface */
27064 #elif defined(HFIXEDSZ)
27065 /* Bind 4 interface w/ HFIXEDSZ */
27068 /* Bind 4 interface w/o HFIXEDSZ */
27069 p += sizeof(HEADER);
27071 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27077 rm -f conftest.$ac_objext conftest$ac_exeext
27078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27079 (eval $ac_link) 2>conftest.er1
27081 grep -v '^ *+' conftest.er1 >conftest.err
27083 cat conftest.err >&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); } &&
27086 { ac_try='test -z "$ac_c_werror_flag"
27087 || test ! -s conftest.err'
27088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089 (eval $ac_try) 2>&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); }; } &&
27093 { ac_try='test -s conftest$ac_exeext'
27094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095 (eval $ac_try) 2>&5
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); }; }; then
27099 ol_cv_resolver_none=yes
27101 echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27104 ol_cv_resolver_none=no
27106 rm -f conftest.err conftest.$ac_objext \
27107 conftest$ac_exeext conftest.$ac_ext
27112 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27113 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27115 if test $ol_cv_resolver_none = yes ; then
27116 ol_cv_lib_resolver=yes
27120 if test $ol_cv_lib_resolver = no ; then
27121 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27122 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27123 if test "${ol_cv_resolver_resolv+set}" = set; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27127 ol_RESOLVER_LIB=-lresolv
27129 LIBS="$ol_RESOLVER_LIB $LIBS"
27131 cat >conftest.$ac_ext <<_ACEOF
27134 cat confdefs.h >>conftest.$ac_ext
27135 cat >>conftest.$ac_ext <<_ACEOF
27136 /* end confdefs.h. */
27138 #ifdef HAVE_SYS_TYPES_H
27139 # include <sys/types.h>
27141 #include <netinet/in.h>
27142 #ifdef HAVE_ARPA_NAMESER_H
27143 # include <arpa/nameser.h>
27145 #ifdef HAVE_RESOLV_H
27146 # include <resolv.h>
27154 char *request = NULL;
27155 unsigned char reply[64*1024];
27156 unsigned char host[64*1024];
27160 /* Bind 8/9 interface */
27161 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27163 /* Bind 4 interface */
27167 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27171 /* Bind 8/9 interface */
27173 #elif defined(HFIXEDSZ)
27174 /* Bind 4 interface w/ HFIXEDSZ */
27177 /* Bind 4 interface w/o HFIXEDSZ */
27178 p += sizeof(HEADER);
27180 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27186 rm -f conftest.$ac_objext conftest$ac_exeext
27187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27188 (eval $ac_link) 2>conftest.er1
27190 grep -v '^ *+' conftest.er1 >conftest.err
27192 cat conftest.err >&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); } &&
27195 { ac_try='test -z "$ac_c_werror_flag"
27196 || test ! -s conftest.err'
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; } &&
27202 { ac_try='test -s conftest$ac_exeext'
27203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27204 (eval $ac_try) 2>&5
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); }; }; then
27208 ol_cv_resolver_resolv=yes
27210 echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27213 ol_cv_resolver_resolv=no
27215 rm -f conftest.err conftest.$ac_objext \
27216 conftest$ac_exeext conftest.$ac_ext
27221 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27222 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27224 if test $ol_cv_resolver_resolv = yes ; then
27225 ol_cv_lib_resolver=-lresolv
27229 if test $ol_cv_lib_resolver = no ; then
27230 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27231 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27232 if test "${ol_cv_resolver_bind+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27236 ol_RESOLVER_LIB=-lbind
27238 LIBS="$ol_RESOLVER_LIB $LIBS"
27240 cat >conftest.$ac_ext <<_ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27247 #ifdef HAVE_SYS_TYPES_H
27248 # include <sys/types.h>
27250 #include <netinet/in.h>
27251 #ifdef HAVE_ARPA_NAMESER_H
27252 # include <arpa/nameser.h>
27254 #ifdef HAVE_RESOLV_H
27255 # include <resolv.h>
27263 char *request = NULL;
27264 unsigned char reply[64*1024];
27265 unsigned char host[64*1024];
27269 /* Bind 8/9 interface */
27270 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27272 /* Bind 4 interface */
27276 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27280 /* Bind 8/9 interface */
27282 #elif defined(HFIXEDSZ)
27283 /* Bind 4 interface w/ HFIXEDSZ */
27286 /* Bind 4 interface w/o HFIXEDSZ */
27287 p += sizeof(HEADER);
27289 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27295 rm -f conftest.$ac_objext conftest$ac_exeext
27296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27297 (eval $ac_link) 2>conftest.er1
27299 grep -v '^ *+' conftest.er1 >conftest.err
27301 cat conftest.err >&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } &&
27304 { ac_try='test -z "$ac_c_werror_flag"
27305 || test ! -s conftest.err'
27306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 (eval $ac_try) 2>&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); }; } &&
27311 { ac_try='test -s conftest$ac_exeext'
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 ol_cv_resolver_bind=yes
27319 echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27322 ol_cv_resolver_bind=no
27324 rm -f conftest.err conftest.$ac_objext \
27325 conftest$ac_exeext conftest.$ac_ext
27330 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27331 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27333 if test $ol_cv_resolver_bind = yes ; then
27334 ol_cv_lib_resolver=-lbind
27341 if test "$ol_cv_lib_resolver" != no ; then
27343 cat >>confdefs.h <<\_ACEOF
27344 #define HAVE_RES_QUERY 1
27348 if test "$ol_enable_dnssrv" != no ; then
27352 if test "$ol_cv_lib_resolver" != yes ; then
27353 LIBS="$ol_cv_lib_resolver $LIBS"
27357 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27358 if test "$ol_link_dnssrv" = no ; then
27359 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27360 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27361 { (exit 1); exit 1; }; }
27364 ol_enable_dnssrv=no
27368 for ac_func in hstrerror
27370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27371 echo "$as_me:$LINENO: checking for $ac_func" >&5
27372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27373 if eval "test \"\${$as_ac_var+set}\" = set"; then
27374 echo $ECHO_N "(cached) $ECHO_C" >&6
27376 cat >conftest.$ac_ext <<_ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h. */
27382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27384 #define $ac_func innocuous_$ac_func
27386 /* System header to define __stub macros and hopefully few prototypes,
27387 which can conflict with char $ac_func (); below.
27388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27389 <limits.h> exists even on freestanding compilers. */
27392 # include <limits.h>
27394 # include <assert.h>
27399 /* Override any gcc2 internal prototype to avoid an error. */
27404 /* We use char because int might match the return type of a gcc2
27405 builtin and then its argument prototype would still apply. */
27407 /* The GNU C library defines this for functions which it implements
27408 to always fail with ENOSYS. Some functions are actually named
27409 something starting with __ and the normal name is an alias. */
27410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27413 char (*f) () = $ac_func;
27422 return f != $ac_func;
27427 rm -f conftest.$ac_objext conftest$ac_exeext
27428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27429 (eval $ac_link) 2>conftest.er1
27431 grep -v '^ *+' conftest.er1 >conftest.err
27433 cat conftest.err >&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); } &&
27436 { ac_try='test -z "$ac_c_werror_flag"
27437 || test ! -s conftest.err'
27438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27439 (eval $ac_try) 2>&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); }; } &&
27443 { ac_try='test -s conftest$ac_exeext'
27444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445 (eval $ac_try) 2>&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); }; }; then
27449 eval "$as_ac_var=yes"
27451 echo "$as_me: failed program was:" >&5
27452 sed 's/^/| /' conftest.$ac_ext >&5
27454 eval "$as_ac_var=no"
27456 rm -f conftest.err conftest.$ac_objext \
27457 conftest$ac_exeext conftest.$ac_ext
27459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27461 if test `eval echo '${'$as_ac_var'}'` = yes; then
27462 cat >>confdefs.h <<_ACEOF
27463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27474 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27477 echo "$as_me:$LINENO: checking for $ac_func" >&5
27478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27479 if eval "test \"\${$as_ac_var+set}\" = set"; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 cat >conftest.$ac_ext <<_ACEOF
27485 cat confdefs.h >>conftest.$ac_ext
27486 cat >>conftest.$ac_ext <<_ACEOF
27487 /* end confdefs.h. */
27488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27490 #define $ac_func innocuous_$ac_func
27492 /* System header to define __stub macros and hopefully few prototypes,
27493 which can conflict with char $ac_func (); below.
27494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27495 <limits.h> exists even on freestanding compilers. */
27498 # include <limits.h>
27500 # include <assert.h>
27505 /* Override any gcc2 internal prototype to avoid an error. */
27510 /* We use char because int might match the return type of a gcc2
27511 builtin and then its argument prototype would still apply. */
27513 /* The GNU C library defines this for functions which it implements
27514 to always fail with ENOSYS. Some functions are actually named
27515 something starting with __ and the normal name is an alias. */
27516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27519 char (*f) () = $ac_func;
27528 return f != $ac_func;
27533 rm -f conftest.$ac_objext conftest$ac_exeext
27534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27535 (eval $ac_link) 2>conftest.er1
27537 grep -v '^ *+' conftest.er1 >conftest.err
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } &&
27542 { ac_try='test -z "$ac_c_werror_flag"
27543 || test ! -s conftest.err'
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; } &&
27549 { ac_try='test -s conftest$ac_exeext'
27550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551 (eval $ac_try) 2>&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; }; then
27555 eval "$as_ac_var=yes"
27557 echo "$as_me: failed program was:" >&5
27558 sed 's/^/| /' conftest.$ac_ext >&5
27560 eval "$as_ac_var=no"
27562 rm -f conftest.err conftest.$ac_objext \
27563 conftest$ac_exeext conftest.$ac_ext
27565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27567 if test `eval echo '${'$as_ac_var'}'` = yes; then
27568 cat >>confdefs.h <<_ACEOF
27569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27577 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27578 if test $ol_enable_ipv6 = yes ; then
27579 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27580 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27581 { (exit 1); exit 1; }; }
27583 elif test $ol_enable_ipv6 != no ; then
27584 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27585 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27586 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
27590 cat >conftest.$ac_ext <<_ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h. */
27597 # include <netinet/in.h>
27598 # ifdef INET6_ADDRSTRLEN
27599 __has_inet6_addrstrlen__;
27603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27604 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27605 ol_cv_inet6_addrstrlen=yes
27607 ol_cv_inet6_addrstrlen=no
27612 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27613 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27616 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27617 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27618 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27619 echo $ECHO_N "(cached) $ECHO_C" >&6
27622 cat >conftest.$ac_ext <<_ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h. */
27629 #include <sys/types.h>
27630 #include <sys/socket.h>
27636 struct sockaddr_storage ss;
27642 rm -f conftest.$ac_objext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27644 (eval $ac_compile) 2>conftest.er1
27646 grep -v '^ *+' conftest.er1 >conftest.err
27648 cat conftest.err >&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
27651 { ac_try='test -z "$ac_c_werror_flag"
27652 || test ! -s conftest.err'
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; } &&
27658 { ac_try='test -s conftest.$ac_objext'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; }; then
27664 ol_cv_struct_sockaddr_storage=yes
27666 echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27669 ol_cv_struct_sockaddr_storage=no
27671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27673 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27674 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27676 if test $ol_cv_inet6_addrstrlen = yes \
27677 -a $ol_cv_struct_sockaddr_storage = yes ; then
27679 elif test $ol_enable_ipv6 = yes \
27680 -a $ol_cv_inet6_addrstrlen = no ; then
27681 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27682 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27683 { (exit 1); exit 1; }; }
27684 elif test $ol_enable_ipv6 = yes \
27685 -a $ol_cv_struct_sockaddr_storage = no ; then
27686 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27687 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27688 { (exit 1); exit 1; }; }
27692 if test $ol_enable_local != no ; then
27694 for ac_header in sys/un.h
27696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27698 echo "$as_me:$LINENO: checking for $ac_header" >&5
27699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27701 echo $ECHO_N "(cached) $ECHO_C" >&6
27703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27706 # Is the header compilable?
27707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27709 cat >conftest.$ac_ext <<_ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 $ac_includes_default
27716 #include <$ac_header>
27718 rm -f conftest.$ac_objext
27719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27720 (eval $ac_compile) 2>conftest.er1
27722 grep -v '^ *+' conftest.er1 >conftest.err
27724 cat conftest.err >&5
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); } &&
27727 { ac_try='test -z "$ac_c_werror_flag"
27728 || test ! -s conftest.err'
27729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730 (eval $ac_try) 2>&5
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; } &&
27734 { ac_try='test -s conftest.$ac_objext'
27735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736 (eval $ac_try) 2>&5
27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); }; }; then
27740 ac_header_compiler=yes
27742 echo "$as_me: failed program was:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27745 ac_header_compiler=no
27747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27749 echo "${ECHO_T}$ac_header_compiler" >&6
27751 # Is the header present?
27752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27754 cat >conftest.$ac_ext <<_ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27760 #include <$ac_header>
27762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27765 grep -v '^ *+' conftest.er1 >conftest.err
27767 cat conftest.err >&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } >/dev/null; then
27770 if test -s conftest.err; then
27771 ac_cpp_err=$ac_c_preproc_warn_flag
27772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27779 if test -z "$ac_cpp_err"; then
27780 ac_header_preproc=yes
27782 echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27785 ac_header_preproc=no
27787 rm -f conftest.err conftest.$ac_ext
27788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27789 echo "${ECHO_T}$ac_header_preproc" >&6
27791 # So? What about this header?
27792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27798 ac_header_preproc=yes
27801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27815 ## ------------------------------------------ ##
27816 ## Report this to the AC_PACKAGE_NAME lists. ##
27817 ## ------------------------------------------ ##
27820 sed "s/^/$as_me: WARNING: /" >&2
27823 echo "$as_me:$LINENO: checking for $ac_header" >&5
27824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27828 eval "$as_ac_Header=\$ac_header_preproc"
27830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27835 cat >>confdefs.h <<_ACEOF
27836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27844 if test $ol_enable_local = auto ; then
27845 ol_enable_local=$ac_cv_header_sys_un_h
27846 elif test $ac_cv_header_sys_un_h = no ; then
27847 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27848 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27849 { (exit 1); exit 1; }; }
27857 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27858 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27859 -o $ol_with_kerberos = k425 ; then
27862 for ac_header in krb5.h
27864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27866 echo "$as_me:$LINENO: checking for $ac_header" >&5
27867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27869 echo $ECHO_N "(cached) $ECHO_C" >&6
27871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27874 # Is the header compilable?
27875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27877 cat >conftest.$ac_ext <<_ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h. */
27883 $ac_includes_default
27884 #include <$ac_header>
27886 rm -f conftest.$ac_objext
27887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27888 (eval $ac_compile) 2>conftest.er1
27890 grep -v '^ *+' conftest.er1 >conftest.err
27892 cat conftest.err >&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); } &&
27895 { ac_try='test -z "$ac_c_werror_flag"
27896 || test ! -s conftest.err'
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; } &&
27902 { ac_try='test -s conftest.$ac_objext'
27903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904 (eval $ac_try) 2>&5
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; }; then
27908 ac_header_compiler=yes
27910 echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27913 ac_header_compiler=no
27915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27917 echo "${ECHO_T}$ac_header_compiler" >&6
27919 # Is the header present?
27920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27922 cat >conftest.$ac_ext <<_ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27928 #include <$ac_header>
27930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27933 grep -v '^ *+' conftest.er1 >conftest.err
27935 cat conftest.err >&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } >/dev/null; then
27938 if test -s conftest.err; then
27939 ac_cpp_err=$ac_c_preproc_warn_flag
27940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27947 if test -z "$ac_cpp_err"; then
27948 ac_header_preproc=yes
27950 echo "$as_me: failed program was:" >&5
27951 sed 's/^/| /' conftest.$ac_ext >&5
27953 ac_header_preproc=no
27955 rm -f conftest.err conftest.$ac_ext
27956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27957 echo "${ECHO_T}$ac_header_preproc" >&6
27959 # So? What about this header?
27960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27966 ac_header_preproc=yes
27969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27983 ## ------------------------------------------ ##
27984 ## Report this to the AC_PACKAGE_NAME lists. ##
27985 ## ------------------------------------------ ##
27988 sed "s/^/$as_me: WARNING: /" >&2
27991 echo "$as_me:$LINENO: checking for $ac_header" >&5
27992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27994 echo $ECHO_N "(cached) $ECHO_C" >&6
27996 eval "$as_ac_Header=\$ac_header_preproc"
27998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28003 cat >>confdefs.h <<_ACEOF
28004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28012 if test $ac_cv_header_krb5_h = yes ; then
28014 for ac_header in heim_err.h
28016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28018 echo "$as_me:$LINENO: checking for $ac_header" >&5
28019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28026 # Is the header compilable?
28027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28029 cat >conftest.$ac_ext <<_ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28035 $ac_includes_default
28036 #include <$ac_header>
28038 rm -f conftest.$ac_objext
28039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28040 (eval $ac_compile) 2>conftest.er1
28042 grep -v '^ *+' conftest.er1 >conftest.err
28044 cat conftest.err >&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } &&
28047 { ac_try='test -z "$ac_c_werror_flag"
28048 || test ! -s conftest.err'
28049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050 (eval $ac_try) 2>&5
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; } &&
28054 { ac_try='test -s conftest.$ac_objext'
28055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056 (eval $ac_try) 2>&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; }; then
28060 ac_header_compiler=yes
28062 echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28065 ac_header_compiler=no
28067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28069 echo "${ECHO_T}$ac_header_compiler" >&6
28071 # Is the header present?
28072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28074 cat >conftest.$ac_ext <<_ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h. */
28080 #include <$ac_header>
28082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28085 grep -v '^ *+' conftest.er1 >conftest.err
28087 cat conftest.err >&5
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); } >/dev/null; then
28090 if test -s conftest.err; then
28091 ac_cpp_err=$ac_c_preproc_warn_flag
28092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28099 if test -z "$ac_cpp_err"; then
28100 ac_header_preproc=yes
28102 echo "$as_me: failed program was:" >&5
28103 sed 's/^/| /' conftest.$ac_ext >&5
28105 ac_header_preproc=no
28107 rm -f conftest.err conftest.$ac_ext
28108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28109 echo "${ECHO_T}$ac_header_preproc" >&6
28111 # So? What about this header?
28112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28118 ac_header_preproc=yes
28121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28135 ## ------------------------------------------ ##
28136 ## Report this to the AC_PACKAGE_NAME lists. ##
28137 ## ------------------------------------------ ##
28140 sed "s/^/$as_me: WARNING: /" >&2
28143 echo "$as_me:$LINENO: checking for $ac_header" >&5
28144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28146 echo $ECHO_N "(cached) $ECHO_C" >&6
28148 eval "$as_ac_Header=\$ac_header_preproc"
28150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28155 cat >>confdefs.h <<_ACEOF
28156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28163 if test $ac_cv_header_heim_err_h = yes ; then
28169 if test $krb5_impl = mit; then
28170 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28171 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28172 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28173 echo $ECHO_N "(cached) $ECHO_C" >&6
28175 ac_check_lib_save_LIBS=$LIBS
28176 LIBS="-lk5crypto $LIBS"
28177 cat >conftest.$ac_ext <<_ACEOF
28180 cat confdefs.h >>conftest.$ac_ext
28181 cat >>conftest.$ac_ext <<_ACEOF
28182 /* end confdefs.h. */
28193 rm -f conftest.$ac_objext conftest$ac_exeext
28194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28195 (eval $ac_link) 2>conftest.er1
28197 grep -v '^ *+' conftest.er1 >conftest.err
28199 cat conftest.err >&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); } &&
28202 { ac_try='test -z "$ac_c_werror_flag"
28203 || test ! -s conftest.err'
28204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205 (eval $ac_try) 2>&5
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); }; } &&
28209 { ac_try='test -s conftest$ac_exeext'
28210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211 (eval $ac_try) 2>&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; }; then
28215 ac_cv_lib_k5crypto_main=yes
28217 echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28220 ac_cv_lib_k5crypto_main=no
28222 rm -f conftest.err conftest.$ac_objext \
28223 conftest$ac_exeext conftest.$ac_ext
28224 LIBS=$ac_check_lib_save_LIBS
28226 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28227 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28228 if test $ac_cv_lib_k5crypto_main = yes; then
28229 krb5crypto=k5crypto
28235 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28236 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28237 if test "${ac_cv_lib_krb5_main+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 ac_check_lib_save_LIBS=$LIBS
28241 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28242 cat >conftest.$ac_ext <<_ACEOF
28245 cat confdefs.h >>conftest.$ac_ext
28246 cat >>conftest.$ac_ext <<_ACEOF
28247 /* end confdefs.h. */
28258 rm -f conftest.$ac_objext conftest$ac_exeext
28259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28260 (eval $ac_link) 2>conftest.er1
28262 grep -v '^ *+' conftest.er1 >conftest.err
28264 cat conftest.err >&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } &&
28267 { ac_try='test -z "$ac_c_werror_flag"
28268 || test ! -s conftest.err'
28269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270 (eval $ac_try) 2>&5
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; } &&
28274 { ac_try='test -s conftest$ac_exeext'
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
28280 ac_cv_lib_krb5_main=yes
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28285 ac_cv_lib_krb5_main=no
28287 rm -f conftest.err conftest.$ac_objext \
28288 conftest$ac_exeext conftest.$ac_ext
28289 LIBS=$ac_check_lib_save_LIBS
28291 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28292 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28293 if test $ac_cv_lib_krb5_main = yes; then
28295 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28301 elif test $krb5_impl = heimdal; then
28302 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28303 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28304 if test "${ac_cv_lib_des_main+set}" = set; then
28305 echo $ECHO_N "(cached) $ECHO_C" >&6
28307 ac_check_lib_save_LIBS=$LIBS
28309 cat >conftest.$ac_ext <<_ACEOF
28312 cat confdefs.h >>conftest.$ac_ext
28313 cat >>conftest.$ac_ext <<_ACEOF
28314 /* end confdefs.h. */
28325 rm -f conftest.$ac_objext conftest$ac_exeext
28326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28327 (eval $ac_link) 2>conftest.er1
28329 grep -v '^ *+' conftest.er1 >conftest.err
28331 cat conftest.err >&5
28332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333 (exit $ac_status); } &&
28334 { ac_try='test -z "$ac_c_werror_flag"
28335 || test ! -s conftest.err'
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); }; } &&
28341 { ac_try='test -s conftest$ac_exeext'
28342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343 (eval $ac_try) 2>&5
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); }; }; then
28347 ac_cv_lib_des_main=yes
28349 echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28352 ac_cv_lib_des_main=no
28354 rm -f conftest.err conftest.$ac_objext \
28355 conftest$ac_exeext conftest.$ac_ext
28356 LIBS=$ac_check_lib_save_LIBS
28358 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28359 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28360 if test $ac_cv_lib_des_main = yes; then
28367 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28368 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28369 if test "${ac_cv_lib_krb5_main+set}" = set; then
28370 echo $ECHO_N "(cached) $ECHO_C" >&6
28372 ac_check_lib_save_LIBS=$LIBS
28373 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28374 cat >conftest.$ac_ext <<_ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28390 rm -f conftest.$ac_objext conftest$ac_exeext
28391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28392 (eval $ac_link) 2>conftest.er1
28394 grep -v '^ *+' conftest.er1 >conftest.err
28396 cat conftest.err >&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); } &&
28399 { ac_try='test -z "$ac_c_werror_flag"
28400 || test ! -s conftest.err'
28401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 (eval $ac_try) 2>&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; } &&
28406 { ac_try='test -s conftest$ac_exeext'
28407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408 (eval $ac_try) 2>&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); }; }; then
28412 ac_cv_lib_krb5_main=yes
28414 echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28417 ac_cv_lib_krb5_main=no
28419 rm -f conftest.err conftest.$ac_objext \
28420 conftest$ac_exeext conftest.$ac_ext
28421 LIBS=$ac_check_lib_save_LIBS
28423 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28424 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28425 if test $ac_cv_lib_krb5_main = yes; then
28427 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28434 cat >>confdefs.h <<\_ACEOF
28435 #define HAVE_HEIMDAL_KERBEROS 1
28441 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28442 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28445 if test $have_krb5 = yes ; then
28449 cat >>confdefs.h <<\_ACEOF
28450 #define HAVE_KRB5 1
28454 if test $ol_with_kerberos = k5only ; then
28455 ol_with_kerberos=found
28458 elif test $ol_with_kerberos != auto ; then
28459 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28460 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28461 { (exit 1); exit 1; }; }
28467 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28468 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28472 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28476 echo "$as_me:$LINENO: checking for $ac_header" >&5
28477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28479 echo $ECHO_N "(cached) $ECHO_C" >&6
28481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28484 # Is the header compilable?
28485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28487 cat >conftest.$ac_ext <<_ACEOF
28490 cat confdefs.h >>conftest.$ac_ext
28491 cat >>conftest.$ac_ext <<_ACEOF
28492 /* end confdefs.h. */
28493 $ac_includes_default
28494 #include <$ac_header>
28496 rm -f conftest.$ac_objext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28498 (eval $ac_compile) 2>conftest.er1
28500 grep -v '^ *+' conftest.er1 >conftest.err
28502 cat conftest.err >&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_c_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest.$ac_objext'
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 ac_header_compiler=yes
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28523 ac_header_compiler=no
28525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28527 echo "${ECHO_T}$ac_header_compiler" >&6
28529 # Is the header present?
28530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28532 cat >conftest.$ac_ext <<_ACEOF
28535 cat confdefs.h >>conftest.$ac_ext
28536 cat >>conftest.$ac_ext <<_ACEOF
28537 /* end confdefs.h. */
28538 #include <$ac_header>
28540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28543 grep -v '^ *+' conftest.er1 >conftest.err
28545 cat conftest.err >&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } >/dev/null; then
28548 if test -s conftest.err; then
28549 ac_cpp_err=$ac_c_preproc_warn_flag
28550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28557 if test -z "$ac_cpp_err"; then
28558 ac_header_preproc=yes
28560 echo "$as_me: failed program was:" >&5
28561 sed 's/^/| /' conftest.$ac_ext >&5
28563 ac_header_preproc=no
28565 rm -f conftest.err conftest.$ac_ext
28566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28567 echo "${ECHO_T}$ac_header_preproc" >&6
28569 # So? What about this header?
28570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28576 ac_header_preproc=yes
28579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28593 ## ------------------------------------------ ##
28594 ## Report this to the AC_PACKAGE_NAME lists. ##
28595 ## ------------------------------------------ ##
28598 sed "s/^/$as_me: WARNING: /" >&2
28601 echo "$as_me:$LINENO: checking for $ac_header" >&5
28602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28604 echo $ECHO_N "(cached) $ECHO_C" >&6
28606 eval "$as_ac_Header=\$ac_header_preproc"
28608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28613 cat >>confdefs.h <<_ACEOF
28614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28622 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28623 if test $krb5_impl = mit; then
28624 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28625 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28626 if test "${ac_cv_lib_krb4_main+set}" = set; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28629 ac_check_lib_save_LIBS=$LIBS
28630 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28631 cat >conftest.$ac_ext <<_ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h. */
28647 rm -f conftest.$ac_objext conftest$ac_exeext
28648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28649 (eval $ac_link) 2>conftest.er1
28651 grep -v '^ *+' conftest.er1 >conftest.err
28653 cat conftest.err >&5
28654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655 (exit $ac_status); } &&
28656 { ac_try='test -z "$ac_c_werror_flag"
28657 || test ! -s conftest.err'
28658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 (eval $ac_try) 2>&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); }; } &&
28663 { ac_try='test -s conftest$ac_exeext'
28664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28665 (eval $ac_try) 2>&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); }; }; then
28669 ac_cv_lib_krb4_main=yes
28671 echo "$as_me: failed program was:" >&5
28672 sed 's/^/| /' conftest.$ac_ext >&5
28674 ac_cv_lib_krb4_main=no
28676 rm -f conftest.err conftest.$ac_objext \
28677 conftest$ac_exeext conftest.$ac_ext
28678 LIBS=$ac_check_lib_save_LIBS
28680 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28681 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28682 if test $ac_cv_lib_krb4_main = yes; then
28684 KRB4_LIBS="-lkrb4 -ldes425"
28690 elif test $krb5_impl = heimdal; then
28691 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28692 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28693 if test "${ac_cv_lib_krb4_main+set}" = set; then
28694 echo $ECHO_N "(cached) $ECHO_C" >&6
28696 ac_check_lib_save_LIBS=$LIBS
28697 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28698 cat >conftest.$ac_ext <<_ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28714 rm -f conftest.$ac_objext conftest$ac_exeext
28715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28716 (eval $ac_link) 2>conftest.er1
28718 grep -v '^ *+' conftest.er1 >conftest.err
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } &&
28723 { ac_try='test -z "$ac_c_werror_flag"
28724 || test ! -s conftest.err'
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); }; } &&
28730 { ac_try='test -s conftest$ac_exeext'
28731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732 (eval $ac_try) 2>&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; }; then
28736 ac_cv_lib_krb4_main=yes
28738 echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28741 ac_cv_lib_krb4_main=no
28743 rm -f conftest.err conftest.$ac_objext \
28744 conftest$ac_exeext conftest.$ac_ext
28745 LIBS=$ac_check_lib_save_LIBS
28747 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28748 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28749 if test $ac_cv_lib_krb4_main = yes; then
28759 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28760 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28763 if test $have_k425 = yes ; then
28764 ol_with_kerberos=found
28768 cat >>confdefs.h <<\_ACEOF
28769 #define HAVE_KRB425 1
28773 cat >>confdefs.h <<\_ACEOF
28774 #define HAVE_KRB4 1
28778 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28779 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28780 if test "${ol_cv_var_des_debug+set}" = set; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28785 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28786 cat >conftest.$ac_ext <<_ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h. */
28793 #include <kerberosIV/krb.h>
28794 #include <kerberosIV/des.h>
28795 extern int des_debug;
28807 rm -f conftest.$ac_objext conftest$ac_exeext
28808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28809 (eval $ac_link) 2>conftest.er1
28811 grep -v '^ *+' conftest.er1 >conftest.err
28813 cat conftest.err >&5
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } &&
28816 { ac_try='test -z "$ac_c_werror_flag"
28817 || test ! -s conftest.err'
28818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28819 (eval $ac_try) 2>&5
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); }; } &&
28823 { ac_try='test -s conftest$ac_exeext'
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; }; then
28829 ol_cv_var_des_debug=yes
28831 echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28834 ol_cv_var_des_debug=no
28836 rm -f conftest.err conftest.$ac_objext \
28837 conftest$ac_exeext conftest.$ac_ext
28841 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28842 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28844 if test $ol_cv_var_des_debug = yes ; then
28846 cat >>confdefs.h <<\_ACEOF
28847 #define HAVE_DES_DEBUG 1
28857 if test $ol_link_krb5 = yes ; then
28858 ol_with_kerberos=found
28861 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28862 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28867 for ac_header in krb.h des.h krb-archaeology.h
28869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28871 echo "$as_me:$LINENO: checking for $ac_header" >&5
28872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28879 # Is the header compilable?
28880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28882 cat >conftest.$ac_ext <<_ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h. */
28888 $ac_includes_default
28889 #include <$ac_header>
28891 rm -f conftest.$ac_objext
28892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28893 (eval $ac_compile) 2>conftest.er1
28895 grep -v '^ *+' conftest.er1 >conftest.err
28897 cat conftest.err >&5
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); } &&
28900 { ac_try='test -z "$ac_c_werror_flag"
28901 || test ! -s conftest.err'
28902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28903 (eval $ac_try) 2>&5
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); }; } &&
28907 { ac_try='test -s conftest.$ac_objext'
28908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909 (eval $ac_try) 2>&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; }; then
28913 ac_header_compiler=yes
28915 echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28918 ac_header_compiler=no
28920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28922 echo "${ECHO_T}$ac_header_compiler" >&6
28924 # Is the header present?
28925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28927 cat >conftest.$ac_ext <<_ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h. */
28933 #include <$ac_header>
28935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28938 grep -v '^ *+' conftest.er1 >conftest.err
28940 cat conftest.err >&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); } >/dev/null; then
28943 if test -s conftest.err; then
28944 ac_cpp_err=$ac_c_preproc_warn_flag
28945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28952 if test -z "$ac_cpp_err"; then
28953 ac_header_preproc=yes
28955 echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28958 ac_header_preproc=no
28960 rm -f conftest.err conftest.$ac_ext
28961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28962 echo "${ECHO_T}$ac_header_preproc" >&6
28964 # So? What about this header?
28965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28971 ac_header_preproc=yes
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28988 ## ------------------------------------------ ##
28989 ## Report this to the AC_PACKAGE_NAME lists. ##
28990 ## ------------------------------------------ ##
28993 sed "s/^/$as_me: WARNING: /" >&2
28996 echo "$as_me:$LINENO: checking for $ac_header" >&5
28997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28999 echo $ECHO_N "(cached) $ECHO_C" >&6
29001 eval "$as_ac_Header=\$ac_header_preproc"
29003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29008 cat >>confdefs.h <<_ACEOF
29009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29017 if test $ac_cv_header_krb_h = yes ; then
29018 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29019 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29020 if test "${ac_cv_lib_krb_main+set}" = set; then
29021 echo $ECHO_N "(cached) $ECHO_C" >&6
29023 ac_check_lib_save_LIBS=$LIBS
29024 LIBS="-lkrb -ldes $LIBS"
29025 cat >conftest.$ac_ext <<_ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h. */
29041 rm -f conftest.$ac_objext conftest$ac_exeext
29042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29043 (eval $ac_link) 2>conftest.er1
29045 grep -v '^ *+' conftest.er1 >conftest.err
29047 cat conftest.err >&5
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } &&
29050 { ac_try='test -z "$ac_c_werror_flag"
29051 || test ! -s conftest.err'
29052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053 (eval $ac_try) 2>&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; } &&
29057 { ac_try='test -s conftest$ac_exeext'
29058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29059 (eval $ac_try) 2>&5
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); }; }; then
29063 ac_cv_lib_krb_main=yes
29065 echo "$as_me: failed program was:" >&5
29066 sed 's/^/| /' conftest.$ac_ext >&5
29068 ac_cv_lib_krb_main=no
29070 rm -f conftest.err conftest.$ac_objext \
29071 conftest$ac_exeext conftest.$ac_ext
29072 LIBS=$ac_check_lib_save_LIBS
29074 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29075 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29076 if test $ac_cv_lib_krb_main = yes; then
29083 if test $have_k4 = yes ; then
29084 ol_with_kerberos=found
29088 cat >>confdefs.h <<\_ACEOF
29089 #define HAVE_KRB4 1
29093 KRB4_LIBS="-lkrb -ldes"
29095 if test $ac_cv_header_krb_archaeology_h = yes ; then
29097 cat >>confdefs.h <<\_ACEOF
29098 #define HAVE_KTH_KERBEROS 1
29106 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29109 elif test $ol_enable_kbind = yes ; then
29110 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29111 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29112 { (exit 1); exit 1; }; }
29115 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29117 cat >>confdefs.h <<\_ACEOF
29118 #define HAVE_KERBEROS 1
29122 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29123 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29124 echo "$as_me: error: Kerberos detection failed" >&2;}
29125 { (exit 1); exit 1; }; }
29130 if test $ol_with_tls != no ; then
29133 for ac_header in openssl/ssl.h ssl.h
29135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29137 echo "$as_me:$LINENO: checking for $ac_header" >&5
29138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29145 # Is the header compilable?
29146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29148 cat >conftest.$ac_ext <<_ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29154 $ac_includes_default
29155 #include <$ac_header>
29157 rm -f conftest.$ac_objext
29158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29159 (eval $ac_compile) 2>conftest.er1
29161 grep -v '^ *+' conftest.er1 >conftest.err
29163 cat conftest.err >&5
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); } &&
29166 { ac_try='test -z "$ac_c_werror_flag"
29167 || test ! -s conftest.err'
29168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29169 (eval $ac_try) 2>&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); }; } &&
29173 { ac_try='test -s conftest.$ac_objext'
29174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29175 (eval $ac_try) 2>&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); }; }; then
29179 ac_header_compiler=yes
29181 echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29184 ac_header_compiler=no
29186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29188 echo "${ECHO_T}$ac_header_compiler" >&6
29190 # Is the header present?
29191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29193 cat >conftest.$ac_ext <<_ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199 #include <$ac_header>
29201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29204 grep -v '^ *+' conftest.er1 >conftest.err
29206 cat conftest.err >&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); } >/dev/null; then
29209 if test -s conftest.err; then
29210 ac_cpp_err=$ac_c_preproc_warn_flag
29211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29218 if test -z "$ac_cpp_err"; then
29219 ac_header_preproc=yes
29221 echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29224 ac_header_preproc=no
29226 rm -f conftest.err conftest.$ac_ext
29227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29228 echo "${ECHO_T}$ac_header_preproc" >&6
29230 # So? What about this header?
29231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29237 ac_header_preproc=yes
29240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29254 ## ------------------------------------------ ##
29255 ## Report this to the AC_PACKAGE_NAME lists. ##
29256 ## ------------------------------------------ ##
29259 sed "s/^/$as_me: WARNING: /" >&2
29262 echo "$as_me:$LINENO: checking for $ac_header" >&5
29263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29265 echo $ECHO_N "(cached) $ECHO_C" >&6
29267 eval "$as_ac_Header=\$ac_header_preproc"
29269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29274 cat >>confdefs.h <<_ACEOF
29275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29283 if test $ac_cv_header_openssl_ssl_h = yes \
29284 -o $ac_cv_header_ssl_h = yes ; then
29285 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29286 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29287 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29288 echo $ECHO_N "(cached) $ECHO_C" >&6
29290 ac_check_lib_save_LIBS=$LIBS
29291 LIBS="-lssl -lcrypto $LIBS"
29292 cat >conftest.$ac_ext <<_ACEOF
29295 cat confdefs.h >>conftest.$ac_ext
29296 cat >>conftest.$ac_ext <<_ACEOF
29297 /* end confdefs.h. */
29299 /* Override any gcc2 internal prototype to avoid an error. */
29303 /* We use char because int might match the return type of a gcc2
29304 builtin and then its argument prototype would still apply. */
29305 char SSLeay_add_ssl_algorithms ();
29309 SSLeay_add_ssl_algorithms ();
29314 rm -f conftest.$ac_objext conftest$ac_exeext
29315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29316 (eval $ac_link) 2>conftest.er1
29318 grep -v '^ *+' conftest.er1 >conftest.err
29320 cat conftest.err >&5
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); } &&
29323 { ac_try='test -z "$ac_c_werror_flag"
29324 || test ! -s conftest.err'
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; } &&
29330 { ac_try='test -s conftest$ac_exeext'
29331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332 (eval $ac_try) 2>&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; }; then
29336 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29341 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29343 rm -f conftest.err conftest.$ac_objext \
29344 conftest$ac_exeext conftest.$ac_ext
29345 LIBS=$ac_check_lib_save_LIBS
29347 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29348 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29349 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29357 if test $have_ssleay = no ; then
29358 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29359 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29360 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29363 ac_check_lib_save_LIBS=$LIBS
29364 LIBS="-lssl -lcrypto $LIBS"
29365 cat >conftest.$ac_ext <<_ACEOF
29368 cat confdefs.h >>conftest.$ac_ext
29369 cat >>conftest.$ac_ext <<_ACEOF
29370 /* end confdefs.h. */
29372 /* Override any gcc2 internal prototype to avoid an error. */
29376 /* We use char because int might match the return type of a gcc2
29377 builtin and then its argument prototype would still apply. */
29378 char SSL_library_init ();
29382 SSL_library_init ();
29387 rm -f conftest.$ac_objext conftest$ac_exeext
29388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29389 (eval $ac_link) 2>conftest.er1
29391 grep -v '^ *+' conftest.er1 >conftest.err
29393 cat conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } &&
29396 { ac_try='test -z "$ac_c_werror_flag"
29397 || test ! -s conftest.err'
29398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 (eval $ac_try) 2>&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); }; } &&
29403 { ac_try='test -s conftest$ac_exeext'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; }; then
29409 ac_cv_lib_ssl_SSL_library_init=yes
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29414 ac_cv_lib_ssl_SSL_library_init=no
29416 rm -f conftest.err conftest.$ac_objext \
29417 conftest$ac_exeext conftest.$ac_ext
29418 LIBS=$ac_check_lib_save_LIBS
29420 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29421 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29422 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29431 if test $have_ssleay = no ; then
29432 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29433 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29434 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
29437 ac_check_lib_save_LIBS=$LIBS
29438 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29439 cat >conftest.$ac_ext <<_ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29446 /* Override any gcc2 internal prototype to avoid an error. */
29450 /* We use char because int might match the return type of a gcc2
29451 builtin and then its argument prototype would still apply. */
29452 char ssl3_accept ();
29461 rm -f conftest.$ac_objext conftest$ac_exeext
29462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29463 (eval $ac_link) 2>conftest.er1
29465 grep -v '^ *+' conftest.er1 >conftest.err
29467 cat conftest.err >&5
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); } &&
29470 { ac_try='test -z "$ac_c_werror_flag"
29471 || test ! -s conftest.err'
29472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473 (eval $ac_try) 2>&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; } &&
29477 { ac_try='test -s conftest$ac_exeext'
29478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479 (eval $ac_try) 2>&5
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); }; }; then
29483 ac_cv_lib_ssl_ssl3_accept=yes
29485 echo "$as_me: failed program was:" >&5
29486 sed 's/^/| /' conftest.$ac_ext >&5
29488 ac_cv_lib_ssl_ssl3_accept=no
29490 rm -f conftest.err conftest.$ac_objext \
29491 conftest$ac_exeext conftest.$ac_ext
29492 LIBS=$ac_check_lib_save_LIBS
29494 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29495 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29496 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29505 if test $have_ssleay = yes ; then
29510 cat >>confdefs.h <<\_ACEOF
29511 #define HAVE_SSLEAY 1
29515 if test $need_rsaref = yes; then
29517 cat >>confdefs.h <<\_ACEOF
29518 #define HAVE_RSAREF 1
29522 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29524 TLS_LIBS="-lssl -lcrypto"
29527 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29528 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29529 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29530 echo $ECHO_N "(cached) $ECHO_C" >&6
29533 cat >conftest.$ac_ext <<_ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h. */
29540 #ifdef HAVE_OPENSSL_SSL_H
29541 #include <openssl/ssl.h>
29546 /* Require 0.9.7d+ */
29547 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29548 char *__ssl_compat = "0.9.7d";
29552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29553 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29554 ol_cv_ssl_crl_compat=yes
29556 ol_cv_ssl_crl_compat=no
29561 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29562 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29564 if test $ol_cv_ssl_crl_compat = no ; then
29568 cat >>confdefs.h <<\_ACEOF
29569 #define HAVE_OPENSSL_CRL 1
29576 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29577 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29581 if test $ol_link_tls = yes ; then
29583 cat >>confdefs.h <<\_ACEOF
29589 elif test $ol_with_tls = auto ; then
29590 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29591 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29592 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29593 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29595 elif test $ol_with_tls != no ; then
29596 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29597 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29598 { (exit 1); exit 1; }; }
29601 if test $ol_enable_lmpasswd != no; then
29602 if test $ol_link_tls != yes ; then
29603 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29604 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29605 { (exit 1); exit 1; }; }
29609 cat >>confdefs.h <<\_ACEOF
29610 #define SLAPD_LMHASH 1
29617 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29618 -o $ol_with_threads = nt ; then
29621 echo "$as_me:$LINENO: checking for _beginthread" >&5
29622 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29623 if test "${ac_cv_func__beginthread+set}" = set; then
29624 echo $ECHO_N "(cached) $ECHO_C" >&6
29626 cat >conftest.$ac_ext <<_ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h. */
29632 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29634 #define _beginthread innocuous__beginthread
29636 /* System header to define __stub macros and hopefully few prototypes,
29637 which can conflict with char _beginthread (); below.
29638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29639 <limits.h> exists even on freestanding compilers. */
29642 # include <limits.h>
29644 # include <assert.h>
29647 #undef _beginthread
29649 /* Override any gcc2 internal prototype to avoid an error. */
29654 /* We use char because int might match the return type of a gcc2
29655 builtin and then its argument prototype would still apply. */
29656 char _beginthread ();
29657 /* The GNU C library defines this for functions which it implements
29658 to always fail with ENOSYS. Some functions are actually named
29659 something starting with __ and the normal name is an alias. */
29660 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29663 char (*f) () = _beginthread;
29672 return f != _beginthread;
29677 rm -f conftest.$ac_objext conftest$ac_exeext
29678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29679 (eval $ac_link) 2>conftest.er1
29681 grep -v '^ *+' conftest.er1 >conftest.err
29683 cat conftest.err >&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
29686 { ac_try='test -z "$ac_c_werror_flag"
29687 || test ! -s conftest.err'
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; } &&
29693 { ac_try='test -s conftest$ac_exeext'
29694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695 (eval $ac_try) 2>&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; }; then
29699 ac_cv_func__beginthread=yes
29701 echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29704 ac_cv_func__beginthread=no
29706 rm -f conftest.err conftest.$ac_objext \
29707 conftest$ac_exeext conftest.$ac_ext
29709 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29710 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29713 if test $ac_cv_func__beginthread = yes ; then
29715 cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_NT_THREADS 1
29719 ol_cv_nt_threads=yes
29723 if test "$ol_cv_nt_threads" = yes ; then
29725 ol_with_threads=found
29726 ol_with_yielding_select=yes
29729 cat >>confdefs.h <<\_ACEOF
29730 #define HAVE_NT_SERVICE_MANAGER 1
29734 cat >>confdefs.h <<\_ACEOF
29735 #define HAVE_NT_EVENT_LOG 1
29740 if test $ol_with_threads = nt ; then
29741 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29742 echo "$as_me: error: could not locate NT Threads" >&2;}
29743 { (exit 1); exit 1; }; }
29747 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29748 -o $ol_with_threads = posix ; then
29751 for ac_header in pthread.h
29753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29755 echo "$as_me:$LINENO: checking for $ac_header" >&5
29756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29763 # Is the header compilable?
29764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29766 cat >conftest.$ac_ext <<_ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h. */
29772 $ac_includes_default
29773 #include <$ac_header>
29775 rm -f conftest.$ac_objext
29776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29777 (eval $ac_compile) 2>conftest.er1
29779 grep -v '^ *+' conftest.er1 >conftest.err
29781 cat conftest.err >&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } &&
29784 { ac_try='test -z "$ac_c_werror_flag"
29785 || test ! -s conftest.err'
29786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; } &&
29791 { ac_try='test -s conftest.$ac_objext'
29792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29793 (eval $ac_try) 2>&5
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); }; }; then
29797 ac_header_compiler=yes
29799 echo "$as_me: failed program was:" >&5
29800 sed 's/^/| /' conftest.$ac_ext >&5
29802 ac_header_compiler=no
29804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29806 echo "${ECHO_T}$ac_header_compiler" >&6
29808 # Is the header present?
29809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29811 cat >conftest.$ac_ext <<_ACEOF
29814 cat confdefs.h >>conftest.$ac_ext
29815 cat >>conftest.$ac_ext <<_ACEOF
29816 /* end confdefs.h. */
29817 #include <$ac_header>
29819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29822 grep -v '^ *+' conftest.er1 >conftest.err
29824 cat conftest.err >&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); } >/dev/null; then
29827 if test -s conftest.err; then
29828 ac_cpp_err=$ac_c_preproc_warn_flag
29829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29836 if test -z "$ac_cpp_err"; then
29837 ac_header_preproc=yes
29839 echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29842 ac_header_preproc=no
29844 rm -f conftest.err conftest.$ac_ext
29845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29846 echo "${ECHO_T}$ac_header_preproc" >&6
29848 # So? What about this header?
29849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29855 ac_header_preproc=yes
29858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29872 ## ------------------------------------------ ##
29873 ## Report this to the AC_PACKAGE_NAME lists. ##
29874 ## ------------------------------------------ ##
29877 sed "s/^/$as_me: WARNING: /" >&2
29880 echo "$as_me:$LINENO: checking for $ac_header" >&5
29881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
29885 eval "$as_ac_Header=\$ac_header_preproc"
29887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29892 cat >>confdefs.h <<_ACEOF
29893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29901 if test $ac_cv_header_pthread_h = yes ; then
29902 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29903 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29904 if test "${ol_cv_pthread_version+set}" = set; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29908 cat >conftest.$ac_ext <<_ACEOF
29911 cat confdefs.h >>conftest.$ac_ext
29912 cat >>conftest.$ac_ext <<_ACEOF
29913 /* end confdefs.h. */
29915 # include <pthread.h>
29921 int i = PTHREAD_CREATE_JOINABLE;
29927 rm -f conftest.$ac_objext
29928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29929 (eval $ac_compile) 2>conftest.er1
29931 grep -v '^ *+' conftest.er1 >conftest.err
29933 cat conftest.err >&5
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); } &&
29936 { ac_try='test -z "$ac_c_werror_flag"
29937 || test ! -s conftest.err'
29938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939 (eval $ac_try) 2>&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); }; } &&
29943 { ac_try='test -s conftest.$ac_objext'
29944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945 (eval $ac_try) 2>&5
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
29950 cat >conftest.$ac_ext <<_ACEOF
29953 cat confdefs.h >>conftest.$ac_ext
29954 cat >>conftest.$ac_ext <<_ACEOF
29955 /* end confdefs.h. */
29956 #include <pthread.h>
29959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29960 $EGREP "pthread_detach" >/dev/null 2>&1; then
29961 ol_cv_pthread_version=10
29963 ol_cv_pthread_version=8
29968 echo "$as_me: failed program was:" >&5
29969 sed 's/^/| /' conftest.$ac_ext >&5
29972 cat >conftest.$ac_ext <<_ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h. */
29979 # include <pthread.h>
29980 # ifdef PTHREAD_CREATE_UNDETACHED
29985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29986 $EGREP "draft7" >/dev/null 2>&1; then
29987 ol_cv_pthread_version=7
29990 cat >conftest.$ac_ext <<_ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h. */
29996 #include <pthread.h>
29999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30000 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30001 ol_cv_pthread_version=6
30004 cat >conftest.$ac_ext <<_ACEOF
30007 cat confdefs.h >>conftest.$ac_ext
30008 cat >>conftest.$ac_ext <<_ACEOF
30009 /* end confdefs.h. */
30011 # include <pthread.h>
30012 #ifdef PTHREAD_MUTEX_INITIALIZER
30017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30018 $EGREP "draft5" >/dev/null 2>&1; then
30019 ol_cv_pthread_version=5
30021 ol_cv_pthread_version=4
30032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30035 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30036 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30039 if test $ol_cv_pthread_version != 0 ; then
30041 cat >>confdefs.h <<_ACEOF
30042 #define HAVE_PTHREADS $ol_cv_pthread_version
30046 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30047 echo "$as_me: error: unknown pthread version" >&2;}
30048 { (exit 1); exit 1; }; }
30051 # consider threads found
30052 ol_with_threads=found
30055 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30056 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30057 if test "${ol_cv_header_linux_threads+set}" = set; then
30058 echo $ECHO_N "(cached) $ECHO_C" >&6
30060 cat >conftest.$ac_ext <<_ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h. */
30066 #include <pthread.h>
30068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30069 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30070 ol_cv_header_linux_threads=yes
30072 ol_cv_header_linux_threads=no
30078 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30079 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30080 if test $ol_cv_header_linux_threads = yes; then
30082 cat >>confdefs.h <<\_ACEOF
30083 #define HAVE_LINUX_THREADS 1
30089 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30090 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30091 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30092 echo $ECHO_N "(cached) $ECHO_C" >&6
30094 cat >conftest.$ac_ext <<_ACEOF
30097 cat confdefs.h >>conftest.$ac_ext
30098 cat >>conftest.$ac_ext <<_ACEOF
30099 /* end confdefs.h. */
30100 #include <pthread.h>
30101 #ifdef _POSIX_THREAD_IS_GNU_PTH
30106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30107 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30108 ol_cv_header_gnu_pth_pthread_h=yes
30110 ol_cv_header_gnu_pth_pthread_h=no
30116 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30117 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30120 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30122 for ac_header in sched.h
30124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30126 echo "$as_me:$LINENO: checking for $ac_header" >&5
30127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30129 echo $ECHO_N "(cached) $ECHO_C" >&6
30131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30134 # Is the header compilable?
30135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30137 cat >conftest.$ac_ext <<_ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h. */
30143 $ac_includes_default
30144 #include <$ac_header>
30146 rm -f conftest.$ac_objext
30147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30148 (eval $ac_compile) 2>conftest.er1
30150 grep -v '^ *+' conftest.er1 >conftest.err
30152 cat conftest.err >&5
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); } &&
30155 { ac_try='test -z "$ac_c_werror_flag"
30156 || test ! -s conftest.err'
30157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30158 (eval $ac_try) 2>&5
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); }; } &&
30162 { ac_try='test -s conftest.$ac_objext'
30163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30164 (eval $ac_try) 2>&5
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; }; then
30168 ac_header_compiler=yes
30170 echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30173 ac_header_compiler=no
30175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30177 echo "${ECHO_T}$ac_header_compiler" >&6
30179 # Is the header present?
30180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30182 cat >conftest.$ac_ext <<_ACEOF
30185 cat confdefs.h >>conftest.$ac_ext
30186 cat >>conftest.$ac_ext <<_ACEOF
30187 /* end confdefs.h. */
30188 #include <$ac_header>
30190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30193 grep -v '^ *+' conftest.er1 >conftest.err
30195 cat conftest.err >&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } >/dev/null; then
30198 if test -s conftest.err; then
30199 ac_cpp_err=$ac_c_preproc_warn_flag
30200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30207 if test -z "$ac_cpp_err"; then
30208 ac_header_preproc=yes
30210 echo "$as_me: failed program was:" >&5
30211 sed 's/^/| /' conftest.$ac_ext >&5
30213 ac_header_preproc=no
30215 rm -f conftest.err conftest.$ac_ext
30216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30217 echo "${ECHO_T}$ac_header_preproc" >&6
30219 # So? What about this header?
30220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30226 ac_header_preproc=yes
30229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30243 ## ------------------------------------------ ##
30244 ## Report this to the AC_PACKAGE_NAME lists. ##
30245 ## ------------------------------------------ ##
30248 sed "s/^/$as_me: WARNING: /" >&2
30251 echo "$as_me:$LINENO: checking for $ac_header" >&5
30252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30256 eval "$as_ac_Header=\$ac_header_preproc"
30258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30263 cat >>confdefs.h <<_ACEOF
30264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30274 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30275 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30276 if test "${ol_cv_pthread_create+set}" = set; then
30277 echo $ECHO_N "(cached) $ECHO_C" >&6
30280 if test "$cross_compiling" = yes; then
30281 _au_changequote(,)cat >conftest.$ac_ext <<_ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h. */
30287 /* pthread test headers */
30288 #include <pthread.h>
30289 #if HAVE_PTHREADS < 7
30293 #define NULL (void*)0
30296 static void *task(p)
30299 return (void *) (p == NULL);
30306 /* pthread test function */
30307 #ifndef PTHREAD_CREATE_DETACHED
30308 #define PTHREAD_CREATE_DETACHED 1
30312 int detach = PTHREAD_CREATE_DETACHED;
30314 #if HAVE_PTHREADS > 4
30315 /* Final pthreads */
30316 pthread_attr_t attr;
30318 status = pthread_attr_init(&attr);
30319 if( status ) return status;
30321 #if HAVE_PTHREADS < 7
30322 status = pthread_attr_setdetachstate(&attr, &detach);
30323 if( status < 0 ) status = errno;
30325 status = pthread_attr_setdetachstate(&attr, detach);
30327 if( status ) return status;
30328 status = pthread_create( &t, &attr, task, NULL );
30329 #if HAVE_PTHREADS < 7
30330 if( status < 0 ) status = errno;
30332 if( status ) return status;
30334 /* Draft 4 pthreads */
30335 status = pthread_create( &t, pthread_attr_default, task, NULL );
30336 if( status ) return errno;
30338 /* give thread a chance to complete */
30339 /* it should remain joinable and hence detachable */
30342 status = pthread_detach( &t );
30343 if( status ) return errno;
30346 #ifdef HAVE_LINUX_THREADS
30347 pthread_kill_other_threads_np();
30356 rm -f conftest.$ac_objext conftest$ac_exeext
30357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30358 (eval $ac_link) 2>conftest.er1
30360 grep -v '^ *+' conftest.er1 >conftest.err
30362 cat conftest.err >&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } &&
30365 { ac_try='test -z "$ac_c_werror_flag"
30366 || test ! -s conftest.err'
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; } &&
30372 { ac_try='test -s conftest$ac_exeext'
30373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374 (eval $ac_try) 2>&5
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
30378 ol_cv_pthread_create=yes
30380 echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30383 ol_cv_pthread_create=no
30385 rm -f conftest.err conftest.$ac_objext \
30386 conftest$ac_exeext conftest.$ac_ext
30388 cat >conftest.$ac_ext <<_ACEOF
30391 cat confdefs.h >>conftest.$ac_ext
30392 cat >>conftest.$ac_ext <<_ACEOF
30393 /* end confdefs.h. */
30394 OL_PTHREAD_TEST_PROGRAM
30396 rm -f conftest$ac_exeext
30397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30398 (eval $ac_link) 2>&5
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30403 (eval $ac_try) 2>&5
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); }; }; then
30407 ol_cv_pthread_create=yes
30409 echo "$as_me: program exited with status $ac_status" >&5
30410 echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30413 ( exit $ac_status )
30414 ol_cv_pthread_create=no
30416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30419 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30420 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30422 if test $ol_cv_pthread_create != no ; then
30423 ol_link_threads=posix
30424 ol_link_pthreads=""
30427 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30428 if test "$ol_link_threads" = no ; then
30430 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30431 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30432 if test "${ol_cv_pthread_kthread+set}" = set; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30438 LIBS="-kthread $LIBS"
30440 if test "$cross_compiling" = yes; then
30441 cat >conftest.$ac_ext <<_ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h. */
30447 /* pthread test headers */
30448 #include <pthread.h>
30449 #if HAVE_PTHREADS < 7
30453 #define NULL (void*)0
30456 static void *task(p)
30459 return (void *) (p == NULL);
30466 /* pthread test function */
30467 #ifndef PTHREAD_CREATE_DETACHED
30468 #define PTHREAD_CREATE_DETACHED 1
30472 int detach = PTHREAD_CREATE_DETACHED;
30474 #if HAVE_PTHREADS > 4
30475 /* Final pthreads */
30476 pthread_attr_t attr;
30478 status = pthread_attr_init(&attr);
30479 if( status ) return status;
30481 #if HAVE_PTHREADS < 7
30482 status = pthread_attr_setdetachstate(&attr, &detach);
30483 if( status < 0 ) status = errno;
30485 status = pthread_attr_setdetachstate(&attr, detach);
30487 if( status ) return status;
30488 status = pthread_create( &t, &attr, task, NULL );
30489 #if HAVE_PTHREADS < 7
30490 if( status < 0 ) status = errno;
30492 if( status ) return status;
30494 /* Draft 4 pthreads */
30495 status = pthread_create( &t, pthread_attr_default, task, NULL );
30496 if( status ) return errno;
30498 /* give thread a chance to complete */
30499 /* it should remain joinable and hence detachable */
30502 status = pthread_detach( &t );
30503 if( status ) return errno;
30506 #ifdef HAVE_LINUX_THREADS
30507 pthread_kill_other_threads_np();
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30518 (eval $ac_link) 2>conftest.er1
30520 grep -v '^ *+' conftest.er1 >conftest.err
30522 cat conftest.err >&5
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); } &&
30525 { ac_try='test -z "$ac_c_werror_flag"
30526 || test ! -s conftest.err'
30527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528 (eval $ac_try) 2>&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; } &&
30532 { ac_try='test -s conftest$ac_exeext'
30533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30534 (eval $ac_try) 2>&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); }; }; then
30538 ol_cv_pthread_kthread=yes
30540 echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30543 ol_cv_pthread_kthread=no
30545 rm -f conftest.err conftest.$ac_objext \
30546 conftest$ac_exeext conftest.$ac_ext
30548 cat >conftest.$ac_ext <<_ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30554 /* pthread test headers */
30555 #include <pthread.h>
30556 #if HAVE_PTHREADS < 7
30560 #define NULL (void*)0
30563 static void *task(p)
30566 return (void *) (p == NULL);
30570 int main(argc, argv)
30575 /* pthread test function */
30576 #ifndef PTHREAD_CREATE_DETACHED
30577 #define PTHREAD_CREATE_DETACHED 1
30581 int detach = PTHREAD_CREATE_DETACHED;
30583 #if HAVE_PTHREADS > 4
30584 /* Final pthreads */
30585 pthread_attr_t attr;
30587 status = pthread_attr_init(&attr);
30588 if( status ) return status;
30590 #if HAVE_PTHREADS < 7
30591 status = pthread_attr_setdetachstate(&attr, &detach);
30592 if( status < 0 ) status = errno;
30594 status = pthread_attr_setdetachstate(&attr, detach);
30596 if( status ) return status;
30597 status = pthread_create( &t, &attr, task, NULL );
30598 #if HAVE_PTHREADS < 7
30599 if( status < 0 ) status = errno;
30601 if( status ) return status;
30603 /* Draft 4 pthreads */
30604 status = pthread_create( &t, pthread_attr_default, task, NULL );
30605 if( status ) return errno;
30607 /* give thread a chance to complete */
30608 /* it should remain joinable and hence detachable */
30611 status = pthread_detach( &t );
30612 if( status ) return errno;
30615 #ifdef HAVE_LINUX_THREADS
30616 pthread_kill_other_threads_np();
30624 rm -f conftest$ac_exeext
30625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30626 (eval $ac_link) 2>&5
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; }; then
30635 ol_cv_pthread_kthread=yes
30637 echo "$as_me: program exited with status $ac_status" >&5
30638 echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30641 ( exit $ac_status )
30642 ol_cv_pthread_kthread=no
30644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30651 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30652 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30654 if test $ol_cv_pthread_kthread = yes ; then
30655 ol_link_pthreads="-kthread"
30656 ol_link_threads=posix
30660 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30661 if test "$ol_link_threads" = no ; then
30663 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30664 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30665 if test "${ol_cv_pthread_pthread+set}" = set; then
30666 echo $ECHO_N "(cached) $ECHO_C" >&6
30671 LIBS="-pthread $LIBS"
30673 if test "$cross_compiling" = yes; then
30674 cat >conftest.$ac_ext <<_ACEOF
30677 cat confdefs.h >>conftest.$ac_ext
30678 cat >>conftest.$ac_ext <<_ACEOF
30679 /* end confdefs.h. */
30680 /* pthread test headers */
30681 #include <pthread.h>
30682 #if HAVE_PTHREADS < 7
30686 #define NULL (void*)0
30689 static void *task(p)
30692 return (void *) (p == NULL);
30699 /* pthread test function */
30700 #ifndef PTHREAD_CREATE_DETACHED
30701 #define PTHREAD_CREATE_DETACHED 1
30705 int detach = PTHREAD_CREATE_DETACHED;
30707 #if HAVE_PTHREADS > 4
30708 /* Final pthreads */
30709 pthread_attr_t attr;
30711 status = pthread_attr_init(&attr);
30712 if( status ) return status;
30714 #if HAVE_PTHREADS < 7
30715 status = pthread_attr_setdetachstate(&attr, &detach);
30716 if( status < 0 ) status = errno;
30718 status = pthread_attr_setdetachstate(&attr, detach);
30720 if( status ) return status;
30721 status = pthread_create( &t, &attr, task, NULL );
30722 #if HAVE_PTHREADS < 7
30723 if( status < 0 ) status = errno;
30725 if( status ) return status;
30727 /* Draft 4 pthreads */
30728 status = pthread_create( &t, pthread_attr_default, task, NULL );
30729 if( status ) return errno;
30731 /* give thread a chance to complete */
30732 /* it should remain joinable and hence detachable */
30735 status = pthread_detach( &t );
30736 if( status ) return errno;
30739 #ifdef HAVE_LINUX_THREADS
30740 pthread_kill_other_threads_np();
30749 rm -f conftest.$ac_objext conftest$ac_exeext
30750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30751 (eval $ac_link) 2>conftest.er1
30753 grep -v '^ *+' conftest.er1 >conftest.err
30755 cat conftest.err >&5
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); } &&
30758 { ac_try='test -z "$ac_c_werror_flag"
30759 || test ! -s conftest.err'
30760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761 (eval $ac_try) 2>&5
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; } &&
30765 { ac_try='test -s conftest$ac_exeext'
30766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767 (eval $ac_try) 2>&5
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); }; }; then
30771 ol_cv_pthread_pthread=yes
30773 echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30776 ol_cv_pthread_pthread=no
30778 rm -f conftest.err conftest.$ac_objext \
30779 conftest$ac_exeext conftest.$ac_ext
30781 cat >conftest.$ac_ext <<_ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h. */
30787 /* pthread test headers */
30788 #include <pthread.h>
30789 #if HAVE_PTHREADS < 7
30793 #define NULL (void*)0
30796 static void *task(p)
30799 return (void *) (p == NULL);
30803 int main(argc, argv)
30808 /* pthread test function */
30809 #ifndef PTHREAD_CREATE_DETACHED
30810 #define PTHREAD_CREATE_DETACHED 1
30814 int detach = PTHREAD_CREATE_DETACHED;
30816 #if HAVE_PTHREADS > 4
30817 /* Final pthreads */
30818 pthread_attr_t attr;
30820 status = pthread_attr_init(&attr);
30821 if( status ) return status;
30823 #if HAVE_PTHREADS < 7
30824 status = pthread_attr_setdetachstate(&attr, &detach);
30825 if( status < 0 ) status = errno;
30827 status = pthread_attr_setdetachstate(&attr, detach);
30829 if( status ) return status;
30830 status = pthread_create( &t, &attr, task, NULL );
30831 #if HAVE_PTHREADS < 7
30832 if( status < 0 ) status = errno;
30834 if( status ) return status;
30836 /* Draft 4 pthreads */
30837 status = pthread_create( &t, pthread_attr_default, task, NULL );
30838 if( status ) return errno;
30840 /* give thread a chance to complete */
30841 /* it should remain joinable and hence detachable */
30844 status = pthread_detach( &t );
30845 if( status ) return errno;
30848 #ifdef HAVE_LINUX_THREADS
30849 pthread_kill_other_threads_np();
30857 rm -f conftest$ac_exeext
30858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30859 (eval $ac_link) 2>&5
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30864 (eval $ac_try) 2>&5
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); }; }; then
30868 ol_cv_pthread_pthread=yes
30870 echo "$as_me: program exited with status $ac_status" >&5
30871 echo "$as_me: failed program was:" >&5
30872 sed 's/^/| /' conftest.$ac_ext >&5
30874 ( exit $ac_status )
30875 ol_cv_pthread_pthread=no
30877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30884 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
30885 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
30887 if test $ol_cv_pthread_pthread = yes ; then
30888 ol_link_pthreads="-pthread"
30889 ol_link_threads=posix
30893 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
30894 if test "$ol_link_threads" = no ; then
30896 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
30897 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
30898 if test "${ol_cv_pthread_pthreads+set}" = set; then
30899 echo $ECHO_N "(cached) $ECHO_C" >&6
30904 LIBS="-pthreads $LIBS"
30906 if test "$cross_compiling" = yes; then
30907 cat >conftest.$ac_ext <<_ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h. */
30913 /* pthread test headers */
30914 #include <pthread.h>
30915 #if HAVE_PTHREADS < 7
30919 #define NULL (void*)0
30922 static void *task(p)
30925 return (void *) (p == NULL);
30932 /* pthread test function */
30933 #ifndef PTHREAD_CREATE_DETACHED
30934 #define PTHREAD_CREATE_DETACHED 1
30938 int detach = PTHREAD_CREATE_DETACHED;
30940 #if HAVE_PTHREADS > 4
30941 /* Final pthreads */
30942 pthread_attr_t attr;
30944 status = pthread_attr_init(&attr);
30945 if( status ) return status;
30947 #if HAVE_PTHREADS < 7
30948 status = pthread_attr_setdetachstate(&attr, &detach);
30949 if( status < 0 ) status = errno;
30951 status = pthread_attr_setdetachstate(&attr, detach);
30953 if( status ) return status;
30954 status = pthread_create( &t, &attr, task, NULL );
30955 #if HAVE_PTHREADS < 7
30956 if( status < 0 ) status = errno;
30958 if( status ) return status;
30960 /* Draft 4 pthreads */
30961 status = pthread_create( &t, pthread_attr_default, task, NULL );
30962 if( status ) return errno;
30964 /* give thread a chance to complete */
30965 /* it should remain joinable and hence detachable */
30968 status = pthread_detach( &t );
30969 if( status ) return errno;
30972 #ifdef HAVE_LINUX_THREADS
30973 pthread_kill_other_threads_np();
30982 rm -f conftest.$ac_objext conftest$ac_exeext
30983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30984 (eval $ac_link) 2>conftest.er1
30986 grep -v '^ *+' conftest.er1 >conftest.err
30988 cat conftest.err >&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } &&
30991 { ac_try='test -z "$ac_c_werror_flag"
30992 || test ! -s conftest.err'
30993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30994 (eval $ac_try) 2>&5
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); }; } &&
30998 { ac_try='test -s conftest$ac_exeext'
30999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000 (eval $ac_try) 2>&5
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; }; then
31004 ol_cv_pthread_pthreads=yes
31006 echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31009 ol_cv_pthread_pthreads=no
31011 rm -f conftest.err conftest.$ac_objext \
31012 conftest$ac_exeext conftest.$ac_ext
31014 cat >conftest.$ac_ext <<_ACEOF
31017 cat confdefs.h >>conftest.$ac_ext
31018 cat >>conftest.$ac_ext <<_ACEOF
31019 /* end confdefs.h. */
31020 /* pthread test headers */
31021 #include <pthread.h>
31022 #if HAVE_PTHREADS < 7
31026 #define NULL (void*)0
31029 static void *task(p)
31032 return (void *) (p == NULL);
31036 int main(argc, argv)
31041 /* pthread test function */
31042 #ifndef PTHREAD_CREATE_DETACHED
31043 #define PTHREAD_CREATE_DETACHED 1
31047 int detach = PTHREAD_CREATE_DETACHED;
31049 #if HAVE_PTHREADS > 4
31050 /* Final pthreads */
31051 pthread_attr_t attr;
31053 status = pthread_attr_init(&attr);
31054 if( status ) return status;
31056 #if HAVE_PTHREADS < 7
31057 status = pthread_attr_setdetachstate(&attr, &detach);
31058 if( status < 0 ) status = errno;
31060 status = pthread_attr_setdetachstate(&attr, detach);
31062 if( status ) return status;
31063 status = pthread_create( &t, &attr, task, NULL );
31064 #if HAVE_PTHREADS < 7
31065 if( status < 0 ) status = errno;
31067 if( status ) return status;
31069 /* Draft 4 pthreads */
31070 status = pthread_create( &t, pthread_attr_default, task, NULL );
31071 if( status ) return errno;
31073 /* give thread a chance to complete */
31074 /* it should remain joinable and hence detachable */
31077 status = pthread_detach( &t );
31078 if( status ) return errno;
31081 #ifdef HAVE_LINUX_THREADS
31082 pthread_kill_other_threads_np();
31090 rm -f conftest$ac_exeext
31091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31092 (eval $ac_link) 2>&5
31094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097 (eval $ac_try) 2>&5
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); }; }; then
31101 ol_cv_pthread_pthreads=yes
31103 echo "$as_me: program exited with status $ac_status" >&5
31104 echo "$as_me: failed program was:" >&5
31105 sed 's/^/| /' conftest.$ac_ext >&5
31107 ( exit $ac_status )
31108 ol_cv_pthread_pthreads=no
31110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31117 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31118 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31120 if test $ol_cv_pthread_pthreads = yes ; then
31121 ol_link_pthreads="-pthreads"
31122 ol_link_threads=posix
31126 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31127 if test "$ol_link_threads" = no ; then
31129 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31130 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31131 if test "${ol_cv_pthread_mthreads+set}" = set; then
31132 echo $ECHO_N "(cached) $ECHO_C" >&6
31137 LIBS="-mthreads $LIBS"
31139 if test "$cross_compiling" = yes; then
31140 cat >conftest.$ac_ext <<_ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h. */
31146 /* pthread test headers */
31147 #include <pthread.h>
31148 #if HAVE_PTHREADS < 7
31152 #define NULL (void*)0
31155 static void *task(p)
31158 return (void *) (p == NULL);
31165 /* pthread test function */
31166 #ifndef PTHREAD_CREATE_DETACHED
31167 #define PTHREAD_CREATE_DETACHED 1
31171 int detach = PTHREAD_CREATE_DETACHED;
31173 #if HAVE_PTHREADS > 4
31174 /* Final pthreads */
31175 pthread_attr_t attr;
31177 status = pthread_attr_init(&attr);
31178 if( status ) return status;
31180 #if HAVE_PTHREADS < 7
31181 status = pthread_attr_setdetachstate(&attr, &detach);
31182 if( status < 0 ) status = errno;
31184 status = pthread_attr_setdetachstate(&attr, detach);
31186 if( status ) return status;
31187 status = pthread_create( &t, &attr, task, NULL );
31188 #if HAVE_PTHREADS < 7
31189 if( status < 0 ) status = errno;
31191 if( status ) return status;
31193 /* Draft 4 pthreads */
31194 status = pthread_create( &t, pthread_attr_default, task, NULL );
31195 if( status ) return errno;
31197 /* give thread a chance to complete */
31198 /* it should remain joinable and hence detachable */
31201 status = pthread_detach( &t );
31202 if( status ) return errno;
31205 #ifdef HAVE_LINUX_THREADS
31206 pthread_kill_other_threads_np();
31215 rm -f conftest.$ac_objext conftest$ac_exeext
31216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31217 (eval $ac_link) 2>conftest.er1
31219 grep -v '^ *+' conftest.er1 >conftest.err
31221 cat conftest.err >&5
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); } &&
31224 { ac_try='test -z "$ac_c_werror_flag"
31225 || test ! -s conftest.err'
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; } &&
31231 { ac_try='test -s conftest$ac_exeext'
31232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233 (eval $ac_try) 2>&5
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); }; }; then
31237 ol_cv_pthread_mthreads=yes
31239 echo "$as_me: failed program was:" >&5
31240 sed 's/^/| /' conftest.$ac_ext >&5
31242 ol_cv_pthread_mthreads=no
31244 rm -f conftest.err conftest.$ac_objext \
31245 conftest$ac_exeext conftest.$ac_ext
31247 cat >conftest.$ac_ext <<_ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h. */
31253 /* pthread test headers */
31254 #include <pthread.h>
31255 #if HAVE_PTHREADS < 7
31259 #define NULL (void*)0
31262 static void *task(p)
31265 return (void *) (p == NULL);
31269 int main(argc, argv)
31274 /* pthread test function */
31275 #ifndef PTHREAD_CREATE_DETACHED
31276 #define PTHREAD_CREATE_DETACHED 1
31280 int detach = PTHREAD_CREATE_DETACHED;
31282 #if HAVE_PTHREADS > 4
31283 /* Final pthreads */
31284 pthread_attr_t attr;
31286 status = pthread_attr_init(&attr);
31287 if( status ) return status;
31289 #if HAVE_PTHREADS < 7
31290 status = pthread_attr_setdetachstate(&attr, &detach);
31291 if( status < 0 ) status = errno;
31293 status = pthread_attr_setdetachstate(&attr, detach);
31295 if( status ) return status;
31296 status = pthread_create( &t, &attr, task, NULL );
31297 #if HAVE_PTHREADS < 7
31298 if( status < 0 ) status = errno;
31300 if( status ) return status;
31302 /* Draft 4 pthreads */
31303 status = pthread_create( &t, pthread_attr_default, task, NULL );
31304 if( status ) return errno;
31306 /* give thread a chance to complete */
31307 /* it should remain joinable and hence detachable */
31310 status = pthread_detach( &t );
31311 if( status ) return errno;
31314 #ifdef HAVE_LINUX_THREADS
31315 pthread_kill_other_threads_np();
31323 rm -f conftest$ac_exeext
31324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31325 (eval $ac_link) 2>&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31330 (eval $ac_try) 2>&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; }; then
31334 ol_cv_pthread_mthreads=yes
31336 echo "$as_me: program exited with status $ac_status" >&5
31337 echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31340 ( exit $ac_status )
31341 ol_cv_pthread_mthreads=no
31343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31350 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31351 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31353 if test $ol_cv_pthread_mthreads = yes ; then
31354 ol_link_pthreads="-mthreads"
31355 ol_link_threads=posix
31359 # Pthread try link: -thread (ol_cv_pthread_thread)
31360 if test "$ol_link_threads" = no ; then
31362 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31363 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31364 if test "${ol_cv_pthread_thread+set}" = set; then
31365 echo $ECHO_N "(cached) $ECHO_C" >&6
31370 LIBS="-thread $LIBS"
31372 if test "$cross_compiling" = yes; then
31373 cat >conftest.$ac_ext <<_ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h. */
31379 /* pthread test headers */
31380 #include <pthread.h>
31381 #if HAVE_PTHREADS < 7
31385 #define NULL (void*)0
31388 static void *task(p)
31391 return (void *) (p == NULL);
31398 /* pthread test function */
31399 #ifndef PTHREAD_CREATE_DETACHED
31400 #define PTHREAD_CREATE_DETACHED 1
31404 int detach = PTHREAD_CREATE_DETACHED;
31406 #if HAVE_PTHREADS > 4
31407 /* Final pthreads */
31408 pthread_attr_t attr;
31410 status = pthread_attr_init(&attr);
31411 if( status ) return status;
31413 #if HAVE_PTHREADS < 7
31414 status = pthread_attr_setdetachstate(&attr, &detach);
31415 if( status < 0 ) status = errno;
31417 status = pthread_attr_setdetachstate(&attr, detach);
31419 if( status ) return status;
31420 status = pthread_create( &t, &attr, task, NULL );
31421 #if HAVE_PTHREADS < 7
31422 if( status < 0 ) status = errno;
31424 if( status ) return status;
31426 /* Draft 4 pthreads */
31427 status = pthread_create( &t, pthread_attr_default, task, NULL );
31428 if( status ) return errno;
31430 /* give thread a chance to complete */
31431 /* it should remain joinable and hence detachable */
31434 status = pthread_detach( &t );
31435 if( status ) return errno;
31438 #ifdef HAVE_LINUX_THREADS
31439 pthread_kill_other_threads_np();
31448 rm -f conftest.$ac_objext conftest$ac_exeext
31449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31450 (eval $ac_link) 2>conftest.er1
31452 grep -v '^ *+' conftest.er1 >conftest.err
31454 cat conftest.err >&5
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); } &&
31457 { ac_try='test -z "$ac_c_werror_flag"
31458 || test ! -s conftest.err'
31459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31460 (eval $ac_try) 2>&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; } &&
31464 { ac_try='test -s conftest$ac_exeext'
31465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466 (eval $ac_try) 2>&5
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469 (exit $ac_status); }; }; then
31470 ol_cv_pthread_thread=yes
31472 echo "$as_me: failed program was:" >&5
31473 sed 's/^/| /' conftest.$ac_ext >&5
31475 ol_cv_pthread_thread=no
31477 rm -f conftest.err conftest.$ac_objext \
31478 conftest$ac_exeext conftest.$ac_ext
31480 cat >conftest.$ac_ext <<_ACEOF
31483 cat confdefs.h >>conftest.$ac_ext
31484 cat >>conftest.$ac_ext <<_ACEOF
31485 /* end confdefs.h. */
31486 /* pthread test headers */
31487 #include <pthread.h>
31488 #if HAVE_PTHREADS < 7
31492 #define NULL (void*)0
31495 static void *task(p)
31498 return (void *) (p == NULL);
31502 int main(argc, argv)
31507 /* pthread test function */
31508 #ifndef PTHREAD_CREATE_DETACHED
31509 #define PTHREAD_CREATE_DETACHED 1
31513 int detach = PTHREAD_CREATE_DETACHED;
31515 #if HAVE_PTHREADS > 4
31516 /* Final pthreads */
31517 pthread_attr_t attr;
31519 status = pthread_attr_init(&attr);
31520 if( status ) return status;
31522 #if HAVE_PTHREADS < 7
31523 status = pthread_attr_setdetachstate(&attr, &detach);
31524 if( status < 0 ) status = errno;
31526 status = pthread_attr_setdetachstate(&attr, detach);
31528 if( status ) return status;
31529 status = pthread_create( &t, &attr, task, NULL );
31530 #if HAVE_PTHREADS < 7
31531 if( status < 0 ) status = errno;
31533 if( status ) return status;
31535 /* Draft 4 pthreads */
31536 status = pthread_create( &t, pthread_attr_default, task, NULL );
31537 if( status ) return errno;
31539 /* give thread a chance to complete */
31540 /* it should remain joinable and hence detachable */
31543 status = pthread_detach( &t );
31544 if( status ) return errno;
31547 #ifdef HAVE_LINUX_THREADS
31548 pthread_kill_other_threads_np();
31556 rm -f conftest$ac_exeext
31557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31558 (eval $ac_link) 2>&5
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31563 (eval $ac_try) 2>&5
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); }; }; then
31567 ol_cv_pthread_thread=yes
31569 echo "$as_me: program exited with status $ac_status" >&5
31570 echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31573 ( exit $ac_status )
31574 ol_cv_pthread_thread=no
31576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31583 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31584 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31586 if test $ol_cv_pthread_thread = yes ; then
31587 ol_link_pthreads="-thread"
31588 ol_link_threads=posix
31593 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31594 if test "$ol_link_threads" = no ; then
31595 # try -lpthread -lmach -lexc -lc_r
31596 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31597 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31598 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31599 echo $ECHO_N "(cached) $ECHO_C" >&6
31604 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31606 if test "$cross_compiling" = yes; then
31607 cat >conftest.$ac_ext <<_ACEOF
31610 cat confdefs.h >>conftest.$ac_ext
31611 cat >>conftest.$ac_ext <<_ACEOF
31612 /* end confdefs.h. */
31613 /* pthread test headers */
31614 #include <pthread.h>
31615 #if HAVE_PTHREADS < 7
31619 #define NULL (void*)0
31622 static void *task(p)
31625 return (void *) (p == NULL);
31632 /* pthread test function */
31633 #ifndef PTHREAD_CREATE_DETACHED
31634 #define PTHREAD_CREATE_DETACHED 1
31638 int detach = PTHREAD_CREATE_DETACHED;
31640 #if HAVE_PTHREADS > 4
31641 /* Final pthreads */
31642 pthread_attr_t attr;
31644 status = pthread_attr_init(&attr);
31645 if( status ) return status;
31647 #if HAVE_PTHREADS < 7
31648 status = pthread_attr_setdetachstate(&attr, &detach);
31649 if( status < 0 ) status = errno;
31651 status = pthread_attr_setdetachstate(&attr, detach);
31653 if( status ) return status;
31654 status = pthread_create( &t, &attr, task, NULL );
31655 #if HAVE_PTHREADS < 7
31656 if( status < 0 ) status = errno;
31658 if( status ) return status;
31660 /* Draft 4 pthreads */
31661 status = pthread_create( &t, pthread_attr_default, task, NULL );
31662 if( status ) return errno;
31664 /* give thread a chance to complete */
31665 /* it should remain joinable and hence detachable */
31668 status = pthread_detach( &t );
31669 if( status ) return errno;
31672 #ifdef HAVE_LINUX_THREADS
31673 pthread_kill_other_threads_np();
31682 rm -f conftest.$ac_objext conftest$ac_exeext
31683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31684 (eval $ac_link) 2>conftest.er1
31686 grep -v '^ *+' conftest.er1 >conftest.err
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } &&
31691 { ac_try='test -z "$ac_c_werror_flag"
31692 || test ! -s conftest.err'
31693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31694 (eval $ac_try) 2>&5
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; } &&
31698 { ac_try='test -s conftest$ac_exeext'
31699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31700 (eval $ac_try) 2>&5
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); }; }; then
31704 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31706 echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31709 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31711 rm -f conftest.err conftest.$ac_objext \
31712 conftest$ac_exeext conftest.$ac_ext
31714 cat >conftest.$ac_ext <<_ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h. */
31720 /* pthread test headers */
31721 #include <pthread.h>
31722 #if HAVE_PTHREADS < 7
31726 #define NULL (void*)0
31729 static void *task(p)
31732 return (void *) (p == NULL);
31736 int main(argc, argv)
31741 /* pthread test function */
31742 #ifndef PTHREAD_CREATE_DETACHED
31743 #define PTHREAD_CREATE_DETACHED 1
31747 int detach = PTHREAD_CREATE_DETACHED;
31749 #if HAVE_PTHREADS > 4
31750 /* Final pthreads */
31751 pthread_attr_t attr;
31753 status = pthread_attr_init(&attr);
31754 if( status ) return status;
31756 #if HAVE_PTHREADS < 7
31757 status = pthread_attr_setdetachstate(&attr, &detach);
31758 if( status < 0 ) status = errno;
31760 status = pthread_attr_setdetachstate(&attr, detach);
31762 if( status ) return status;
31763 status = pthread_create( &t, &attr, task, NULL );
31764 #if HAVE_PTHREADS < 7
31765 if( status < 0 ) status = errno;
31767 if( status ) return status;
31769 /* Draft 4 pthreads */
31770 status = pthread_create( &t, pthread_attr_default, task, NULL );
31771 if( status ) return errno;
31773 /* give thread a chance to complete */
31774 /* it should remain joinable and hence detachable */
31777 status = pthread_detach( &t );
31778 if( status ) return errno;
31781 #ifdef HAVE_LINUX_THREADS
31782 pthread_kill_other_threads_np();
31790 rm -f conftest$ac_exeext
31791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31792 (eval $ac_link) 2>&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31797 (eval $ac_try) 2>&5
31799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800 (exit $ac_status); }; }; then
31801 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31803 echo "$as_me: program exited with status $ac_status" >&5
31804 echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31807 ( exit $ac_status )
31808 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31817 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31818 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31820 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31821 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31822 ol_link_threads=posix
31826 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31827 if test "$ol_link_threads" = no ; then
31828 # try -lpthread -lmach -lexc
31829 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31830 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31831 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31832 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 LIBS="-lpthread -lmach -lexc $LIBS"
31839 if test "$cross_compiling" = yes; then
31840 cat >conftest.$ac_ext <<_ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h. */
31846 /* pthread test headers */
31847 #include <pthread.h>
31848 #if HAVE_PTHREADS < 7
31852 #define NULL (void*)0
31855 static void *task(p)
31858 return (void *) (p == NULL);
31865 /* pthread test function */
31866 #ifndef PTHREAD_CREATE_DETACHED
31867 #define PTHREAD_CREATE_DETACHED 1
31871 int detach = PTHREAD_CREATE_DETACHED;
31873 #if HAVE_PTHREADS > 4
31874 /* Final pthreads */
31875 pthread_attr_t attr;
31877 status = pthread_attr_init(&attr);
31878 if( status ) return status;
31880 #if HAVE_PTHREADS < 7
31881 status = pthread_attr_setdetachstate(&attr, &detach);
31882 if( status < 0 ) status = errno;
31884 status = pthread_attr_setdetachstate(&attr, detach);
31886 if( status ) return status;
31887 status = pthread_create( &t, &attr, task, NULL );
31888 #if HAVE_PTHREADS < 7
31889 if( status < 0 ) status = errno;
31891 if( status ) return status;
31893 /* Draft 4 pthreads */
31894 status = pthread_create( &t, pthread_attr_default, task, NULL );
31895 if( status ) return errno;
31897 /* give thread a chance to complete */
31898 /* it should remain joinable and hence detachable */
31901 status = pthread_detach( &t );
31902 if( status ) return errno;
31905 #ifdef HAVE_LINUX_THREADS
31906 pthread_kill_other_threads_np();
31915 rm -f conftest.$ac_objext conftest$ac_exeext
31916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31917 (eval $ac_link) 2>conftest.er1
31919 grep -v '^ *+' conftest.er1 >conftest.err
31921 cat conftest.err >&5
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); } &&
31924 { ac_try='test -z "$ac_c_werror_flag"
31925 || test ! -s conftest.err'
31926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31927 (eval $ac_try) 2>&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; } &&
31931 { ac_try='test -s conftest$ac_exeext'
31932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933 (eval $ac_try) 2>&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; }; then
31937 ol_cv_pthread_lpthread_lmach_lexc=yes
31939 echo "$as_me: failed program was:" >&5
31940 sed 's/^/| /' conftest.$ac_ext >&5
31942 ol_cv_pthread_lpthread_lmach_lexc=no
31944 rm -f conftest.err conftest.$ac_objext \
31945 conftest$ac_exeext conftest.$ac_ext
31947 cat >conftest.$ac_ext <<_ACEOF
31950 cat confdefs.h >>conftest.$ac_ext
31951 cat >>conftest.$ac_ext <<_ACEOF
31952 /* end confdefs.h. */
31953 /* pthread test headers */
31954 #include <pthread.h>
31955 #if HAVE_PTHREADS < 7
31959 #define NULL (void*)0
31962 static void *task(p)
31965 return (void *) (p == NULL);
31969 int main(argc, argv)
31974 /* pthread test function */
31975 #ifndef PTHREAD_CREATE_DETACHED
31976 #define PTHREAD_CREATE_DETACHED 1
31980 int detach = PTHREAD_CREATE_DETACHED;
31982 #if HAVE_PTHREADS > 4
31983 /* Final pthreads */
31984 pthread_attr_t attr;
31986 status = pthread_attr_init(&attr);
31987 if( status ) return status;
31989 #if HAVE_PTHREADS < 7
31990 status = pthread_attr_setdetachstate(&attr, &detach);
31991 if( status < 0 ) status = errno;
31993 status = pthread_attr_setdetachstate(&attr, detach);
31995 if( status ) return status;
31996 status = pthread_create( &t, &attr, task, NULL );
31997 #if HAVE_PTHREADS < 7
31998 if( status < 0 ) status = errno;
32000 if( status ) return status;
32002 /* Draft 4 pthreads */
32003 status = pthread_create( &t, pthread_attr_default, task, NULL );
32004 if( status ) return errno;
32006 /* give thread a chance to complete */
32007 /* it should remain joinable and hence detachable */
32010 status = pthread_detach( &t );
32011 if( status ) return errno;
32014 #ifdef HAVE_LINUX_THREADS
32015 pthread_kill_other_threads_np();
32023 rm -f conftest$ac_exeext
32024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32025 (eval $ac_link) 2>&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32030 (eval $ac_try) 2>&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); }; }; then
32034 ol_cv_pthread_lpthread_lmach_lexc=yes
32036 echo "$as_me: program exited with status $ac_status" >&5
32037 echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32040 ( exit $ac_status )
32041 ol_cv_pthread_lpthread_lmach_lexc=no
32043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32050 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32051 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32053 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32054 ol_link_pthreads="-lpthread -lmach -lexc"
32055 ol_link_threads=posix
32060 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32061 if test "$ol_link_threads" = no ; then
32062 # try -lpthread -Wl,-woff,85
32063 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32064 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32065 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32066 echo $ECHO_N "(cached) $ECHO_C" >&6
32071 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32073 if test "$cross_compiling" = yes; then
32074 cat >conftest.$ac_ext <<_ACEOF
32077 cat confdefs.h >>conftest.$ac_ext
32078 cat >>conftest.$ac_ext <<_ACEOF
32079 /* end confdefs.h. */
32080 /* pthread test headers */
32081 #include <pthread.h>
32082 #if HAVE_PTHREADS < 7
32086 #define NULL (void*)0
32089 static void *task(p)
32092 return (void *) (p == NULL);
32099 /* pthread test function */
32100 #ifndef PTHREAD_CREATE_DETACHED
32101 #define PTHREAD_CREATE_DETACHED 1
32105 int detach = PTHREAD_CREATE_DETACHED;
32107 #if HAVE_PTHREADS > 4
32108 /* Final pthreads */
32109 pthread_attr_t attr;
32111 status = pthread_attr_init(&attr);
32112 if( status ) return status;
32114 #if HAVE_PTHREADS < 7
32115 status = pthread_attr_setdetachstate(&attr, &detach);
32116 if( status < 0 ) status = errno;
32118 status = pthread_attr_setdetachstate(&attr, detach);
32120 if( status ) return status;
32121 status = pthread_create( &t, &attr, task, NULL );
32122 #if HAVE_PTHREADS < 7
32123 if( status < 0 ) status = errno;
32125 if( status ) return status;
32127 /* Draft 4 pthreads */
32128 status = pthread_create( &t, pthread_attr_default, task, NULL );
32129 if( status ) return errno;
32131 /* give thread a chance to complete */
32132 /* it should remain joinable and hence detachable */
32135 status = pthread_detach( &t );
32136 if( status ) return errno;
32139 #ifdef HAVE_LINUX_THREADS
32140 pthread_kill_other_threads_np();
32149 rm -f conftest.$ac_objext conftest$ac_exeext
32150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32151 (eval $ac_link) 2>conftest.er1
32153 grep -v '^ *+' conftest.er1 >conftest.err
32155 cat conftest.err >&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } &&
32158 { ac_try='test -z "$ac_c_werror_flag"
32159 || test ! -s conftest.err'
32160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32161 (eval $ac_try) 2>&5
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); }; } &&
32165 { ac_try='test -s conftest$ac_exeext'
32166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32167 (eval $ac_try) 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; }; then
32171 ol_cv_pthread_lib_lpthread_woff=yes
32173 echo "$as_me: failed program was:" >&5
32174 sed 's/^/| /' conftest.$ac_ext >&5
32176 ol_cv_pthread_lib_lpthread_woff=no
32178 rm -f conftest.err conftest.$ac_objext \
32179 conftest$ac_exeext conftest.$ac_ext
32181 cat >conftest.$ac_ext <<_ACEOF
32184 cat confdefs.h >>conftest.$ac_ext
32185 cat >>conftest.$ac_ext <<_ACEOF
32186 /* end confdefs.h. */
32187 /* pthread test headers */
32188 #include <pthread.h>
32189 #if HAVE_PTHREADS < 7
32193 #define NULL (void*)0
32196 static void *task(p)
32199 return (void *) (p == NULL);
32203 int main(argc, argv)
32208 /* pthread test function */
32209 #ifndef PTHREAD_CREATE_DETACHED
32210 #define PTHREAD_CREATE_DETACHED 1
32214 int detach = PTHREAD_CREATE_DETACHED;
32216 #if HAVE_PTHREADS > 4
32217 /* Final pthreads */
32218 pthread_attr_t attr;
32220 status = pthread_attr_init(&attr);
32221 if( status ) return status;
32223 #if HAVE_PTHREADS < 7
32224 status = pthread_attr_setdetachstate(&attr, &detach);
32225 if( status < 0 ) status = errno;
32227 status = pthread_attr_setdetachstate(&attr, detach);
32229 if( status ) return status;
32230 status = pthread_create( &t, &attr, task, NULL );
32231 #if HAVE_PTHREADS < 7
32232 if( status < 0 ) status = errno;
32234 if( status ) return status;
32236 /* Draft 4 pthreads */
32237 status = pthread_create( &t, pthread_attr_default, task, NULL );
32238 if( status ) return errno;
32240 /* give thread a chance to complete */
32241 /* it should remain joinable and hence detachable */
32244 status = pthread_detach( &t );
32245 if( status ) return errno;
32248 #ifdef HAVE_LINUX_THREADS
32249 pthread_kill_other_threads_np();
32257 rm -f conftest$ac_exeext
32258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32259 (eval $ac_link) 2>&5
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32264 (eval $ac_try) 2>&5
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); }; }; then
32268 ol_cv_pthread_lib_lpthread_woff=yes
32270 echo "$as_me: program exited with status $ac_status" >&5
32271 echo "$as_me: failed program was:" >&5
32272 sed 's/^/| /' conftest.$ac_ext >&5
32274 ( exit $ac_status )
32275 ol_cv_pthread_lib_lpthread_woff=no
32277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32284 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32285 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32287 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32288 ol_link_pthreads="-lpthread -Wl,-woff,85"
32289 ol_link_threads=posix
32294 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32295 if test "$ol_link_threads" = no ; then
32297 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32298 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32299 if test "${ol_cv_pthread_lpthread+set}" = set; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32305 LIBS="-lpthread $LIBS"
32307 if test "$cross_compiling" = yes; then
32308 cat >conftest.$ac_ext <<_ACEOF
32311 cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h. */
32314 /* pthread test headers */
32315 #include <pthread.h>
32316 #if HAVE_PTHREADS < 7
32320 #define NULL (void*)0
32323 static void *task(p)
32326 return (void *) (p == NULL);
32333 /* pthread test function */
32334 #ifndef PTHREAD_CREATE_DETACHED
32335 #define PTHREAD_CREATE_DETACHED 1
32339 int detach = PTHREAD_CREATE_DETACHED;
32341 #if HAVE_PTHREADS > 4
32342 /* Final pthreads */
32343 pthread_attr_t attr;
32345 status = pthread_attr_init(&attr);
32346 if( status ) return status;
32348 #if HAVE_PTHREADS < 7
32349 status = pthread_attr_setdetachstate(&attr, &detach);
32350 if( status < 0 ) status = errno;
32352 status = pthread_attr_setdetachstate(&attr, detach);
32354 if( status ) return status;
32355 status = pthread_create( &t, &attr, task, NULL );
32356 #if HAVE_PTHREADS < 7
32357 if( status < 0 ) status = errno;
32359 if( status ) return status;
32361 /* Draft 4 pthreads */
32362 status = pthread_create( &t, pthread_attr_default, task, NULL );
32363 if( status ) return errno;
32365 /* give thread a chance to complete */
32366 /* it should remain joinable and hence detachable */
32369 status = pthread_detach( &t );
32370 if( status ) return errno;
32373 #ifdef HAVE_LINUX_THREADS
32374 pthread_kill_other_threads_np();
32383 rm -f conftest.$ac_objext conftest$ac_exeext
32384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32385 (eval $ac_link) 2>conftest.er1
32387 grep -v '^ *+' conftest.er1 >conftest.err
32389 cat conftest.err >&5
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
32392 { ac_try='test -z "$ac_c_werror_flag"
32393 || test ! -s conftest.err'
32394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32395 (eval $ac_try) 2>&5
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); }; } &&
32399 { ac_try='test -s conftest$ac_exeext'
32400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32401 (eval $ac_try) 2>&5
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); }; }; then
32405 ol_cv_pthread_lpthread=yes
32407 echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.$ac_ext >&5
32410 ol_cv_pthread_lpthread=no
32412 rm -f conftest.err conftest.$ac_objext \
32413 conftest$ac_exeext conftest.$ac_ext
32415 cat >conftest.$ac_ext <<_ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32421 /* pthread test headers */
32422 #include <pthread.h>
32423 #if HAVE_PTHREADS < 7
32427 #define NULL (void*)0
32430 static void *task(p)
32433 return (void *) (p == NULL);
32437 int main(argc, argv)
32442 /* pthread test function */
32443 #ifndef PTHREAD_CREATE_DETACHED
32444 #define PTHREAD_CREATE_DETACHED 1
32448 int detach = PTHREAD_CREATE_DETACHED;
32450 #if HAVE_PTHREADS > 4
32451 /* Final pthreads */
32452 pthread_attr_t attr;
32454 status = pthread_attr_init(&attr);
32455 if( status ) return status;
32457 #if HAVE_PTHREADS < 7
32458 status = pthread_attr_setdetachstate(&attr, &detach);
32459 if( status < 0 ) status = errno;
32461 status = pthread_attr_setdetachstate(&attr, detach);
32463 if( status ) return status;
32464 status = pthread_create( &t, &attr, task, NULL );
32465 #if HAVE_PTHREADS < 7
32466 if( status < 0 ) status = errno;
32468 if( status ) return status;
32470 /* Draft 4 pthreads */
32471 status = pthread_create( &t, pthread_attr_default, task, NULL );
32472 if( status ) return errno;
32474 /* give thread a chance to complete */
32475 /* it should remain joinable and hence detachable */
32478 status = pthread_detach( &t );
32479 if( status ) return errno;
32482 #ifdef HAVE_LINUX_THREADS
32483 pthread_kill_other_threads_np();
32491 rm -f conftest$ac_exeext
32492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32493 (eval $ac_link) 2>&5
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498 (eval $ac_try) 2>&5
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; }; then
32502 ol_cv_pthread_lpthread=yes
32504 echo "$as_me: program exited with status $ac_status" >&5
32505 echo "$as_me: failed program was:" >&5
32506 sed 's/^/| /' conftest.$ac_ext >&5
32508 ( exit $ac_status )
32509 ol_cv_pthread_lpthread=no
32511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32518 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32519 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32521 if test $ol_cv_pthread_lpthread = yes ; then
32522 ol_link_pthreads="-lpthread"
32523 ol_link_threads=posix
32527 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32528 if test "$ol_link_threads" = no ; then
32530 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32531 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32532 if test "${ol_cv_pthread_lc_r+set}" = set; then
32533 echo $ECHO_N "(cached) $ECHO_C" >&6
32540 if test "$cross_compiling" = yes; then
32541 cat >conftest.$ac_ext <<_ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h. */
32547 /* pthread test headers */
32548 #include <pthread.h>
32549 #if HAVE_PTHREADS < 7
32553 #define NULL (void*)0
32556 static void *task(p)
32559 return (void *) (p == NULL);
32566 /* pthread test function */
32567 #ifndef PTHREAD_CREATE_DETACHED
32568 #define PTHREAD_CREATE_DETACHED 1
32572 int detach = PTHREAD_CREATE_DETACHED;
32574 #if HAVE_PTHREADS > 4
32575 /* Final pthreads */
32576 pthread_attr_t attr;
32578 status = pthread_attr_init(&attr);
32579 if( status ) return status;
32581 #if HAVE_PTHREADS < 7
32582 status = pthread_attr_setdetachstate(&attr, &detach);
32583 if( status < 0 ) status = errno;
32585 status = pthread_attr_setdetachstate(&attr, detach);
32587 if( status ) return status;
32588 status = pthread_create( &t, &attr, task, NULL );
32589 #if HAVE_PTHREADS < 7
32590 if( status < 0 ) status = errno;
32592 if( status ) return status;
32594 /* Draft 4 pthreads */
32595 status = pthread_create( &t, pthread_attr_default, task, NULL );
32596 if( status ) return errno;
32598 /* give thread a chance to complete */
32599 /* it should remain joinable and hence detachable */
32602 status = pthread_detach( &t );
32603 if( status ) return errno;
32606 #ifdef HAVE_LINUX_THREADS
32607 pthread_kill_other_threads_np();
32616 rm -f conftest.$ac_objext conftest$ac_exeext
32617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32618 (eval $ac_link) 2>conftest.er1
32620 grep -v '^ *+' conftest.er1 >conftest.err
32622 cat conftest.err >&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); } &&
32625 { ac_try='test -z "$ac_c_werror_flag"
32626 || test ! -s conftest.err'
32627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32628 (eval $ac_try) 2>&5
32630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32631 (exit $ac_status); }; } &&
32632 { ac_try='test -s conftest$ac_exeext'
32633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32634 (eval $ac_try) 2>&5
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); }; }; then
32638 ol_cv_pthread_lc_r=yes
32640 echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32643 ol_cv_pthread_lc_r=no
32645 rm -f conftest.err conftest.$ac_objext \
32646 conftest$ac_exeext conftest.$ac_ext
32648 cat >conftest.$ac_ext <<_ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h. */
32654 /* pthread test headers */
32655 #include <pthread.h>
32656 #if HAVE_PTHREADS < 7
32660 #define NULL (void*)0
32663 static void *task(p)
32666 return (void *) (p == NULL);
32670 int main(argc, argv)
32675 /* pthread test function */
32676 #ifndef PTHREAD_CREATE_DETACHED
32677 #define PTHREAD_CREATE_DETACHED 1
32681 int detach = PTHREAD_CREATE_DETACHED;
32683 #if HAVE_PTHREADS > 4
32684 /* Final pthreads */
32685 pthread_attr_t attr;
32687 status = pthread_attr_init(&attr);
32688 if( status ) return status;
32690 #if HAVE_PTHREADS < 7
32691 status = pthread_attr_setdetachstate(&attr, &detach);
32692 if( status < 0 ) status = errno;
32694 status = pthread_attr_setdetachstate(&attr, detach);
32696 if( status ) return status;
32697 status = pthread_create( &t, &attr, task, NULL );
32698 #if HAVE_PTHREADS < 7
32699 if( status < 0 ) status = errno;
32701 if( status ) return status;
32703 /* Draft 4 pthreads */
32704 status = pthread_create( &t, pthread_attr_default, task, NULL );
32705 if( status ) return errno;
32707 /* give thread a chance to complete */
32708 /* it should remain joinable and hence detachable */
32711 status = pthread_detach( &t );
32712 if( status ) return errno;
32715 #ifdef HAVE_LINUX_THREADS
32716 pthread_kill_other_threads_np();
32724 rm -f conftest$ac_exeext
32725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32726 (eval $ac_link) 2>&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32731 (eval $ac_try) 2>&5
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); }; }; then
32735 ol_cv_pthread_lc_r=yes
32737 echo "$as_me: program exited with status $ac_status" >&5
32738 echo "$as_me: failed program was:" >&5
32739 sed 's/^/| /' conftest.$ac_ext >&5
32741 ( exit $ac_status )
32742 ol_cv_pthread_lc_r=no
32744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32751 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32752 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32754 if test $ol_cv_pthread_lc_r = yes ; then
32755 ol_link_pthreads="-lc_r"
32756 ol_link_threads=posix
32761 # Pthread try link: -threads (ol_cv_pthread_threads)
32762 if test "$ol_link_threads" = no ; then
32764 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32765 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32766 if test "${ol_cv_pthread_threads+set}" = set; then
32767 echo $ECHO_N "(cached) $ECHO_C" >&6
32772 LIBS="-threads $LIBS"
32774 if test "$cross_compiling" = yes; then
32775 cat >conftest.$ac_ext <<_ACEOF
32778 cat confdefs.h >>conftest.$ac_ext
32779 cat >>conftest.$ac_ext <<_ACEOF
32780 /* end confdefs.h. */
32781 /* pthread test headers */
32782 #include <pthread.h>
32783 #if HAVE_PTHREADS < 7
32787 #define NULL (void*)0
32790 static void *task(p)
32793 return (void *) (p == NULL);
32800 /* pthread test function */
32801 #ifndef PTHREAD_CREATE_DETACHED
32802 #define PTHREAD_CREATE_DETACHED 1
32806 int detach = PTHREAD_CREATE_DETACHED;
32808 #if HAVE_PTHREADS > 4
32809 /* Final pthreads */
32810 pthread_attr_t attr;
32812 status = pthread_attr_init(&attr);
32813 if( status ) return status;
32815 #if HAVE_PTHREADS < 7
32816 status = pthread_attr_setdetachstate(&attr, &detach);
32817 if( status < 0 ) status = errno;
32819 status = pthread_attr_setdetachstate(&attr, detach);
32821 if( status ) return status;
32822 status = pthread_create( &t, &attr, task, NULL );
32823 #if HAVE_PTHREADS < 7
32824 if( status < 0 ) status = errno;
32826 if( status ) return status;
32828 /* Draft 4 pthreads */
32829 status = pthread_create( &t, pthread_attr_default, task, NULL );
32830 if( status ) return errno;
32832 /* give thread a chance to complete */
32833 /* it should remain joinable and hence detachable */
32836 status = pthread_detach( &t );
32837 if( status ) return errno;
32840 #ifdef HAVE_LINUX_THREADS
32841 pthread_kill_other_threads_np();
32850 rm -f conftest.$ac_objext conftest$ac_exeext
32851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32852 (eval $ac_link) 2>conftest.er1
32854 grep -v '^ *+' conftest.er1 >conftest.err
32856 cat conftest.err >&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } &&
32859 { ac_try='test -z "$ac_c_werror_flag"
32860 || test ! -s conftest.err'
32861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862 (eval $ac_try) 2>&5
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; } &&
32866 { ac_try='test -s conftest$ac_exeext'
32867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32868 (eval $ac_try) 2>&5
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; }; then
32872 ol_cv_pthread_threads=yes
32874 echo "$as_me: failed program was:" >&5
32875 sed 's/^/| /' conftest.$ac_ext >&5
32877 ol_cv_pthread_threads=no
32879 rm -f conftest.err conftest.$ac_objext \
32880 conftest$ac_exeext conftest.$ac_ext
32882 cat >conftest.$ac_ext <<_ACEOF
32885 cat confdefs.h >>conftest.$ac_ext
32886 cat >>conftest.$ac_ext <<_ACEOF
32887 /* end confdefs.h. */
32888 /* pthread test headers */
32889 #include <pthread.h>
32890 #if HAVE_PTHREADS < 7
32894 #define NULL (void*)0
32897 static void *task(p)
32900 return (void *) (p == NULL);
32904 int main(argc, argv)
32909 /* pthread test function */
32910 #ifndef PTHREAD_CREATE_DETACHED
32911 #define PTHREAD_CREATE_DETACHED 1
32915 int detach = PTHREAD_CREATE_DETACHED;
32917 #if HAVE_PTHREADS > 4
32918 /* Final pthreads */
32919 pthread_attr_t attr;
32921 status = pthread_attr_init(&attr);
32922 if( status ) return status;
32924 #if HAVE_PTHREADS < 7
32925 status = pthread_attr_setdetachstate(&attr, &detach);
32926 if( status < 0 ) status = errno;
32928 status = pthread_attr_setdetachstate(&attr, detach);
32930 if( status ) return status;
32931 status = pthread_create( &t, &attr, task, NULL );
32932 #if HAVE_PTHREADS < 7
32933 if( status < 0 ) status = errno;
32935 if( status ) return status;
32937 /* Draft 4 pthreads */
32938 status = pthread_create( &t, pthread_attr_default, task, NULL );
32939 if( status ) return errno;
32941 /* give thread a chance to complete */
32942 /* it should remain joinable and hence detachable */
32945 status = pthread_detach( &t );
32946 if( status ) return errno;
32949 #ifdef HAVE_LINUX_THREADS
32950 pthread_kill_other_threads_np();
32958 rm -f conftest$ac_exeext
32959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32960 (eval $ac_link) 2>&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32965 (eval $ac_try) 2>&5
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); }; }; then
32969 ol_cv_pthread_threads=yes
32971 echo "$as_me: program exited with status $ac_status" >&5
32972 echo "$as_me: failed program was:" >&5
32973 sed 's/^/| /' conftest.$ac_ext >&5
32975 ( exit $ac_status )
32976 ol_cv_pthread_threads=no
32978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32985 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
32986 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
32988 if test $ol_cv_pthread_threads = yes ; then
32989 ol_link_pthreads="-threads"
32990 ol_link_threads=posix
32995 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
32996 if test "$ol_link_threads" = no ; then
32997 # try -lpthreads -lmach -lexc -lc_r
32998 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
32999 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33000 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33001 echo $ECHO_N "(cached) $ECHO_C" >&6
33006 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33008 if test "$cross_compiling" = yes; then
33009 cat >conftest.$ac_ext <<_ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h. */
33015 /* pthread test headers */
33016 #include <pthread.h>
33017 #if HAVE_PTHREADS < 7
33021 #define NULL (void*)0
33024 static void *task(p)
33027 return (void *) (p == NULL);
33034 /* pthread test function */
33035 #ifndef PTHREAD_CREATE_DETACHED
33036 #define PTHREAD_CREATE_DETACHED 1
33040 int detach = PTHREAD_CREATE_DETACHED;
33042 #if HAVE_PTHREADS > 4
33043 /* Final pthreads */
33044 pthread_attr_t attr;
33046 status = pthread_attr_init(&attr);
33047 if( status ) return status;
33049 #if HAVE_PTHREADS < 7
33050 status = pthread_attr_setdetachstate(&attr, &detach);
33051 if( status < 0 ) status = errno;
33053 status = pthread_attr_setdetachstate(&attr, detach);
33055 if( status ) return status;
33056 status = pthread_create( &t, &attr, task, NULL );
33057 #if HAVE_PTHREADS < 7
33058 if( status < 0 ) status = errno;
33060 if( status ) return status;
33062 /* Draft 4 pthreads */
33063 status = pthread_create( &t, pthread_attr_default, task, NULL );
33064 if( status ) return errno;
33066 /* give thread a chance to complete */
33067 /* it should remain joinable and hence detachable */
33070 status = pthread_detach( &t );
33071 if( status ) return errno;
33074 #ifdef HAVE_LINUX_THREADS
33075 pthread_kill_other_threads_np();
33084 rm -f conftest.$ac_objext conftest$ac_exeext
33085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33086 (eval $ac_link) 2>conftest.er1
33088 grep -v '^ *+' conftest.er1 >conftest.err
33090 cat conftest.err >&5
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); } &&
33093 { ac_try='test -z "$ac_c_werror_flag"
33094 || test ! -s conftest.err'
33095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33096 (eval $ac_try) 2>&5
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); }; } &&
33100 { ac_try='test -s conftest$ac_exeext'
33101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102 (eval $ac_try) 2>&5
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); }; }; then
33106 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33108 echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33111 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33113 rm -f conftest.err conftest.$ac_objext \
33114 conftest$ac_exeext conftest.$ac_ext
33116 cat >conftest.$ac_ext <<_ACEOF
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h. */
33122 /* pthread test headers */
33123 #include <pthread.h>
33124 #if HAVE_PTHREADS < 7
33128 #define NULL (void*)0
33131 static void *task(p)
33134 return (void *) (p == NULL);
33138 int main(argc, argv)
33143 /* pthread test function */
33144 #ifndef PTHREAD_CREATE_DETACHED
33145 #define PTHREAD_CREATE_DETACHED 1
33149 int detach = PTHREAD_CREATE_DETACHED;
33151 #if HAVE_PTHREADS > 4
33152 /* Final pthreads */
33153 pthread_attr_t attr;
33155 status = pthread_attr_init(&attr);
33156 if( status ) return status;
33158 #if HAVE_PTHREADS < 7
33159 status = pthread_attr_setdetachstate(&attr, &detach);
33160 if( status < 0 ) status = errno;
33162 status = pthread_attr_setdetachstate(&attr, detach);
33164 if( status ) return status;
33165 status = pthread_create( &t, &attr, task, NULL );
33166 #if HAVE_PTHREADS < 7
33167 if( status < 0 ) status = errno;
33169 if( status ) return status;
33171 /* Draft 4 pthreads */
33172 status = pthread_create( &t, pthread_attr_default, task, NULL );
33173 if( status ) return errno;
33175 /* give thread a chance to complete */
33176 /* it should remain joinable and hence detachable */
33179 status = pthread_detach( &t );
33180 if( status ) return errno;
33183 #ifdef HAVE_LINUX_THREADS
33184 pthread_kill_other_threads_np();
33192 rm -f conftest$ac_exeext
33193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33194 (eval $ac_link) 2>&5
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33199 (eval $ac_try) 2>&5
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; }; then
33203 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33205 echo "$as_me: program exited with status $ac_status" >&5
33206 echo "$as_me: failed program was:" >&5
33207 sed 's/^/| /' conftest.$ac_ext >&5
33209 ( exit $ac_status )
33210 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33219 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33220 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33222 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33223 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33224 ol_link_threads=posix
33228 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33229 if test "$ol_link_threads" = no ; then
33230 # try -lpthreads -lmach -lexc
33231 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33232 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33233 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33239 LIBS="-lpthreads -lmach -lexc $LIBS"
33241 if test "$cross_compiling" = yes; then
33242 cat >conftest.$ac_ext <<_ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h. */
33248 /* pthread test headers */
33249 #include <pthread.h>
33250 #if HAVE_PTHREADS < 7
33254 #define NULL (void*)0
33257 static void *task(p)
33260 return (void *) (p == NULL);
33267 /* pthread test function */
33268 #ifndef PTHREAD_CREATE_DETACHED
33269 #define PTHREAD_CREATE_DETACHED 1
33273 int detach = PTHREAD_CREATE_DETACHED;
33275 #if HAVE_PTHREADS > 4
33276 /* Final pthreads */
33277 pthread_attr_t attr;
33279 status = pthread_attr_init(&attr);
33280 if( status ) return status;
33282 #if HAVE_PTHREADS < 7
33283 status = pthread_attr_setdetachstate(&attr, &detach);
33284 if( status < 0 ) status = errno;
33286 status = pthread_attr_setdetachstate(&attr, detach);
33288 if( status ) return status;
33289 status = pthread_create( &t, &attr, task, NULL );
33290 #if HAVE_PTHREADS < 7
33291 if( status < 0 ) status = errno;
33293 if( status ) return status;
33295 /* Draft 4 pthreads */
33296 status = pthread_create( &t, pthread_attr_default, task, NULL );
33297 if( status ) return errno;
33299 /* give thread a chance to complete */
33300 /* it should remain joinable and hence detachable */
33303 status = pthread_detach( &t );
33304 if( status ) return errno;
33307 #ifdef HAVE_LINUX_THREADS
33308 pthread_kill_other_threads_np();
33317 rm -f conftest.$ac_objext conftest$ac_exeext
33318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33319 (eval $ac_link) 2>conftest.er1
33321 grep -v '^ *+' conftest.er1 >conftest.err
33323 cat conftest.err >&5
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); } &&
33326 { ac_try='test -z "$ac_c_werror_flag"
33327 || test ! -s conftest.err'
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; } &&
33333 { ac_try='test -s conftest$ac_exeext'
33334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335 (eval $ac_try) 2>&5
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); }; }; then
33339 ol_cv_pthread_lpthreads_lmach_lexc=yes
33341 echo "$as_me: failed program was:" >&5
33342 sed 's/^/| /' conftest.$ac_ext >&5
33344 ol_cv_pthread_lpthreads_lmach_lexc=no
33346 rm -f conftest.err conftest.$ac_objext \
33347 conftest$ac_exeext conftest.$ac_ext
33349 cat >conftest.$ac_ext <<_ACEOF
33352 cat confdefs.h >>conftest.$ac_ext
33353 cat >>conftest.$ac_ext <<_ACEOF
33354 /* end confdefs.h. */
33355 /* pthread test headers */
33356 #include <pthread.h>
33357 #if HAVE_PTHREADS < 7
33361 #define NULL (void*)0
33364 static void *task(p)
33367 return (void *) (p == NULL);
33371 int main(argc, argv)
33376 /* pthread test function */
33377 #ifndef PTHREAD_CREATE_DETACHED
33378 #define PTHREAD_CREATE_DETACHED 1
33382 int detach = PTHREAD_CREATE_DETACHED;
33384 #if HAVE_PTHREADS > 4
33385 /* Final pthreads */
33386 pthread_attr_t attr;
33388 status = pthread_attr_init(&attr);
33389 if( status ) return status;
33391 #if HAVE_PTHREADS < 7
33392 status = pthread_attr_setdetachstate(&attr, &detach);
33393 if( status < 0 ) status = errno;
33395 status = pthread_attr_setdetachstate(&attr, detach);
33397 if( status ) return status;
33398 status = pthread_create( &t, &attr, task, NULL );
33399 #if HAVE_PTHREADS < 7
33400 if( status < 0 ) status = errno;
33402 if( status ) return status;
33404 /* Draft 4 pthreads */
33405 status = pthread_create( &t, pthread_attr_default, task, NULL );
33406 if( status ) return errno;
33408 /* give thread a chance to complete */
33409 /* it should remain joinable and hence detachable */
33412 status = pthread_detach( &t );
33413 if( status ) return errno;
33416 #ifdef HAVE_LINUX_THREADS
33417 pthread_kill_other_threads_np();
33425 rm -f conftest$ac_exeext
33426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33427 (eval $ac_link) 2>&5
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432 (eval $ac_try) 2>&5
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; }; then
33436 ol_cv_pthread_lpthreads_lmach_lexc=yes
33438 echo "$as_me: program exited with status $ac_status" >&5
33439 echo "$as_me: failed program was:" >&5
33440 sed 's/^/| /' conftest.$ac_ext >&5
33442 ( exit $ac_status )
33443 ol_cv_pthread_lpthreads_lmach_lexc=no
33445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33452 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33453 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33455 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33456 ol_link_pthreads="-lpthreads -lmach -lexc"
33457 ol_link_threads=posix
33461 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33462 if test "$ol_link_threads" = no ; then
33463 # try -lpthreads -lexc
33464 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33465 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33466 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33467 echo $ECHO_N "(cached) $ECHO_C" >&6
33472 LIBS="-lpthreads -lexc $LIBS"
33474 if test "$cross_compiling" = yes; then
33475 cat >conftest.$ac_ext <<_ACEOF
33478 cat confdefs.h >>conftest.$ac_ext
33479 cat >>conftest.$ac_ext <<_ACEOF
33480 /* end confdefs.h. */
33481 /* pthread test headers */
33482 #include <pthread.h>
33483 #if HAVE_PTHREADS < 7
33487 #define NULL (void*)0
33490 static void *task(p)
33493 return (void *) (p == NULL);
33500 /* pthread test function */
33501 #ifndef PTHREAD_CREATE_DETACHED
33502 #define PTHREAD_CREATE_DETACHED 1
33506 int detach = PTHREAD_CREATE_DETACHED;
33508 #if HAVE_PTHREADS > 4
33509 /* Final pthreads */
33510 pthread_attr_t attr;
33512 status = pthread_attr_init(&attr);
33513 if( status ) return status;
33515 #if HAVE_PTHREADS < 7
33516 status = pthread_attr_setdetachstate(&attr, &detach);
33517 if( status < 0 ) status = errno;
33519 status = pthread_attr_setdetachstate(&attr, detach);
33521 if( status ) return status;
33522 status = pthread_create( &t, &attr, task, NULL );
33523 #if HAVE_PTHREADS < 7
33524 if( status < 0 ) status = errno;
33526 if( status ) return status;
33528 /* Draft 4 pthreads */
33529 status = pthread_create( &t, pthread_attr_default, task, NULL );
33530 if( status ) return errno;
33532 /* give thread a chance to complete */
33533 /* it should remain joinable and hence detachable */
33536 status = pthread_detach( &t );
33537 if( status ) return errno;
33540 #ifdef HAVE_LINUX_THREADS
33541 pthread_kill_other_threads_np();
33550 rm -f conftest.$ac_objext conftest$ac_exeext
33551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33552 (eval $ac_link) 2>conftest.er1
33554 grep -v '^ *+' conftest.er1 >conftest.err
33556 cat conftest.err >&5
33557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558 (exit $ac_status); } &&
33559 { ac_try='test -z "$ac_c_werror_flag"
33560 || test ! -s conftest.err'
33561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33562 (eval $ac_try) 2>&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; } &&
33566 { ac_try='test -s conftest$ac_exeext'
33567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568 (eval $ac_try) 2>&5
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; }; then
33572 ol_cv_pthread_lpthreads_lexc=yes
33574 echo "$as_me: failed program was:" >&5
33575 sed 's/^/| /' conftest.$ac_ext >&5
33577 ol_cv_pthread_lpthreads_lexc=no
33579 rm -f conftest.err conftest.$ac_objext \
33580 conftest$ac_exeext conftest.$ac_ext
33582 cat >conftest.$ac_ext <<_ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h. */
33588 /* pthread test headers */
33589 #include <pthread.h>
33590 #if HAVE_PTHREADS < 7
33594 #define NULL (void*)0
33597 static void *task(p)
33600 return (void *) (p == NULL);
33604 int main(argc, argv)
33609 /* pthread test function */
33610 #ifndef PTHREAD_CREATE_DETACHED
33611 #define PTHREAD_CREATE_DETACHED 1
33615 int detach = PTHREAD_CREATE_DETACHED;
33617 #if HAVE_PTHREADS > 4
33618 /* Final pthreads */
33619 pthread_attr_t attr;
33621 status = pthread_attr_init(&attr);
33622 if( status ) return status;
33624 #if HAVE_PTHREADS < 7
33625 status = pthread_attr_setdetachstate(&attr, &detach);
33626 if( status < 0 ) status = errno;
33628 status = pthread_attr_setdetachstate(&attr, detach);
33630 if( status ) return status;
33631 status = pthread_create( &t, &attr, task, NULL );
33632 #if HAVE_PTHREADS < 7
33633 if( status < 0 ) status = errno;
33635 if( status ) return status;
33637 /* Draft 4 pthreads */
33638 status = pthread_create( &t, pthread_attr_default, task, NULL );
33639 if( status ) return errno;
33641 /* give thread a chance to complete */
33642 /* it should remain joinable and hence detachable */
33645 status = pthread_detach( &t );
33646 if( status ) return errno;
33649 #ifdef HAVE_LINUX_THREADS
33650 pthread_kill_other_threads_np();
33658 rm -f conftest$ac_exeext
33659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33660 (eval $ac_link) 2>&5
33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33665 (eval $ac_try) 2>&5
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); }; }; then
33669 ol_cv_pthread_lpthreads_lexc=yes
33671 echo "$as_me: program exited with status $ac_status" >&5
33672 echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33675 ( exit $ac_status )
33676 ol_cv_pthread_lpthreads_lexc=no
33678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33685 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33686 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33688 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33689 ol_link_pthreads="-lpthreads -lexc"
33690 ol_link_threads=posix
33695 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33696 if test "$ol_link_threads" = no ; then
33698 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33699 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33700 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33701 echo $ECHO_N "(cached) $ECHO_C" >&6
33706 LIBS="-lpthreads $LIBS"
33708 if test "$cross_compiling" = yes; then
33709 cat >conftest.$ac_ext <<_ACEOF
33712 cat confdefs.h >>conftest.$ac_ext
33713 cat >>conftest.$ac_ext <<_ACEOF
33714 /* end confdefs.h. */
33715 /* pthread test headers */
33716 #include <pthread.h>
33717 #if HAVE_PTHREADS < 7
33721 #define NULL (void*)0
33724 static void *task(p)
33727 return (void *) (p == NULL);
33734 /* pthread test function */
33735 #ifndef PTHREAD_CREATE_DETACHED
33736 #define PTHREAD_CREATE_DETACHED 1
33740 int detach = PTHREAD_CREATE_DETACHED;
33742 #if HAVE_PTHREADS > 4
33743 /* Final pthreads */
33744 pthread_attr_t attr;
33746 status = pthread_attr_init(&attr);
33747 if( status ) return status;
33749 #if HAVE_PTHREADS < 7
33750 status = pthread_attr_setdetachstate(&attr, &detach);
33751 if( status < 0 ) status = errno;
33753 status = pthread_attr_setdetachstate(&attr, detach);
33755 if( status ) return status;
33756 status = pthread_create( &t, &attr, task, NULL );
33757 #if HAVE_PTHREADS < 7
33758 if( status < 0 ) status = errno;
33760 if( status ) return status;
33762 /* Draft 4 pthreads */
33763 status = pthread_create( &t, pthread_attr_default, task, NULL );
33764 if( status ) return errno;
33766 /* give thread a chance to complete */
33767 /* it should remain joinable and hence detachable */
33770 status = pthread_detach( &t );
33771 if( status ) return errno;
33774 #ifdef HAVE_LINUX_THREADS
33775 pthread_kill_other_threads_np();
33784 rm -f conftest.$ac_objext conftest$ac_exeext
33785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33786 (eval $ac_link) 2>conftest.er1
33788 grep -v '^ *+' conftest.er1 >conftest.err
33790 cat conftest.err >&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); } &&
33793 { ac_try='test -z "$ac_c_werror_flag"
33794 || test ! -s conftest.err'
33795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796 (eval $ac_try) 2>&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); }; } &&
33800 { ac_try='test -s conftest$ac_exeext'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; }; then
33806 ol_cv_pthread_lib_lpthreads=yes
33808 echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33811 ol_cv_pthread_lib_lpthreads=no
33813 rm -f conftest.err conftest.$ac_objext \
33814 conftest$ac_exeext conftest.$ac_ext
33816 cat >conftest.$ac_ext <<_ACEOF
33819 cat confdefs.h >>conftest.$ac_ext
33820 cat >>conftest.$ac_ext <<_ACEOF
33821 /* end confdefs.h. */
33822 /* pthread test headers */
33823 #include <pthread.h>
33824 #if HAVE_PTHREADS < 7
33828 #define NULL (void*)0
33831 static void *task(p)
33834 return (void *) (p == NULL);
33838 int main(argc, argv)
33843 /* pthread test function */
33844 #ifndef PTHREAD_CREATE_DETACHED
33845 #define PTHREAD_CREATE_DETACHED 1
33849 int detach = PTHREAD_CREATE_DETACHED;
33851 #if HAVE_PTHREADS > 4
33852 /* Final pthreads */
33853 pthread_attr_t attr;
33855 status = pthread_attr_init(&attr);
33856 if( status ) return status;
33858 #if HAVE_PTHREADS < 7
33859 status = pthread_attr_setdetachstate(&attr, &detach);
33860 if( status < 0 ) status = errno;
33862 status = pthread_attr_setdetachstate(&attr, detach);
33864 if( status ) return status;
33865 status = pthread_create( &t, &attr, task, NULL );
33866 #if HAVE_PTHREADS < 7
33867 if( status < 0 ) status = errno;
33869 if( status ) return status;
33871 /* Draft 4 pthreads */
33872 status = pthread_create( &t, pthread_attr_default, task, NULL );
33873 if( status ) return errno;
33875 /* give thread a chance to complete */
33876 /* it should remain joinable and hence detachable */
33879 status = pthread_detach( &t );
33880 if( status ) return errno;
33883 #ifdef HAVE_LINUX_THREADS
33884 pthread_kill_other_threads_np();
33892 rm -f conftest$ac_exeext
33893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33894 (eval $ac_link) 2>&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899 (eval $ac_try) 2>&5
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; }; then
33903 ol_cv_pthread_lib_lpthreads=yes
33905 echo "$as_me: program exited with status $ac_status" >&5
33906 echo "$as_me: failed program was:" >&5
33907 sed 's/^/| /' conftest.$ac_ext >&5
33909 ( exit $ac_status )
33910 ol_cv_pthread_lib_lpthreads=no
33912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33919 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
33920 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
33922 if test $ol_cv_pthread_lib_lpthreads = yes ; then
33923 ol_link_pthreads="-lpthreads"
33924 ol_link_threads=posix
33929 if test $ol_link_threads != no ; then
33930 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
33932 save_CPPFLAGS="$CPPFLAGS"
33934 LIBS="$LTHREAD_LIBS $LIBS"
33939 for ac_func in sched_yield pthread_yield thr_yield
33941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33942 echo "$as_me:$LINENO: checking for $ac_func" >&5
33943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33944 if eval "test \"\${$as_ac_var+set}\" = set"; then
33945 echo $ECHO_N "(cached) $ECHO_C" >&6
33947 cat >conftest.$ac_ext <<_ACEOF
33950 cat confdefs.h >>conftest.$ac_ext
33951 cat >>conftest.$ac_ext <<_ACEOF
33952 /* end confdefs.h. */
33953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33955 #define $ac_func innocuous_$ac_func
33957 /* System header to define __stub macros and hopefully few prototypes,
33958 which can conflict with char $ac_func (); below.
33959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33960 <limits.h> exists even on freestanding compilers. */
33963 # include <limits.h>
33965 # include <assert.h>
33970 /* Override any gcc2 internal prototype to avoid an error. */
33975 /* We use char because int might match the return type of a gcc2
33976 builtin and then its argument prototype would still apply. */
33978 /* The GNU C library defines this for functions which it implements
33979 to always fail with ENOSYS. Some functions are actually named
33980 something starting with __ and the normal name is an alias. */
33981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33984 char (*f) () = $ac_func;
33993 return f != $ac_func;
33998 rm -f conftest.$ac_objext conftest$ac_exeext
33999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34000 (eval $ac_link) 2>conftest.er1
34002 grep -v '^ *+' conftest.er1 >conftest.err
34004 cat conftest.err >&5
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); } &&
34007 { ac_try='test -z "$ac_c_werror_flag"
34008 || test ! -s conftest.err'
34009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010 (eval $ac_try) 2>&5
34012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013 (exit $ac_status); }; } &&
34014 { ac_try='test -s conftest$ac_exeext'
34015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016 (eval $ac_try) 2>&5
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; }; then
34020 eval "$as_ac_var=yes"
34022 echo "$as_me: failed program was:" >&5
34023 sed 's/^/| /' conftest.$ac_ext >&5
34025 eval "$as_ac_var=no"
34027 rm -f conftest.err conftest.$ac_objext \
34028 conftest$ac_exeext conftest.$ac_ext
34030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34032 if test `eval echo '${'$as_ac_var'}'` = yes; then
34033 cat >>confdefs.h <<_ACEOF
34034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34041 if test $ac_cv_func_sched_yield = no -a \
34042 $ac_cv_func_pthread_yield = no -a \
34043 $ac_cv_func_thr_yield = no ; then
34044 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34045 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34046 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34047 echo $ECHO_N "(cached) $ECHO_C" >&6
34049 ac_check_lib_save_LIBS=$LIBS
34051 cat >conftest.$ac_ext <<_ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h. */
34058 /* Override any gcc2 internal prototype to avoid an error. */
34062 /* We use char because int might match the return type of a gcc2
34063 builtin and then its argument prototype would still apply. */
34064 char sched_yield ();
34073 rm -f conftest.$ac_objext conftest$ac_exeext
34074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34075 (eval $ac_link) 2>conftest.er1
34077 grep -v '^ *+' conftest.er1 >conftest.err
34079 cat conftest.err >&5
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); } &&
34082 { ac_try='test -z "$ac_c_werror_flag"
34083 || test ! -s conftest.err'
34084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34085 (eval $ac_try) 2>&5
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); }; } &&
34089 { ac_try='test -s conftest$ac_exeext'
34090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091 (eval $ac_try) 2>&5
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094 (exit $ac_status); }; }; then
34095 ac_cv_lib_rt_sched_yield=yes
34097 echo "$as_me: failed program was:" >&5
34098 sed 's/^/| /' conftest.$ac_ext >&5
34100 ac_cv_lib_rt_sched_yield=no
34102 rm -f conftest.err conftest.$ac_objext \
34103 conftest$ac_exeext conftest.$ac_ext
34104 LIBS=$ac_check_lib_save_LIBS
34106 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34107 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34108 if test $ac_cv_lib_rt_sched_yield = yes; then
34109 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34111 cat >>confdefs.h <<\_ACEOF
34112 #define HAVE_SCHED_YIELD 1
34115 ac_cv_func_sched_yield=yes
34117 ac_cv_func_sched_yield=no
34121 if test $ac_cv_func_sched_yield = no -a \
34122 $ac_cv_func_pthread_yield = no -a \
34123 "$ac_cv_func_thr_yield" = no ; then
34124 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34125 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34130 for ac_func in pthread_kill pthread_rwlock_destroy
34132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34133 echo "$as_me:$LINENO: checking for $ac_func" >&5
34134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34135 if eval "test \"\${$as_ac_var+set}\" = set"; then
34136 echo $ECHO_N "(cached) $ECHO_C" >&6
34138 cat >conftest.$ac_ext <<_ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h. */
34144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34146 #define $ac_func innocuous_$ac_func
34148 /* System header to define __stub macros and hopefully few prototypes,
34149 which can conflict with char $ac_func (); below.
34150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34151 <limits.h> exists even on freestanding compilers. */
34154 # include <limits.h>
34156 # include <assert.h>
34161 /* Override any gcc2 internal prototype to avoid an error. */
34166 /* We use char because int might match the return type of a gcc2
34167 builtin and then its argument prototype would still apply. */
34169 /* The GNU C library defines this for functions which it implements
34170 to always fail with ENOSYS. Some functions are actually named
34171 something starting with __ and the normal name is an alias. */
34172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34175 char (*f) () = $ac_func;
34184 return f != $ac_func;
34189 rm -f conftest.$ac_objext conftest$ac_exeext
34190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34191 (eval $ac_link) 2>conftest.er1
34193 grep -v '^ *+' conftest.er1 >conftest.err
34195 cat conftest.err >&5
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); } &&
34198 { ac_try='test -z "$ac_c_werror_flag"
34199 || test ! -s conftest.err'
34200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201 (eval $ac_try) 2>&5
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; } &&
34205 { ac_try='test -s conftest$ac_exeext'
34206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34207 (eval $ac_try) 2>&5
34209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210 (exit $ac_status); }; }; then
34211 eval "$as_ac_var=yes"
34213 echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34216 eval "$as_ac_var=no"
34218 rm -f conftest.err conftest.$ac_objext \
34219 conftest$ac_exeext conftest.$ac_ext
34221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34223 if test `eval echo '${'$as_ac_var'}'` = yes; then
34224 cat >>confdefs.h <<_ACEOF
34225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34232 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34233 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34234 if test "${ol_cv_func_pthread_detach+set}" = set; then
34235 echo $ECHO_N "(cached) $ECHO_C" >&6
34238 cat >conftest.$ac_ext <<_ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h. */
34245 #include <pthread.h>
34247 #define NULL (void*)0
34253 pthread_detach(NULL);
34258 rm -f conftest.$ac_objext conftest$ac_exeext
34259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34260 (eval $ac_link) 2>conftest.er1
34262 grep -v '^ *+' conftest.er1 >conftest.err
34264 cat conftest.err >&5
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); } &&
34267 { ac_try='test -z "$ac_c_werror_flag"
34268 || test ! -s conftest.err'
34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270 (eval $ac_try) 2>&5
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); }; } &&
34274 { ac_try='test -s conftest$ac_exeext'
34275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34276 (eval $ac_try) 2>&5
34278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279 (exit $ac_status); }; }; then
34280 ol_cv_func_pthread_detach=yes
34282 echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34285 ol_cv_func_pthread_detach=no
34287 rm -f conftest.err conftest.$ac_objext \
34288 conftest$ac_exeext conftest.$ac_ext
34291 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34292 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34294 if test $ol_cv_func_pthread_detach = no ; then
34295 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34296 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34297 { (exit 1); exit 1; }; }
34301 cat >>confdefs.h <<\_ACEOF
34302 #define HAVE_PTHREAD_DETACH 1
34311 pthread_setconcurrency \
34312 pthread_getconcurrency \
34313 thr_setconcurrency \
34314 thr_getconcurrency \
34317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34318 echo "$as_me:$LINENO: checking for $ac_func" >&5
34319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34320 if eval "test \"\${$as_ac_var+set}\" = set"; then
34321 echo $ECHO_N "(cached) $ECHO_C" >&6
34323 cat >conftest.$ac_ext <<_ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h. */
34329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34331 #define $ac_func innocuous_$ac_func
34333 /* System header to define __stub macros and hopefully few prototypes,
34334 which can conflict with char $ac_func (); below.
34335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34336 <limits.h> exists even on freestanding compilers. */
34339 # include <limits.h>
34341 # include <assert.h>
34346 /* Override any gcc2 internal prototype to avoid an error. */
34351 /* We use char because int might match the return type of a gcc2
34352 builtin and then its argument prototype would still apply. */
34354 /* The GNU C library defines this for functions which it implements
34355 to always fail with ENOSYS. Some functions are actually named
34356 something starting with __ and the normal name is an alias. */
34357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34360 char (*f) () = $ac_func;
34369 return f != $ac_func;
34374 rm -f conftest.$ac_objext conftest$ac_exeext
34375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34376 (eval $ac_link) 2>conftest.er1
34378 grep -v '^ *+' conftest.er1 >conftest.err
34380 cat conftest.err >&5
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); } &&
34383 { ac_try='test -z "$ac_c_werror_flag"
34384 || test ! -s conftest.err'
34385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386 (eval $ac_try) 2>&5
34388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); }; } &&
34390 { ac_try='test -s conftest$ac_exeext'
34391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34392 (eval $ac_try) 2>&5
34394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395 (exit $ac_status); }; }; then
34396 eval "$as_ac_var=yes"
34398 echo "$as_me: failed program was:" >&5
34399 sed 's/^/| /' conftest.$ac_ext >&5
34401 eval "$as_ac_var=no"
34403 rm -f conftest.err conftest.$ac_objext \
34404 conftest$ac_exeext conftest.$ac_ext
34406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34408 if test `eval echo '${'$as_ac_var'}'` = yes; then
34409 cat >>confdefs.h <<_ACEOF
34410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34419 for ac_func in pthread_kill_other_threads_np
34421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34422 echo "$as_me:$LINENO: checking for $ac_func" >&5
34423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34424 if eval "test \"\${$as_ac_var+set}\" = set"; then
34425 echo $ECHO_N "(cached) $ECHO_C" >&6
34427 cat >conftest.$ac_ext <<_ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h. */
34433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34435 #define $ac_func innocuous_$ac_func
34437 /* System header to define __stub macros and hopefully few prototypes,
34438 which can conflict with char $ac_func (); below.
34439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34440 <limits.h> exists even on freestanding compilers. */
34443 # include <limits.h>
34445 # include <assert.h>
34450 /* Override any gcc2 internal prototype to avoid an error. */
34455 /* We use char because int might match the return type of a gcc2
34456 builtin and then its argument prototype would still apply. */
34458 /* The GNU C library defines this for functions which it implements
34459 to always fail with ENOSYS. Some functions are actually named
34460 something starting with __ and the normal name is an alias. */
34461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34464 char (*f) () = $ac_func;
34473 return f != $ac_func;
34478 rm -f conftest.$ac_objext conftest$ac_exeext
34479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34480 (eval $ac_link) 2>conftest.er1
34482 grep -v '^ *+' conftest.er1 >conftest.err
34484 cat conftest.err >&5
34485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486 (exit $ac_status); } &&
34487 { ac_try='test -z "$ac_c_werror_flag"
34488 || test ! -s conftest.err'
34489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34490 (eval $ac_try) 2>&5
34492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493 (exit $ac_status); }; } &&
34494 { ac_try='test -s conftest$ac_exeext'
34495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34496 (eval $ac_try) 2>&5
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); }; }; then
34500 eval "$as_ac_var=yes"
34502 echo "$as_me: failed program was:" >&5
34503 sed 's/^/| /' conftest.$ac_ext >&5
34505 eval "$as_ac_var=no"
34507 rm -f conftest.err conftest.$ac_objext \
34508 conftest$ac_exeext conftest.$ac_ext
34510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34512 if test `eval echo '${'$as_ac_var'}'` = yes; then
34513 cat >>confdefs.h <<_ACEOF
34514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34520 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34521 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34522 if test "${ol_cv_sys_linux_threads+set}" = set; then
34523 echo $ECHO_N "(cached) $ECHO_C" >&6
34525 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34527 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34528 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34533 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34534 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34535 if test "${ol_cv_linux_threads+set}" = set; then
34536 echo $ECHO_N "(cached) $ECHO_C" >&6
34539 if test $ol_cv_header_linux_threads = yes -a \
34540 $ol_cv_sys_linux_threads = yes; then
34541 ol_cv_linux_threads=yes
34542 elif test $ol_cv_header_linux_threads = no -a \
34543 $ol_cv_sys_linux_threads = no; then
34544 ol_cv_linux_threads=no
34546 ol_cv_linux_threads=error
34550 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34551 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34554 if test $ol_cv_linux_threads = error; then
34555 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34556 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34557 { (exit 1); exit 1; }; };
34560 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34561 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34562 if test "${ol_cv_pthread_create_works+set}" = set; then
34563 echo $ECHO_N "(cached) $ECHO_C" >&6
34566 if test "$cross_compiling" = yes; then
34567 ol_cv_pthread_create_works=yes
34569 cat >conftest.$ac_ext <<_ACEOF
34572 cat confdefs.h >>conftest.$ac_ext
34573 cat >>conftest.$ac_ext <<_ACEOF
34574 /* end confdefs.h. */
34575 OL_PTHREAD_TEST_PROGRAM
34577 rm -f conftest$ac_exeext
34578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34579 (eval $ac_link) 2>&5
34581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34584 (eval $ac_try) 2>&5
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); }; }; then
34588 ol_cv_pthread_create_works=yes
34590 echo "$as_me: program exited with status $ac_status" >&5
34591 echo "$as_me: failed program was:" >&5
34592 sed 's/^/| /' conftest.$ac_ext >&5
34594 ( exit $ac_status )
34595 ol_cv_pthread_create_works=no
34597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34600 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34601 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34603 if test $ol_cv_pthread_create_works = no ; then
34604 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34605 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34606 { (exit 1); exit 1; }; }
34609 if test $ol_with_yielding_select = auto ; then
34610 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34611 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34612 if test "${ol_cv_pthread_select_yields+set}" = set; then
34613 echo $ECHO_N "(cached) $ECHO_C" >&6
34616 if test "$cross_compiling" = yes; then
34617 ol_cv_pthread_select_yields=cross
34619 cat >conftest.$ac_ext <<_ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h. */
34626 #include <sys/types.h>
34627 #include <sys/time.h>
34628 #include <unistd.h>
34629 #include <pthread.h>
34631 #define NULL (void*) 0
34634 static int fildes[2];
34636 static void *task(p)
34648 FD_SET(fildes[0], &rfds);
34650 /* we're not interested in any fds */
34651 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34658 exit(0); /* if we exit here, the select blocked the whole process */
34661 int main(argc, argv)
34667 /* create a pipe to select */
34668 if(pipe(&fildes[0])) {
34673 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34674 (void) pthread_setconcurrency(2);
34676 #ifdef HAVE_THR_SETCONCURRENCY
34677 /* Set Solaris LWP concurrency to 2 */
34678 thr_setconcurrency(2);
34682 #if HAVE_PTHREADS < 6
34683 pthread_create(&t, pthread_attr_default, task, NULL);
34685 pthread_create(&t, NULL, task, NULL);
34688 /* make sure task runs first */
34691 #elif defined( HAVE_SCHED_YIELD )
34693 #elif defined( HAVE_PTHREAD_YIELD )
34700 rm -f conftest$ac_exeext
34701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34702 (eval $ac_link) 2>&5
34704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34707 (eval $ac_try) 2>&5
34709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710 (exit $ac_status); }; }; then
34711 ol_cv_pthread_select_yields=no
34713 echo "$as_me: program exited with status $ac_status" >&5
34714 echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34717 ( exit $ac_status )
34718 ol_cv_pthread_select_yields=yes
34720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34723 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34724 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34726 if test $ol_cv_pthread_select_yields = cross ; then
34727 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34728 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34729 { (exit 1); exit 1; }; }
34732 if test $ol_cv_pthread_select_yields = yes ; then
34733 ol_with_yielding_select=yes
34737 CPPFLAGS="$save_CPPFLAGS"
34740 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34741 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34742 { (exit 1); exit 1; }; }
34746 if test $ol_with_threads = posix ; then
34747 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34748 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34749 { (exit 1); exit 1; }; }
34753 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34754 -o $ol_with_threads = mach ; then
34758 for ac_header in mach/cthreads.h cthreads.h
34760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34762 echo "$as_me:$LINENO: checking for $ac_header" >&5
34763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34765 echo $ECHO_N "(cached) $ECHO_C" >&6
34767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34770 # Is the header compilable?
34771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34773 cat >conftest.$ac_ext <<_ACEOF
34776 cat confdefs.h >>conftest.$ac_ext
34777 cat >>conftest.$ac_ext <<_ACEOF
34778 /* end confdefs.h. */
34779 $ac_includes_default
34780 #include <$ac_header>
34782 rm -f conftest.$ac_objext
34783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34784 (eval $ac_compile) 2>conftest.er1
34786 grep -v '^ *+' conftest.er1 >conftest.err
34788 cat conftest.err >&5
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); } &&
34791 { ac_try='test -z "$ac_c_werror_flag"
34792 || test ! -s conftest.err'
34793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34794 (eval $ac_try) 2>&5
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); }; } &&
34798 { ac_try='test -s conftest.$ac_objext'
34799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34800 (eval $ac_try) 2>&5
34802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803 (exit $ac_status); }; }; then
34804 ac_header_compiler=yes
34806 echo "$as_me: failed program was:" >&5
34807 sed 's/^/| /' conftest.$ac_ext >&5
34809 ac_header_compiler=no
34811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34813 echo "${ECHO_T}$ac_header_compiler" >&6
34815 # Is the header present?
34816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34818 cat >conftest.$ac_ext <<_ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h. */
34824 #include <$ac_header>
34826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34829 grep -v '^ *+' conftest.er1 >conftest.err
34831 cat conftest.err >&5
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); } >/dev/null; then
34834 if test -s conftest.err; then
34835 ac_cpp_err=$ac_c_preproc_warn_flag
34836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34843 if test -z "$ac_cpp_err"; then
34844 ac_header_preproc=yes
34846 echo "$as_me: failed program was:" >&5
34847 sed 's/^/| /' conftest.$ac_ext >&5
34849 ac_header_preproc=no
34851 rm -f conftest.err conftest.$ac_ext
34852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34853 echo "${ECHO_T}$ac_header_preproc" >&6
34855 # So? What about this header?
34856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34862 ac_header_preproc=yes
34865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34879 ## ------------------------------------------ ##
34880 ## Report this to the AC_PACKAGE_NAME lists. ##
34881 ## ------------------------------------------ ##
34884 sed "s/^/$as_me: WARNING: /" >&2
34887 echo "$as_me:$LINENO: checking for $ac_header" >&5
34888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34890 echo $ECHO_N "(cached) $ECHO_C" >&6
34892 eval "$as_ac_Header=\$ac_header_preproc"
34894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34899 cat >>confdefs.h <<_ACEOF
34900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34907 if test $ac_cv_header_mach_cthreads_h = yes ; then
34908 ol_with_threads=found
34910 echo "$as_me:$LINENO: checking for cthread_fork" >&5
34911 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
34912 if test "${ac_cv_func_cthread_fork+set}" = set; then
34913 echo $ECHO_N "(cached) $ECHO_C" >&6
34915 cat >conftest.$ac_ext <<_ACEOF
34918 cat confdefs.h >>conftest.$ac_ext
34919 cat >>conftest.$ac_ext <<_ACEOF
34920 /* end confdefs.h. */
34921 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
34922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34923 #define cthread_fork innocuous_cthread_fork
34925 /* System header to define __stub macros and hopefully few prototypes,
34926 which can conflict with char cthread_fork (); below.
34927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34928 <limits.h> exists even on freestanding compilers. */
34931 # include <limits.h>
34933 # include <assert.h>
34936 #undef cthread_fork
34938 /* Override any gcc2 internal prototype to avoid an error. */
34943 /* We use char because int might match the return type of a gcc2
34944 builtin and then its argument prototype would still apply. */
34945 char cthread_fork ();
34946 /* The GNU C library defines this for functions which it implements
34947 to always fail with ENOSYS. Some functions are actually named
34948 something starting with __ and the normal name is an alias. */
34949 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
34952 char (*f) () = cthread_fork;
34961 return f != cthread_fork;
34966 rm -f conftest.$ac_objext conftest$ac_exeext
34967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34968 (eval $ac_link) 2>conftest.er1
34970 grep -v '^ *+' conftest.er1 >conftest.err
34972 cat conftest.err >&5
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); } &&
34975 { ac_try='test -z "$ac_c_werror_flag"
34976 || test ! -s conftest.err'
34977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978 (eval $ac_try) 2>&5
34980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); }; } &&
34982 { ac_try='test -s conftest$ac_exeext'
34983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984 (eval $ac_try) 2>&5
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); }; }; then
34988 ac_cv_func_cthread_fork=yes
34990 echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34993 ac_cv_func_cthread_fork=no
34995 rm -f conftest.err conftest.$ac_objext \
34996 conftest$ac_exeext conftest.$ac_ext
34998 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
34999 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35000 if test $ac_cv_func_cthread_fork = yes; then
35001 ol_link_threads=yes
35005 if test $ol_link_threads = no ; then
35006 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35007 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35008 if test "${ol_cv_cthread_all_load+set}" = set; then
35009 echo $ECHO_N "(cached) $ECHO_C" >&6
35013 LIBS="-all_load $LIBS"
35014 cat >conftest.$ac_ext <<_ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h. */
35020 #include <mach/cthreads.h>
35025 cthread_fork((void *)0, (void *)0);
35031 rm -f conftest.$ac_objext conftest$ac_exeext
35032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35033 (eval $ac_link) 2>conftest.er1
35035 grep -v '^ *+' conftest.er1 >conftest.err
35037 cat conftest.err >&5
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); } &&
35040 { ac_try='test -z "$ac_c_werror_flag"
35041 || test ! -s conftest.err'
35042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043 (eval $ac_try) 2>&5
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); }; } &&
35047 { ac_try='test -s conftest$ac_exeext'
35048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35049 (eval $ac_try) 2>&5
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; }; then
35053 ol_cv_cthread_all_load=yes
35055 echo "$as_me: failed program was:" >&5
35056 sed 's/^/| /' conftest.$ac_ext >&5
35058 ol_cv_cthread_all_load=no
35060 rm -f conftest.err conftest.$ac_objext \
35061 conftest$ac_exeext conftest.$ac_ext
35065 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35066 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35068 if test $ol_cv_cthread_all_load = yes ; then
35069 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35070 ol_link_threads=mach
35071 ol_with_threads=found
35075 elif test $ac_cv_header_cthreads_h = yes ; then
35077 ol_with_threads=found
35080 LIBS="$LIBS -lthreads"
35081 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35082 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35083 if test "${ac_cv_func_cthread_fork+set}" = set; then
35084 echo $ECHO_N "(cached) $ECHO_C" >&6
35086 cat >conftest.$ac_ext <<_ACEOF
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h. */
35092 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35094 #define cthread_fork innocuous_cthread_fork
35096 /* System header to define __stub macros and hopefully few prototypes,
35097 which can conflict with char cthread_fork (); below.
35098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35099 <limits.h> exists even on freestanding compilers. */
35102 # include <limits.h>
35104 # include <assert.h>
35107 #undef cthread_fork
35109 /* Override any gcc2 internal prototype to avoid an error. */
35114 /* We use char because int might match the return type of a gcc2
35115 builtin and then its argument prototype would still apply. */
35116 char cthread_fork ();
35117 /* The GNU C library defines this for functions which it implements
35118 to always fail with ENOSYS. Some functions are actually named
35119 something starting with __ and the normal name is an alias. */
35120 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35123 char (*f) () = cthread_fork;
35132 return f != cthread_fork;
35137 rm -f conftest.$ac_objext conftest$ac_exeext
35138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35139 (eval $ac_link) 2>conftest.er1
35141 grep -v '^ *+' conftest.er1 >conftest.err
35143 cat conftest.err >&5
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); } &&
35146 { ac_try='test -z "$ac_c_werror_flag"
35147 || test ! -s conftest.err'
35148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149 (eval $ac_try) 2>&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); }; } &&
35153 { ac_try='test -s conftest$ac_exeext'
35154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155 (eval $ac_try) 2>&5
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); }; }; then
35159 ac_cv_func_cthread_fork=yes
35161 echo "$as_me: failed program was:" >&5
35162 sed 's/^/| /' conftest.$ac_ext >&5
35164 ac_cv_func_cthread_fork=no
35166 rm -f conftest.err conftest.$ac_objext \
35167 conftest$ac_exeext conftest.$ac_ext
35169 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35170 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35171 if test $ac_cv_func_cthread_fork = yes; then
35172 ol_link_threads=yes
35177 if test $ol_link_threads = yes ; then
35178 LTHREAD_LIBS="-lthreads"
35179 ol_link_threads=mach
35180 ol_with_threads=found
35182 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35183 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35184 { (exit 1); exit 1; }; }
35187 elif test $ol_with_threads = mach ; then
35188 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35189 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35190 { (exit 1); exit 1; }; }
35193 if test $ol_link_threads = mach ; then
35195 cat >>confdefs.h <<\_ACEOF
35196 #define HAVE_MACH_CTHREADS 1
35199 elif test $ol_with_threads = found ; then
35200 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35201 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35202 { (exit 1); exit 1; }; }
35206 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35207 -o $ol_with_threads = pth ; then
35210 for ac_header in pth.h
35212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35214 echo "$as_me:$LINENO: checking for $ac_header" >&5
35215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35222 # Is the header compilable?
35223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35225 cat >conftest.$ac_ext <<_ACEOF
35228 cat confdefs.h >>conftest.$ac_ext
35229 cat >>conftest.$ac_ext <<_ACEOF
35230 /* end confdefs.h. */
35231 $ac_includes_default
35232 #include <$ac_header>
35234 rm -f conftest.$ac_objext
35235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35236 (eval $ac_compile) 2>conftest.er1
35238 grep -v '^ *+' conftest.er1 >conftest.err
35240 cat conftest.err >&5
35241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); } &&
35243 { ac_try='test -z "$ac_c_werror_flag"
35244 || test ! -s conftest.err'
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); }; } &&
35250 { ac_try='test -s conftest.$ac_objext'
35251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252 (eval $ac_try) 2>&5
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); }; }; then
35256 ac_header_compiler=yes
35258 echo "$as_me: failed program was:" >&5
35259 sed 's/^/| /' conftest.$ac_ext >&5
35261 ac_header_compiler=no
35263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35265 echo "${ECHO_T}$ac_header_compiler" >&6
35267 # Is the header present?
35268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35270 cat >conftest.$ac_ext <<_ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h. */
35276 #include <$ac_header>
35278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35281 grep -v '^ *+' conftest.er1 >conftest.err
35283 cat conftest.err >&5
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); } >/dev/null; then
35286 if test -s conftest.err; then
35287 ac_cpp_err=$ac_c_preproc_warn_flag
35288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35295 if test -z "$ac_cpp_err"; then
35296 ac_header_preproc=yes
35298 echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35301 ac_header_preproc=no
35303 rm -f conftest.err conftest.$ac_ext
35304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35305 echo "${ECHO_T}$ac_header_preproc" >&6
35307 # So? What about this header?
35308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35314 ac_header_preproc=yes
35317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35331 ## ------------------------------------------ ##
35332 ## Report this to the AC_PACKAGE_NAME lists. ##
35333 ## ------------------------------------------ ##
35336 sed "s/^/$as_me: WARNING: /" >&2
35339 echo "$as_me:$LINENO: checking for $ac_header" >&5
35340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35342 echo $ECHO_N "(cached) $ECHO_C" >&6
35344 eval "$as_ac_Header=\$ac_header_preproc"
35346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35351 cat >>confdefs.h <<_ACEOF
35352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35360 if test $ac_cv_header_pth_h = yes ; then
35361 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35362 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35363 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35364 echo $ECHO_N "(cached) $ECHO_C" >&6
35366 ac_check_lib_save_LIBS=$LIBS
35368 cat >conftest.$ac_ext <<_ACEOF
35371 cat confdefs.h >>conftest.$ac_ext
35372 cat >>conftest.$ac_ext <<_ACEOF
35373 /* end confdefs.h. */
35375 /* Override any gcc2 internal prototype to avoid an error. */
35379 /* We use char because int might match the return type of a gcc2
35380 builtin and then its argument prototype would still apply. */
35381 char pth_version ();
35390 rm -f conftest.$ac_objext conftest$ac_exeext
35391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35392 (eval $ac_link) 2>conftest.er1
35394 grep -v '^ *+' conftest.er1 >conftest.err
35396 cat conftest.err >&5
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); } &&
35399 { ac_try='test -z "$ac_c_werror_flag"
35400 || test ! -s conftest.err'
35401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35402 (eval $ac_try) 2>&5
35404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405 (exit $ac_status); }; } &&
35406 { ac_try='test -s conftest$ac_exeext'
35407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35408 (eval $ac_try) 2>&5
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); }; }; then
35412 ac_cv_lib_pth_pth_version=yes
35414 echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35417 ac_cv_lib_pth_pth_version=no
35419 rm -f conftest.err conftest.$ac_objext \
35420 conftest$ac_exeext conftest.$ac_ext
35421 LIBS=$ac_check_lib_save_LIBS
35423 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35424 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35425 if test $ac_cv_lib_pth_pth_version = yes; then
35432 if test $have_pth = yes ; then
35434 cat >>confdefs.h <<\_ACEOF
35435 #define HAVE_GNU_PTH 1
35438 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35439 ol_link_threads=pth
35440 ol_with_threads=found
35442 if test $ol_with_yielding_select = auto ; then
35443 ol_with_yielding_select=yes
35449 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35450 -o $ol_with_threads = lwp ; then
35454 for ac_header in thread.h synch.h
35456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35458 echo "$as_me:$LINENO: checking for $ac_header" >&5
35459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35461 echo $ECHO_N "(cached) $ECHO_C" >&6
35463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35466 # Is the header compilable?
35467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35469 cat >conftest.$ac_ext <<_ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h. */
35475 $ac_includes_default
35476 #include <$ac_header>
35478 rm -f conftest.$ac_objext
35479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35480 (eval $ac_compile) 2>conftest.er1
35482 grep -v '^ *+' conftest.er1 >conftest.err
35484 cat conftest.err >&5
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); } &&
35487 { ac_try='test -z "$ac_c_werror_flag"
35488 || test ! -s conftest.err'
35489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35490 (eval $ac_try) 2>&5
35492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493 (exit $ac_status); }; } &&
35494 { ac_try='test -s conftest.$ac_objext'
35495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35496 (eval $ac_try) 2>&5
35498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499 (exit $ac_status); }; }; then
35500 ac_header_compiler=yes
35502 echo "$as_me: failed program was:" >&5
35503 sed 's/^/| /' conftest.$ac_ext >&5
35505 ac_header_compiler=no
35507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35509 echo "${ECHO_T}$ac_header_compiler" >&6
35511 # Is the header present?
35512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35514 cat >conftest.$ac_ext <<_ACEOF
35517 cat confdefs.h >>conftest.$ac_ext
35518 cat >>conftest.$ac_ext <<_ACEOF
35519 /* end confdefs.h. */
35520 #include <$ac_header>
35522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35525 grep -v '^ *+' conftest.er1 >conftest.err
35527 cat conftest.err >&5
35528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529 (exit $ac_status); } >/dev/null; then
35530 if test -s conftest.err; then
35531 ac_cpp_err=$ac_c_preproc_warn_flag
35532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35539 if test -z "$ac_cpp_err"; then
35540 ac_header_preproc=yes
35542 echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35545 ac_header_preproc=no
35547 rm -f conftest.err conftest.$ac_ext
35548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35549 echo "${ECHO_T}$ac_header_preproc" >&6
35551 # So? What about this header?
35552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35558 ac_header_preproc=yes
35561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35575 ## ------------------------------------------ ##
35576 ## Report this to the AC_PACKAGE_NAME lists. ##
35577 ## ------------------------------------------ ##
35580 sed "s/^/$as_me: WARNING: /" >&2
35583 echo "$as_me:$LINENO: checking for $ac_header" >&5
35584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35586 echo $ECHO_N "(cached) $ECHO_C" >&6
35588 eval "$as_ac_Header=\$ac_header_preproc"
35590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35595 cat >>confdefs.h <<_ACEOF
35596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35603 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35604 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35605 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35606 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35607 echo $ECHO_N "(cached) $ECHO_C" >&6
35609 ac_check_lib_save_LIBS=$LIBS
35610 LIBS="-lthread $LIBS"
35611 cat >conftest.$ac_ext <<_ACEOF
35614 cat confdefs.h >>conftest.$ac_ext
35615 cat >>conftest.$ac_ext <<_ACEOF
35616 /* end confdefs.h. */
35618 /* Override any gcc2 internal prototype to avoid an error. */
35622 /* We use char because int might match the return type of a gcc2
35623 builtin and then its argument prototype would still apply. */
35624 char thr_create ();
35633 rm -f conftest.$ac_objext conftest$ac_exeext
35634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35635 (eval $ac_link) 2>conftest.er1
35637 grep -v '^ *+' conftest.er1 >conftest.err
35639 cat conftest.err >&5
35640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641 (exit $ac_status); } &&
35642 { ac_try='test -z "$ac_c_werror_flag"
35643 || test ! -s conftest.err'
35644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35645 (eval $ac_try) 2>&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); }; } &&
35649 { ac_try='test -s conftest$ac_exeext'
35650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651 (eval $ac_try) 2>&5
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); }; }; then
35655 ac_cv_lib_thread_thr_create=yes
35657 echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35660 ac_cv_lib_thread_thr_create=no
35662 rm -f conftest.err conftest.$ac_objext \
35663 conftest$ac_exeext conftest.$ac_ext
35664 LIBS=$ac_check_lib_save_LIBS
35666 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35667 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35668 if test $ac_cv_lib_thread_thr_create = yes; then
35675 if test $have_thr = yes ; then
35677 cat >>confdefs.h <<\_ACEOF
35681 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35682 ol_link_threads=thr
35684 if test $ol_with_yielding_select = auto ; then
35685 ol_with_yielding_select=yes
35691 thr_setconcurrency \
35692 thr_getconcurrency \
35695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35696 echo "$as_me:$LINENO: checking for $ac_func" >&5
35697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35698 if eval "test \"\${$as_ac_var+set}\" = set"; then
35699 echo $ECHO_N "(cached) $ECHO_C" >&6
35701 cat >conftest.$ac_ext <<_ACEOF
35704 cat confdefs.h >>conftest.$ac_ext
35705 cat >>conftest.$ac_ext <<_ACEOF
35706 /* end confdefs.h. */
35707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35709 #define $ac_func innocuous_$ac_func
35711 /* System header to define __stub macros and hopefully few prototypes,
35712 which can conflict with char $ac_func (); below.
35713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35714 <limits.h> exists even on freestanding compilers. */
35717 # include <limits.h>
35719 # include <assert.h>
35724 /* Override any gcc2 internal prototype to avoid an error. */
35729 /* We use char because int might match the return type of a gcc2
35730 builtin and then its argument prototype would still apply. */
35732 /* The GNU C library defines this for functions which it implements
35733 to always fail with ENOSYS. Some functions are actually named
35734 something starting with __ and the normal name is an alias. */
35735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35738 char (*f) () = $ac_func;
35747 return f != $ac_func;
35752 rm -f conftest.$ac_objext conftest$ac_exeext
35753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35754 (eval $ac_link) 2>conftest.er1
35756 grep -v '^ *+' conftest.er1 >conftest.err
35758 cat conftest.err >&5
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); } &&
35761 { ac_try='test -z "$ac_c_werror_flag"
35762 || test ! -s conftest.err'
35763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35764 (eval $ac_try) 2>&5
35766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767 (exit $ac_status); }; } &&
35768 { ac_try='test -s conftest$ac_exeext'
35769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770 (eval $ac_try) 2>&5
35772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773 (exit $ac_status); }; }; then
35774 eval "$as_ac_var=yes"
35776 echo "$as_me: failed program was:" >&5
35777 sed 's/^/| /' conftest.$ac_ext >&5
35779 eval "$as_ac_var=no"
35781 rm -f conftest.err conftest.$ac_objext \
35782 conftest$ac_exeext conftest.$ac_ext
35784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35786 if test `eval echo '${'$as_ac_var'}'` = yes; then
35787 cat >>confdefs.h <<_ACEOF
35788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35798 for ac_header in lwp/lwp.h
35800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35802 echo "$as_me:$LINENO: checking for $ac_header" >&5
35803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35805 echo $ECHO_N "(cached) $ECHO_C" >&6
35807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35810 # Is the header compilable?
35811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35813 cat >conftest.$ac_ext <<_ACEOF
35816 cat confdefs.h >>conftest.$ac_ext
35817 cat >>conftest.$ac_ext <<_ACEOF
35818 /* end confdefs.h. */
35819 $ac_includes_default
35820 #include <$ac_header>
35822 rm -f conftest.$ac_objext
35823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35824 (eval $ac_compile) 2>conftest.er1
35826 grep -v '^ *+' conftest.er1 >conftest.err
35828 cat conftest.err >&5
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } &&
35831 { ac_try='test -z "$ac_c_werror_flag"
35832 || test ! -s conftest.err'
35833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834 (eval $ac_try) 2>&5
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); }; } &&
35838 { ac_try='test -s conftest.$ac_objext'
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; }; then
35844 ac_header_compiler=yes
35846 echo "$as_me: failed program was:" >&5
35847 sed 's/^/| /' conftest.$ac_ext >&5
35849 ac_header_compiler=no
35851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35853 echo "${ECHO_T}$ac_header_compiler" >&6
35855 # Is the header present?
35856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35858 cat >conftest.$ac_ext <<_ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h. */
35864 #include <$ac_header>
35866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35869 grep -v '^ *+' conftest.er1 >conftest.err
35871 cat conftest.err >&5
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); } >/dev/null; then
35874 if test -s conftest.err; then
35875 ac_cpp_err=$ac_c_preproc_warn_flag
35876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35883 if test -z "$ac_cpp_err"; then
35884 ac_header_preproc=yes
35886 echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35889 ac_header_preproc=no
35891 rm -f conftest.err conftest.$ac_ext
35892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35893 echo "${ECHO_T}$ac_header_preproc" >&6
35895 # So? What about this header?
35896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35902 ac_header_preproc=yes
35905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35919 ## ------------------------------------------ ##
35920 ## Report this to the AC_PACKAGE_NAME lists. ##
35921 ## ------------------------------------------ ##
35924 sed "s/^/$as_me: WARNING: /" >&2
35927 echo "$as_me:$LINENO: checking for $ac_header" >&5
35928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35930 echo $ECHO_N "(cached) $ECHO_C" >&6
35932 eval "$as_ac_Header=\$ac_header_preproc"
35934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35939 cat >>confdefs.h <<_ACEOF
35940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35947 if test $ac_cv_header_lwp_lwp_h = yes ; then
35948 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
35949 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
35950 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
35951 echo $ECHO_N "(cached) $ECHO_C" >&6
35953 ac_check_lib_save_LIBS=$LIBS
35955 cat >conftest.$ac_ext <<_ACEOF
35958 cat confdefs.h >>conftest.$ac_ext
35959 cat >>conftest.$ac_ext <<_ACEOF
35960 /* end confdefs.h. */
35962 /* Override any gcc2 internal prototype to avoid an error. */
35966 /* We use char because int might match the return type of a gcc2
35967 builtin and then its argument prototype would still apply. */
35968 char lwp_create ();
35977 rm -f conftest.$ac_objext conftest$ac_exeext
35978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35979 (eval $ac_link) 2>conftest.er1
35981 grep -v '^ *+' conftest.er1 >conftest.err
35983 cat conftest.err >&5
35984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35985 (exit $ac_status); } &&
35986 { ac_try='test -z "$ac_c_werror_flag"
35987 || test ! -s conftest.err'
35988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35989 (eval $ac_try) 2>&5
35991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992 (exit $ac_status); }; } &&
35993 { ac_try='test -s conftest$ac_exeext'
35994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35995 (eval $ac_try) 2>&5
35997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35998 (exit $ac_status); }; }; then
35999 ac_cv_lib_lwp_lwp_create=yes
36001 echo "$as_me: failed program was:" >&5
36002 sed 's/^/| /' conftest.$ac_ext >&5
36004 ac_cv_lib_lwp_lwp_create=no
36006 rm -f conftest.err conftest.$ac_objext \
36007 conftest$ac_exeext conftest.$ac_ext
36008 LIBS=$ac_check_lib_save_LIBS
36010 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36011 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36012 if test $ac_cv_lib_lwp_lwp_create = yes; then
36019 if test $have_lwp = yes ; then
36021 cat >>confdefs.h <<\_ACEOF
36025 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36026 ol_link_threads=lwp
36028 if test $ol_with_yielding_select = auto ; then
36029 ol_with_yielding_select=no
36035 if test $ol_with_yielding_select = yes ; then
36037 cat >>confdefs.h <<\_ACEOF
36038 #define HAVE_YIELDING_SELECT 1
36043 if test $ol_with_threads = manual ; then
36044 ol_link_threads=yes
36046 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36047 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36051 for ac_header in pthread.h sched.h
36053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36055 echo "$as_me:$LINENO: checking for $ac_header" >&5
36056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36058 echo $ECHO_N "(cached) $ECHO_C" >&6
36060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36063 # Is the header compilable?
36064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36066 cat >conftest.$ac_ext <<_ACEOF
36069 cat confdefs.h >>conftest.$ac_ext
36070 cat >>conftest.$ac_ext <<_ACEOF
36071 /* end confdefs.h. */
36072 $ac_includes_default
36073 #include <$ac_header>
36075 rm -f conftest.$ac_objext
36076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36077 (eval $ac_compile) 2>conftest.er1
36079 grep -v '^ *+' conftest.er1 >conftest.err
36081 cat conftest.err >&5
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); } &&
36084 { ac_try='test -z "$ac_c_werror_flag"
36085 || test ! -s conftest.err'
36086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36087 (eval $ac_try) 2>&5
36089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090 (exit $ac_status); }; } &&
36091 { ac_try='test -s conftest.$ac_objext'
36092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36093 (eval $ac_try) 2>&5
36095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096 (exit $ac_status); }; }; then
36097 ac_header_compiler=yes
36099 echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36102 ac_header_compiler=no
36104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36106 echo "${ECHO_T}$ac_header_compiler" >&6
36108 # Is the header present?
36109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36111 cat >conftest.$ac_ext <<_ACEOF
36114 cat confdefs.h >>conftest.$ac_ext
36115 cat >>conftest.$ac_ext <<_ACEOF
36116 /* end confdefs.h. */
36117 #include <$ac_header>
36119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36122 grep -v '^ *+' conftest.er1 >conftest.err
36124 cat conftest.err >&5
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); } >/dev/null; then
36127 if test -s conftest.err; then
36128 ac_cpp_err=$ac_c_preproc_warn_flag
36129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36136 if test -z "$ac_cpp_err"; then
36137 ac_header_preproc=yes
36139 echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36142 ac_header_preproc=no
36144 rm -f conftest.err conftest.$ac_ext
36145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36146 echo "${ECHO_T}$ac_header_preproc" >&6
36148 # So? What about this header?
36149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36155 ac_header_preproc=yes
36158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36172 ## ------------------------------------------ ##
36173 ## Report this to the AC_PACKAGE_NAME lists. ##
36174 ## ------------------------------------------ ##
36177 sed "s/^/$as_me: WARNING: /" >&2
36180 echo "$as_me:$LINENO: checking for $ac_header" >&5
36181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36183 echo $ECHO_N "(cached) $ECHO_C" >&6
36185 eval "$as_ac_Header=\$ac_header_preproc"
36187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36192 cat >>confdefs.h <<_ACEOF
36193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36202 for ac_func in sched_yield pthread_yield
36204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36205 echo "$as_me:$LINENO: checking for $ac_func" >&5
36206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36207 if eval "test \"\${$as_ac_var+set}\" = set"; then
36208 echo $ECHO_N "(cached) $ECHO_C" >&6
36210 cat >conftest.$ac_ext <<_ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h. */
36216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36218 #define $ac_func innocuous_$ac_func
36220 /* System header to define __stub macros and hopefully few prototypes,
36221 which can conflict with char $ac_func (); below.
36222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36223 <limits.h> exists even on freestanding compilers. */
36226 # include <limits.h>
36228 # include <assert.h>
36233 /* Override any gcc2 internal prototype to avoid an error. */
36238 /* We use char because int might match the return type of a gcc2
36239 builtin and then its argument prototype would still apply. */
36241 /* The GNU C library defines this for functions which it implements
36242 to always fail with ENOSYS. Some functions are actually named
36243 something starting with __ and the normal name is an alias. */
36244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36247 char (*f) () = $ac_func;
36256 return f != $ac_func;
36261 rm -f conftest.$ac_objext conftest$ac_exeext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36263 (eval $ac_link) 2>conftest.er1
36265 grep -v '^ *+' conftest.er1 >conftest.err
36267 cat conftest.err >&5
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); } &&
36270 { ac_try='test -z "$ac_c_werror_flag"
36271 || test ! -s conftest.err'
36272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273 (eval $ac_try) 2>&5
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); }; } &&
36277 { ac_try='test -s conftest$ac_exeext'
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; }; then
36283 eval "$as_ac_var=yes"
36285 echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36288 eval "$as_ac_var=no"
36290 rm -f conftest.err conftest.$ac_objext \
36291 conftest$ac_exeext conftest.$ac_ext
36293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36295 if test `eval echo '${'$as_ac_var'}'` = yes; then
36296 cat >>confdefs.h <<_ACEOF
36297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36304 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36305 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36306 if test "${ol_cv_header_linux_threads+set}" = set; then
36307 echo $ECHO_N "(cached) $ECHO_C" >&6
36309 cat >conftest.$ac_ext <<_ACEOF
36312 cat confdefs.h >>conftest.$ac_ext
36313 cat >>conftest.$ac_ext <<_ACEOF
36314 /* end confdefs.h. */
36315 #include <pthread.h>
36317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36318 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36319 ol_cv_header_linux_threads=yes
36321 ol_cv_header_linux_threads=no
36327 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36328 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36329 if test $ol_cv_header_linux_threads = yes; then
36331 cat >>confdefs.h <<\_ACEOF
36332 #define HAVE_LINUX_THREADS 1
36339 for ac_header in mach/cthreads.h
36341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36343 echo "$as_me:$LINENO: checking for $ac_header" >&5
36344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36346 echo $ECHO_N "(cached) $ECHO_C" >&6
36348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36351 # Is the header compilable?
36352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36354 cat >conftest.$ac_ext <<_ACEOF
36357 cat confdefs.h >>conftest.$ac_ext
36358 cat >>conftest.$ac_ext <<_ACEOF
36359 /* end confdefs.h. */
36360 $ac_includes_default
36361 #include <$ac_header>
36363 rm -f conftest.$ac_objext
36364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36365 (eval $ac_compile) 2>conftest.er1
36367 grep -v '^ *+' conftest.er1 >conftest.err
36369 cat conftest.err >&5
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); } &&
36372 { ac_try='test -z "$ac_c_werror_flag"
36373 || test ! -s conftest.err'
36374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36375 (eval $ac_try) 2>&5
36377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378 (exit $ac_status); }; } &&
36379 { ac_try='test -s conftest.$ac_objext'
36380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36381 (eval $ac_try) 2>&5
36383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36384 (exit $ac_status); }; }; then
36385 ac_header_compiler=yes
36387 echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36390 ac_header_compiler=no
36392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36394 echo "${ECHO_T}$ac_header_compiler" >&6
36396 # Is the header present?
36397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36399 cat >conftest.$ac_ext <<_ACEOF
36402 cat confdefs.h >>conftest.$ac_ext
36403 cat >>conftest.$ac_ext <<_ACEOF
36404 /* end confdefs.h. */
36405 #include <$ac_header>
36407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36410 grep -v '^ *+' conftest.er1 >conftest.err
36412 cat conftest.err >&5
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); } >/dev/null; then
36415 if test -s conftest.err; then
36416 ac_cpp_err=$ac_c_preproc_warn_flag
36417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36424 if test -z "$ac_cpp_err"; then
36425 ac_header_preproc=yes
36427 echo "$as_me: failed program was:" >&5
36428 sed 's/^/| /' conftest.$ac_ext >&5
36430 ac_header_preproc=no
36432 rm -f conftest.err conftest.$ac_ext
36433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36434 echo "${ECHO_T}$ac_header_preproc" >&6
36436 # So? What about this header?
36437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36443 ac_header_preproc=yes
36446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36460 ## ------------------------------------------ ##
36461 ## Report this to the AC_PACKAGE_NAME lists. ##
36462 ## ------------------------------------------ ##
36465 sed "s/^/$as_me: WARNING: /" >&2
36468 echo "$as_me:$LINENO: checking for $ac_header" >&5
36469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36471 echo $ECHO_N "(cached) $ECHO_C" >&6
36473 eval "$as_ac_Header=\$ac_header_preproc"
36475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36480 cat >>confdefs.h <<_ACEOF
36481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36489 for ac_header in lwp/lwp.h
36491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36493 echo "$as_me:$LINENO: checking for $ac_header" >&5
36494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36496 echo $ECHO_N "(cached) $ECHO_C" >&6
36498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36501 # Is the header compilable?
36502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36504 cat >conftest.$ac_ext <<_ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h. */
36510 $ac_includes_default
36511 #include <$ac_header>
36513 rm -f conftest.$ac_objext
36514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36515 (eval $ac_compile) 2>conftest.er1
36517 grep -v '^ *+' conftest.er1 >conftest.err
36519 cat conftest.err >&5
36520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36521 (exit $ac_status); } &&
36522 { ac_try='test -z "$ac_c_werror_flag"
36523 || test ! -s conftest.err'
36524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36525 (eval $ac_try) 2>&5
36527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528 (exit $ac_status); }; } &&
36529 { ac_try='test -s conftest.$ac_objext'
36530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36531 (eval $ac_try) 2>&5
36533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); }; }; then
36535 ac_header_compiler=yes
36537 echo "$as_me: failed program was:" >&5
36538 sed 's/^/| /' conftest.$ac_ext >&5
36540 ac_header_compiler=no
36542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36544 echo "${ECHO_T}$ac_header_compiler" >&6
36546 # Is the header present?
36547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36549 cat >conftest.$ac_ext <<_ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h. */
36555 #include <$ac_header>
36557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36560 grep -v '^ *+' conftest.er1 >conftest.err
36562 cat conftest.err >&5
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); } >/dev/null; then
36565 if test -s conftest.err; then
36566 ac_cpp_err=$ac_c_preproc_warn_flag
36567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36574 if test -z "$ac_cpp_err"; then
36575 ac_header_preproc=yes
36577 echo "$as_me: failed program was:" >&5
36578 sed 's/^/| /' conftest.$ac_ext >&5
36580 ac_header_preproc=no
36582 rm -f conftest.err conftest.$ac_ext
36583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36584 echo "${ECHO_T}$ac_header_preproc" >&6
36586 # So? What about this header?
36587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36593 ac_header_preproc=yes
36596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36610 ## ------------------------------------------ ##
36611 ## Report this to the AC_PACKAGE_NAME lists. ##
36612 ## ------------------------------------------ ##
36615 sed "s/^/$as_me: WARNING: /" >&2
36618 echo "$as_me:$LINENO: checking for $ac_header" >&5
36619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36621 echo $ECHO_N "(cached) $ECHO_C" >&6
36623 eval "$as_ac_Header=\$ac_header_preproc"
36625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36630 cat >>confdefs.h <<_ACEOF
36631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36640 for ac_header in thread.h synch.h
36642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36644 echo "$as_me:$LINENO: checking for $ac_header" >&5
36645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36647 echo $ECHO_N "(cached) $ECHO_C" >&6
36649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36652 # Is the header compilable?
36653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36655 cat >conftest.$ac_ext <<_ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h. */
36661 $ac_includes_default
36662 #include <$ac_header>
36664 rm -f conftest.$ac_objext
36665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36666 (eval $ac_compile) 2>conftest.er1
36668 grep -v '^ *+' conftest.er1 >conftest.err
36670 cat conftest.err >&5
36671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672 (exit $ac_status); } &&
36673 { ac_try='test -z "$ac_c_werror_flag"
36674 || test ! -s conftest.err'
36675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36676 (eval $ac_try) 2>&5
36678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36679 (exit $ac_status); }; } &&
36680 { ac_try='test -s conftest.$ac_objext'
36681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36682 (eval $ac_try) 2>&5
36684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685 (exit $ac_status); }; }; then
36686 ac_header_compiler=yes
36688 echo "$as_me: failed program was:" >&5
36689 sed 's/^/| /' conftest.$ac_ext >&5
36691 ac_header_compiler=no
36693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36695 echo "${ECHO_T}$ac_header_compiler" >&6
36697 # Is the header present?
36698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36700 cat >conftest.$ac_ext <<_ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h. */
36706 #include <$ac_header>
36708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36711 grep -v '^ *+' conftest.er1 >conftest.err
36713 cat conftest.err >&5
36714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 (exit $ac_status); } >/dev/null; then
36716 if test -s conftest.err; then
36717 ac_cpp_err=$ac_c_preproc_warn_flag
36718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36725 if test -z "$ac_cpp_err"; then
36726 ac_header_preproc=yes
36728 echo "$as_me: failed program was:" >&5
36729 sed 's/^/| /' conftest.$ac_ext >&5
36731 ac_header_preproc=no
36733 rm -f conftest.err conftest.$ac_ext
36734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36735 echo "${ECHO_T}$ac_header_preproc" >&6
36737 # So? What about this header?
36738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36744 ac_header_preproc=yes
36747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36761 ## ------------------------------------------ ##
36762 ## Report this to the AC_PACKAGE_NAME lists. ##
36763 ## ------------------------------------------ ##
36766 sed "s/^/$as_me: WARNING: /" >&2
36769 echo "$as_me:$LINENO: checking for $ac_header" >&5
36770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36772 echo $ECHO_N "(cached) $ECHO_C" >&6
36774 eval "$as_ac_Header=\$ac_header_preproc"
36776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36781 cat >>confdefs.h <<_ACEOF
36782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36791 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36792 cat >>confdefs.h <<\_ACEOF
36793 #define REENTRANT 1
36796 cat >>confdefs.h <<\_ACEOF
36797 #define _REENTRANT 1
36800 cat >>confdefs.h <<\_ACEOF
36801 #define THREAD_SAFE 1
36804 cat >>confdefs.h <<\_ACEOF
36805 #define _THREAD_SAFE 1
36808 cat >>confdefs.h <<\_ACEOF
36809 #define THREADSAFE 1
36812 cat >>confdefs.h <<\_ACEOF
36813 #define _THREADSAFE 1
36816 cat >>confdefs.h <<\_ACEOF
36817 #define _SGI_MP_SOURCE 1
36821 echo "$as_me:$LINENO: checking for thread specific errno" >&5
36822 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
36823 if test "${ol_cv_errno_thread_specific+set}" = set; then
36824 echo $ECHO_N "(cached) $ECHO_C" >&6
36827 cat >conftest.$ac_ext <<_ACEOF
36830 cat confdefs.h >>conftest.$ac_ext
36831 cat >>conftest.$ac_ext <<_ACEOF
36832 /* end confdefs.h. */
36842 rm -f conftest.$ac_objext conftest$ac_exeext
36843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36844 (eval $ac_link) 2>conftest.er1
36846 grep -v '^ *+' conftest.er1 >conftest.err
36848 cat conftest.err >&5
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); } &&
36851 { ac_try='test -z "$ac_c_werror_flag"
36852 || test ! -s conftest.err'
36853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36854 (eval $ac_try) 2>&5
36856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857 (exit $ac_status); }; } &&
36858 { ac_try='test -s conftest$ac_exeext'
36859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36860 (eval $ac_try) 2>&5
36862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863 (exit $ac_status); }; }; then
36864 ol_cv_errno_thread_specific=yes
36866 echo "$as_me: failed program was:" >&5
36867 sed 's/^/| /' conftest.$ac_ext >&5
36869 ol_cv_errno_thread_specific=no
36871 rm -f conftest.err conftest.$ac_objext \
36872 conftest$ac_exeext conftest.$ac_ext
36875 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
36876 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
36878 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
36879 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
36880 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
36881 echo $ECHO_N "(cached) $ECHO_C" >&6
36884 cat >conftest.$ac_ext <<_ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h. */
36899 rm -f conftest.$ac_objext conftest$ac_exeext
36900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36901 (eval $ac_link) 2>conftest.er1
36903 grep -v '^ *+' conftest.er1 >conftest.err
36905 cat conftest.err >&5
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); } &&
36908 { ac_try='test -z "$ac_c_werror_flag"
36909 || test ! -s conftest.err'
36910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36911 (eval $ac_try) 2>&5
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); }; } &&
36915 { ac_try='test -s conftest$ac_exeext'
36916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36917 (eval $ac_try) 2>&5
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); }; }; then
36921 ol_cv_h_errno_thread_specific=yes
36923 echo "$as_me: failed program was:" >&5
36924 sed 's/^/| /' conftest.$ac_ext >&5
36926 ol_cv_h_errno_thread_specific=no
36928 rm -f conftest.err conftest.$ac_objext \
36929 conftest$ac_exeext conftest.$ac_ext
36932 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
36933 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
36935 if test $ol_cv_errno_thread_specific != yes \
36936 -o $ol_cv_h_errno_thread_specific != yes ; then
36937 LIBS="$LTHREAD_LIBS $LIBS"
36943 if test $ol_link_threads = no ; then
36944 if test $ol_with_threads = yes ; then
36945 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
36946 echo "$as_me: error: no suitable thread support" >&2;}
36947 { (exit 1); exit 1; }; }
36950 if test $ol_with_threads = auto ; then
36951 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
36952 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
36957 cat >>confdefs.h <<\_ACEOF
36958 #define NO_THREADS 1
36964 if test $ol_link_threads != no ; then
36965 cat >>confdefs.h <<\_ACEOF
36966 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
36976 gethostbyname_r gethostbyaddr_r \
36979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36980 echo "$as_me:$LINENO: checking for $ac_func" >&5
36981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36982 if eval "test \"\${$as_ac_var+set}\" = set"; then
36983 echo $ECHO_N "(cached) $ECHO_C" >&6
36985 cat >conftest.$ac_ext <<_ACEOF
36988 cat confdefs.h >>conftest.$ac_ext
36989 cat >>conftest.$ac_ext <<_ACEOF
36990 /* end confdefs.h. */
36991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36993 #define $ac_func innocuous_$ac_func
36995 /* System header to define __stub macros and hopefully few prototypes,
36996 which can conflict with char $ac_func (); below.
36997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36998 <limits.h> exists even on freestanding compilers. */
37001 # include <limits.h>
37003 # include <assert.h>
37008 /* Override any gcc2 internal prototype to avoid an error. */
37013 /* We use char because int might match the return type of a gcc2
37014 builtin and then its argument prototype would still apply. */
37016 /* The GNU C library defines this for functions which it implements
37017 to always fail with ENOSYS. Some functions are actually named
37018 something starting with __ and the normal name is an alias. */
37019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37022 char (*f) () = $ac_func;
37031 return f != $ac_func;
37036 rm -f conftest.$ac_objext conftest$ac_exeext
37037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37038 (eval $ac_link) 2>conftest.er1
37040 grep -v '^ *+' conftest.er1 >conftest.err
37042 cat conftest.err >&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); } &&
37045 { ac_try='test -z "$ac_c_werror_flag"
37046 || test ! -s conftest.err'
37047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37048 (eval $ac_try) 2>&5
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); }; } &&
37052 { ac_try='test -s conftest$ac_exeext'
37053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37054 (eval $ac_try) 2>&5
37056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); }; }; then
37058 eval "$as_ac_var=yes"
37060 echo "$as_me: failed program was:" >&5
37061 sed 's/^/| /' conftest.$ac_ext >&5
37063 eval "$as_ac_var=no"
37065 rm -f conftest.err conftest.$ac_objext \
37066 conftest$ac_exeext conftest.$ac_ext
37068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37070 if test `eval echo '${'$as_ac_var'}'` = yes; then
37071 cat >>confdefs.h <<_ACEOF
37072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37079 if test "$ac_cv_func_ctime_r" = no ; then
37080 ol_cv_func_ctime_r_nargs=0
37082 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37083 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37084 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37085 echo $ECHO_N "(cached) $ECHO_C" >&6
37087 cat >conftest.$ac_ext <<_ACEOF
37090 cat confdefs.h >>conftest.$ac_ext
37091 cat >>conftest.$ac_ext <<_ACEOF
37092 /* end confdefs.h. */
37097 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37102 rm -f conftest.$ac_objext
37103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37104 (eval $ac_compile) 2>conftest.er1
37106 grep -v '^ *+' conftest.er1 >conftest.err
37108 cat conftest.err >&5
37109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110 (exit $ac_status); } &&
37111 { ac_try='test -z "$ac_c_werror_flag"
37112 || test ! -s conftest.err'
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); }; } &&
37118 { ac_try='test -s conftest.$ac_objext'
37119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37120 (eval $ac_try) 2>&5
37122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123 (exit $ac_status); }; }; then
37124 ol_cv_func_ctime_r_nargs3=yes
37126 echo "$as_me: failed program was:" >&5
37127 sed 's/^/| /' conftest.$ac_ext >&5
37129 ol_cv_func_ctime_r_nargs3=no
37131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37133 cat >conftest.$ac_ext <<_ACEOF
37136 cat confdefs.h >>conftest.$ac_ext
37137 cat >>conftest.$ac_ext <<_ACEOF
37138 /* end confdefs.h. */
37143 time_t ti; char *buffer; ctime_r(&ti,buffer);
37148 rm -f conftest.$ac_objext
37149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37150 (eval $ac_compile) 2>conftest.er1
37152 grep -v '^ *+' conftest.er1 >conftest.err
37154 cat conftest.err >&5
37155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156 (exit $ac_status); } &&
37157 { ac_try='test -z "$ac_c_werror_flag"
37158 || test ! -s conftest.err'
37159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37160 (eval $ac_try) 2>&5
37162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163 (exit $ac_status); }; } &&
37164 { ac_try='test -s conftest.$ac_objext'
37165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37166 (eval $ac_try) 2>&5
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); }; }; then
37170 ol_cv_func_ctime_r_nargs2=yes
37172 echo "$as_me: failed program was:" >&5
37173 sed 's/^/| /' conftest.$ac_ext >&5
37175 ol_cv_func_ctime_r_nargs2=no
37177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37179 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37180 $ol_cv_func_ctime_r_nargs2 = no ; then
37182 ol_cv_func_ctime_r_nargs=3
37184 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37185 $ol_cv_func_ctime_r_nargs2 = yes ; then
37187 ol_cv_func_ctime_r_nargs=2
37190 ol_cv_func_ctime_r_nargs=0
37194 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37195 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37197 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37199 cat >>confdefs.h <<_ACEOF
37200 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37207 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37208 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37209 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37210 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37211 echo $ECHO_N "(cached) $ECHO_C" >&6
37213 cat >conftest.$ac_ext <<_ACEOF
37216 cat confdefs.h >>conftest.$ac_ext
37217 cat >>conftest.$ac_ext <<_ACEOF
37218 /* end confdefs.h. */
37219 #include <sys/types.h>
37220 #include <sys/socket.h>
37221 #include <netinet/in.h>
37223 #define BUFSIZE (sizeof(struct hostent)+10)
37227 struct hostent hent; char buffer[BUFSIZE];
37228 int bufsize=BUFSIZE;int h_errno;
37229 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37230 buffer, bufsize, &h_errno);
37235 rm -f conftest.$ac_objext
37236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37237 (eval $ac_compile) 2>conftest.er1
37239 grep -v '^ *+' conftest.er1 >conftest.err
37241 cat conftest.err >&5
37242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); } &&
37244 { ac_try='test -z "$ac_c_werror_flag"
37245 || test ! -s conftest.err'
37246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37247 (eval $ac_try) 2>&5
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); }; } &&
37251 { ac_try='test -s conftest.$ac_objext'
37252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253 (eval $ac_try) 2>&5
37255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256 (exit $ac_status); }; }; then
37257 ol_cv_func_gethostbyname_r_nargs5=yes
37259 echo "$as_me: failed program was:" >&5
37260 sed 's/^/| /' conftest.$ac_ext >&5
37262 ol_cv_func_gethostbyname_r_nargs5=no
37264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37266 cat >conftest.$ac_ext <<_ACEOF
37269 cat confdefs.h >>conftest.$ac_ext
37270 cat >>conftest.$ac_ext <<_ACEOF
37271 /* end confdefs.h. */
37272 #include <sys/types.h>
37273 #include <sys/socket.h>
37274 #include <netinet/in.h>
37276 #define BUFSIZE (sizeof(struct hostent)+10)
37280 struct hostent hent;struct hostent *rhent;
37281 char buffer[BUFSIZE];
37282 int bufsize=BUFSIZE;int h_errno;
37283 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37289 rm -f conftest.$ac_objext
37290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37291 (eval $ac_compile) 2>conftest.er1
37293 grep -v '^ *+' conftest.er1 >conftest.err
37295 cat conftest.err >&5
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); } &&
37298 { ac_try='test -z "$ac_c_werror_flag"
37299 || test ! -s conftest.err'
37300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37301 (eval $ac_try) 2>&5
37303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304 (exit $ac_status); }; } &&
37305 { ac_try='test -s conftest.$ac_objext'
37306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37307 (eval $ac_try) 2>&5
37309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); }; }; then
37311 ol_cv_func_gethostbyname_r_nargs6=yes
37313 echo "$as_me: failed program was:" >&5
37314 sed 's/^/| /' conftest.$ac_ext >&5
37316 ol_cv_func_gethostbyname_r_nargs6=no
37318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37320 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37321 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37323 ol_cv_func_gethostbyname_r_nargs=5
37325 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37326 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37328 ol_cv_func_gethostbyname_r_nargs=6
37331 ol_cv_func_gethostbyname_r_nargs=0
37335 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37336 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37337 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37339 cat >>confdefs.h <<_ACEOF
37340 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37346 ol_cv_func_gethostbyname_r_nargs=0
37349 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37350 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37351 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37352 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37353 echo $ECHO_N "(cached) $ECHO_C" >&6
37355 cat >conftest.$ac_ext <<_ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h. */
37361 #include <sys/types.h>
37362 #include <sys/socket.h>
37363 #include <netinet/in.h>
37365 #define BUFSIZE (sizeof(struct hostent)+10)
37369 struct hostent hent; char buffer[BUFSIZE];
37370 struct in_addr add;
37371 size_t alen=sizeof(struct in_addr);
37372 int bufsize=BUFSIZE;int h_errno;
37373 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37374 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37379 rm -f conftest.$ac_objext
37380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37381 (eval $ac_compile) 2>conftest.er1
37383 grep -v '^ *+' conftest.er1 >conftest.err
37385 cat conftest.err >&5
37386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387 (exit $ac_status); } &&
37388 { ac_try='test -z "$ac_c_werror_flag"
37389 || test ! -s conftest.err'
37390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391 (eval $ac_try) 2>&5
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); }; } &&
37395 { ac_try='test -s conftest.$ac_objext'
37396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37397 (eval $ac_try) 2>&5
37399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37400 (exit $ac_status); }; }; then
37401 ol_cv_func_gethostbyaddr_r_nargs7=yes
37403 echo "$as_me: failed program was:" >&5
37404 sed 's/^/| /' conftest.$ac_ext >&5
37406 ol_cv_func_gethostbyaddr_r_nargs7=no
37408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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;
37425 struct hostent *rhent; char buffer[BUFSIZE];
37426 struct in_addr add;
37427 size_t alen=sizeof(struct in_addr);
37428 int bufsize=BUFSIZE;int h_errno;
37429 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37430 alen, AF_INET, &hent, buffer, bufsize,
37436 rm -f conftest.$ac_objext
37437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37438 (eval $ac_compile) 2>conftest.er1
37440 grep -v '^ *+' conftest.er1 >conftest.err
37442 cat conftest.err >&5
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); } &&
37445 { ac_try='test -z "$ac_c_werror_flag"
37446 || test ! -s conftest.err'
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; } &&
37452 { ac_try='test -s conftest.$ac_objext'
37453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37454 (eval $ac_try) 2>&5
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); }; }; then
37458 ol_cv_func_gethostbyaddr_r_nargs8=yes
37460 echo "$as_me: failed program was:" >&5
37461 sed 's/^/| /' conftest.$ac_ext >&5
37463 ol_cv_func_gethostbyaddr_r_nargs8=no
37465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37467 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37468 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37470 ol_cv_func_gethostbyaddr_r_nargs=7
37472 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37473 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37475 ol_cv_func_gethostbyaddr_r_nargs=8
37478 ol_cv_func_gethostbyaddr_r_nargs=0
37482 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37483 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37484 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37486 cat >>confdefs.h <<_ACEOF
37487 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37493 ol_cv_func_gethostbyaddr_r_nargs=0
37498 if test $ol_with_ldbm_api = auto \
37499 -o $ol_with_ldbm_api = berkeley \
37500 -o $ol_with_ldbm_api = bcompat ; then
37502 if test $ol_with_ldbm_api = bcompat; then \
37505 for ac_header in db_185.h db.h
37507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37509 echo "$as_me:$LINENO: checking for $ac_header" >&5
37510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37512 echo $ECHO_N "(cached) $ECHO_C" >&6
37514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37517 # Is the header compilable?
37518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37520 cat >conftest.$ac_ext <<_ACEOF
37523 cat confdefs.h >>conftest.$ac_ext
37524 cat >>conftest.$ac_ext <<_ACEOF
37525 /* end confdefs.h. */
37526 $ac_includes_default
37527 #include <$ac_header>
37529 rm -f conftest.$ac_objext
37530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37531 (eval $ac_compile) 2>conftest.er1
37533 grep -v '^ *+' conftest.er1 >conftest.err
37535 cat conftest.err >&5
37536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537 (exit $ac_status); } &&
37538 { ac_try='test -z "$ac_c_werror_flag"
37539 || test ! -s conftest.err'
37540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37541 (eval $ac_try) 2>&5
37543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544 (exit $ac_status); }; } &&
37545 { ac_try='test -s conftest.$ac_objext'
37546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547 (eval $ac_try) 2>&5
37549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550 (exit $ac_status); }; }; then
37551 ac_header_compiler=yes
37553 echo "$as_me: failed program was:" >&5
37554 sed 's/^/| /' conftest.$ac_ext >&5
37556 ac_header_compiler=no
37558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37560 echo "${ECHO_T}$ac_header_compiler" >&6
37562 # Is the header present?
37563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37565 cat >conftest.$ac_ext <<_ACEOF
37568 cat confdefs.h >>conftest.$ac_ext
37569 cat >>conftest.$ac_ext <<_ACEOF
37570 /* end confdefs.h. */
37571 #include <$ac_header>
37573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37576 grep -v '^ *+' conftest.er1 >conftest.err
37578 cat conftest.err >&5
37579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580 (exit $ac_status); } >/dev/null; then
37581 if test -s conftest.err; then
37582 ac_cpp_err=$ac_c_preproc_warn_flag
37583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37590 if test -z "$ac_cpp_err"; then
37591 ac_header_preproc=yes
37593 echo "$as_me: failed program was:" >&5
37594 sed 's/^/| /' conftest.$ac_ext >&5
37596 ac_header_preproc=no
37598 rm -f conftest.err conftest.$ac_ext
37599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37600 echo "${ECHO_T}$ac_header_preproc" >&6
37602 # So? What about this header?
37603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37609 ac_header_preproc=yes
37612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37626 ## ------------------------------------------ ##
37627 ## Report this to the AC_PACKAGE_NAME lists. ##
37628 ## ------------------------------------------ ##
37631 sed "s/^/$as_me: WARNING: /" >&2
37634 echo "$as_me:$LINENO: checking for $ac_header" >&5
37635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37637 echo $ECHO_N "(cached) $ECHO_C" >&6
37639 eval "$as_ac_Header=\$ac_header_preproc"
37641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37646 cat >>confdefs.h <<_ACEOF
37647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37654 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37655 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37656 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37657 if test "${ol_cv_header_db1+set}" = set; then
37658 echo $ECHO_N "(cached) $ECHO_C" >&6
37661 cat >conftest.$ac_ext <<_ACEOF
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h. */
37669 # include <db_185.h>
37674 /* this check could be improved */
37675 #ifndef DB_VERSION_MAJOR
37676 # define DB_VERSION_MAJOR 1
37679 #if DB_VERSION_MAJOR == 1
37684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37685 $EGREP "__db_version_1" >/dev/null 2>&1; then
37686 ol_cv_header_db1=yes
37688 ol_cv_header_db1=no
37693 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37694 echo "${ECHO_T}$ol_cv_header_db1" >&6
37696 if test $ol_cv_header_db1 = yes ; then
37698 if test $ol_cv_lib_db = no ; then
37699 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37700 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37701 if test "${ol_cv_db_none+set}" = set; then
37702 echo $ECHO_N "(cached) $ECHO_C" >&6
37707 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37709 cat >conftest.$ac_ext <<_ACEOF
37712 cat confdefs.h >>conftest.$ac_ext
37713 cat >>conftest.$ac_ext <<_ACEOF
37714 /* end confdefs.h. */
37716 #ifdef HAVE_DB_185_H
37717 # include <db_185.h>
37722 #ifndef DB_VERSION_MAJOR
37723 # define DB_VERSION_MAJOR 1
37727 #define NULL ((void*)0)
37734 #if DB_VERSION_MAJOR > 1
37737 int major, minor, patch;
37739 version = db_version( &major, &minor, &patch );
37741 if( major != DB_VERSION_MAJOR ||
37742 minor < DB_VERSION_MINOR )
37744 printf("Berkeley DB version mismatch\n"
37745 "\theader: %s\n\tlibrary: %s\n",
37746 DB_VERSION_STRING, version);
37752 #if DB_VERSION_MAJOR > 2
37753 db_env_create( NULL, 0 );
37754 #elif DB_VERSION_MAJOR > 1
37755 db_appexit( NULL );
37757 (void) dbopen( NULL, 0, 0, 0, NULL);
37764 rm -f conftest.$ac_objext conftest$ac_exeext
37765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37766 (eval $ac_link) 2>conftest.er1
37768 grep -v '^ *+' conftest.er1 >conftest.err
37770 cat conftest.err >&5
37771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772 (exit $ac_status); } &&
37773 { ac_try='test -z "$ac_c_werror_flag"
37774 || test ! -s conftest.err'
37775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37776 (eval $ac_try) 2>&5
37778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37779 (exit $ac_status); }; } &&
37780 { ac_try='test -s conftest$ac_exeext'
37781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37782 (eval $ac_try) 2>&5
37784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785 (exit $ac_status); }; }; then
37788 echo "$as_me: failed program was:" >&5
37789 sed 's/^/| /' conftest.$ac_ext >&5
37793 rm -f conftest.err conftest.$ac_objext \
37794 conftest$ac_exeext conftest.$ac_ext
37799 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37800 echo "${ECHO_T}$ol_cv_db_none" >&6
37802 if test $ol_cv_db_none = yes ; then
37807 if test $ol_cv_lib_db = no ; then
37808 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
37809 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
37810 if test "${ol_cv_db_db43+set}" = set; then
37811 echo $ECHO_N "(cached) $ECHO_C" >&6
37816 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37818 cat >conftest.$ac_ext <<_ACEOF
37821 cat confdefs.h >>conftest.$ac_ext
37822 cat >>conftest.$ac_ext <<_ACEOF
37823 /* end confdefs.h. */
37825 #ifdef HAVE_DB_185_H
37826 # include <db_185.h>
37831 #ifndef DB_VERSION_MAJOR
37832 # define DB_VERSION_MAJOR 1
37836 #define NULL ((void*)0)
37843 #if DB_VERSION_MAJOR > 1
37846 int major, minor, patch;
37848 version = db_version( &major, &minor, &patch );
37850 if( major != DB_VERSION_MAJOR ||
37851 minor < DB_VERSION_MINOR )
37853 printf("Berkeley DB version mismatch\n"
37854 "\theader: %s\n\tlibrary: %s\n",
37855 DB_VERSION_STRING, version);
37861 #if DB_VERSION_MAJOR > 2
37862 db_env_create( NULL, 0 );
37863 #elif DB_VERSION_MAJOR > 1
37864 db_appexit( NULL );
37866 (void) dbopen( NULL, 0, 0, 0, NULL);
37873 rm -f conftest.$ac_objext conftest$ac_exeext
37874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37875 (eval $ac_link) 2>conftest.er1
37877 grep -v '^ *+' conftest.er1 >conftest.err
37879 cat conftest.err >&5
37880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881 (exit $ac_status); } &&
37882 { ac_try='test -z "$ac_c_werror_flag"
37883 || test ! -s conftest.err'
37884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37885 (eval $ac_try) 2>&5
37887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888 (exit $ac_status); }; } &&
37889 { ac_try='test -s conftest$ac_exeext'
37890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37891 (eval $ac_try) 2>&5
37893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37894 (exit $ac_status); }; }; then
37897 echo "$as_me: failed program was:" >&5
37898 sed 's/^/| /' conftest.$ac_ext >&5
37902 rm -f conftest.err conftest.$ac_objext \
37903 conftest$ac_exeext conftest.$ac_ext
37908 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
37909 echo "${ECHO_T}$ol_cv_db_db43" >&6
37911 if test $ol_cv_db_db43 = yes ; then
37912 ol_cv_lib_db=-ldb43
37916 if test $ol_cv_lib_db = no ; then
37917 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
37918 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
37919 if test "${ol_cv_db_db_43+set}" = set; then
37920 echo $ECHO_N "(cached) $ECHO_C" >&6
37925 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37927 cat >conftest.$ac_ext <<_ACEOF
37930 cat confdefs.h >>conftest.$ac_ext
37931 cat >>conftest.$ac_ext <<_ACEOF
37932 /* end confdefs.h. */
37934 #ifdef HAVE_DB_185_H
37935 # include <db_185.h>
37940 #ifndef DB_VERSION_MAJOR
37941 # define DB_VERSION_MAJOR 1
37945 #define NULL ((void*)0)
37952 #if DB_VERSION_MAJOR > 1
37955 int major, minor, patch;
37957 version = db_version( &major, &minor, &patch );
37959 if( major != DB_VERSION_MAJOR ||
37960 minor < DB_VERSION_MINOR )
37962 printf("Berkeley DB version mismatch\n"
37963 "\theader: %s\n\tlibrary: %s\n",
37964 DB_VERSION_STRING, version);
37970 #if DB_VERSION_MAJOR > 2
37971 db_env_create( NULL, 0 );
37972 #elif DB_VERSION_MAJOR > 1
37973 db_appexit( NULL );
37975 (void) dbopen( NULL, 0, 0, 0, NULL);
37982 rm -f conftest.$ac_objext conftest$ac_exeext
37983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37984 (eval $ac_link) 2>conftest.er1
37986 grep -v '^ *+' conftest.er1 >conftest.err
37988 cat conftest.err >&5
37989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37990 (exit $ac_status); } &&
37991 { ac_try='test -z "$ac_c_werror_flag"
37992 || test ! -s conftest.err'
37993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37994 (eval $ac_try) 2>&5
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); }; } &&
37998 { ac_try='test -s conftest$ac_exeext'
37999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000 (eval $ac_try) 2>&5
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); }; }; then
38006 echo "$as_me: failed program was:" >&5
38007 sed 's/^/| /' conftest.$ac_ext >&5
38011 rm -f conftest.err conftest.$ac_objext \
38012 conftest$ac_exeext conftest.$ac_ext
38017 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38018 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38020 if test $ol_cv_db_db_43 = yes ; then
38021 ol_cv_lib_db=-ldb-43
38025 if test $ol_cv_lib_db = no ; then
38026 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38027 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38028 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38029 echo $ECHO_N "(cached) $ECHO_C" >&6
38034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38036 cat >conftest.$ac_ext <<_ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h. */
38043 #ifdef HAVE_DB_185_H
38044 # include <db_185.h>
38049 #ifndef DB_VERSION_MAJOR
38050 # define DB_VERSION_MAJOR 1
38054 #define NULL ((void*)0)
38061 #if DB_VERSION_MAJOR > 1
38064 int major, minor, patch;
38066 version = db_version( &major, &minor, &patch );
38068 if( major != DB_VERSION_MAJOR ||
38069 minor < DB_VERSION_MINOR )
38071 printf("Berkeley DB version mismatch\n"
38072 "\theader: %s\n\tlibrary: %s\n",
38073 DB_VERSION_STRING, version);
38079 #if DB_VERSION_MAJOR > 2
38080 db_env_create( NULL, 0 );
38081 #elif DB_VERSION_MAJOR > 1
38082 db_appexit( NULL );
38084 (void) dbopen( NULL, 0, 0, 0, NULL);
38091 rm -f conftest.$ac_objext conftest$ac_exeext
38092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38093 (eval $ac_link) 2>conftest.er1
38095 grep -v '^ *+' conftest.er1 >conftest.err
38097 cat conftest.err >&5
38098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099 (exit $ac_status); } &&
38100 { ac_try='test -z "$ac_c_werror_flag"
38101 || test ! -s conftest.err'
38102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38103 (eval $ac_try) 2>&5
38105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106 (exit $ac_status); }; } &&
38107 { ac_try='test -s conftest$ac_exeext'
38108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38109 (eval $ac_try) 2>&5
38111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112 (exit $ac_status); }; }; then
38113 ol_cv_db_db_4_dot_3=yes
38115 echo "$as_me: failed program was:" >&5
38116 sed 's/^/| /' conftest.$ac_ext >&5
38118 ol_cv_db_db_4_dot_3=no
38120 rm -f conftest.err conftest.$ac_objext \
38121 conftest$ac_exeext conftest.$ac_ext
38126 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38127 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38129 if test $ol_cv_db_db_4_dot_3 = yes ; then
38130 ol_cv_lib_db=-ldb-4.3
38134 if test $ol_cv_lib_db = no ; then
38135 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38136 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38137 if test "${ol_cv_db_db_4_3+set}" = set; then
38138 echo $ECHO_N "(cached) $ECHO_C" >&6
38143 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38145 cat >conftest.$ac_ext <<_ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h. */
38152 #ifdef HAVE_DB_185_H
38153 # include <db_185.h>
38158 #ifndef DB_VERSION_MAJOR
38159 # define DB_VERSION_MAJOR 1
38163 #define NULL ((void*)0)
38170 #if DB_VERSION_MAJOR > 1
38173 int major, minor, patch;
38175 version = db_version( &major, &minor, &patch );
38177 if( major != DB_VERSION_MAJOR ||
38178 minor < DB_VERSION_MINOR )
38180 printf("Berkeley DB version mismatch\n"
38181 "\theader: %s\n\tlibrary: %s\n",
38182 DB_VERSION_STRING, version);
38188 #if DB_VERSION_MAJOR > 2
38189 db_env_create( NULL, 0 );
38190 #elif DB_VERSION_MAJOR > 1
38191 db_appexit( NULL );
38193 (void) dbopen( NULL, 0, 0, 0, NULL);
38200 rm -f conftest.$ac_objext conftest$ac_exeext
38201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38202 (eval $ac_link) 2>conftest.er1
38204 grep -v '^ *+' conftest.er1 >conftest.err
38206 cat conftest.err >&5
38207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208 (exit $ac_status); } &&
38209 { ac_try='test -z "$ac_c_werror_flag"
38210 || test ! -s conftest.err'
38211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38212 (eval $ac_try) 2>&5
38214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); }; } &&
38216 { ac_try='test -s conftest$ac_exeext'
38217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218 (eval $ac_try) 2>&5
38220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221 (exit $ac_status); }; }; then
38222 ol_cv_db_db_4_3=yes
38224 echo "$as_me: failed program was:" >&5
38225 sed 's/^/| /' conftest.$ac_ext >&5
38229 rm -f conftest.err conftest.$ac_objext \
38230 conftest$ac_exeext conftest.$ac_ext
38235 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38236 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38238 if test $ol_cv_db_db_4_3 = yes ; then
38239 ol_cv_lib_db=-ldb-4-3
38243 if test $ol_cv_lib_db = no ; then
38244 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38245 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38246 if test "${ol_cv_db_db42+set}" = set; then
38247 echo $ECHO_N "(cached) $ECHO_C" >&6
38252 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38254 cat >conftest.$ac_ext <<_ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h. */
38261 #ifdef HAVE_DB_185_H
38262 # include <db_185.h>
38267 #ifndef DB_VERSION_MAJOR
38268 # define DB_VERSION_MAJOR 1
38272 #define NULL ((void*)0)
38279 #if DB_VERSION_MAJOR > 1
38282 int major, minor, patch;
38284 version = db_version( &major, &minor, &patch );
38286 if( major != DB_VERSION_MAJOR ||
38287 minor < DB_VERSION_MINOR )
38289 printf("Berkeley DB version mismatch\n"
38290 "\theader: %s\n\tlibrary: %s\n",
38291 DB_VERSION_STRING, version);
38297 #if DB_VERSION_MAJOR > 2
38298 db_env_create( NULL, 0 );
38299 #elif DB_VERSION_MAJOR > 1
38300 db_appexit( NULL );
38302 (void) dbopen( NULL, 0, 0, 0, NULL);
38309 rm -f conftest.$ac_objext conftest$ac_exeext
38310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38311 (eval $ac_link) 2>conftest.er1
38313 grep -v '^ *+' conftest.er1 >conftest.err
38315 cat conftest.err >&5
38316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38317 (exit $ac_status); } &&
38318 { ac_try='test -z "$ac_c_werror_flag"
38319 || test ! -s conftest.err'
38320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38321 (eval $ac_try) 2>&5
38323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38324 (exit $ac_status); }; } &&
38325 { ac_try='test -s conftest$ac_exeext'
38326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38327 (eval $ac_try) 2>&5
38329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330 (exit $ac_status); }; }; then
38333 echo "$as_me: failed program was:" >&5
38334 sed 's/^/| /' conftest.$ac_ext >&5
38338 rm -f conftest.err conftest.$ac_objext \
38339 conftest$ac_exeext conftest.$ac_ext
38344 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38345 echo "${ECHO_T}$ol_cv_db_db42" >&6
38347 if test $ol_cv_db_db42 = yes ; then
38348 ol_cv_lib_db=-ldb42
38352 if test $ol_cv_lib_db = no ; then
38353 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38354 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38355 if test "${ol_cv_db_db_42+set}" = set; then
38356 echo $ECHO_N "(cached) $ECHO_C" >&6
38361 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38363 cat >conftest.$ac_ext <<_ACEOF
38366 cat confdefs.h >>conftest.$ac_ext
38367 cat >>conftest.$ac_ext <<_ACEOF
38368 /* end confdefs.h. */
38370 #ifdef HAVE_DB_185_H
38371 # include <db_185.h>
38376 #ifndef DB_VERSION_MAJOR
38377 # define DB_VERSION_MAJOR 1
38381 #define NULL ((void*)0)
38388 #if DB_VERSION_MAJOR > 1
38391 int major, minor, patch;
38393 version = db_version( &major, &minor, &patch );
38395 if( major != DB_VERSION_MAJOR ||
38396 minor < DB_VERSION_MINOR )
38398 printf("Berkeley DB version mismatch\n"
38399 "\theader: %s\n\tlibrary: %s\n",
38400 DB_VERSION_STRING, version);
38406 #if DB_VERSION_MAJOR > 2
38407 db_env_create( NULL, 0 );
38408 #elif DB_VERSION_MAJOR > 1
38409 db_appexit( NULL );
38411 (void) dbopen( NULL, 0, 0, 0, NULL);
38418 rm -f conftest.$ac_objext conftest$ac_exeext
38419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38420 (eval $ac_link) 2>conftest.er1
38422 grep -v '^ *+' conftest.er1 >conftest.err
38424 cat conftest.err >&5
38425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426 (exit $ac_status); } &&
38427 { ac_try='test -z "$ac_c_werror_flag"
38428 || test ! -s conftest.err'
38429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38430 (eval $ac_try) 2>&5
38432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433 (exit $ac_status); }; } &&
38434 { ac_try='test -s conftest$ac_exeext'
38435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38436 (eval $ac_try) 2>&5
38438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439 (exit $ac_status); }; }; then
38442 echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38447 rm -f conftest.err conftest.$ac_objext \
38448 conftest$ac_exeext conftest.$ac_ext
38453 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38454 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38456 if test $ol_cv_db_db_42 = yes ; then
38457 ol_cv_lib_db=-ldb-42
38461 if test $ol_cv_lib_db = no ; then
38462 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38463 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38464 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38465 echo $ECHO_N "(cached) $ECHO_C" >&6
38470 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38472 cat >conftest.$ac_ext <<_ACEOF
38475 cat confdefs.h >>conftest.$ac_ext
38476 cat >>conftest.$ac_ext <<_ACEOF
38477 /* end confdefs.h. */
38479 #ifdef HAVE_DB_185_H
38480 # include <db_185.h>
38485 #ifndef DB_VERSION_MAJOR
38486 # define DB_VERSION_MAJOR 1
38490 #define NULL ((void*)0)
38497 #if DB_VERSION_MAJOR > 1
38500 int major, minor, patch;
38502 version = db_version( &major, &minor, &patch );
38504 if( major != DB_VERSION_MAJOR ||
38505 minor < DB_VERSION_MINOR )
38507 printf("Berkeley DB version mismatch\n"
38508 "\theader: %s\n\tlibrary: %s\n",
38509 DB_VERSION_STRING, version);
38515 #if DB_VERSION_MAJOR > 2
38516 db_env_create( NULL, 0 );
38517 #elif DB_VERSION_MAJOR > 1
38518 db_appexit( NULL );
38520 (void) dbopen( NULL, 0, 0, 0, NULL);
38527 rm -f conftest.$ac_objext conftest$ac_exeext
38528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38529 (eval $ac_link) 2>conftest.er1
38531 grep -v '^ *+' conftest.er1 >conftest.err
38533 cat conftest.err >&5
38534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535 (exit $ac_status); } &&
38536 { ac_try='test -z "$ac_c_werror_flag"
38537 || test ! -s conftest.err'
38538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38539 (eval $ac_try) 2>&5
38541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542 (exit $ac_status); }; } &&
38543 { ac_try='test -s conftest$ac_exeext'
38544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38545 (eval $ac_try) 2>&5
38547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38548 (exit $ac_status); }; }; then
38549 ol_cv_db_db_4_dot_2=yes
38551 echo "$as_me: failed program was:" >&5
38552 sed 's/^/| /' conftest.$ac_ext >&5
38554 ol_cv_db_db_4_dot_2=no
38556 rm -f conftest.err conftest.$ac_objext \
38557 conftest$ac_exeext conftest.$ac_ext
38562 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38563 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38565 if test $ol_cv_db_db_4_dot_2 = yes ; then
38566 ol_cv_lib_db=-ldb-4.2
38570 if test $ol_cv_lib_db = no ; then
38571 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38572 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38573 if test "${ol_cv_db_db_4_2+set}" = set; then
38574 echo $ECHO_N "(cached) $ECHO_C" >&6
38579 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38581 cat >conftest.$ac_ext <<_ACEOF
38584 cat confdefs.h >>conftest.$ac_ext
38585 cat >>conftest.$ac_ext <<_ACEOF
38586 /* end confdefs.h. */
38588 #ifdef HAVE_DB_185_H
38589 # include <db_185.h>
38594 #ifndef DB_VERSION_MAJOR
38595 # define DB_VERSION_MAJOR 1
38599 #define NULL ((void*)0)
38606 #if DB_VERSION_MAJOR > 1
38609 int major, minor, patch;
38611 version = db_version( &major, &minor, &patch );
38613 if( major != DB_VERSION_MAJOR ||
38614 minor < DB_VERSION_MINOR )
38616 printf("Berkeley DB version mismatch\n"
38617 "\theader: %s\n\tlibrary: %s\n",
38618 DB_VERSION_STRING, version);
38624 #if DB_VERSION_MAJOR > 2
38625 db_env_create( NULL, 0 );
38626 #elif DB_VERSION_MAJOR > 1
38627 db_appexit( NULL );
38629 (void) dbopen( NULL, 0, 0, 0, NULL);
38636 rm -f conftest.$ac_objext conftest$ac_exeext
38637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38638 (eval $ac_link) 2>conftest.er1
38640 grep -v '^ *+' conftest.er1 >conftest.err
38642 cat conftest.err >&5
38643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644 (exit $ac_status); } &&
38645 { ac_try='test -z "$ac_c_werror_flag"
38646 || test ! -s conftest.err'
38647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38648 (eval $ac_try) 2>&5
38650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651 (exit $ac_status); }; } &&
38652 { ac_try='test -s conftest$ac_exeext'
38653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38654 (eval $ac_try) 2>&5
38656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657 (exit $ac_status); }; }; then
38658 ol_cv_db_db_4_2=yes
38660 echo "$as_me: failed program was:" >&5
38661 sed 's/^/| /' conftest.$ac_ext >&5
38665 rm -f conftest.err conftest.$ac_objext \
38666 conftest$ac_exeext conftest.$ac_ext
38671 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38672 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38674 if test $ol_cv_db_db_4_2 = yes ; then
38675 ol_cv_lib_db=-ldb-4-2
38679 if test $ol_cv_lib_db = no ; then
38680 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38681 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38682 if test "${ol_cv_db_db_4+set}" = set; then
38683 echo $ECHO_N "(cached) $ECHO_C" >&6
38688 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38690 cat >conftest.$ac_ext <<_ACEOF
38693 cat confdefs.h >>conftest.$ac_ext
38694 cat >>conftest.$ac_ext <<_ACEOF
38695 /* end confdefs.h. */
38697 #ifdef HAVE_DB_185_H
38698 # include <db_185.h>
38703 #ifndef DB_VERSION_MAJOR
38704 # define DB_VERSION_MAJOR 1
38708 #define NULL ((void*)0)
38715 #if DB_VERSION_MAJOR > 1
38718 int major, minor, patch;
38720 version = db_version( &major, &minor, &patch );
38722 if( major != DB_VERSION_MAJOR ||
38723 minor < DB_VERSION_MINOR )
38725 printf("Berkeley DB version mismatch\n"
38726 "\theader: %s\n\tlibrary: %s\n",
38727 DB_VERSION_STRING, version);
38733 #if DB_VERSION_MAJOR > 2
38734 db_env_create( NULL, 0 );
38735 #elif DB_VERSION_MAJOR > 1
38736 db_appexit( NULL );
38738 (void) dbopen( NULL, 0, 0, 0, NULL);
38745 rm -f conftest.$ac_objext conftest$ac_exeext
38746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38747 (eval $ac_link) 2>conftest.er1
38749 grep -v '^ *+' conftest.er1 >conftest.err
38751 cat conftest.err >&5
38752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753 (exit $ac_status); } &&
38754 { ac_try='test -z "$ac_c_werror_flag"
38755 || test ! -s conftest.err'
38756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38757 (eval $ac_try) 2>&5
38759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760 (exit $ac_status); }; } &&
38761 { ac_try='test -s conftest$ac_exeext'
38762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38763 (eval $ac_try) 2>&5
38765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38766 (exit $ac_status); }; }; then
38769 echo "$as_me: failed program was:" >&5
38770 sed 's/^/| /' conftest.$ac_ext >&5
38774 rm -f conftest.err conftest.$ac_objext \
38775 conftest$ac_exeext conftest.$ac_ext
38780 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38781 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38783 if test $ol_cv_db_db_4 = yes ; then
38784 ol_cv_lib_db=-ldb-4
38788 if test $ol_cv_lib_db = no ; then
38789 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38790 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38791 if test "${ol_cv_db_db4+set}" = set; then
38792 echo $ECHO_N "(cached) $ECHO_C" >&6
38797 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38799 cat >conftest.$ac_ext <<_ACEOF
38802 cat confdefs.h >>conftest.$ac_ext
38803 cat >>conftest.$ac_ext <<_ACEOF
38804 /* end confdefs.h. */
38806 #ifdef HAVE_DB_185_H
38807 # include <db_185.h>
38812 #ifndef DB_VERSION_MAJOR
38813 # define DB_VERSION_MAJOR 1
38817 #define NULL ((void*)0)
38824 #if DB_VERSION_MAJOR > 1
38827 int major, minor, patch;
38829 version = db_version( &major, &minor, &patch );
38831 if( major != DB_VERSION_MAJOR ||
38832 minor < DB_VERSION_MINOR )
38834 printf("Berkeley DB version mismatch\n"
38835 "\theader: %s\n\tlibrary: %s\n",
38836 DB_VERSION_STRING, version);
38842 #if DB_VERSION_MAJOR > 2
38843 db_env_create( NULL, 0 );
38844 #elif DB_VERSION_MAJOR > 1
38845 db_appexit( NULL );
38847 (void) dbopen( NULL, 0, 0, 0, NULL);
38854 rm -f conftest.$ac_objext conftest$ac_exeext
38855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38856 (eval $ac_link) 2>conftest.er1
38858 grep -v '^ *+' conftest.er1 >conftest.err
38860 cat conftest.err >&5
38861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862 (exit $ac_status); } &&
38863 { ac_try='test -z "$ac_c_werror_flag"
38864 || test ! -s conftest.err'
38865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38866 (eval $ac_try) 2>&5
38868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869 (exit $ac_status); }; } &&
38870 { ac_try='test -s conftest$ac_exeext'
38871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38872 (eval $ac_try) 2>&5
38874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875 (exit $ac_status); }; }; then
38878 echo "$as_me: failed program was:" >&5
38879 sed 's/^/| /' conftest.$ac_ext >&5
38883 rm -f conftest.err conftest.$ac_objext \
38884 conftest$ac_exeext conftest.$ac_ext
38889 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
38890 echo "${ECHO_T}$ol_cv_db_db4" >&6
38892 if test $ol_cv_db_db4 = yes ; then
38897 if test $ol_cv_lib_db = no ; then
38898 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
38899 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
38900 if test "${ol_cv_db_db+set}" = set; then
38901 echo $ECHO_N "(cached) $ECHO_C" >&6
38906 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38908 cat >conftest.$ac_ext <<_ACEOF
38911 cat confdefs.h >>conftest.$ac_ext
38912 cat >>conftest.$ac_ext <<_ACEOF
38913 /* end confdefs.h. */
38915 #ifdef HAVE_DB_185_H
38916 # include <db_185.h>
38921 #ifndef DB_VERSION_MAJOR
38922 # define DB_VERSION_MAJOR 1
38926 #define NULL ((void*)0)
38933 #if DB_VERSION_MAJOR > 1
38936 int major, minor, patch;
38938 version = db_version( &major, &minor, &patch );
38940 if( major != DB_VERSION_MAJOR ||
38941 minor < DB_VERSION_MINOR )
38943 printf("Berkeley DB version mismatch\n"
38944 "\theader: %s\n\tlibrary: %s\n",
38945 DB_VERSION_STRING, version);
38951 #if DB_VERSION_MAJOR > 2
38952 db_env_create( NULL, 0 );
38953 #elif DB_VERSION_MAJOR > 1
38954 db_appexit( NULL );
38956 (void) dbopen( NULL, 0, 0, 0, NULL);
38963 rm -f conftest.$ac_objext conftest$ac_exeext
38964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38965 (eval $ac_link) 2>conftest.er1
38967 grep -v '^ *+' conftest.er1 >conftest.err
38969 cat conftest.err >&5
38970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38971 (exit $ac_status); } &&
38972 { ac_try='test -z "$ac_c_werror_flag"
38973 || test ! -s conftest.err'
38974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38975 (eval $ac_try) 2>&5
38977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38978 (exit $ac_status); }; } &&
38979 { ac_try='test -s conftest$ac_exeext'
38980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38981 (eval $ac_try) 2>&5
38983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38984 (exit $ac_status); }; }; then
38987 echo "$as_me: failed program was:" >&5
38988 sed 's/^/| /' conftest.$ac_ext >&5
38992 rm -f conftest.err conftest.$ac_objext \
38993 conftest$ac_exeext conftest.$ac_ext
38998 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
38999 echo "${ECHO_T}$ol_cv_db_db" >&6
39001 if test $ol_cv_db_db = yes ; then
39006 if test $ol_cv_lib_db = no ; then
39007 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39008 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39009 if test "${ol_cv_db_db41+set}" = set; then
39010 echo $ECHO_N "(cached) $ECHO_C" >&6
39015 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39017 cat >conftest.$ac_ext <<_ACEOF
39020 cat confdefs.h >>conftest.$ac_ext
39021 cat >>conftest.$ac_ext <<_ACEOF
39022 /* end confdefs.h. */
39024 #ifdef HAVE_DB_185_H
39025 # include <db_185.h>
39030 #ifndef DB_VERSION_MAJOR
39031 # define DB_VERSION_MAJOR 1
39035 #define NULL ((void*)0)
39042 #if DB_VERSION_MAJOR > 1
39045 int major, minor, patch;
39047 version = db_version( &major, &minor, &patch );
39049 if( major != DB_VERSION_MAJOR ||
39050 minor < DB_VERSION_MINOR )
39052 printf("Berkeley DB version mismatch\n"
39053 "\theader: %s\n\tlibrary: %s\n",
39054 DB_VERSION_STRING, version);
39060 #if DB_VERSION_MAJOR > 2
39061 db_env_create( NULL, 0 );
39062 #elif DB_VERSION_MAJOR > 1
39063 db_appexit( NULL );
39065 (void) dbopen( NULL, 0, 0, 0, NULL);
39072 rm -f conftest.$ac_objext conftest$ac_exeext
39073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39074 (eval $ac_link) 2>conftest.er1
39076 grep -v '^ *+' conftest.er1 >conftest.err
39078 cat conftest.err >&5
39079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080 (exit $ac_status); } &&
39081 { ac_try='test -z "$ac_c_werror_flag"
39082 || test ! -s conftest.err'
39083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39084 (eval $ac_try) 2>&5
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); }; } &&
39088 { ac_try='test -s conftest$ac_exeext'
39089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090 (eval $ac_try) 2>&5
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); }; }; then
39096 echo "$as_me: failed program was:" >&5
39097 sed 's/^/| /' conftest.$ac_ext >&5
39101 rm -f conftest.err conftest.$ac_objext \
39102 conftest$ac_exeext conftest.$ac_ext
39107 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39108 echo "${ECHO_T}$ol_cv_db_db41" >&6
39110 if test $ol_cv_db_db41 = yes ; then
39111 ol_cv_lib_db=-ldb41
39115 if test $ol_cv_lib_db = no ; then
39116 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39117 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39118 if test "${ol_cv_db_db_41+set}" = set; then
39119 echo $ECHO_N "(cached) $ECHO_C" >&6
39124 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39126 cat >conftest.$ac_ext <<_ACEOF
39129 cat confdefs.h >>conftest.$ac_ext
39130 cat >>conftest.$ac_ext <<_ACEOF
39131 /* end confdefs.h. */
39133 #ifdef HAVE_DB_185_H
39134 # include <db_185.h>
39139 #ifndef DB_VERSION_MAJOR
39140 # define DB_VERSION_MAJOR 1
39144 #define NULL ((void*)0)
39151 #if DB_VERSION_MAJOR > 1
39154 int major, minor, patch;
39156 version = db_version( &major, &minor, &patch );
39158 if( major != DB_VERSION_MAJOR ||
39159 minor < DB_VERSION_MINOR )
39161 printf("Berkeley DB version mismatch\n"
39162 "\theader: %s\n\tlibrary: %s\n",
39163 DB_VERSION_STRING, version);
39169 #if DB_VERSION_MAJOR > 2
39170 db_env_create( NULL, 0 );
39171 #elif DB_VERSION_MAJOR > 1
39172 db_appexit( NULL );
39174 (void) dbopen( NULL, 0, 0, 0, NULL);
39181 rm -f conftest.$ac_objext conftest$ac_exeext
39182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39183 (eval $ac_link) 2>conftest.er1
39185 grep -v '^ *+' conftest.er1 >conftest.err
39187 cat conftest.err >&5
39188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189 (exit $ac_status); } &&
39190 { ac_try='test -z "$ac_c_werror_flag"
39191 || test ! -s conftest.err'
39192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39193 (eval $ac_try) 2>&5
39195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196 (exit $ac_status); }; } &&
39197 { ac_try='test -s conftest$ac_exeext'
39198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39199 (eval $ac_try) 2>&5
39201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39202 (exit $ac_status); }; }; then
39205 echo "$as_me: failed program was:" >&5
39206 sed 's/^/| /' conftest.$ac_ext >&5
39210 rm -f conftest.err conftest.$ac_objext \
39211 conftest$ac_exeext conftest.$ac_ext
39216 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39217 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39219 if test $ol_cv_db_db_41 = yes ; then
39220 ol_cv_lib_db=-ldb-41
39224 if test $ol_cv_lib_db = no ; then
39225 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39226 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39227 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39228 echo $ECHO_N "(cached) $ECHO_C" >&6
39233 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39235 cat >conftest.$ac_ext <<_ACEOF
39238 cat confdefs.h >>conftest.$ac_ext
39239 cat >>conftest.$ac_ext <<_ACEOF
39240 /* end confdefs.h. */
39242 #ifdef HAVE_DB_185_H
39243 # include <db_185.h>
39248 #ifndef DB_VERSION_MAJOR
39249 # define DB_VERSION_MAJOR 1
39253 #define NULL ((void*)0)
39260 #if DB_VERSION_MAJOR > 1
39263 int major, minor, patch;
39265 version = db_version( &major, &minor, &patch );
39267 if( major != DB_VERSION_MAJOR ||
39268 minor < DB_VERSION_MINOR )
39270 printf("Berkeley DB version mismatch\n"
39271 "\theader: %s\n\tlibrary: %s\n",
39272 DB_VERSION_STRING, version);
39278 #if DB_VERSION_MAJOR > 2
39279 db_env_create( NULL, 0 );
39280 #elif DB_VERSION_MAJOR > 1
39281 db_appexit( NULL );
39283 (void) dbopen( NULL, 0, 0, 0, NULL);
39290 rm -f conftest.$ac_objext conftest$ac_exeext
39291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39292 (eval $ac_link) 2>conftest.er1
39294 grep -v '^ *+' conftest.er1 >conftest.err
39296 cat conftest.err >&5
39297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298 (exit $ac_status); } &&
39299 { ac_try='test -z "$ac_c_werror_flag"
39300 || test ! -s conftest.err'
39301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302 (eval $ac_try) 2>&5
39304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305 (exit $ac_status); }; } &&
39306 { ac_try='test -s conftest$ac_exeext'
39307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39308 (eval $ac_try) 2>&5
39310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311 (exit $ac_status); }; }; then
39312 ol_cv_db_db_4_dot_1=yes
39314 echo "$as_me: failed program was:" >&5
39315 sed 's/^/| /' conftest.$ac_ext >&5
39317 ol_cv_db_db_4_dot_1=no
39319 rm -f conftest.err conftest.$ac_objext \
39320 conftest$ac_exeext conftest.$ac_ext
39325 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39326 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39328 if test $ol_cv_db_db_4_dot_1 = yes ; then
39329 ol_cv_lib_db=-ldb-4.1
39333 if test $ol_cv_lib_db = no ; then
39334 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39335 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39336 if test "${ol_cv_db_db_4_1+set}" = set; then
39337 echo $ECHO_N "(cached) $ECHO_C" >&6
39342 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39344 cat >conftest.$ac_ext <<_ACEOF
39347 cat confdefs.h >>conftest.$ac_ext
39348 cat >>conftest.$ac_ext <<_ACEOF
39349 /* end confdefs.h. */
39351 #ifdef HAVE_DB_185_H
39352 # include <db_185.h>
39357 #ifndef DB_VERSION_MAJOR
39358 # define DB_VERSION_MAJOR 1
39362 #define NULL ((void*)0)
39369 #if DB_VERSION_MAJOR > 1
39372 int major, minor, patch;
39374 version = db_version( &major, &minor, &patch );
39376 if( major != DB_VERSION_MAJOR ||
39377 minor < DB_VERSION_MINOR )
39379 printf("Berkeley DB version mismatch\n"
39380 "\theader: %s\n\tlibrary: %s\n",
39381 DB_VERSION_STRING, version);
39387 #if DB_VERSION_MAJOR > 2
39388 db_env_create( NULL, 0 );
39389 #elif DB_VERSION_MAJOR > 1
39390 db_appexit( NULL );
39392 (void) dbopen( NULL, 0, 0, 0, NULL);
39399 rm -f conftest.$ac_objext conftest$ac_exeext
39400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39401 (eval $ac_link) 2>conftest.er1
39403 grep -v '^ *+' conftest.er1 >conftest.err
39405 cat conftest.err >&5
39406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); } &&
39408 { ac_try='test -z "$ac_c_werror_flag"
39409 || test ! -s conftest.err'
39410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39411 (eval $ac_try) 2>&5
39413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39414 (exit $ac_status); }; } &&
39415 { ac_try='test -s conftest$ac_exeext'
39416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39417 (eval $ac_try) 2>&5
39419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420 (exit $ac_status); }; }; then
39421 ol_cv_db_db_4_1=yes
39423 echo "$as_me: failed program was:" >&5
39424 sed 's/^/| /' conftest.$ac_ext >&5
39428 rm -f conftest.err conftest.$ac_objext \
39429 conftest$ac_exeext conftest.$ac_ext
39434 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39435 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39437 if test $ol_cv_db_db_4_1 = yes ; then
39438 ol_cv_lib_db=-ldb-4-1
39442 if test $ol_cv_lib_db = no ; then
39443 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39444 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39445 if test "${ol_cv_db_db3+set}" = set; then
39446 echo $ECHO_N "(cached) $ECHO_C" >&6
39451 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39453 cat >conftest.$ac_ext <<_ACEOF
39456 cat confdefs.h >>conftest.$ac_ext
39457 cat >>conftest.$ac_ext <<_ACEOF
39458 /* end confdefs.h. */
39460 #ifdef HAVE_DB_185_H
39461 # include <db_185.h>
39466 #ifndef DB_VERSION_MAJOR
39467 # define DB_VERSION_MAJOR 1
39471 #define NULL ((void*)0)
39478 #if DB_VERSION_MAJOR > 1
39481 int major, minor, patch;
39483 version = db_version( &major, &minor, &patch );
39485 if( major != DB_VERSION_MAJOR ||
39486 minor < DB_VERSION_MINOR )
39488 printf("Berkeley DB version mismatch\n"
39489 "\theader: %s\n\tlibrary: %s\n",
39490 DB_VERSION_STRING, version);
39496 #if DB_VERSION_MAJOR > 2
39497 db_env_create( NULL, 0 );
39498 #elif DB_VERSION_MAJOR > 1
39499 db_appexit( NULL );
39501 (void) dbopen( NULL, 0, 0, 0, NULL);
39508 rm -f conftest.$ac_objext conftest$ac_exeext
39509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39510 (eval $ac_link) 2>conftest.er1
39512 grep -v '^ *+' conftest.er1 >conftest.err
39514 cat conftest.err >&5
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); } &&
39517 { ac_try='test -z "$ac_c_werror_flag"
39518 || test ! -s conftest.err'
39519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39520 (eval $ac_try) 2>&5
39522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523 (exit $ac_status); }; } &&
39524 { ac_try='test -s conftest$ac_exeext'
39525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526 (eval $ac_try) 2>&5
39528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529 (exit $ac_status); }; }; then
39532 echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39537 rm -f conftest.err conftest.$ac_objext \
39538 conftest$ac_exeext conftest.$ac_ext
39543 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39544 echo "${ECHO_T}$ol_cv_db_db3" >&6
39546 if test $ol_cv_db_db3 = yes ; then
39551 if test $ol_cv_lib_db = no ; then
39552 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39553 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39554 if test "${ol_cv_db_db_3+set}" = set; then
39555 echo $ECHO_N "(cached) $ECHO_C" >&6
39560 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39562 cat >conftest.$ac_ext <<_ACEOF
39565 cat confdefs.h >>conftest.$ac_ext
39566 cat >>conftest.$ac_ext <<_ACEOF
39567 /* end confdefs.h. */
39569 #ifdef HAVE_DB_185_H
39570 # include <db_185.h>
39575 #ifndef DB_VERSION_MAJOR
39576 # define DB_VERSION_MAJOR 1
39580 #define NULL ((void*)0)
39587 #if DB_VERSION_MAJOR > 1
39590 int major, minor, patch;
39592 version = db_version( &major, &minor, &patch );
39594 if( major != DB_VERSION_MAJOR ||
39595 minor < DB_VERSION_MINOR )
39597 printf("Berkeley DB version mismatch\n"
39598 "\theader: %s\n\tlibrary: %s\n",
39599 DB_VERSION_STRING, version);
39605 #if DB_VERSION_MAJOR > 2
39606 db_env_create( NULL, 0 );
39607 #elif DB_VERSION_MAJOR > 1
39608 db_appexit( NULL );
39610 (void) dbopen( NULL, 0, 0, 0, NULL);
39617 rm -f conftest.$ac_objext conftest$ac_exeext
39618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39619 (eval $ac_link) 2>conftest.er1
39621 grep -v '^ *+' conftest.er1 >conftest.err
39623 cat conftest.err >&5
39624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625 (exit $ac_status); } &&
39626 { ac_try='test -z "$ac_c_werror_flag"
39627 || test ! -s conftest.err'
39628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39629 (eval $ac_try) 2>&5
39631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632 (exit $ac_status); }; } &&
39633 { ac_try='test -s conftest$ac_exeext'
39634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39635 (eval $ac_try) 2>&5
39637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638 (exit $ac_status); }; }; then
39641 echo "$as_me: failed program was:" >&5
39642 sed 's/^/| /' conftest.$ac_ext >&5
39646 rm -f conftest.err conftest.$ac_objext \
39647 conftest$ac_exeext conftest.$ac_ext
39652 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39653 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39655 if test $ol_cv_db_db_3 = yes ; then
39656 ol_cv_lib_db=-ldb-3
39660 if test $ol_cv_lib_db = no ; then
39661 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39662 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39663 if test "${ol_cv_db_db2+set}" = set; then
39664 echo $ECHO_N "(cached) $ECHO_C" >&6
39669 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39671 cat >conftest.$ac_ext <<_ACEOF
39674 cat confdefs.h >>conftest.$ac_ext
39675 cat >>conftest.$ac_ext <<_ACEOF
39676 /* end confdefs.h. */
39678 #ifdef HAVE_DB_185_H
39679 # include <db_185.h>
39684 #ifndef DB_VERSION_MAJOR
39685 # define DB_VERSION_MAJOR 1
39689 #define NULL ((void*)0)
39696 #if DB_VERSION_MAJOR > 1
39699 int major, minor, patch;
39701 version = db_version( &major, &minor, &patch );
39703 if( major != DB_VERSION_MAJOR ||
39704 minor < DB_VERSION_MINOR )
39706 printf("Berkeley DB version mismatch\n"
39707 "\theader: %s\n\tlibrary: %s\n",
39708 DB_VERSION_STRING, version);
39714 #if DB_VERSION_MAJOR > 2
39715 db_env_create( NULL, 0 );
39716 #elif DB_VERSION_MAJOR > 1
39717 db_appexit( NULL );
39719 (void) dbopen( NULL, 0, 0, 0, NULL);
39726 rm -f conftest.$ac_objext conftest$ac_exeext
39727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39728 (eval $ac_link) 2>conftest.er1
39730 grep -v '^ *+' conftest.er1 >conftest.err
39732 cat conftest.err >&5
39733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39734 (exit $ac_status); } &&
39735 { ac_try='test -z "$ac_c_werror_flag"
39736 || test ! -s conftest.err'
39737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39738 (eval $ac_try) 2>&5
39740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39741 (exit $ac_status); }; } &&
39742 { ac_try='test -s conftest$ac_exeext'
39743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39744 (eval $ac_try) 2>&5
39746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747 (exit $ac_status); }; }; then
39750 echo "$as_me: failed program was:" >&5
39751 sed 's/^/| /' conftest.$ac_ext >&5
39755 rm -f conftest.err conftest.$ac_objext \
39756 conftest$ac_exeext conftest.$ac_ext
39761 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39762 echo "${ECHO_T}$ol_cv_db_db2" >&6
39764 if test $ol_cv_db_db2 = yes ; then
39769 if test $ol_cv_lib_db = no ; then
39770 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39771 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39772 if test "${ol_cv_db_db_2+set}" = set; then
39773 echo $ECHO_N "(cached) $ECHO_C" >&6
39778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39780 cat >conftest.$ac_ext <<_ACEOF
39783 cat confdefs.h >>conftest.$ac_ext
39784 cat >>conftest.$ac_ext <<_ACEOF
39785 /* end confdefs.h. */
39787 #ifdef HAVE_DB_185_H
39788 # include <db_185.h>
39793 #ifndef DB_VERSION_MAJOR
39794 # define DB_VERSION_MAJOR 1
39798 #define NULL ((void*)0)
39805 #if DB_VERSION_MAJOR > 1
39808 int major, minor, patch;
39810 version = db_version( &major, &minor, &patch );
39812 if( major != DB_VERSION_MAJOR ||
39813 minor < DB_VERSION_MINOR )
39815 printf("Berkeley DB version mismatch\n"
39816 "\theader: %s\n\tlibrary: %s\n",
39817 DB_VERSION_STRING, version);
39823 #if DB_VERSION_MAJOR > 2
39824 db_env_create( NULL, 0 );
39825 #elif DB_VERSION_MAJOR > 1
39826 db_appexit( NULL );
39828 (void) dbopen( NULL, 0, 0, 0, NULL);
39835 rm -f conftest.$ac_objext conftest$ac_exeext
39836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39837 (eval $ac_link) 2>conftest.er1
39839 grep -v '^ *+' conftest.er1 >conftest.err
39841 cat conftest.err >&5
39842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843 (exit $ac_status); } &&
39844 { ac_try='test -z "$ac_c_werror_flag"
39845 || test ! -s conftest.err'
39846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847 (eval $ac_try) 2>&5
39849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850 (exit $ac_status); }; } &&
39851 { ac_try='test -s conftest$ac_exeext'
39852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39853 (eval $ac_try) 2>&5
39855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856 (exit $ac_status); }; }; then
39859 echo "$as_me: failed program was:" >&5
39860 sed 's/^/| /' conftest.$ac_ext >&5
39864 rm -f conftest.err conftest.$ac_objext \
39865 conftest$ac_exeext conftest.$ac_ext
39870 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
39871 echo "${ECHO_T}$ol_cv_db_db_2" >&6
39873 if test $ol_cv_db_db_2 = yes ; then
39874 ol_cv_lib_db=-ldb-2
39878 if test $ol_cv_lib_db = no ; then
39879 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
39880 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
39881 if test "${ol_cv_db_db1+set}" = set; then
39882 echo $ECHO_N "(cached) $ECHO_C" >&6
39887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39889 cat >conftest.$ac_ext <<_ACEOF
39892 cat confdefs.h >>conftest.$ac_ext
39893 cat >>conftest.$ac_ext <<_ACEOF
39894 /* end confdefs.h. */
39896 #ifdef HAVE_DB_185_H
39897 # include <db_185.h>
39902 #ifndef DB_VERSION_MAJOR
39903 # define DB_VERSION_MAJOR 1
39907 #define NULL ((void*)0)
39914 #if DB_VERSION_MAJOR > 1
39917 int major, minor, patch;
39919 version = db_version( &major, &minor, &patch );
39921 if( major != DB_VERSION_MAJOR ||
39922 minor < DB_VERSION_MINOR )
39924 printf("Berkeley DB version mismatch\n"
39925 "\theader: %s\n\tlibrary: %s\n",
39926 DB_VERSION_STRING, version);
39932 #if DB_VERSION_MAJOR > 2
39933 db_env_create( NULL, 0 );
39934 #elif DB_VERSION_MAJOR > 1
39935 db_appexit( NULL );
39937 (void) dbopen( NULL, 0, 0, 0, NULL);
39944 rm -f conftest.$ac_objext conftest$ac_exeext
39945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39946 (eval $ac_link) 2>conftest.er1
39948 grep -v '^ *+' conftest.er1 >conftest.err
39950 cat conftest.err >&5
39951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39952 (exit $ac_status); } &&
39953 { ac_try='test -z "$ac_c_werror_flag"
39954 || test ! -s conftest.err'
39955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956 (eval $ac_try) 2>&5
39958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959 (exit $ac_status); }; } &&
39960 { ac_try='test -s conftest$ac_exeext'
39961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39962 (eval $ac_try) 2>&5
39964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965 (exit $ac_status); }; }; then
39968 echo "$as_me: failed program was:" >&5
39969 sed 's/^/| /' conftest.$ac_ext >&5
39973 rm -f conftest.err conftest.$ac_objext \
39974 conftest$ac_exeext conftest.$ac_ext
39979 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
39980 echo "${ECHO_T}$ol_cv_db_db1" >&6
39982 if test $ol_cv_db_db1 = yes ; then
39987 if test $ol_cv_lib_db = no ; then
39988 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
39989 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
39990 if test "${ol_cv_db_db_1+set}" = set; then
39991 echo $ECHO_N "(cached) $ECHO_C" >&6
39996 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39998 cat >conftest.$ac_ext <<_ACEOF
40001 cat confdefs.h >>conftest.$ac_ext
40002 cat >>conftest.$ac_ext <<_ACEOF
40003 /* end confdefs.h. */
40005 #ifdef HAVE_DB_185_H
40006 # include <db_185.h>
40011 #ifndef DB_VERSION_MAJOR
40012 # define DB_VERSION_MAJOR 1
40016 #define NULL ((void*)0)
40023 #if DB_VERSION_MAJOR > 1
40026 int major, minor, patch;
40028 version = db_version( &major, &minor, &patch );
40030 if( major != DB_VERSION_MAJOR ||
40031 minor < DB_VERSION_MINOR )
40033 printf("Berkeley DB version mismatch\n"
40034 "\theader: %s\n\tlibrary: %s\n",
40035 DB_VERSION_STRING, version);
40041 #if DB_VERSION_MAJOR > 2
40042 db_env_create( NULL, 0 );
40043 #elif DB_VERSION_MAJOR > 1
40044 db_appexit( NULL );
40046 (void) dbopen( NULL, 0, 0, 0, NULL);
40053 rm -f conftest.$ac_objext conftest$ac_exeext
40054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40055 (eval $ac_link) 2>conftest.er1
40057 grep -v '^ *+' conftest.er1 >conftest.err
40059 cat conftest.err >&5
40060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40061 (exit $ac_status); } &&
40062 { ac_try='test -z "$ac_c_werror_flag"
40063 || test ! -s conftest.err'
40064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40065 (eval $ac_try) 2>&5
40067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068 (exit $ac_status); }; } &&
40069 { ac_try='test -s conftest$ac_exeext'
40070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40071 (eval $ac_try) 2>&5
40073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074 (exit $ac_status); }; }; then
40077 echo "$as_me: failed program was:" >&5
40078 sed 's/^/| /' conftest.$ac_ext >&5
40082 rm -f conftest.err conftest.$ac_objext \
40083 conftest$ac_exeext conftest.$ac_ext
40088 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40089 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40091 if test $ol_cv_db_db_1 = yes ; then
40092 ol_cv_lib_db=-ldb-1
40097 if test "$ol_cv_lib_db" != no ; then
40098 ol_cv_berkeley_db=yes
40104 ol_cv_berkeley_db=no
40106 for ac_header in db.h
40108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40110 echo "$as_me:$LINENO: checking for $ac_header" >&5
40111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40113 echo $ECHO_N "(cached) $ECHO_C" >&6
40115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40118 # Is the header compilable?
40119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40121 cat >conftest.$ac_ext <<_ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h. */
40127 $ac_includes_default
40128 #include <$ac_header>
40130 rm -f conftest.$ac_objext
40131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40132 (eval $ac_compile) 2>conftest.er1
40134 grep -v '^ *+' conftest.er1 >conftest.err
40136 cat conftest.err >&5
40137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40138 (exit $ac_status); } &&
40139 { ac_try='test -z "$ac_c_werror_flag"
40140 || test ! -s conftest.err'
40141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40142 (eval $ac_try) 2>&5
40144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40145 (exit $ac_status); }; } &&
40146 { ac_try='test -s conftest.$ac_objext'
40147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40148 (eval $ac_try) 2>&5
40150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40151 (exit $ac_status); }; }; then
40152 ac_header_compiler=yes
40154 echo "$as_me: failed program was:" >&5
40155 sed 's/^/| /' conftest.$ac_ext >&5
40157 ac_header_compiler=no
40159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40161 echo "${ECHO_T}$ac_header_compiler" >&6
40163 # Is the header present?
40164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40166 cat >conftest.$ac_ext <<_ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h. */
40172 #include <$ac_header>
40174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40177 grep -v '^ *+' conftest.er1 >conftest.err
40179 cat conftest.err >&5
40180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181 (exit $ac_status); } >/dev/null; then
40182 if test -s conftest.err; then
40183 ac_cpp_err=$ac_c_preproc_warn_flag
40184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40191 if test -z "$ac_cpp_err"; then
40192 ac_header_preproc=yes
40194 echo "$as_me: failed program was:" >&5
40195 sed 's/^/| /' conftest.$ac_ext >&5
40197 ac_header_preproc=no
40199 rm -f conftest.err conftest.$ac_ext
40200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40201 echo "${ECHO_T}$ac_header_preproc" >&6
40203 # So? What about this header?
40204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40210 ac_header_preproc=yes
40213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40227 ## ------------------------------------------ ##
40228 ## Report this to the AC_PACKAGE_NAME lists. ##
40229 ## ------------------------------------------ ##
40232 sed "s/^/$as_me: WARNING: /" >&2
40235 echo "$as_me:$LINENO: checking for $ac_header" >&5
40236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40238 echo $ECHO_N "(cached) $ECHO_C" >&6
40240 eval "$as_ac_Header=\$ac_header_preproc"
40242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40247 cat >>confdefs.h <<_ACEOF
40248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40255 if test $ac_cv_header_db_h = yes; then
40257 if test $ol_cv_lib_db = no ; then
40258 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40259 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40260 if test "${ol_cv_db_none+set}" = set; then
40261 echo $ECHO_N "(cached) $ECHO_C" >&6
40266 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40268 cat >conftest.$ac_ext <<_ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h. */
40275 #ifdef HAVE_DB_185_H
40276 # include <db_185.h>
40281 #ifndef DB_VERSION_MAJOR
40282 # define DB_VERSION_MAJOR 1
40286 #define NULL ((void*)0)
40293 #if DB_VERSION_MAJOR > 1
40296 int major, minor, patch;
40298 version = db_version( &major, &minor, &patch );
40300 if( major != DB_VERSION_MAJOR ||
40301 minor < DB_VERSION_MINOR )
40303 printf("Berkeley DB version mismatch\n"
40304 "\theader: %s\n\tlibrary: %s\n",
40305 DB_VERSION_STRING, version);
40311 #if DB_VERSION_MAJOR > 2
40312 db_env_create( NULL, 0 );
40313 #elif DB_VERSION_MAJOR > 1
40314 db_appexit( NULL );
40316 (void) dbopen( NULL, 0, 0, 0, NULL);
40323 rm -f conftest.$ac_objext conftest$ac_exeext
40324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40325 (eval $ac_link) 2>conftest.er1
40327 grep -v '^ *+' conftest.er1 >conftest.err
40329 cat conftest.err >&5
40330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331 (exit $ac_status); } &&
40332 { ac_try='test -z "$ac_c_werror_flag"
40333 || test ! -s conftest.err'
40334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40335 (eval $ac_try) 2>&5
40337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40338 (exit $ac_status); }; } &&
40339 { ac_try='test -s conftest$ac_exeext'
40340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40341 (eval $ac_try) 2>&5
40343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40344 (exit $ac_status); }; }; then
40347 echo "$as_me: failed program was:" >&5
40348 sed 's/^/| /' conftest.$ac_ext >&5
40352 rm -f conftest.err conftest.$ac_objext \
40353 conftest$ac_exeext conftest.$ac_ext
40358 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40359 echo "${ECHO_T}$ol_cv_db_none" >&6
40361 if test $ol_cv_db_none = yes ; then
40366 if test $ol_cv_lib_db = no ; then
40367 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40368 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40369 if test "${ol_cv_db_db43+set}" = set; then
40370 echo $ECHO_N "(cached) $ECHO_C" >&6
40375 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40377 cat >conftest.$ac_ext <<_ACEOF
40380 cat confdefs.h >>conftest.$ac_ext
40381 cat >>conftest.$ac_ext <<_ACEOF
40382 /* end confdefs.h. */
40384 #ifdef HAVE_DB_185_H
40385 # include <db_185.h>
40390 #ifndef DB_VERSION_MAJOR
40391 # define DB_VERSION_MAJOR 1
40395 #define NULL ((void*)0)
40402 #if DB_VERSION_MAJOR > 1
40405 int major, minor, patch;
40407 version = db_version( &major, &minor, &patch );
40409 if( major != DB_VERSION_MAJOR ||
40410 minor < DB_VERSION_MINOR )
40412 printf("Berkeley DB version mismatch\n"
40413 "\theader: %s\n\tlibrary: %s\n",
40414 DB_VERSION_STRING, version);
40420 #if DB_VERSION_MAJOR > 2
40421 db_env_create( NULL, 0 );
40422 #elif DB_VERSION_MAJOR > 1
40423 db_appexit( NULL );
40425 (void) dbopen( NULL, 0, 0, 0, NULL);
40432 rm -f conftest.$ac_objext conftest$ac_exeext
40433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40434 (eval $ac_link) 2>conftest.er1
40436 grep -v '^ *+' conftest.er1 >conftest.err
40438 cat conftest.err >&5
40439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40440 (exit $ac_status); } &&
40441 { ac_try='test -z "$ac_c_werror_flag"
40442 || test ! -s conftest.err'
40443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40444 (eval $ac_try) 2>&5
40446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40447 (exit $ac_status); }; } &&
40448 { ac_try='test -s conftest$ac_exeext'
40449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40450 (eval $ac_try) 2>&5
40452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453 (exit $ac_status); }; }; then
40456 echo "$as_me: failed program was:" >&5
40457 sed 's/^/| /' conftest.$ac_ext >&5
40461 rm -f conftest.err conftest.$ac_objext \
40462 conftest$ac_exeext conftest.$ac_ext
40467 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40468 echo "${ECHO_T}$ol_cv_db_db43" >&6
40470 if test $ol_cv_db_db43 = yes ; then
40471 ol_cv_lib_db=-ldb43
40475 if test $ol_cv_lib_db = no ; then
40476 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40477 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40478 if test "${ol_cv_db_db_43+set}" = set; then
40479 echo $ECHO_N "(cached) $ECHO_C" >&6
40484 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40486 cat >conftest.$ac_ext <<_ACEOF
40489 cat confdefs.h >>conftest.$ac_ext
40490 cat >>conftest.$ac_ext <<_ACEOF
40491 /* end confdefs.h. */
40493 #ifdef HAVE_DB_185_H
40494 # include <db_185.h>
40499 #ifndef DB_VERSION_MAJOR
40500 # define DB_VERSION_MAJOR 1
40504 #define NULL ((void*)0)
40511 #if DB_VERSION_MAJOR > 1
40514 int major, minor, patch;
40516 version = db_version( &major, &minor, &patch );
40518 if( major != DB_VERSION_MAJOR ||
40519 minor < DB_VERSION_MINOR )
40521 printf("Berkeley DB version mismatch\n"
40522 "\theader: %s\n\tlibrary: %s\n",
40523 DB_VERSION_STRING, version);
40529 #if DB_VERSION_MAJOR > 2
40530 db_env_create( NULL, 0 );
40531 #elif DB_VERSION_MAJOR > 1
40532 db_appexit( NULL );
40534 (void) dbopen( NULL, 0, 0, 0, NULL);
40541 rm -f conftest.$ac_objext conftest$ac_exeext
40542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40543 (eval $ac_link) 2>conftest.er1
40545 grep -v '^ *+' conftest.er1 >conftest.err
40547 cat conftest.err >&5
40548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549 (exit $ac_status); } &&
40550 { ac_try='test -z "$ac_c_werror_flag"
40551 || test ! -s conftest.err'
40552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40553 (eval $ac_try) 2>&5
40555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40556 (exit $ac_status); }; } &&
40557 { ac_try='test -s conftest$ac_exeext'
40558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40559 (eval $ac_try) 2>&5
40561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40562 (exit $ac_status); }; }; then
40565 echo "$as_me: failed program was:" >&5
40566 sed 's/^/| /' conftest.$ac_ext >&5
40570 rm -f conftest.err conftest.$ac_objext \
40571 conftest$ac_exeext conftest.$ac_ext
40576 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40577 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40579 if test $ol_cv_db_db_43 = yes ; then
40580 ol_cv_lib_db=-ldb-43
40584 if test $ol_cv_lib_db = no ; then
40585 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40586 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40587 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40588 echo $ECHO_N "(cached) $ECHO_C" >&6
40593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40595 cat >conftest.$ac_ext <<_ACEOF
40598 cat confdefs.h >>conftest.$ac_ext
40599 cat >>conftest.$ac_ext <<_ACEOF
40600 /* end confdefs.h. */
40602 #ifdef HAVE_DB_185_H
40603 # include <db_185.h>
40608 #ifndef DB_VERSION_MAJOR
40609 # define DB_VERSION_MAJOR 1
40613 #define NULL ((void*)0)
40620 #if DB_VERSION_MAJOR > 1
40623 int major, minor, patch;
40625 version = db_version( &major, &minor, &patch );
40627 if( major != DB_VERSION_MAJOR ||
40628 minor < DB_VERSION_MINOR )
40630 printf("Berkeley DB version mismatch\n"
40631 "\theader: %s\n\tlibrary: %s\n",
40632 DB_VERSION_STRING, version);
40638 #if DB_VERSION_MAJOR > 2
40639 db_env_create( NULL, 0 );
40640 #elif DB_VERSION_MAJOR > 1
40641 db_appexit( NULL );
40643 (void) dbopen( NULL, 0, 0, 0, NULL);
40650 rm -f conftest.$ac_objext conftest$ac_exeext
40651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40652 (eval $ac_link) 2>conftest.er1
40654 grep -v '^ *+' conftest.er1 >conftest.err
40656 cat conftest.err >&5
40657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658 (exit $ac_status); } &&
40659 { ac_try='test -z "$ac_c_werror_flag"
40660 || test ! -s conftest.err'
40661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40662 (eval $ac_try) 2>&5
40664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665 (exit $ac_status); }; } &&
40666 { ac_try='test -s conftest$ac_exeext'
40667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668 (eval $ac_try) 2>&5
40670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671 (exit $ac_status); }; }; then
40672 ol_cv_db_db_4_dot_3=yes
40674 echo "$as_me: failed program was:" >&5
40675 sed 's/^/| /' conftest.$ac_ext >&5
40677 ol_cv_db_db_4_dot_3=no
40679 rm -f conftest.err conftest.$ac_objext \
40680 conftest$ac_exeext conftest.$ac_ext
40685 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40686 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40688 if test $ol_cv_db_db_4_dot_3 = yes ; then
40689 ol_cv_lib_db=-ldb-4.3
40693 if test $ol_cv_lib_db = no ; then
40694 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40695 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40696 if test "${ol_cv_db_db_4_3+set}" = set; then
40697 echo $ECHO_N "(cached) $ECHO_C" >&6
40702 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40704 cat >conftest.$ac_ext <<_ACEOF
40707 cat confdefs.h >>conftest.$ac_ext
40708 cat >>conftest.$ac_ext <<_ACEOF
40709 /* end confdefs.h. */
40711 #ifdef HAVE_DB_185_H
40712 # include <db_185.h>
40717 #ifndef DB_VERSION_MAJOR
40718 # define DB_VERSION_MAJOR 1
40722 #define NULL ((void*)0)
40729 #if DB_VERSION_MAJOR > 1
40732 int major, minor, patch;
40734 version = db_version( &major, &minor, &patch );
40736 if( major != DB_VERSION_MAJOR ||
40737 minor < DB_VERSION_MINOR )
40739 printf("Berkeley DB version mismatch\n"
40740 "\theader: %s\n\tlibrary: %s\n",
40741 DB_VERSION_STRING, version);
40747 #if DB_VERSION_MAJOR > 2
40748 db_env_create( NULL, 0 );
40749 #elif DB_VERSION_MAJOR > 1
40750 db_appexit( NULL );
40752 (void) dbopen( NULL, 0, 0, 0, NULL);
40759 rm -f conftest.$ac_objext conftest$ac_exeext
40760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40761 (eval $ac_link) 2>conftest.er1
40763 grep -v '^ *+' conftest.er1 >conftest.err
40765 cat conftest.err >&5
40766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767 (exit $ac_status); } &&
40768 { ac_try='test -z "$ac_c_werror_flag"
40769 || test ! -s conftest.err'
40770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40771 (eval $ac_try) 2>&5
40773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774 (exit $ac_status); }; } &&
40775 { ac_try='test -s conftest$ac_exeext'
40776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40777 (eval $ac_try) 2>&5
40779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40780 (exit $ac_status); }; }; then
40781 ol_cv_db_db_4_3=yes
40783 echo "$as_me: failed program was:" >&5
40784 sed 's/^/| /' conftest.$ac_ext >&5
40788 rm -f conftest.err conftest.$ac_objext \
40789 conftest$ac_exeext conftest.$ac_ext
40794 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40795 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40797 if test $ol_cv_db_db_4_3 = yes ; then
40798 ol_cv_lib_db=-ldb-4-3
40802 if test $ol_cv_lib_db = no ; then
40803 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40804 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40805 if test "${ol_cv_db_db42+set}" = set; then
40806 echo $ECHO_N "(cached) $ECHO_C" >&6
40811 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40813 cat >conftest.$ac_ext <<_ACEOF
40816 cat confdefs.h >>conftest.$ac_ext
40817 cat >>conftest.$ac_ext <<_ACEOF
40818 /* end confdefs.h. */
40820 #ifdef HAVE_DB_185_H
40821 # include <db_185.h>
40826 #ifndef DB_VERSION_MAJOR
40827 # define DB_VERSION_MAJOR 1
40831 #define NULL ((void*)0)
40838 #if DB_VERSION_MAJOR > 1
40841 int major, minor, patch;
40843 version = db_version( &major, &minor, &patch );
40845 if( major != DB_VERSION_MAJOR ||
40846 minor < DB_VERSION_MINOR )
40848 printf("Berkeley DB version mismatch\n"
40849 "\theader: %s\n\tlibrary: %s\n",
40850 DB_VERSION_STRING, version);
40856 #if DB_VERSION_MAJOR > 2
40857 db_env_create( NULL, 0 );
40858 #elif DB_VERSION_MAJOR > 1
40859 db_appexit( NULL );
40861 (void) dbopen( NULL, 0, 0, 0, NULL);
40868 rm -f conftest.$ac_objext conftest$ac_exeext
40869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40870 (eval $ac_link) 2>conftest.er1
40872 grep -v '^ *+' conftest.er1 >conftest.err
40874 cat conftest.err >&5
40875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40876 (exit $ac_status); } &&
40877 { ac_try='test -z "$ac_c_werror_flag"
40878 || test ! -s conftest.err'
40879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40880 (eval $ac_try) 2>&5
40882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40883 (exit $ac_status); }; } &&
40884 { ac_try='test -s conftest$ac_exeext'
40885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40886 (eval $ac_try) 2>&5
40888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40889 (exit $ac_status); }; }; then
40892 echo "$as_me: failed program was:" >&5
40893 sed 's/^/| /' conftest.$ac_ext >&5
40897 rm -f conftest.err conftest.$ac_objext \
40898 conftest$ac_exeext conftest.$ac_ext
40903 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
40904 echo "${ECHO_T}$ol_cv_db_db42" >&6
40906 if test $ol_cv_db_db42 = yes ; then
40907 ol_cv_lib_db=-ldb42
40911 if test $ol_cv_lib_db = no ; then
40912 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
40913 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
40914 if test "${ol_cv_db_db_42+set}" = set; then
40915 echo $ECHO_N "(cached) $ECHO_C" >&6
40920 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40922 cat >conftest.$ac_ext <<_ACEOF
40925 cat confdefs.h >>conftest.$ac_ext
40926 cat >>conftest.$ac_ext <<_ACEOF
40927 /* end confdefs.h. */
40929 #ifdef HAVE_DB_185_H
40930 # include <db_185.h>
40935 #ifndef DB_VERSION_MAJOR
40936 # define DB_VERSION_MAJOR 1
40940 #define NULL ((void*)0)
40947 #if DB_VERSION_MAJOR > 1
40950 int major, minor, patch;
40952 version = db_version( &major, &minor, &patch );
40954 if( major != DB_VERSION_MAJOR ||
40955 minor < DB_VERSION_MINOR )
40957 printf("Berkeley DB version mismatch\n"
40958 "\theader: %s\n\tlibrary: %s\n",
40959 DB_VERSION_STRING, version);
40965 #if DB_VERSION_MAJOR > 2
40966 db_env_create( NULL, 0 );
40967 #elif DB_VERSION_MAJOR > 1
40968 db_appexit( NULL );
40970 (void) dbopen( NULL, 0, 0, 0, NULL);
40977 rm -f conftest.$ac_objext conftest$ac_exeext
40978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40979 (eval $ac_link) 2>conftest.er1
40981 grep -v '^ *+' conftest.er1 >conftest.err
40983 cat conftest.err >&5
40984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40985 (exit $ac_status); } &&
40986 { ac_try='test -z "$ac_c_werror_flag"
40987 || test ! -s conftest.err'
40988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40989 (eval $ac_try) 2>&5
40991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992 (exit $ac_status); }; } &&
40993 { ac_try='test -s conftest$ac_exeext'
40994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40995 (eval $ac_try) 2>&5
40997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998 (exit $ac_status); }; }; then
41001 echo "$as_me: failed program was:" >&5
41002 sed 's/^/| /' conftest.$ac_ext >&5
41006 rm -f conftest.err conftest.$ac_objext \
41007 conftest$ac_exeext conftest.$ac_ext
41012 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41013 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41015 if test $ol_cv_db_db_42 = yes ; then
41016 ol_cv_lib_db=-ldb-42
41020 if test $ol_cv_lib_db = no ; then
41021 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41022 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41023 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41024 echo $ECHO_N "(cached) $ECHO_C" >&6
41029 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41031 cat >conftest.$ac_ext <<_ACEOF
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h. */
41038 #ifdef HAVE_DB_185_H
41039 # include <db_185.h>
41044 #ifndef DB_VERSION_MAJOR
41045 # define DB_VERSION_MAJOR 1
41049 #define NULL ((void*)0)
41056 #if DB_VERSION_MAJOR > 1
41059 int major, minor, patch;
41061 version = db_version( &major, &minor, &patch );
41063 if( major != DB_VERSION_MAJOR ||
41064 minor < DB_VERSION_MINOR )
41066 printf("Berkeley DB version mismatch\n"
41067 "\theader: %s\n\tlibrary: %s\n",
41068 DB_VERSION_STRING, version);
41074 #if DB_VERSION_MAJOR > 2
41075 db_env_create( NULL, 0 );
41076 #elif DB_VERSION_MAJOR > 1
41077 db_appexit( NULL );
41079 (void) dbopen( NULL, 0, 0, 0, NULL);
41086 rm -f conftest.$ac_objext conftest$ac_exeext
41087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41088 (eval $ac_link) 2>conftest.er1
41090 grep -v '^ *+' conftest.er1 >conftest.err
41092 cat conftest.err >&5
41093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094 (exit $ac_status); } &&
41095 { ac_try='test -z "$ac_c_werror_flag"
41096 || test ! -s conftest.err'
41097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41098 (eval $ac_try) 2>&5
41100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41101 (exit $ac_status); }; } &&
41102 { ac_try='test -s conftest$ac_exeext'
41103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41104 (eval $ac_try) 2>&5
41106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41107 (exit $ac_status); }; }; then
41108 ol_cv_db_db_4_dot_2=yes
41110 echo "$as_me: failed program was:" >&5
41111 sed 's/^/| /' conftest.$ac_ext >&5
41113 ol_cv_db_db_4_dot_2=no
41115 rm -f conftest.err conftest.$ac_objext \
41116 conftest$ac_exeext conftest.$ac_ext
41121 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41122 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41124 if test $ol_cv_db_db_4_dot_2 = yes ; then
41125 ol_cv_lib_db=-ldb-4.2
41129 if test $ol_cv_lib_db = no ; then
41130 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41131 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41132 if test "${ol_cv_db_db_4_2+set}" = set; then
41133 echo $ECHO_N "(cached) $ECHO_C" >&6
41138 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41140 cat >conftest.$ac_ext <<_ACEOF
41143 cat confdefs.h >>conftest.$ac_ext
41144 cat >>conftest.$ac_ext <<_ACEOF
41145 /* end confdefs.h. */
41147 #ifdef HAVE_DB_185_H
41148 # include <db_185.h>
41153 #ifndef DB_VERSION_MAJOR
41154 # define DB_VERSION_MAJOR 1
41158 #define NULL ((void*)0)
41165 #if DB_VERSION_MAJOR > 1
41168 int major, minor, patch;
41170 version = db_version( &major, &minor, &patch );
41172 if( major != DB_VERSION_MAJOR ||
41173 minor < DB_VERSION_MINOR )
41175 printf("Berkeley DB version mismatch\n"
41176 "\theader: %s\n\tlibrary: %s\n",
41177 DB_VERSION_STRING, version);
41183 #if DB_VERSION_MAJOR > 2
41184 db_env_create( NULL, 0 );
41185 #elif DB_VERSION_MAJOR > 1
41186 db_appexit( NULL );
41188 (void) dbopen( NULL, 0, 0, 0, NULL);
41195 rm -f conftest.$ac_objext conftest$ac_exeext
41196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41197 (eval $ac_link) 2>conftest.er1
41199 grep -v '^ *+' conftest.er1 >conftest.err
41201 cat conftest.err >&5
41202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); } &&
41204 { ac_try='test -z "$ac_c_werror_flag"
41205 || test ! -s conftest.err'
41206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41207 (eval $ac_try) 2>&5
41209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210 (exit $ac_status); }; } &&
41211 { ac_try='test -s conftest$ac_exeext'
41212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41213 (eval $ac_try) 2>&5
41215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216 (exit $ac_status); }; }; then
41217 ol_cv_db_db_4_2=yes
41219 echo "$as_me: failed program was:" >&5
41220 sed 's/^/| /' conftest.$ac_ext >&5
41224 rm -f conftest.err conftest.$ac_objext \
41225 conftest$ac_exeext conftest.$ac_ext
41230 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41231 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41233 if test $ol_cv_db_db_4_2 = yes ; then
41234 ol_cv_lib_db=-ldb-4-2
41238 if test $ol_cv_lib_db = no ; then
41239 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41240 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41241 if test "${ol_cv_db_db_4+set}" = set; then
41242 echo $ECHO_N "(cached) $ECHO_C" >&6
41247 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41249 cat >conftest.$ac_ext <<_ACEOF
41252 cat confdefs.h >>conftest.$ac_ext
41253 cat >>conftest.$ac_ext <<_ACEOF
41254 /* end confdefs.h. */
41256 #ifdef HAVE_DB_185_H
41257 # include <db_185.h>
41262 #ifndef DB_VERSION_MAJOR
41263 # define DB_VERSION_MAJOR 1
41267 #define NULL ((void*)0)
41274 #if DB_VERSION_MAJOR > 1
41277 int major, minor, patch;
41279 version = db_version( &major, &minor, &patch );
41281 if( major != DB_VERSION_MAJOR ||
41282 minor < DB_VERSION_MINOR )
41284 printf("Berkeley DB version mismatch\n"
41285 "\theader: %s\n\tlibrary: %s\n",
41286 DB_VERSION_STRING, version);
41292 #if DB_VERSION_MAJOR > 2
41293 db_env_create( NULL, 0 );
41294 #elif DB_VERSION_MAJOR > 1
41295 db_appexit( NULL );
41297 (void) dbopen( NULL, 0, 0, 0, NULL);
41304 rm -f conftest.$ac_objext conftest$ac_exeext
41305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41306 (eval $ac_link) 2>conftest.er1
41308 grep -v '^ *+' conftest.er1 >conftest.err
41310 cat conftest.err >&5
41311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41312 (exit $ac_status); } &&
41313 { ac_try='test -z "$ac_c_werror_flag"
41314 || test ! -s conftest.err'
41315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41316 (eval $ac_try) 2>&5
41318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41319 (exit $ac_status); }; } &&
41320 { ac_try='test -s conftest$ac_exeext'
41321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41322 (eval $ac_try) 2>&5
41324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41325 (exit $ac_status); }; }; then
41328 echo "$as_me: failed program was:" >&5
41329 sed 's/^/| /' conftest.$ac_ext >&5
41333 rm -f conftest.err conftest.$ac_objext \
41334 conftest$ac_exeext conftest.$ac_ext
41339 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41340 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41342 if test $ol_cv_db_db_4 = yes ; then
41343 ol_cv_lib_db=-ldb-4
41347 if test $ol_cv_lib_db = no ; then
41348 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41349 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41350 if test "${ol_cv_db_db4+set}" = set; then
41351 echo $ECHO_N "(cached) $ECHO_C" >&6
41356 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41358 cat >conftest.$ac_ext <<_ACEOF
41361 cat confdefs.h >>conftest.$ac_ext
41362 cat >>conftest.$ac_ext <<_ACEOF
41363 /* end confdefs.h. */
41365 #ifdef HAVE_DB_185_H
41366 # include <db_185.h>
41371 #ifndef DB_VERSION_MAJOR
41372 # define DB_VERSION_MAJOR 1
41376 #define NULL ((void*)0)
41383 #if DB_VERSION_MAJOR > 1
41386 int major, minor, patch;
41388 version = db_version( &major, &minor, &patch );
41390 if( major != DB_VERSION_MAJOR ||
41391 minor < DB_VERSION_MINOR )
41393 printf("Berkeley DB version mismatch\n"
41394 "\theader: %s\n\tlibrary: %s\n",
41395 DB_VERSION_STRING, version);
41401 #if DB_VERSION_MAJOR > 2
41402 db_env_create( NULL, 0 );
41403 #elif DB_VERSION_MAJOR > 1
41404 db_appexit( NULL );
41406 (void) dbopen( NULL, 0, 0, 0, NULL);
41413 rm -f conftest.$ac_objext conftest$ac_exeext
41414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41415 (eval $ac_link) 2>conftest.er1
41417 grep -v '^ *+' conftest.er1 >conftest.err
41419 cat conftest.err >&5
41420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41421 (exit $ac_status); } &&
41422 { ac_try='test -z "$ac_c_werror_flag"
41423 || test ! -s conftest.err'
41424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41425 (eval $ac_try) 2>&5
41427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428 (exit $ac_status); }; } &&
41429 { ac_try='test -s conftest$ac_exeext'
41430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41431 (eval $ac_try) 2>&5
41433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41434 (exit $ac_status); }; }; then
41437 echo "$as_me: failed program was:" >&5
41438 sed 's/^/| /' conftest.$ac_ext >&5
41442 rm -f conftest.err conftest.$ac_objext \
41443 conftest$ac_exeext conftest.$ac_ext
41448 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41449 echo "${ECHO_T}$ol_cv_db_db4" >&6
41451 if test $ol_cv_db_db4 = yes ; then
41456 if test $ol_cv_lib_db = no ; then
41457 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41458 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41459 if test "${ol_cv_db_db+set}" = set; then
41460 echo $ECHO_N "(cached) $ECHO_C" >&6
41465 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41467 cat >conftest.$ac_ext <<_ACEOF
41470 cat confdefs.h >>conftest.$ac_ext
41471 cat >>conftest.$ac_ext <<_ACEOF
41472 /* end confdefs.h. */
41474 #ifdef HAVE_DB_185_H
41475 # include <db_185.h>
41480 #ifndef DB_VERSION_MAJOR
41481 # define DB_VERSION_MAJOR 1
41485 #define NULL ((void*)0)
41492 #if DB_VERSION_MAJOR > 1
41495 int major, minor, patch;
41497 version = db_version( &major, &minor, &patch );
41499 if( major != DB_VERSION_MAJOR ||
41500 minor < DB_VERSION_MINOR )
41502 printf("Berkeley DB version mismatch\n"
41503 "\theader: %s\n\tlibrary: %s\n",
41504 DB_VERSION_STRING, version);
41510 #if DB_VERSION_MAJOR > 2
41511 db_env_create( NULL, 0 );
41512 #elif DB_VERSION_MAJOR > 1
41513 db_appexit( NULL );
41515 (void) dbopen( NULL, 0, 0, 0, NULL);
41522 rm -f conftest.$ac_objext conftest$ac_exeext
41523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41524 (eval $ac_link) 2>conftest.er1
41526 grep -v '^ *+' conftest.er1 >conftest.err
41528 cat conftest.err >&5
41529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41530 (exit $ac_status); } &&
41531 { ac_try='test -z "$ac_c_werror_flag"
41532 || test ! -s conftest.err'
41533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41534 (eval $ac_try) 2>&5
41536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537 (exit $ac_status); }; } &&
41538 { ac_try='test -s conftest$ac_exeext'
41539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41540 (eval $ac_try) 2>&5
41542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543 (exit $ac_status); }; }; then
41546 echo "$as_me: failed program was:" >&5
41547 sed 's/^/| /' conftest.$ac_ext >&5
41551 rm -f conftest.err conftest.$ac_objext \
41552 conftest$ac_exeext conftest.$ac_ext
41557 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41558 echo "${ECHO_T}$ol_cv_db_db" >&6
41560 if test $ol_cv_db_db = yes ; then
41565 if test $ol_cv_lib_db = no ; then
41566 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41567 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41568 if test "${ol_cv_db_db41+set}" = set; then
41569 echo $ECHO_N "(cached) $ECHO_C" >&6
41574 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41576 cat >conftest.$ac_ext <<_ACEOF
41579 cat confdefs.h >>conftest.$ac_ext
41580 cat >>conftest.$ac_ext <<_ACEOF
41581 /* end confdefs.h. */
41583 #ifdef HAVE_DB_185_H
41584 # include <db_185.h>
41589 #ifndef DB_VERSION_MAJOR
41590 # define DB_VERSION_MAJOR 1
41594 #define NULL ((void*)0)
41601 #if DB_VERSION_MAJOR > 1
41604 int major, minor, patch;
41606 version = db_version( &major, &minor, &patch );
41608 if( major != DB_VERSION_MAJOR ||
41609 minor < DB_VERSION_MINOR )
41611 printf("Berkeley DB version mismatch\n"
41612 "\theader: %s\n\tlibrary: %s\n",
41613 DB_VERSION_STRING, version);
41619 #if DB_VERSION_MAJOR > 2
41620 db_env_create( NULL, 0 );
41621 #elif DB_VERSION_MAJOR > 1
41622 db_appexit( NULL );
41624 (void) dbopen( NULL, 0, 0, 0, NULL);
41631 rm -f conftest.$ac_objext conftest$ac_exeext
41632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41633 (eval $ac_link) 2>conftest.er1
41635 grep -v '^ *+' conftest.er1 >conftest.err
41637 cat conftest.err >&5
41638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639 (exit $ac_status); } &&
41640 { ac_try='test -z "$ac_c_werror_flag"
41641 || test ! -s conftest.err'
41642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41643 (eval $ac_try) 2>&5
41645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646 (exit $ac_status); }; } &&
41647 { ac_try='test -s conftest$ac_exeext'
41648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41649 (eval $ac_try) 2>&5
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); }; }; then
41655 echo "$as_me: failed program was:" >&5
41656 sed 's/^/| /' conftest.$ac_ext >&5
41660 rm -f conftest.err conftest.$ac_objext \
41661 conftest$ac_exeext conftest.$ac_ext
41666 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41667 echo "${ECHO_T}$ol_cv_db_db41" >&6
41669 if test $ol_cv_db_db41 = yes ; then
41670 ol_cv_lib_db=-ldb41
41674 if test $ol_cv_lib_db = no ; then
41675 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41676 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41677 if test "${ol_cv_db_db_41+set}" = set; then
41678 echo $ECHO_N "(cached) $ECHO_C" >&6
41683 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41685 cat >conftest.$ac_ext <<_ACEOF
41688 cat confdefs.h >>conftest.$ac_ext
41689 cat >>conftest.$ac_ext <<_ACEOF
41690 /* end confdefs.h. */
41692 #ifdef HAVE_DB_185_H
41693 # include <db_185.h>
41698 #ifndef DB_VERSION_MAJOR
41699 # define DB_VERSION_MAJOR 1
41703 #define NULL ((void*)0)
41710 #if DB_VERSION_MAJOR > 1
41713 int major, minor, patch;
41715 version = db_version( &major, &minor, &patch );
41717 if( major != DB_VERSION_MAJOR ||
41718 minor < DB_VERSION_MINOR )
41720 printf("Berkeley DB version mismatch\n"
41721 "\theader: %s\n\tlibrary: %s\n",
41722 DB_VERSION_STRING, version);
41728 #if DB_VERSION_MAJOR > 2
41729 db_env_create( NULL, 0 );
41730 #elif DB_VERSION_MAJOR > 1
41731 db_appexit( NULL );
41733 (void) dbopen( NULL, 0, 0, 0, NULL);
41740 rm -f conftest.$ac_objext conftest$ac_exeext
41741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41742 (eval $ac_link) 2>conftest.er1
41744 grep -v '^ *+' conftest.er1 >conftest.err
41746 cat conftest.err >&5
41747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748 (exit $ac_status); } &&
41749 { ac_try='test -z "$ac_c_werror_flag"
41750 || test ! -s conftest.err'
41751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41752 (eval $ac_try) 2>&5
41754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755 (exit $ac_status); }; } &&
41756 { ac_try='test -s conftest$ac_exeext'
41757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41758 (eval $ac_try) 2>&5
41760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761 (exit $ac_status); }; }; then
41764 echo "$as_me: failed program was:" >&5
41765 sed 's/^/| /' conftest.$ac_ext >&5
41769 rm -f conftest.err conftest.$ac_objext \
41770 conftest$ac_exeext conftest.$ac_ext
41775 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41776 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41778 if test $ol_cv_db_db_41 = yes ; then
41779 ol_cv_lib_db=-ldb-41
41783 if test $ol_cv_lib_db = no ; then
41784 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41785 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41786 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41787 echo $ECHO_N "(cached) $ECHO_C" >&6
41792 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41794 cat >conftest.$ac_ext <<_ACEOF
41797 cat confdefs.h >>conftest.$ac_ext
41798 cat >>conftest.$ac_ext <<_ACEOF
41799 /* end confdefs.h. */
41801 #ifdef HAVE_DB_185_H
41802 # include <db_185.h>
41807 #ifndef DB_VERSION_MAJOR
41808 # define DB_VERSION_MAJOR 1
41812 #define NULL ((void*)0)
41819 #if DB_VERSION_MAJOR > 1
41822 int major, minor, patch;
41824 version = db_version( &major, &minor, &patch );
41826 if( major != DB_VERSION_MAJOR ||
41827 minor < DB_VERSION_MINOR )
41829 printf("Berkeley DB version mismatch\n"
41830 "\theader: %s\n\tlibrary: %s\n",
41831 DB_VERSION_STRING, version);
41837 #if DB_VERSION_MAJOR > 2
41838 db_env_create( NULL, 0 );
41839 #elif DB_VERSION_MAJOR > 1
41840 db_appexit( NULL );
41842 (void) dbopen( NULL, 0, 0, 0, NULL);
41849 rm -f conftest.$ac_objext conftest$ac_exeext
41850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41851 (eval $ac_link) 2>conftest.er1
41853 grep -v '^ *+' conftest.er1 >conftest.err
41855 cat conftest.err >&5
41856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857 (exit $ac_status); } &&
41858 { ac_try='test -z "$ac_c_werror_flag"
41859 || test ! -s conftest.err'
41860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41861 (eval $ac_try) 2>&5
41863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864 (exit $ac_status); }; } &&
41865 { ac_try='test -s conftest$ac_exeext'
41866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41867 (eval $ac_try) 2>&5
41869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870 (exit $ac_status); }; }; then
41871 ol_cv_db_db_4_dot_1=yes
41873 echo "$as_me: failed program was:" >&5
41874 sed 's/^/| /' conftest.$ac_ext >&5
41876 ol_cv_db_db_4_dot_1=no
41878 rm -f conftest.err conftest.$ac_objext \
41879 conftest$ac_exeext conftest.$ac_ext
41884 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
41885 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
41887 if test $ol_cv_db_db_4_dot_1 = yes ; then
41888 ol_cv_lib_db=-ldb-4.1
41892 if test $ol_cv_lib_db = no ; then
41893 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
41894 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
41895 if test "${ol_cv_db_db_4_1+set}" = set; then
41896 echo $ECHO_N "(cached) $ECHO_C" >&6
41901 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41903 cat >conftest.$ac_ext <<_ACEOF
41906 cat confdefs.h >>conftest.$ac_ext
41907 cat >>conftest.$ac_ext <<_ACEOF
41908 /* end confdefs.h. */
41910 #ifdef HAVE_DB_185_H
41911 # include <db_185.h>
41916 #ifndef DB_VERSION_MAJOR
41917 # define DB_VERSION_MAJOR 1
41921 #define NULL ((void*)0)
41928 #if DB_VERSION_MAJOR > 1
41931 int major, minor, patch;
41933 version = db_version( &major, &minor, &patch );
41935 if( major != DB_VERSION_MAJOR ||
41936 minor < DB_VERSION_MINOR )
41938 printf("Berkeley DB version mismatch\n"
41939 "\theader: %s\n\tlibrary: %s\n",
41940 DB_VERSION_STRING, version);
41946 #if DB_VERSION_MAJOR > 2
41947 db_env_create( NULL, 0 );
41948 #elif DB_VERSION_MAJOR > 1
41949 db_appexit( NULL );
41951 (void) dbopen( NULL, 0, 0, 0, NULL);
41958 rm -f conftest.$ac_objext conftest$ac_exeext
41959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41960 (eval $ac_link) 2>conftest.er1
41962 grep -v '^ *+' conftest.er1 >conftest.err
41964 cat conftest.err >&5
41965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41966 (exit $ac_status); } &&
41967 { ac_try='test -z "$ac_c_werror_flag"
41968 || test ! -s conftest.err'
41969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41970 (eval $ac_try) 2>&5
41972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41973 (exit $ac_status); }; } &&
41974 { ac_try='test -s conftest$ac_exeext'
41975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41976 (eval $ac_try) 2>&5
41978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41979 (exit $ac_status); }; }; then
41980 ol_cv_db_db_4_1=yes
41982 echo "$as_me: failed program was:" >&5
41983 sed 's/^/| /' conftest.$ac_ext >&5
41987 rm -f conftest.err conftest.$ac_objext \
41988 conftest$ac_exeext conftest.$ac_ext
41993 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
41994 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
41996 if test $ol_cv_db_db_4_1 = yes ; then
41997 ol_cv_lib_db=-ldb-4-1
42001 if test $ol_cv_lib_db = no ; then
42002 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42003 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42004 if test "${ol_cv_db_db3+set}" = set; then
42005 echo $ECHO_N "(cached) $ECHO_C" >&6
42010 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42012 cat >conftest.$ac_ext <<_ACEOF
42015 cat confdefs.h >>conftest.$ac_ext
42016 cat >>conftest.$ac_ext <<_ACEOF
42017 /* end confdefs.h. */
42019 #ifdef HAVE_DB_185_H
42020 # include <db_185.h>
42025 #ifndef DB_VERSION_MAJOR
42026 # define DB_VERSION_MAJOR 1
42030 #define NULL ((void*)0)
42037 #if DB_VERSION_MAJOR > 1
42040 int major, minor, patch;
42042 version = db_version( &major, &minor, &patch );
42044 if( major != DB_VERSION_MAJOR ||
42045 minor < DB_VERSION_MINOR )
42047 printf("Berkeley DB version mismatch\n"
42048 "\theader: %s\n\tlibrary: %s\n",
42049 DB_VERSION_STRING, version);
42055 #if DB_VERSION_MAJOR > 2
42056 db_env_create( NULL, 0 );
42057 #elif DB_VERSION_MAJOR > 1
42058 db_appexit( NULL );
42060 (void) dbopen( NULL, 0, 0, 0, NULL);
42067 rm -f conftest.$ac_objext conftest$ac_exeext
42068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42069 (eval $ac_link) 2>conftest.er1
42071 grep -v '^ *+' conftest.er1 >conftest.err
42073 cat conftest.err >&5
42074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42075 (exit $ac_status); } &&
42076 { ac_try='test -z "$ac_c_werror_flag"
42077 || test ! -s conftest.err'
42078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42079 (eval $ac_try) 2>&5
42081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42082 (exit $ac_status); }; } &&
42083 { ac_try='test -s conftest$ac_exeext'
42084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42085 (eval $ac_try) 2>&5
42087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42088 (exit $ac_status); }; }; then
42091 echo "$as_me: failed program was:" >&5
42092 sed 's/^/| /' conftest.$ac_ext >&5
42096 rm -f conftest.err conftest.$ac_objext \
42097 conftest$ac_exeext conftest.$ac_ext
42102 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42103 echo "${ECHO_T}$ol_cv_db_db3" >&6
42105 if test $ol_cv_db_db3 = yes ; then
42110 if test $ol_cv_lib_db = no ; then
42111 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42112 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42113 if test "${ol_cv_db_db_3+set}" = set; then
42114 echo $ECHO_N "(cached) $ECHO_C" >&6
42119 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42121 cat >conftest.$ac_ext <<_ACEOF
42124 cat confdefs.h >>conftest.$ac_ext
42125 cat >>conftest.$ac_ext <<_ACEOF
42126 /* end confdefs.h. */
42128 #ifdef HAVE_DB_185_H
42129 # include <db_185.h>
42134 #ifndef DB_VERSION_MAJOR
42135 # define DB_VERSION_MAJOR 1
42139 #define NULL ((void*)0)
42146 #if DB_VERSION_MAJOR > 1
42149 int major, minor, patch;
42151 version = db_version( &major, &minor, &patch );
42153 if( major != DB_VERSION_MAJOR ||
42154 minor < DB_VERSION_MINOR )
42156 printf("Berkeley DB version mismatch\n"
42157 "\theader: %s\n\tlibrary: %s\n",
42158 DB_VERSION_STRING, version);
42164 #if DB_VERSION_MAJOR > 2
42165 db_env_create( NULL, 0 );
42166 #elif DB_VERSION_MAJOR > 1
42167 db_appexit( NULL );
42169 (void) dbopen( NULL, 0, 0, 0, NULL);
42176 rm -f conftest.$ac_objext conftest$ac_exeext
42177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42178 (eval $ac_link) 2>conftest.er1
42180 grep -v '^ *+' conftest.er1 >conftest.err
42182 cat conftest.err >&5
42183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42184 (exit $ac_status); } &&
42185 { ac_try='test -z "$ac_c_werror_flag"
42186 || test ! -s conftest.err'
42187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42188 (eval $ac_try) 2>&5
42190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191 (exit $ac_status); }; } &&
42192 { ac_try='test -s conftest$ac_exeext'
42193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42194 (eval $ac_try) 2>&5
42196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42197 (exit $ac_status); }; }; then
42200 echo "$as_me: failed program was:" >&5
42201 sed 's/^/| /' conftest.$ac_ext >&5
42205 rm -f conftest.err conftest.$ac_objext \
42206 conftest$ac_exeext conftest.$ac_ext
42211 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42212 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42214 if test $ol_cv_db_db_3 = yes ; then
42215 ol_cv_lib_db=-ldb-3
42219 if test $ol_cv_lib_db = no ; then
42220 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42221 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42222 if test "${ol_cv_db_db2+set}" = set; then
42223 echo $ECHO_N "(cached) $ECHO_C" >&6
42228 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42230 cat >conftest.$ac_ext <<_ACEOF
42233 cat confdefs.h >>conftest.$ac_ext
42234 cat >>conftest.$ac_ext <<_ACEOF
42235 /* end confdefs.h. */
42237 #ifdef HAVE_DB_185_H
42238 # include <db_185.h>
42243 #ifndef DB_VERSION_MAJOR
42244 # define DB_VERSION_MAJOR 1
42248 #define NULL ((void*)0)
42255 #if DB_VERSION_MAJOR > 1
42258 int major, minor, patch;
42260 version = db_version( &major, &minor, &patch );
42262 if( major != DB_VERSION_MAJOR ||
42263 minor < DB_VERSION_MINOR )
42265 printf("Berkeley DB version mismatch\n"
42266 "\theader: %s\n\tlibrary: %s\n",
42267 DB_VERSION_STRING, version);
42273 #if DB_VERSION_MAJOR > 2
42274 db_env_create( NULL, 0 );
42275 #elif DB_VERSION_MAJOR > 1
42276 db_appexit( NULL );
42278 (void) dbopen( NULL, 0, 0, 0, NULL);
42285 rm -f conftest.$ac_objext conftest$ac_exeext
42286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42287 (eval $ac_link) 2>conftest.er1
42289 grep -v '^ *+' conftest.er1 >conftest.err
42291 cat conftest.err >&5
42292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293 (exit $ac_status); } &&
42294 { ac_try='test -z "$ac_c_werror_flag"
42295 || test ! -s conftest.err'
42296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42297 (eval $ac_try) 2>&5
42299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300 (exit $ac_status); }; } &&
42301 { ac_try='test -s conftest$ac_exeext'
42302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42303 (eval $ac_try) 2>&5
42305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42306 (exit $ac_status); }; }; then
42309 echo "$as_me: failed program was:" >&5
42310 sed 's/^/| /' conftest.$ac_ext >&5
42314 rm -f conftest.err conftest.$ac_objext \
42315 conftest$ac_exeext conftest.$ac_ext
42320 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42321 echo "${ECHO_T}$ol_cv_db_db2" >&6
42323 if test $ol_cv_db_db2 = yes ; then
42328 if test $ol_cv_lib_db = no ; then
42329 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42330 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42331 if test "${ol_cv_db_db_2+set}" = set; then
42332 echo $ECHO_N "(cached) $ECHO_C" >&6
42337 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42339 cat >conftest.$ac_ext <<_ACEOF
42342 cat confdefs.h >>conftest.$ac_ext
42343 cat >>conftest.$ac_ext <<_ACEOF
42344 /* end confdefs.h. */
42346 #ifdef HAVE_DB_185_H
42347 # include <db_185.h>
42352 #ifndef DB_VERSION_MAJOR
42353 # define DB_VERSION_MAJOR 1
42357 #define NULL ((void*)0)
42364 #if DB_VERSION_MAJOR > 1
42367 int major, minor, patch;
42369 version = db_version( &major, &minor, &patch );
42371 if( major != DB_VERSION_MAJOR ||
42372 minor < DB_VERSION_MINOR )
42374 printf("Berkeley DB version mismatch\n"
42375 "\theader: %s\n\tlibrary: %s\n",
42376 DB_VERSION_STRING, version);
42382 #if DB_VERSION_MAJOR > 2
42383 db_env_create( NULL, 0 );
42384 #elif DB_VERSION_MAJOR > 1
42385 db_appexit( NULL );
42387 (void) dbopen( NULL, 0, 0, 0, NULL);
42394 rm -f conftest.$ac_objext conftest$ac_exeext
42395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42396 (eval $ac_link) 2>conftest.er1
42398 grep -v '^ *+' conftest.er1 >conftest.err
42400 cat conftest.err >&5
42401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42402 (exit $ac_status); } &&
42403 { ac_try='test -z "$ac_c_werror_flag"
42404 || test ! -s conftest.err'
42405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42406 (eval $ac_try) 2>&5
42408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42409 (exit $ac_status); }; } &&
42410 { ac_try='test -s conftest$ac_exeext'
42411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42412 (eval $ac_try) 2>&5
42414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415 (exit $ac_status); }; }; then
42418 echo "$as_me: failed program was:" >&5
42419 sed 's/^/| /' conftest.$ac_ext >&5
42423 rm -f conftest.err conftest.$ac_objext \
42424 conftest$ac_exeext conftest.$ac_ext
42429 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42430 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42432 if test $ol_cv_db_db_2 = yes ; then
42433 ol_cv_lib_db=-ldb-2
42437 if test $ol_cv_lib_db = no ; then
42438 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42439 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42440 if test "${ol_cv_db_db1+set}" = set; then
42441 echo $ECHO_N "(cached) $ECHO_C" >&6
42446 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42448 cat >conftest.$ac_ext <<_ACEOF
42451 cat confdefs.h >>conftest.$ac_ext
42452 cat >>conftest.$ac_ext <<_ACEOF
42453 /* end confdefs.h. */
42455 #ifdef HAVE_DB_185_H
42456 # include <db_185.h>
42461 #ifndef DB_VERSION_MAJOR
42462 # define DB_VERSION_MAJOR 1
42466 #define NULL ((void*)0)
42473 #if DB_VERSION_MAJOR > 1
42476 int major, minor, patch;
42478 version = db_version( &major, &minor, &patch );
42480 if( major != DB_VERSION_MAJOR ||
42481 minor < DB_VERSION_MINOR )
42483 printf("Berkeley DB version mismatch\n"
42484 "\theader: %s\n\tlibrary: %s\n",
42485 DB_VERSION_STRING, version);
42491 #if DB_VERSION_MAJOR > 2
42492 db_env_create( NULL, 0 );
42493 #elif DB_VERSION_MAJOR > 1
42494 db_appexit( NULL );
42496 (void) dbopen( NULL, 0, 0, 0, NULL);
42503 rm -f conftest.$ac_objext conftest$ac_exeext
42504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42505 (eval $ac_link) 2>conftest.er1
42507 grep -v '^ *+' conftest.er1 >conftest.err
42509 cat conftest.err >&5
42510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511 (exit $ac_status); } &&
42512 { ac_try='test -z "$ac_c_werror_flag"
42513 || test ! -s conftest.err'
42514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42515 (eval $ac_try) 2>&5
42517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518 (exit $ac_status); }; } &&
42519 { ac_try='test -s conftest$ac_exeext'
42520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42521 (eval $ac_try) 2>&5
42523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524 (exit $ac_status); }; }; then
42527 echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42532 rm -f conftest.err conftest.$ac_objext \
42533 conftest$ac_exeext conftest.$ac_ext
42538 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42539 echo "${ECHO_T}$ol_cv_db_db1" >&6
42541 if test $ol_cv_db_db1 = yes ; then
42546 if test $ol_cv_lib_db = no ; then
42547 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42548 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42549 if test "${ol_cv_db_db_1+set}" = set; then
42550 echo $ECHO_N "(cached) $ECHO_C" >&6
42555 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42557 cat >conftest.$ac_ext <<_ACEOF
42560 cat confdefs.h >>conftest.$ac_ext
42561 cat >>conftest.$ac_ext <<_ACEOF
42562 /* end confdefs.h. */
42564 #ifdef HAVE_DB_185_H
42565 # include <db_185.h>
42570 #ifndef DB_VERSION_MAJOR
42571 # define DB_VERSION_MAJOR 1
42575 #define NULL ((void*)0)
42582 #if DB_VERSION_MAJOR > 1
42585 int major, minor, patch;
42587 version = db_version( &major, &minor, &patch );
42589 if( major != DB_VERSION_MAJOR ||
42590 minor < DB_VERSION_MINOR )
42592 printf("Berkeley DB version mismatch\n"
42593 "\theader: %s\n\tlibrary: %s\n",
42594 DB_VERSION_STRING, version);
42600 #if DB_VERSION_MAJOR > 2
42601 db_env_create( NULL, 0 );
42602 #elif DB_VERSION_MAJOR > 1
42603 db_appexit( NULL );
42605 (void) dbopen( NULL, 0, 0, 0, NULL);
42612 rm -f conftest.$ac_objext conftest$ac_exeext
42613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42614 (eval $ac_link) 2>conftest.er1
42616 grep -v '^ *+' conftest.er1 >conftest.err
42618 cat conftest.err >&5
42619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42620 (exit $ac_status); } &&
42621 { ac_try='test -z "$ac_c_werror_flag"
42622 || test ! -s conftest.err'
42623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42624 (eval $ac_try) 2>&5
42626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42627 (exit $ac_status); }; } &&
42628 { ac_try='test -s conftest$ac_exeext'
42629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42630 (eval $ac_try) 2>&5
42632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42633 (exit $ac_status); }; }; then
42636 echo "$as_me: failed program was:" >&5
42637 sed 's/^/| /' conftest.$ac_ext >&5
42641 rm -f conftest.err conftest.$ac_objext \
42642 conftest$ac_exeext conftest.$ac_ext
42647 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42648 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42650 if test $ol_cv_db_db_1 = yes ; then
42651 ol_cv_lib_db=-ldb-1
42656 if test "$ol_cv_lib_db" != no ; then
42657 ol_cv_berkeley_db=yes
42658 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42659 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42660 if test "${ol_cv_berkeley_db_version+set}" = set; then
42661 echo $ECHO_N "(cached) $ECHO_C" >&6
42665 LIBS="$LTHREAD_LIBS $LIBS"
42666 if test $ol_cv_lib_db != yes ; then
42667 LIBS="$ol_cv_lib_db $LIBS"
42670 if test "$cross_compiling" = yes; then
42671 ol_cv_berkeley_db_version=cross
42673 cat >conftest.$ac_ext <<_ACEOF
42676 cat confdefs.h >>conftest.$ac_ext
42677 cat >>conftest.$ac_ext <<_ACEOF
42678 /* end confdefs.h. */
42680 #ifdef HAVE_DB_185_H
42685 #ifndef DB_VERSION_MAJOR
42686 # define DB_VERSION_MAJOR 1
42689 #define NULL ((void *)0)
42693 #if DB_VERSION_MAJOR > 1
42695 int major, minor, patch;
42697 version = db_version( &major, &minor, &patch );
42699 if( major != DB_VERSION_MAJOR ||
42700 minor != DB_VERSION_MINOR ||
42701 patch != DB_VERSION_PATCH )
42703 printf("Berkeley DB version mismatch\n"
42704 "\theader: %s\n\tlibrary: %s\n",
42705 DB_VERSION_STRING, version);
42713 rm -f conftest$ac_exeext
42714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42715 (eval $ac_link) 2>&5
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42720 (eval $ac_try) 2>&5
42722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42723 (exit $ac_status); }; }; then
42724 ol_cv_berkeley_db_version=yes
42726 echo "$as_me: program exited with status $ac_status" >&5
42727 echo "$as_me: failed program was:" >&5
42728 sed 's/^/| /' conftest.$ac_ext >&5
42730 ( exit $ac_status )
42731 ol_cv_berkeley_db_version=no
42733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42739 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42740 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42742 if test $ol_cv_berkeley_db_version = no ; then
42743 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42744 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42745 { (exit 1); exit 1; }; }
42748 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42749 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42750 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42751 echo $ECHO_N "(cached) $ECHO_C" >&6
42755 LIBS="$LTHREAD_LIBS $LIBS"
42756 if test $ol_cv_lib_db != yes ; then
42757 LIBS="$ol_cv_lib_db $LIBS"
42760 if test "$cross_compiling" = yes; then
42761 ol_cv_berkeley_db_thread=cross
42763 cat >conftest.$ac_ext <<_ACEOF
42766 cat confdefs.h >>conftest.$ac_ext
42767 cat >>conftest.$ac_ext <<_ACEOF
42768 /* end confdefs.h. */
42770 #ifdef HAVE_DB_185_H
42776 #define NULL ((void *)0)
42781 u_int32_t flags = DB_CREATE |
42787 #if DB_VERSION_MAJOR > 2
42788 DB_ENV *env = NULL;
42790 rc = db_env_create( &env, 0 );
42792 flags |= DB_INIT_MPOOL;
42793 #ifdef DB_MPOOL_PRIVATE
42794 flags |= DB_MPOOL_PRIVATE;
42798 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42802 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42803 rc = env->open( env, NULL, flags, 0 );
42805 rc = env->open( env, NULL, NULL, flags, 0 );
42809 rc = env->close( env, 0 );
42813 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42819 memset( &env, '\0', sizeof(env) );
42821 rc = db_appinit( NULL, NULL, &env, flags );
42824 db_appexit( &env );
42827 unlink("__db_mpool.share");
42828 unlink("__db_lock.share");
42834 rm -f conftest$ac_exeext
42835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42836 (eval $ac_link) 2>&5
42838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42841 (eval $ac_try) 2>&5
42843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844 (exit $ac_status); }; }; then
42845 ol_cv_berkeley_db_thread=yes
42847 echo "$as_me: program exited with status $ac_status" >&5
42848 echo "$as_me: failed program was:" >&5
42849 sed 's/^/| /' conftest.$ac_ext >&5
42851 ( exit $ac_status )
42852 ol_cv_berkeley_db_thread=no
42854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42860 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
42861 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
42863 if test $ol_cv_berkeley_db_thread != no ; then
42865 cat >>confdefs.h <<\_ACEOF
42866 #define HAVE_BERKELEY_DB_THREAD 1
42876 if test $ol_cv_berkeley_db != no ; then
42878 cat >>confdefs.h <<\_ACEOF
42879 #define HAVE_BERKELEY_DB 1
42883 ol_link_ldbm=berkeley
42884 ol_with_ldbm_api=berkeley
42886 if test $ol_with_ldbm_type = hash ; then
42888 cat >>confdefs.h <<\_ACEOF
42889 #define LDBM_USE_DBHASH 1
42894 cat >>confdefs.h <<\_ACEOF
42895 #define LDBM_USE_DBBTREE 1
42900 if test $ol_cv_lib_db != yes ; then
42901 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
42906 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
42907 if test $ol_link_ldbm != berkeley ; then
42908 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
42909 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
42910 { (exit 1); exit 1; }; }
42912 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
42913 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
42914 if test "${ol_cv_bdb_compat+set}" = set; then
42915 echo $ECHO_N "(cached) $ECHO_C" >&6
42918 cat >conftest.$ac_ext <<_ACEOF
42921 cat confdefs.h >>conftest.$ac_ext
42922 cat >>conftest.$ac_ext <<_ACEOF
42923 /* end confdefs.h. */
42927 /* this check could be improved */
42928 #ifndef DB_VERSION_MAJOR
42929 # define DB_VERSION_MAJOR 1
42931 #ifndef DB_VERSION_MINOR
42932 # define DB_VERSION_MINOR 0
42935 /* require 4.2 or later */
42936 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
42937 __db_version_compat
42941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42942 $EGREP "__db_version_compat" >/dev/null 2>&1; then
42943 ol_cv_bdb_compat=yes
42945 ol_cv_bdb_compat=no
42950 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
42951 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
42954 if test $ol_cv_bdb_compat != yes ; then
42955 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
42956 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
42957 { (exit 1); exit 1; }; }
42962 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
42963 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
42964 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
42965 ol_with_ldbm_api=none
42968 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
42969 echo "$as_me:$LINENO: checking for MDBM library" >&5
42970 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
42971 if test "${ol_cv_lib_mdbm+set}" = set; then
42972 echo $ECHO_N "(cached) $ECHO_C" >&6
42975 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
42976 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
42977 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
42978 echo $ECHO_N "(cached) $ECHO_C" >&6
42980 cat >conftest.$ac_ext <<_ACEOF
42983 cat confdefs.h >>conftest.$ac_ext
42984 cat >>conftest.$ac_ext <<_ACEOF
42985 /* end confdefs.h. */
42986 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
42987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42988 #define mdbm_set_chain innocuous_mdbm_set_chain
42990 /* System header to define __stub macros and hopefully few prototypes,
42991 which can conflict with char mdbm_set_chain (); below.
42992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42993 <limits.h> exists even on freestanding compilers. */
42996 # include <limits.h>
42998 # include <assert.h>
43001 #undef mdbm_set_chain
43003 /* Override any gcc2 internal prototype to avoid an error. */
43008 /* We use char because int might match the return type of a gcc2
43009 builtin and then its argument prototype would still apply. */
43010 char mdbm_set_chain ();
43011 /* The GNU C library defines this for functions which it implements
43012 to always fail with ENOSYS. Some functions are actually named
43013 something starting with __ and the normal name is an alias. */
43014 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43017 char (*f) () = mdbm_set_chain;
43026 return f != mdbm_set_chain;
43031 rm -f conftest.$ac_objext conftest$ac_exeext
43032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43033 (eval $ac_link) 2>conftest.er1
43035 grep -v '^ *+' conftest.er1 >conftest.err
43037 cat conftest.err >&5
43038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43039 (exit $ac_status); } &&
43040 { ac_try='test -z "$ac_c_werror_flag"
43041 || test ! -s conftest.err'
43042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43043 (eval $ac_try) 2>&5
43045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43046 (exit $ac_status); }; } &&
43047 { ac_try='test -s conftest$ac_exeext'
43048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43049 (eval $ac_try) 2>&5
43051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43052 (exit $ac_status); }; }; then
43053 ac_cv_func_mdbm_set_chain=yes
43055 echo "$as_me: failed program was:" >&5
43056 sed 's/^/| /' conftest.$ac_ext >&5
43058 ac_cv_func_mdbm_set_chain=no
43060 rm -f conftest.err conftest.$ac_objext \
43061 conftest$ac_exeext conftest.$ac_ext
43063 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43064 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43065 if test $ac_cv_func_mdbm_set_chain = yes; then
43069 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43070 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43071 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43072 echo $ECHO_N "(cached) $ECHO_C" >&6
43074 ac_check_lib_save_LIBS=$LIBS
43075 LIBS="-lmdbm $LIBS"
43076 cat >conftest.$ac_ext <<_ACEOF
43079 cat confdefs.h >>conftest.$ac_ext
43080 cat >>conftest.$ac_ext <<_ACEOF
43081 /* end confdefs.h. */
43083 /* Override any gcc2 internal prototype to avoid an error. */
43087 /* We use char because int might match the return type of a gcc2
43088 builtin and then its argument prototype would still apply. */
43089 char mdbm_set_chain ();
43098 rm -f conftest.$ac_objext conftest$ac_exeext
43099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43100 (eval $ac_link) 2>conftest.er1
43102 grep -v '^ *+' conftest.er1 >conftest.err
43104 cat conftest.err >&5
43105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43106 (exit $ac_status); } &&
43107 { ac_try='test -z "$ac_c_werror_flag"
43108 || test ! -s conftest.err'
43109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43110 (eval $ac_try) 2>&5
43112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43113 (exit $ac_status); }; } &&
43114 { ac_try='test -s conftest$ac_exeext'
43115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43116 (eval $ac_try) 2>&5
43118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119 (exit $ac_status); }; }; then
43120 ac_cv_lib_mdbm_mdbm_set_chain=yes
43122 echo "$as_me: failed program was:" >&5
43123 sed 's/^/| /' conftest.$ac_ext >&5
43125 ac_cv_lib_mdbm_mdbm_set_chain=no
43127 rm -f conftest.err conftest.$ac_objext \
43128 conftest$ac_exeext conftest.$ac_ext
43129 LIBS=$ac_check_lib_save_LIBS
43131 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43132 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43133 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43134 ol_cv_lib_mdbm=-lmdbm
43145 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43146 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43150 for ac_header in mdbm.h
43152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43154 echo "$as_me:$LINENO: checking for $ac_header" >&5
43155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43157 echo $ECHO_N "(cached) $ECHO_C" >&6
43159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43162 # Is the header compilable?
43163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43165 cat >conftest.$ac_ext <<_ACEOF
43168 cat confdefs.h >>conftest.$ac_ext
43169 cat >>conftest.$ac_ext <<_ACEOF
43170 /* end confdefs.h. */
43171 $ac_includes_default
43172 #include <$ac_header>
43174 rm -f conftest.$ac_objext
43175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43176 (eval $ac_compile) 2>conftest.er1
43178 grep -v '^ *+' conftest.er1 >conftest.err
43180 cat conftest.err >&5
43181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182 (exit $ac_status); } &&
43183 { ac_try='test -z "$ac_c_werror_flag"
43184 || test ! -s conftest.err'
43185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186 (eval $ac_try) 2>&5
43188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189 (exit $ac_status); }; } &&
43190 { ac_try='test -s conftest.$ac_objext'
43191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43192 (eval $ac_try) 2>&5
43194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43195 (exit $ac_status); }; }; then
43196 ac_header_compiler=yes
43198 echo "$as_me: failed program was:" >&5
43199 sed 's/^/| /' conftest.$ac_ext >&5
43201 ac_header_compiler=no
43203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43205 echo "${ECHO_T}$ac_header_compiler" >&6
43207 # Is the header present?
43208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43210 cat >conftest.$ac_ext <<_ACEOF
43213 cat confdefs.h >>conftest.$ac_ext
43214 cat >>conftest.$ac_ext <<_ACEOF
43215 /* end confdefs.h. */
43216 #include <$ac_header>
43218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43221 grep -v '^ *+' conftest.er1 >conftest.err
43223 cat conftest.err >&5
43224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43225 (exit $ac_status); } >/dev/null; then
43226 if test -s conftest.err; then
43227 ac_cpp_err=$ac_c_preproc_warn_flag
43228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43235 if test -z "$ac_cpp_err"; then
43236 ac_header_preproc=yes
43238 echo "$as_me: failed program was:" >&5
43239 sed 's/^/| /' conftest.$ac_ext >&5
43241 ac_header_preproc=no
43243 rm -f conftest.err conftest.$ac_ext
43244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43245 echo "${ECHO_T}$ac_header_preproc" >&6
43247 # So? What about this header?
43248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43254 ac_header_preproc=yes
43257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43271 ## ------------------------------------------ ##
43272 ## Report this to the AC_PACKAGE_NAME lists. ##
43273 ## ------------------------------------------ ##
43276 sed "s/^/$as_me: WARNING: /" >&2
43279 echo "$as_me:$LINENO: checking for $ac_header" >&5
43280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43282 echo $ECHO_N "(cached) $ECHO_C" >&6
43284 eval "$as_ac_Header=\$ac_header_preproc"
43286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43291 cat >>confdefs.h <<_ACEOF
43292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43299 echo "$as_me:$LINENO: checking for db" >&5
43300 echo $ECHO_N "checking for db... $ECHO_C" >&6
43301 if test "${ol_cv_mdbm+set}" = set; then
43302 echo $ECHO_N "(cached) $ECHO_C" >&6
43305 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43312 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43313 echo "${ECHO_T}$ol_cv_mdbm" >&6
43314 if test $ol_cv_mdbm = yes ; then
43316 cat >>confdefs.h <<\_ACEOF
43317 #define HAVE_MDBM 1
43323 if test $ol_cv_mdbm = yes ; then
43325 ol_with_ldbm_api=mdbm
43326 if test $ol_cv_lib_mdbm != yes ; then
43327 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43332 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43333 echo "$as_me:$LINENO: checking for GDBM library" >&5
43334 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43335 if test "${ol_cv_lib_gdbm+set}" = set; then
43336 echo $ECHO_N "(cached) $ECHO_C" >&6
43339 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43340 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43341 if test "${ac_cv_func_gdbm_open+set}" = set; then
43342 echo $ECHO_N "(cached) $ECHO_C" >&6
43344 cat >conftest.$ac_ext <<_ACEOF
43347 cat confdefs.h >>conftest.$ac_ext
43348 cat >>conftest.$ac_ext <<_ACEOF
43349 /* end confdefs.h. */
43350 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43352 #define gdbm_open innocuous_gdbm_open
43354 /* System header to define __stub macros and hopefully few prototypes,
43355 which can conflict with char gdbm_open (); below.
43356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43357 <limits.h> exists even on freestanding compilers. */
43360 # include <limits.h>
43362 # include <assert.h>
43367 /* Override any gcc2 internal prototype to avoid an error. */
43372 /* We use char because int might match the return type of a gcc2
43373 builtin and then its argument prototype would still apply. */
43375 /* The GNU C library defines this for functions which it implements
43376 to always fail with ENOSYS. Some functions are actually named
43377 something starting with __ and the normal name is an alias. */
43378 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43381 char (*f) () = gdbm_open;
43390 return f != gdbm_open;
43395 rm -f conftest.$ac_objext conftest$ac_exeext
43396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43397 (eval $ac_link) 2>conftest.er1
43399 grep -v '^ *+' conftest.er1 >conftest.err
43401 cat conftest.err >&5
43402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43403 (exit $ac_status); } &&
43404 { ac_try='test -z "$ac_c_werror_flag"
43405 || test ! -s conftest.err'
43406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43407 (eval $ac_try) 2>&5
43409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43410 (exit $ac_status); }; } &&
43411 { ac_try='test -s conftest$ac_exeext'
43412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43413 (eval $ac_try) 2>&5
43415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416 (exit $ac_status); }; }; then
43417 ac_cv_func_gdbm_open=yes
43419 echo "$as_me: failed program was:" >&5
43420 sed 's/^/| /' conftest.$ac_ext >&5
43422 ac_cv_func_gdbm_open=no
43424 rm -f conftest.err conftest.$ac_objext \
43425 conftest$ac_exeext conftest.$ac_ext
43427 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43428 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43429 if test $ac_cv_func_gdbm_open = yes; then
43433 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43434 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43435 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43436 echo $ECHO_N "(cached) $ECHO_C" >&6
43438 ac_check_lib_save_LIBS=$LIBS
43439 LIBS="-lgdbm $LIBS"
43440 cat >conftest.$ac_ext <<_ACEOF
43443 cat confdefs.h >>conftest.$ac_ext
43444 cat >>conftest.$ac_ext <<_ACEOF
43445 /* end confdefs.h. */
43447 /* Override any gcc2 internal prototype to avoid an error. */
43451 /* We use char because int might match the return type of a gcc2
43452 builtin and then its argument prototype would still apply. */
43462 rm -f conftest.$ac_objext conftest$ac_exeext
43463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43464 (eval $ac_link) 2>conftest.er1
43466 grep -v '^ *+' conftest.er1 >conftest.err
43468 cat conftest.err >&5
43469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43470 (exit $ac_status); } &&
43471 { ac_try='test -z "$ac_c_werror_flag"
43472 || test ! -s conftest.err'
43473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43474 (eval $ac_try) 2>&5
43476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43477 (exit $ac_status); }; } &&
43478 { ac_try='test -s conftest$ac_exeext'
43479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43480 (eval $ac_try) 2>&5
43482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43483 (exit $ac_status); }; }; then
43484 ac_cv_lib_gdbm_gdbm_open=yes
43486 echo "$as_me: failed program was:" >&5
43487 sed 's/^/| /' conftest.$ac_ext >&5
43489 ac_cv_lib_gdbm_gdbm_open=no
43491 rm -f conftest.err conftest.$ac_objext \
43492 conftest$ac_exeext conftest.$ac_ext
43493 LIBS=$ac_check_lib_save_LIBS
43495 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43496 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43497 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43498 ol_cv_lib_gdbm=-lgdbm
43509 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43510 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43514 for ac_header in gdbm.h
43516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43518 echo "$as_me:$LINENO: checking for $ac_header" >&5
43519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43521 echo $ECHO_N "(cached) $ECHO_C" >&6
43523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43526 # Is the header compilable?
43527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43529 cat >conftest.$ac_ext <<_ACEOF
43532 cat confdefs.h >>conftest.$ac_ext
43533 cat >>conftest.$ac_ext <<_ACEOF
43534 /* end confdefs.h. */
43535 $ac_includes_default
43536 #include <$ac_header>
43538 rm -f conftest.$ac_objext
43539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43540 (eval $ac_compile) 2>conftest.er1
43542 grep -v '^ *+' conftest.er1 >conftest.err
43544 cat conftest.err >&5
43545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546 (exit $ac_status); } &&
43547 { ac_try='test -z "$ac_c_werror_flag"
43548 || test ! -s conftest.err'
43549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43550 (eval $ac_try) 2>&5
43552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553 (exit $ac_status); }; } &&
43554 { ac_try='test -s conftest.$ac_objext'
43555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43556 (eval $ac_try) 2>&5
43558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559 (exit $ac_status); }; }; then
43560 ac_header_compiler=yes
43562 echo "$as_me: failed program was:" >&5
43563 sed 's/^/| /' conftest.$ac_ext >&5
43565 ac_header_compiler=no
43567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43569 echo "${ECHO_T}$ac_header_compiler" >&6
43571 # Is the header present?
43572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43574 cat >conftest.$ac_ext <<_ACEOF
43577 cat confdefs.h >>conftest.$ac_ext
43578 cat >>conftest.$ac_ext <<_ACEOF
43579 /* end confdefs.h. */
43580 #include <$ac_header>
43582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43585 grep -v '^ *+' conftest.er1 >conftest.err
43587 cat conftest.err >&5
43588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43589 (exit $ac_status); } >/dev/null; then
43590 if test -s conftest.err; then
43591 ac_cpp_err=$ac_c_preproc_warn_flag
43592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43599 if test -z "$ac_cpp_err"; then
43600 ac_header_preproc=yes
43602 echo "$as_me: failed program was:" >&5
43603 sed 's/^/| /' conftest.$ac_ext >&5
43605 ac_header_preproc=no
43607 rm -f conftest.err conftest.$ac_ext
43608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43609 echo "${ECHO_T}$ac_header_preproc" >&6
43611 # So? What about this header?
43612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43618 ac_header_preproc=yes
43621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43635 ## ------------------------------------------ ##
43636 ## Report this to the AC_PACKAGE_NAME lists. ##
43637 ## ------------------------------------------ ##
43640 sed "s/^/$as_me: WARNING: /" >&2
43643 echo "$as_me:$LINENO: checking for $ac_header" >&5
43644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43646 echo $ECHO_N "(cached) $ECHO_C" >&6
43648 eval "$as_ac_Header=\$ac_header_preproc"
43650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43655 cat >>confdefs.h <<_ACEOF
43656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43663 echo "$as_me:$LINENO: checking for db" >&5
43664 echo $ECHO_N "checking for db... $ECHO_C" >&6
43665 if test "${ol_cv_gdbm+set}" = set; then
43666 echo $ECHO_N "(cached) $ECHO_C" >&6
43669 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43676 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43677 echo "${ECHO_T}$ol_cv_gdbm" >&6
43678 if test $ol_cv_gdbm = yes ; then
43680 cat >>confdefs.h <<\_ACEOF
43681 #define HAVE_GDBM 1
43687 if test $ol_cv_gdbm = yes ; then
43689 ol_with_ldbm_api=gdbm
43691 if test $ol_cv_lib_gdbm != yes ; then
43692 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43697 if test $ol_with_ldbm_api = ndbm ; then
43698 echo "$as_me:$LINENO: checking for NDBM library" >&5
43699 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43700 if test "${ol_cv_lib_ndbm+set}" = set; then
43701 echo $ECHO_N "(cached) $ECHO_C" >&6
43704 echo "$as_me:$LINENO: checking for dbm_open" >&5
43705 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43706 if test "${ac_cv_func_dbm_open+set}" = set; then
43707 echo $ECHO_N "(cached) $ECHO_C" >&6
43709 cat >conftest.$ac_ext <<_ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h. */
43715 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43717 #define dbm_open innocuous_dbm_open
43719 /* System header to define __stub macros and hopefully few prototypes,
43720 which can conflict with char dbm_open (); below.
43721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43722 <limits.h> exists even on freestanding compilers. */
43725 # include <limits.h>
43727 # include <assert.h>
43732 /* Override any gcc2 internal prototype to avoid an error. */
43737 /* We use char because int might match the return type of a gcc2
43738 builtin and then its argument prototype would still apply. */
43740 /* The GNU C library defines this for functions which it implements
43741 to always fail with ENOSYS. Some functions are actually named
43742 something starting with __ and the normal name is an alias. */
43743 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43746 char (*f) () = dbm_open;
43755 return f != dbm_open;
43760 rm -f conftest.$ac_objext conftest$ac_exeext
43761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43762 (eval $ac_link) 2>conftest.er1
43764 grep -v '^ *+' conftest.er1 >conftest.err
43766 cat conftest.err >&5
43767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43768 (exit $ac_status); } &&
43769 { ac_try='test -z "$ac_c_werror_flag"
43770 || test ! -s conftest.err'
43771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43772 (eval $ac_try) 2>&5
43774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43775 (exit $ac_status); }; } &&
43776 { ac_try='test -s conftest$ac_exeext'
43777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43778 (eval $ac_try) 2>&5
43780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781 (exit $ac_status); }; }; then
43782 ac_cv_func_dbm_open=yes
43784 echo "$as_me: failed program was:" >&5
43785 sed 's/^/| /' conftest.$ac_ext >&5
43787 ac_cv_func_dbm_open=no
43789 rm -f conftest.err conftest.$ac_objext \
43790 conftest$ac_exeext conftest.$ac_ext
43792 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43793 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43794 if test $ac_cv_func_dbm_open = yes; then
43798 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43799 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43800 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43801 echo $ECHO_N "(cached) $ECHO_C" >&6
43803 ac_check_lib_save_LIBS=$LIBS
43804 LIBS="-lndbm $LIBS"
43805 cat >conftest.$ac_ext <<_ACEOF
43808 cat confdefs.h >>conftest.$ac_ext
43809 cat >>conftest.$ac_ext <<_ACEOF
43810 /* end confdefs.h. */
43812 /* Override any gcc2 internal prototype to avoid an error. */
43816 /* We use char because int might match the return type of a gcc2
43817 builtin and then its argument prototype would still apply. */
43827 rm -f conftest.$ac_objext conftest$ac_exeext
43828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43829 (eval $ac_link) 2>conftest.er1
43831 grep -v '^ *+' conftest.er1 >conftest.err
43833 cat conftest.err >&5
43834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835 (exit $ac_status); } &&
43836 { ac_try='test -z "$ac_c_werror_flag"
43837 || test ! -s conftest.err'
43838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43839 (eval $ac_try) 2>&5
43841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43842 (exit $ac_status); }; } &&
43843 { ac_try='test -s conftest$ac_exeext'
43844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43845 (eval $ac_try) 2>&5
43847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43848 (exit $ac_status); }; }; then
43849 ac_cv_lib_ndbm_dbm_open=yes
43851 echo "$as_me: failed program was:" >&5
43852 sed 's/^/| /' conftest.$ac_ext >&5
43854 ac_cv_lib_ndbm_dbm_open=no
43856 rm -f conftest.err conftest.$ac_objext \
43857 conftest$ac_exeext conftest.$ac_ext
43858 LIBS=$ac_check_lib_save_LIBS
43860 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
43861 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
43862 if test $ac_cv_lib_ndbm_dbm_open = yes; then
43863 ol_cv_lib_ndbm=-lndbm
43866 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
43867 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
43868 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
43869 echo $ECHO_N "(cached) $ECHO_C" >&6
43871 ac_check_lib_save_LIBS=$LIBS
43873 cat >conftest.$ac_ext <<_ACEOF
43876 cat confdefs.h >>conftest.$ac_ext
43877 cat >>conftest.$ac_ext <<_ACEOF
43878 /* end confdefs.h. */
43880 /* Override any gcc2 internal prototype to avoid an error. */
43884 /* We use char because int might match the return type of a gcc2
43885 builtin and then its argument prototype would still apply. */
43895 rm -f conftest.$ac_objext conftest$ac_exeext
43896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43897 (eval $ac_link) 2>conftest.er1
43899 grep -v '^ *+' conftest.er1 >conftest.err
43901 cat conftest.err >&5
43902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43903 (exit $ac_status); } &&
43904 { ac_try='test -z "$ac_c_werror_flag"
43905 || test ! -s conftest.err'
43906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43907 (eval $ac_try) 2>&5
43909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43910 (exit $ac_status); }; } &&
43911 { ac_try='test -s conftest$ac_exeext'
43912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43913 (eval $ac_try) 2>&5
43915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43916 (exit $ac_status); }; }; then
43917 ac_cv_lib_dbm_dbm_open=yes
43919 echo "$as_me: failed program was:" >&5
43920 sed 's/^/| /' conftest.$ac_ext >&5
43922 ac_cv_lib_dbm_dbm_open=no
43924 rm -f conftest.err conftest.$ac_objext \
43925 conftest$ac_exeext conftest.$ac_ext
43926 LIBS=$ac_check_lib_save_LIBS
43928 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
43929 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
43930 if test $ac_cv_lib_dbm_dbm_open = yes; then
43931 ol_cv_lib_ndbm=-ldbm
43944 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
43945 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
43949 for ac_header in ndbm.h
43951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43953 echo "$as_me:$LINENO: checking for $ac_header" >&5
43954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43956 echo $ECHO_N "(cached) $ECHO_C" >&6
43958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43961 # Is the header compilable?
43962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43964 cat >conftest.$ac_ext <<_ACEOF
43967 cat confdefs.h >>conftest.$ac_ext
43968 cat >>conftest.$ac_ext <<_ACEOF
43969 /* end confdefs.h. */
43970 $ac_includes_default
43971 #include <$ac_header>
43973 rm -f conftest.$ac_objext
43974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43975 (eval $ac_compile) 2>conftest.er1
43977 grep -v '^ *+' conftest.er1 >conftest.err
43979 cat conftest.err >&5
43980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43981 (exit $ac_status); } &&
43982 { ac_try='test -z "$ac_c_werror_flag"
43983 || test ! -s conftest.err'
43984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43985 (eval $ac_try) 2>&5
43987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43988 (exit $ac_status); }; } &&
43989 { ac_try='test -s conftest.$ac_objext'
43990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43991 (eval $ac_try) 2>&5
43993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43994 (exit $ac_status); }; }; then
43995 ac_header_compiler=yes
43997 echo "$as_me: failed program was:" >&5
43998 sed 's/^/| /' conftest.$ac_ext >&5
44000 ac_header_compiler=no
44002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44004 echo "${ECHO_T}$ac_header_compiler" >&6
44006 # Is the header present?
44007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44009 cat >conftest.$ac_ext <<_ACEOF
44012 cat confdefs.h >>conftest.$ac_ext
44013 cat >>conftest.$ac_ext <<_ACEOF
44014 /* end confdefs.h. */
44015 #include <$ac_header>
44017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44020 grep -v '^ *+' conftest.er1 >conftest.err
44022 cat conftest.err >&5
44023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44024 (exit $ac_status); } >/dev/null; then
44025 if test -s conftest.err; then
44026 ac_cpp_err=$ac_c_preproc_warn_flag
44027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44034 if test -z "$ac_cpp_err"; then
44035 ac_header_preproc=yes
44037 echo "$as_me: failed program was:" >&5
44038 sed 's/^/| /' conftest.$ac_ext >&5
44040 ac_header_preproc=no
44042 rm -f conftest.err conftest.$ac_ext
44043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44044 echo "${ECHO_T}$ac_header_preproc" >&6
44046 # So? What about this header?
44047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44053 ac_header_preproc=yes
44056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44070 ## ------------------------------------------ ##
44071 ## Report this to the AC_PACKAGE_NAME lists. ##
44072 ## ------------------------------------------ ##
44075 sed "s/^/$as_me: WARNING: /" >&2
44078 echo "$as_me:$LINENO: checking for $ac_header" >&5
44079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44081 echo $ECHO_N "(cached) $ECHO_C" >&6
44083 eval "$as_ac_Header=\$ac_header_preproc"
44085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44090 cat >>confdefs.h <<_ACEOF
44091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44098 echo "$as_me:$LINENO: checking for db" >&5
44099 echo $ECHO_N "checking for db... $ECHO_C" >&6
44100 if test "${ol_cv_ndbm+set}" = set; then
44101 echo $ECHO_N "(cached) $ECHO_C" >&6
44104 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44111 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44112 echo "${ECHO_T}$ol_cv_ndbm" >&6
44113 if test $ol_cv_ndbm = yes ; then
44115 cat >>confdefs.h <<\_ACEOF
44116 #define HAVE_NDBM 1
44122 if test $ol_cv_ndbm = yes ; then
44124 ol_with_ldbm_api=ndbm
44126 if test $ol_cv_lib_ndbm != yes ; then
44127 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44132 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44133 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44134 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44135 { (exit 1); exit 1; }; }
44138 if test $ol_enable_bdb = yes -o \
44139 $ol_enable_hdb = yes -o \
44140 $ol_enable_ldbm = yes ; then
44141 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44145 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44146 BUILD_LIBS_DYNAMIC=shared
44148 cat >>confdefs.h <<\_ACEOF
44149 #define LDAP_LIBS_DYNAMIC 1
44154 BUILD_LIBS_DYNAMIC=static
44158 if test $ol_enable_wrappers != no ; then
44160 for ac_header in tcpd.h
44162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44164 echo "$as_me:$LINENO: checking for $ac_header" >&5
44165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44167 echo $ECHO_N "(cached) $ECHO_C" >&6
44169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44172 # Is the header compilable?
44173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44175 cat >conftest.$ac_ext <<_ACEOF
44178 cat confdefs.h >>conftest.$ac_ext
44179 cat >>conftest.$ac_ext <<_ACEOF
44180 /* end confdefs.h. */
44181 $ac_includes_default
44182 #include <$ac_header>
44184 rm -f conftest.$ac_objext
44185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44186 (eval $ac_compile) 2>conftest.er1
44188 grep -v '^ *+' conftest.er1 >conftest.err
44190 cat conftest.err >&5
44191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44192 (exit $ac_status); } &&
44193 { ac_try='test -z "$ac_c_werror_flag"
44194 || test ! -s conftest.err'
44195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44196 (eval $ac_try) 2>&5
44198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44199 (exit $ac_status); }; } &&
44200 { ac_try='test -s conftest.$ac_objext'
44201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44202 (eval $ac_try) 2>&5
44204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205 (exit $ac_status); }; }; then
44206 ac_header_compiler=yes
44208 echo "$as_me: failed program was:" >&5
44209 sed 's/^/| /' conftest.$ac_ext >&5
44211 ac_header_compiler=no
44213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44215 echo "${ECHO_T}$ac_header_compiler" >&6
44217 # Is the header present?
44218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44220 cat >conftest.$ac_ext <<_ACEOF
44223 cat confdefs.h >>conftest.$ac_ext
44224 cat >>conftest.$ac_ext <<_ACEOF
44225 /* end confdefs.h. */
44226 #include <$ac_header>
44228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44231 grep -v '^ *+' conftest.er1 >conftest.err
44233 cat conftest.err >&5
44234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235 (exit $ac_status); } >/dev/null; then
44236 if test -s conftest.err; then
44237 ac_cpp_err=$ac_c_preproc_warn_flag
44238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44245 if test -z "$ac_cpp_err"; then
44246 ac_header_preproc=yes
44248 echo "$as_me: failed program was:" >&5
44249 sed 's/^/| /' conftest.$ac_ext >&5
44251 ac_header_preproc=no
44253 rm -f conftest.err conftest.$ac_ext
44254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44255 echo "${ECHO_T}$ac_header_preproc" >&6
44257 # So? What about this header?
44258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44264 ac_header_preproc=yes
44267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44281 ## ------------------------------------------ ##
44282 ## Report this to the AC_PACKAGE_NAME lists. ##
44283 ## ------------------------------------------ ##
44286 sed "s/^/$as_me: WARNING: /" >&2
44289 echo "$as_me:$LINENO: checking for $ac_header" >&5
44290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44292 echo $ECHO_N "(cached) $ECHO_C" >&6
44294 eval "$as_ac_Header=\$ac_header_preproc"
44296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44301 cat >>confdefs.h <<_ACEOF
44302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44305 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44306 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44308 LIBS="$LIBS -lwrap"
44309 cat >conftest.$ac_ext <<_ACEOF
44312 cat confdefs.h >>conftest.$ac_ext
44313 cat >>conftest.$ac_ext <<_ACEOF
44314 /* end confdefs.h. */
44317 int allow_severity = 0;
44318 int deny_severity = 0;
44320 struct request_info *req;
44332 rm -f conftest.$ac_objext conftest$ac_exeext
44333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44334 (eval $ac_link) 2>conftest.er1
44336 grep -v '^ *+' conftest.er1 >conftest.err
44338 cat conftest.err >&5
44339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340 (exit $ac_status); } &&
44341 { ac_try='test -z "$ac_c_werror_flag"
44342 || test ! -s conftest.err'
44343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44344 (eval $ac_try) 2>&5
44346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44347 (exit $ac_status); }; } &&
44348 { ac_try='test -s conftest$ac_exeext'
44349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44350 (eval $ac_try) 2>&5
44352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44353 (exit $ac_status); }; }; then
44354 echo "$as_me:$LINENO: result: -lwrap" >&5
44355 echo "${ECHO_T}-lwrap" >&6
44359 echo "$as_me: failed program was:" >&5
44360 sed 's/^/| /' conftest.$ac_ext >&5
44364 _au_changequote(,)cat >conftest.$ac_ext <<_ACEOF
44367 cat confdefs.h >>conftest.$ac_ext
44368 cat >>conftest.$ac_ext <<_ACEOF
44369 /* end confdefs.h. */
44372 int allow_severity = 0;
44373 int deny_severity = 0;
44375 struct request_info *req;
44387 rm -f conftest.$ac_objext conftest$ac_exeext
44388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44389 (eval $ac_link) 2>conftest.er1
44391 grep -v '^ *+' conftest.er1 >conftest.err
44393 cat conftest.err >&5
44394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44395 (exit $ac_status); } &&
44396 { ac_try='test -z "$ac_c_werror_flag"
44397 || test ! -s conftest.err'
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); }; } &&
44403 { ac_try='test -s conftest$ac_exeext'
44404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44405 (eval $ac_try) 2>&5
44407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408 (exit $ac_status); }; }; then
44409 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44410 echo "${ECHO_T}-lwrap -lnsl" >&6
44412 LIBS="$save_LIBS -lnsl"
44414 echo "$as_me: failed program was:" >&5
44415 sed 's/^/| /' conftest.$ac_ext >&5
44418 echo "$as_me:$LINENO: result: no" >&5
44419 echo "${ECHO_T}no" >&6
44423 rm -f conftest.err conftest.$ac_objext \
44424 conftest$ac_exeext conftest.$ac_ext
44426 rm -f conftest.err conftest.$ac_objext \
44427 conftest$ac_exeext conftest.$ac_ext
44435 if test $have_wrappers = yes ; then
44437 cat >>confdefs.h <<\_ACEOF
44438 #define HAVE_TCPD 1
44442 elif test $ol_enable_wrappers = yes ; then
44443 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44444 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44445 { (exit 1); exit 1; }; }
44447 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44448 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44453 if test $ol_enable_syslog != no ; then
44454 echo "$as_me:$LINENO: checking for openlog" >&5
44455 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44456 if test "${ac_cv_func_openlog+set}" = set; then
44457 echo $ECHO_N "(cached) $ECHO_C" >&6
44459 cat >conftest.$ac_ext <<_ACEOF
44462 cat confdefs.h >>conftest.$ac_ext
44463 cat >>conftest.$ac_ext <<_ACEOF
44464 /* end confdefs.h. */
44465 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44467 #define openlog innocuous_openlog
44469 /* System header to define __stub macros and hopefully few prototypes,
44470 which can conflict with char openlog (); below.
44471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44472 <limits.h> exists even on freestanding compilers. */
44475 # include <limits.h>
44477 # include <assert.h>
44482 /* Override any gcc2 internal prototype to avoid an error. */
44487 /* We use char because int might match the return type of a gcc2
44488 builtin and then its argument prototype would still apply. */
44490 /* The GNU C library defines this for functions which it implements
44491 to always fail with ENOSYS. Some functions are actually named
44492 something starting with __ and the normal name is an alias. */
44493 #if defined (__stub_openlog) || defined (__stub___openlog)
44496 char (*f) () = openlog;
44505 return f != openlog;
44510 rm -f conftest.$ac_objext conftest$ac_exeext
44511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44512 (eval $ac_link) 2>conftest.er1
44514 grep -v '^ *+' conftest.er1 >conftest.err
44516 cat conftest.err >&5
44517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518 (exit $ac_status); } &&
44519 { ac_try='test -z "$ac_c_werror_flag"
44520 || test ! -s conftest.err'
44521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44522 (eval $ac_try) 2>&5
44524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44525 (exit $ac_status); }; } &&
44526 { ac_try='test -s conftest$ac_exeext'
44527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44528 (eval $ac_try) 2>&5
44530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44531 (exit $ac_status); }; }; then
44532 ac_cv_func_openlog=yes
44534 echo "$as_me: failed program was:" >&5
44535 sed 's/^/| /' conftest.$ac_ext >&5
44537 ac_cv_func_openlog=no
44539 rm -f conftest.err conftest.$ac_objext \
44540 conftest$ac_exeext conftest.$ac_ext
44542 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44543 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44545 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44546 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44547 echo "$as_me: error: could not find syslog" >&2;}
44548 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44550 ol_enable_syslog=$ac_cv_func_openlog
44555 if test $ol_enable_sql != no ; then
44558 for ac_header in sql.h sqlext.h
44560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44562 echo "$as_me:$LINENO: checking for $ac_header" >&5
44563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44565 echo $ECHO_N "(cached) $ECHO_C" >&6
44567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44570 # Is the header compilable?
44571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44573 cat >conftest.$ac_ext <<_ACEOF
44576 cat confdefs.h >>conftest.$ac_ext
44577 cat >>conftest.$ac_ext <<_ACEOF
44578 /* end confdefs.h. */
44579 $ac_includes_default
44580 #include <$ac_header>
44582 rm -f conftest.$ac_objext
44583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44584 (eval $ac_compile) 2>conftest.er1
44586 grep -v '^ *+' conftest.er1 >conftest.err
44588 cat conftest.err >&5
44589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44590 (exit $ac_status); } &&
44591 { ac_try='test -z "$ac_c_werror_flag"
44592 || test ! -s conftest.err'
44593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44594 (eval $ac_try) 2>&5
44596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44597 (exit $ac_status); }; } &&
44598 { ac_try='test -s conftest.$ac_objext'
44599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44600 (eval $ac_try) 2>&5
44602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603 (exit $ac_status); }; }; then
44604 ac_header_compiler=yes
44606 echo "$as_me: failed program was:" >&5
44607 sed 's/^/| /' conftest.$ac_ext >&5
44609 ac_header_compiler=no
44611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44613 echo "${ECHO_T}$ac_header_compiler" >&6
44615 # Is the header present?
44616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44618 cat >conftest.$ac_ext <<_ACEOF
44621 cat confdefs.h >>conftest.$ac_ext
44622 cat >>conftest.$ac_ext <<_ACEOF
44623 /* end confdefs.h. */
44624 #include <$ac_header>
44626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44629 grep -v '^ *+' conftest.er1 >conftest.err
44631 cat conftest.err >&5
44632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44633 (exit $ac_status); } >/dev/null; then
44634 if test -s conftest.err; then
44635 ac_cpp_err=$ac_c_preproc_warn_flag
44636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44643 if test -z "$ac_cpp_err"; then
44644 ac_header_preproc=yes
44646 echo "$as_me: failed program was:" >&5
44647 sed 's/^/| /' conftest.$ac_ext >&5
44649 ac_header_preproc=no
44651 rm -f conftest.err conftest.$ac_ext
44652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44653 echo "${ECHO_T}$ac_header_preproc" >&6
44655 # So? What about this header?
44656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44662 ac_header_preproc=yes
44665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44679 ## ------------------------------------------ ##
44680 ## Report this to the AC_PACKAGE_NAME lists. ##
44681 ## ------------------------------------------ ##
44684 sed "s/^/$as_me: WARNING: /" >&2
44687 echo "$as_me:$LINENO: checking for $ac_header" >&5
44688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44690 echo $ECHO_N "(cached) $ECHO_C" >&6
44692 eval "$as_ac_Header=\$ac_header_preproc"
44694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44699 cat >>confdefs.h <<_ACEOF
44700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44705 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44706 echo "$as_me: error: could not locate SQL headers" >&2;}
44707 { (exit 1); exit 1; }; }
44715 LIBS="$LTHREAD_LIBS"
44717 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44718 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44719 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44720 echo $ECHO_N "(cached) $ECHO_C" >&6
44722 ac_check_lib_save_LIBS=$LIBS
44723 LIBS="-liodbc $LIBS"
44724 cat >conftest.$ac_ext <<_ACEOF
44727 cat confdefs.h >>conftest.$ac_ext
44728 cat >>conftest.$ac_ext <<_ACEOF
44729 /* end confdefs.h. */
44731 /* Override any gcc2 internal prototype to avoid an error. */
44735 /* We use char because int might match the return type of a gcc2
44736 builtin and then its argument prototype would still apply. */
44737 char SQLDriverConnect ();
44741 SQLDriverConnect ();
44746 rm -f conftest.$ac_objext conftest$ac_exeext
44747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44748 (eval $ac_link) 2>conftest.er1
44750 grep -v '^ *+' conftest.er1 >conftest.err
44752 cat conftest.err >&5
44753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44754 (exit $ac_status); } &&
44755 { ac_try='test -z "$ac_c_werror_flag"
44756 || test ! -s conftest.err'
44757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44758 (eval $ac_try) 2>&5
44760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44761 (exit $ac_status); }; } &&
44762 { ac_try='test -s conftest$ac_exeext'
44763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44764 (eval $ac_try) 2>&5
44766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44767 (exit $ac_status); }; }; then
44768 ac_cv_lib_iodbc_SQLDriverConnect=yes
44770 echo "$as_me: failed program was:" >&5
44771 sed 's/^/| /' conftest.$ac_ext >&5
44773 ac_cv_lib_iodbc_SQLDriverConnect=no
44775 rm -f conftest.err conftest.$ac_objext \
44776 conftest$ac_exeext conftest.$ac_ext
44777 LIBS=$ac_check_lib_save_LIBS
44779 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44780 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44781 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44787 if test $have_iodbc = yes ; then
44788 ol_link_sql="-liodbc"
44790 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44791 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44792 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44793 echo $ECHO_N "(cached) $ECHO_C" >&6
44795 ac_check_lib_save_LIBS=$LIBS
44796 LIBS="-lodbc $LIBS"
44797 cat >conftest.$ac_ext <<_ACEOF
44800 cat confdefs.h >>conftest.$ac_ext
44801 cat >>conftest.$ac_ext <<_ACEOF
44802 /* end confdefs.h. */
44804 /* Override any gcc2 internal prototype to avoid an error. */
44808 /* We use char because int might match the return type of a gcc2
44809 builtin and then its argument prototype would still apply. */
44810 char SQLDriverConnect ();
44814 SQLDriverConnect ();
44819 rm -f conftest.$ac_objext conftest$ac_exeext
44820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44821 (eval $ac_link) 2>conftest.er1
44823 grep -v '^ *+' conftest.er1 >conftest.err
44825 cat conftest.err >&5
44826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44827 (exit $ac_status); } &&
44828 { ac_try='test -z "$ac_c_werror_flag"
44829 || test ! -s conftest.err'
44830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44831 (eval $ac_try) 2>&5
44833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44834 (exit $ac_status); }; } &&
44835 { ac_try='test -s conftest$ac_exeext'
44836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44837 (eval $ac_try) 2>&5
44839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44840 (exit $ac_status); }; }; then
44841 ac_cv_lib_odbc_SQLDriverConnect=yes
44843 echo "$as_me: failed program was:" >&5
44844 sed 's/^/| /' conftest.$ac_ext >&5
44846 ac_cv_lib_odbc_SQLDriverConnect=no
44848 rm -f conftest.err conftest.$ac_objext \
44849 conftest$ac_exeext conftest.$ac_ext
44850 LIBS=$ac_check_lib_save_LIBS
44852 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
44853 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
44854 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
44860 if test $have_odbc = yes ; then
44861 ol_link_sql="-lodbc"
44867 if test $ol_link_sql != no ; then
44868 SLAPD_SQL_LIBS="$ol_link_sql"
44870 elif test $ol_enable_sql != auto ; then
44871 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
44872 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
44873 { (exit 1); exit 1; }; }
44880 if test $ol_with_cyrus_sasl != no ; then
44883 for ac_header in sasl/sasl.h sasl.h
44885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44887 echo "$as_me:$LINENO: checking for $ac_header" >&5
44888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44890 echo $ECHO_N "(cached) $ECHO_C" >&6
44892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44895 # Is the header compilable?
44896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44898 cat >conftest.$ac_ext <<_ACEOF
44901 cat confdefs.h >>conftest.$ac_ext
44902 cat >>conftest.$ac_ext <<_ACEOF
44903 /* end confdefs.h. */
44904 $ac_includes_default
44905 #include <$ac_header>
44907 rm -f conftest.$ac_objext
44908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44909 (eval $ac_compile) 2>conftest.er1
44911 grep -v '^ *+' conftest.er1 >conftest.err
44913 cat conftest.err >&5
44914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44915 (exit $ac_status); } &&
44916 { ac_try='test -z "$ac_c_werror_flag"
44917 || test ! -s conftest.err'
44918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44919 (eval $ac_try) 2>&5
44921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44922 (exit $ac_status); }; } &&
44923 { ac_try='test -s conftest.$ac_objext'
44924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44925 (eval $ac_try) 2>&5
44927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44928 (exit $ac_status); }; }; then
44929 ac_header_compiler=yes
44931 echo "$as_me: failed program was:" >&5
44932 sed 's/^/| /' conftest.$ac_ext >&5
44934 ac_header_compiler=no
44936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44938 echo "${ECHO_T}$ac_header_compiler" >&6
44940 # Is the header present?
44941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44943 cat >conftest.$ac_ext <<_ACEOF
44946 cat confdefs.h >>conftest.$ac_ext
44947 cat >>conftest.$ac_ext <<_ACEOF
44948 /* end confdefs.h. */
44949 #include <$ac_header>
44951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44954 grep -v '^ *+' conftest.er1 >conftest.err
44956 cat conftest.err >&5
44957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44958 (exit $ac_status); } >/dev/null; then
44959 if test -s conftest.err; then
44960 ac_cpp_err=$ac_c_preproc_warn_flag
44961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44968 if test -z "$ac_cpp_err"; then
44969 ac_header_preproc=yes
44971 echo "$as_me: failed program was:" >&5
44972 sed 's/^/| /' conftest.$ac_ext >&5
44974 ac_header_preproc=no
44976 rm -f conftest.err conftest.$ac_ext
44977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44978 echo "${ECHO_T}$ac_header_preproc" >&6
44980 # So? What about this header?
44981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44987 ac_header_preproc=yes
44990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45004 ## ------------------------------------------ ##
45005 ## Report this to the AC_PACKAGE_NAME lists. ##
45006 ## ------------------------------------------ ##
45009 sed "s/^/$as_me: WARNING: /" >&2
45012 echo "$as_me:$LINENO: checking for $ac_header" >&5
45013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45015 echo $ECHO_N "(cached) $ECHO_C" >&6
45017 eval "$as_ac_Header=\$ac_header_preproc"
45019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45024 cat >>confdefs.h <<_ACEOF
45025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45033 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45034 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45035 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45036 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45037 echo $ECHO_N "(cached) $ECHO_C" >&6
45039 ac_check_lib_save_LIBS=$LIBS
45040 LIBS="-lsasl2 $LIBS"
45041 cat >conftest.$ac_ext <<_ACEOF
45044 cat confdefs.h >>conftest.$ac_ext
45045 cat >>conftest.$ac_ext <<_ACEOF
45046 /* end confdefs.h. */
45048 /* Override any gcc2 internal prototype to avoid an error. */
45052 /* We use char because int might match the return type of a gcc2
45053 builtin and then its argument prototype would still apply. */
45054 char sasl_client_init ();
45058 sasl_client_init ();
45063 rm -f conftest.$ac_objext conftest$ac_exeext
45064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45065 (eval $ac_link) 2>conftest.er1
45067 grep -v '^ *+' conftest.er1 >conftest.err
45069 cat conftest.err >&5
45070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45071 (exit $ac_status); } &&
45072 { ac_try='test -z "$ac_c_werror_flag"
45073 || test ! -s conftest.err'
45074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45075 (eval $ac_try) 2>&5
45077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45078 (exit $ac_status); }; } &&
45079 { ac_try='test -s conftest$ac_exeext'
45080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45081 (eval $ac_try) 2>&5
45083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45084 (exit $ac_status); }; }; then
45085 ac_cv_lib_sasl2_sasl_client_init=yes
45087 echo "$as_me: failed program was:" >&5
45088 sed 's/^/| /' conftest.$ac_ext >&5
45090 ac_cv_lib_sasl2_sasl_client_init=no
45092 rm -f conftest.err conftest.$ac_objext \
45093 conftest$ac_exeext conftest.$ac_ext
45094 LIBS=$ac_check_lib_save_LIBS
45096 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45097 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45098 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45099 ol_link_sasl="-lsasl2"
45101 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45102 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45103 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45104 echo $ECHO_N "(cached) $ECHO_C" >&6
45106 ac_check_lib_save_LIBS=$LIBS
45107 LIBS="-lsasl $LIBS"
45108 cat >conftest.$ac_ext <<_ACEOF
45111 cat confdefs.h >>conftest.$ac_ext
45112 cat >>conftest.$ac_ext <<_ACEOF
45113 /* end confdefs.h. */
45115 /* Override any gcc2 internal prototype to avoid an error. */
45119 /* We use char because int might match the return type of a gcc2
45120 builtin and then its argument prototype would still apply. */
45121 char sasl_client_init ();
45125 sasl_client_init ();
45130 rm -f conftest.$ac_objext conftest$ac_exeext
45131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45132 (eval $ac_link) 2>conftest.er1
45134 grep -v '^ *+' conftest.er1 >conftest.err
45136 cat conftest.err >&5
45137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45138 (exit $ac_status); } &&
45139 { ac_try='test -z "$ac_c_werror_flag"
45140 || test ! -s conftest.err'
45141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45142 (eval $ac_try) 2>&5
45144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45145 (exit $ac_status); }; } &&
45146 { ac_try='test -s conftest$ac_exeext'
45147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45148 (eval $ac_try) 2>&5
45150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45151 (exit $ac_status); }; }; then
45152 ac_cv_lib_sasl_sasl_client_init=yes
45154 echo "$as_me: failed program was:" >&5
45155 sed 's/^/| /' conftest.$ac_ext >&5
45157 ac_cv_lib_sasl_sasl_client_init=no
45159 rm -f conftest.err conftest.$ac_objext \
45160 conftest$ac_exeext conftest.$ac_ext
45161 LIBS=$ac_check_lib_save_LIBS
45163 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45164 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45165 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45166 ol_link_sasl="-lsasl"
45173 if test $ol_link_sasl = no ; then
45174 if test $ol_with_cyrus_sasl != auto ; then
45175 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45176 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45177 { (exit 1); exit 1; }; }
45179 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45180 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45181 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45182 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45183 if test $ol_link_tls = no ; then
45184 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45185 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45189 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45190 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45191 if test "${ol_cv_sasl_compat+set}" = set; then
45192 echo $ECHO_N "(cached) $ECHO_C" >&6
45195 cat >conftest.$ac_ext <<_ACEOF
45198 cat confdefs.h >>conftest.$ac_ext
45199 cat >>conftest.$ac_ext <<_ACEOF
45200 /* end confdefs.h. */
45202 #ifdef HAVE_SASL_SASL_H
45203 #include <sasl/sasl.h>
45208 /* Require 2.1.15+ */
45209 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45210 char *__sasl_compat = "2.2+ or better okay (we guess)";
45211 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45212 && SASL_VERSION_STEP >=15
45213 char *__sasl_compat = "2.1.15+ or better okay";
45217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45218 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45219 ol_cv_sasl_compat=yes
45221 ol_cv_sasl_compat=no
45226 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45227 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45229 if test $ol_cv_sasl_compat = no ; then
45231 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45232 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45233 { (exit 1); exit 1; }; }
45237 cat >>confdefs.h <<\_ACEOF
45238 #define HAVE_CYRUS_SASL 1
45241 SASL_LIBS="$ol_link_sasl"
45242 if test $ol_enable_spasswd != no ; then
45243 ol_link_spasswd=yes
45246 ac_save_LIBS="$LIBS"
45247 LIBS="$LIBS $ol_link_sasl"
45248 echo "$as_me:$LINENO: checking for sasl_version" >&5
45249 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45250 if test "${ac_cv_func_sasl_version+set}" = set; then
45251 echo $ECHO_N "(cached) $ECHO_C" >&6
45253 cat >conftest.$ac_ext <<_ACEOF
45256 cat confdefs.h >>conftest.$ac_ext
45257 cat >>conftest.$ac_ext <<_ACEOF
45258 /* end confdefs.h. */
45259 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45261 #define sasl_version innocuous_sasl_version
45263 /* System header to define __stub macros and hopefully few prototypes,
45264 which can conflict with char sasl_version (); below.
45265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45266 <limits.h> exists even on freestanding compilers. */
45269 # include <limits.h>
45271 # include <assert.h>
45274 #undef sasl_version
45276 /* Override any gcc2 internal prototype to avoid an error. */
45281 /* We use char because int might match the return type of a gcc2
45282 builtin and then its argument prototype would still apply. */
45283 char sasl_version ();
45284 /* The GNU C library defines this for functions which it implements
45285 to always fail with ENOSYS. Some functions are actually named
45286 something starting with __ and the normal name is an alias. */
45287 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45290 char (*f) () = sasl_version;
45299 return f != sasl_version;
45304 rm -f conftest.$ac_objext conftest$ac_exeext
45305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45306 (eval $ac_link) 2>conftest.er1
45308 grep -v '^ *+' conftest.er1 >conftest.err
45310 cat conftest.err >&5
45311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45312 (exit $ac_status); } &&
45313 { ac_try='test -z "$ac_c_werror_flag"
45314 || test ! -s conftest.err'
45315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45316 (eval $ac_try) 2>&5
45318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45319 (exit $ac_status); }; } &&
45320 { ac_try='test -s conftest$ac_exeext'
45321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45322 (eval $ac_try) 2>&5
45324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45325 (exit $ac_status); }; }; then
45326 ac_cv_func_sasl_version=yes
45328 echo "$as_me: failed program was:" >&5
45329 sed 's/^/| /' conftest.$ac_ext >&5
45331 ac_cv_func_sasl_version=no
45333 rm -f conftest.err conftest.$ac_objext \
45334 conftest$ac_exeext conftest.$ac_ext
45336 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45337 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45338 if test $ac_cv_func_sasl_version = yes; then
45340 cat >>confdefs.h <<\_ACEOF
45341 #define HAVE_SASL_VERSION 1
45346 LIBS="$ac_save_LIBS"
45352 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45353 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45354 if test $ol_link_tls = no ; then
45355 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45356 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45360 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45362 if test -r /dev/urandom ; then
45363 dev="/dev/urandom";
45364 elif test -r /idev/urandom ; then
45365 dev="/idev/urandom";
45366 elif test -r /dev/srandom ; then
45367 dev="/dev/srandom";
45368 elif test -r /dev/random ; then
45370 elif test -r /idev/random ; then
45371 dev="/idev/random";
45374 if test $dev != no ; then
45376 cat >>confdefs.h <<_ACEOF
45377 #define URANDOM_DEVICE "$dev"
45384 if test $ol_with_fetch != no ; then
45386 LIBS="-lfetch -lcom_err $LIBS"
45387 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45388 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45389 if test "${ol_cv_lib_fetch+set}" = set; then
45390 echo $ECHO_N "(cached) $ECHO_C" >&6
45393 cat >conftest.$ac_ext <<_ACEOF
45396 cat confdefs.h >>conftest.$ac_ext
45397 cat >>conftest.$ac_ext <<_ACEOF
45398 /* end confdefs.h. */
45400 #include <sys/param.h>
45406 struct url *u = fetchParseURL("file:///");
45411 rm -f conftest.$ac_objext conftest$ac_exeext
45412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45413 (eval $ac_link) 2>conftest.er1
45415 grep -v '^ *+' conftest.er1 >conftest.err
45417 cat conftest.err >&5
45418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45419 (exit $ac_status); } &&
45420 { ac_try='test -z "$ac_c_werror_flag"
45421 || test ! -s conftest.err'
45422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45423 (eval $ac_try) 2>&5
45425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45426 (exit $ac_status); }; } &&
45427 { ac_try='test -s conftest$ac_exeext'
45428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45429 (eval $ac_try) 2>&5
45431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45432 (exit $ac_status); }; }; then
45433 ol_cv_lib_fetch=yes
45435 echo "$as_me: failed program was:" >&5
45436 sed 's/^/| /' conftest.$ac_ext >&5
45440 rm -f conftest.err conftest.$ac_objext \
45441 conftest$ac_exeext conftest.$ac_ext
45443 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45444 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45446 if test $ol_cv_lib_fetch != no ; then
45447 ol_link_fetch="-lfetch -lcom_err"
45449 cat >>confdefs.h <<\_ACEOF
45450 #define HAVE_FETCH 1
45456 if test $ol_cv_lib_fetch != no ; then
45457 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45458 ol_link_fetch=freebsd
45460 elif test $ol_with_fetch != auto ; then
45461 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45462 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45463 { (exit 1); exit 1; }; }
45467 if test $ol_enable_crypt != no ; then
45469 LIBS="$TLS_LIBS $LIBS"
45471 echo "$as_me:$LINENO: checking for crypt" >&5
45472 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45473 if test "${ac_cv_func_crypt+set}" = set; then
45474 echo $ECHO_N "(cached) $ECHO_C" >&6
45476 cat >conftest.$ac_ext <<_ACEOF
45479 cat confdefs.h >>conftest.$ac_ext
45480 cat >>conftest.$ac_ext <<_ACEOF
45481 /* end confdefs.h. */
45482 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45484 #define crypt innocuous_crypt
45486 /* System header to define __stub macros and hopefully few prototypes,
45487 which can conflict with char crypt (); below.
45488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45489 <limits.h> exists even on freestanding compilers. */
45492 # include <limits.h>
45494 # include <assert.h>
45499 /* Override any gcc2 internal prototype to avoid an error. */
45504 /* We use char because int might match the return type of a gcc2
45505 builtin and then its argument prototype would still apply. */
45507 /* The GNU C library defines this for functions which it implements
45508 to always fail with ENOSYS. Some functions are actually named
45509 something starting with __ and the normal name is an alias. */
45510 #if defined (__stub_crypt) || defined (__stub___crypt)
45513 char (*f) () = crypt;
45527 rm -f conftest.$ac_objext conftest$ac_exeext
45528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45529 (eval $ac_link) 2>conftest.er1
45531 grep -v '^ *+' conftest.er1 >conftest.err
45533 cat conftest.err >&5
45534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); } &&
45536 { ac_try='test -z "$ac_c_werror_flag"
45537 || test ! -s conftest.err'
45538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45539 (eval $ac_try) 2>&5
45541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45542 (exit $ac_status); }; } &&
45543 { ac_try='test -s conftest$ac_exeext'
45544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45545 (eval $ac_try) 2>&5
45547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 (exit $ac_status); }; }; then
45549 ac_cv_func_crypt=yes
45551 echo "$as_me: failed program was:" >&5
45552 sed 's/^/| /' conftest.$ac_ext >&5
45554 ac_cv_func_crypt=no
45556 rm -f conftest.err conftest.$ac_objext \
45557 conftest$ac_exeext conftest.$ac_ext
45559 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45560 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45561 if test $ac_cv_func_crypt = yes; then
45566 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45567 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45568 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45569 echo $ECHO_N "(cached) $ECHO_C" >&6
45571 ac_check_lib_save_LIBS=$LIBS
45572 LIBS="-lcrypt $LIBS"
45573 cat >conftest.$ac_ext <<_ACEOF
45576 cat confdefs.h >>conftest.$ac_ext
45577 cat >>conftest.$ac_ext <<_ACEOF
45578 /* end confdefs.h. */
45580 /* Override any gcc2 internal prototype to avoid an error. */
45584 /* We use char because int might match the return type of a gcc2
45585 builtin and then its argument prototype would still apply. */
45595 rm -f conftest.$ac_objext conftest$ac_exeext
45596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45597 (eval $ac_link) 2>conftest.er1
45599 grep -v '^ *+' conftest.er1 >conftest.err
45601 cat conftest.err >&5
45602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45603 (exit $ac_status); } &&
45604 { ac_try='test -z "$ac_c_werror_flag"
45605 || test ! -s conftest.err'
45606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45607 (eval $ac_try) 2>&5
45609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45610 (exit $ac_status); }; } &&
45611 { ac_try='test -s conftest$ac_exeext'
45612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45613 (eval $ac_try) 2>&5
45615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45616 (exit $ac_status); }; }; then
45617 ac_cv_lib_crypt_crypt=yes
45619 echo "$as_me: failed program was:" >&5
45620 sed 's/^/| /' conftest.$ac_ext >&5
45622 ac_cv_lib_crypt_crypt=no
45624 rm -f conftest.err conftest.$ac_objext \
45625 conftest$ac_exeext conftest.$ac_ext
45626 LIBS=$ac_check_lib_save_LIBS
45628 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45629 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45630 if test $ac_cv_lib_crypt_crypt = yes; then
45631 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45642 if test $have_crypt = yes ; then
45644 cat >>confdefs.h <<\_ACEOF
45645 #define HAVE_CRYPT 1
45649 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45650 echo "$as_me: WARNING: could not find crypt" >&2;}
45651 if test $ol_enable_crypt = yes ; then
45652 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45653 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45654 { (exit 1); exit 1; }; }
45657 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45658 echo "$as_me: WARNING: disabling crypt support" >&2;}
45663 if test $ol_enable_proctitle != no ; then
45664 echo "$as_me:$LINENO: checking for setproctitle" >&5
45665 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45666 if test "${ac_cv_func_setproctitle+set}" = set; then
45667 echo $ECHO_N "(cached) $ECHO_C" >&6
45669 cat >conftest.$ac_ext <<_ACEOF
45672 cat confdefs.h >>conftest.$ac_ext
45673 cat >>conftest.$ac_ext <<_ACEOF
45674 /* end confdefs.h. */
45675 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45677 #define setproctitle innocuous_setproctitle
45679 /* System header to define __stub macros and hopefully few prototypes,
45680 which can conflict with char setproctitle (); below.
45681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45682 <limits.h> exists even on freestanding compilers. */
45685 # include <limits.h>
45687 # include <assert.h>
45690 #undef setproctitle
45692 /* Override any gcc2 internal prototype to avoid an error. */
45697 /* We use char because int might match the return type of a gcc2
45698 builtin and then its argument prototype would still apply. */
45699 char setproctitle ();
45700 /* The GNU C library defines this for functions which it implements
45701 to always fail with ENOSYS. Some functions are actually named
45702 something starting with __ and the normal name is an alias. */
45703 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45706 char (*f) () = setproctitle;
45715 return f != setproctitle;
45720 rm -f conftest.$ac_objext conftest$ac_exeext
45721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45722 (eval $ac_link) 2>conftest.er1
45724 grep -v '^ *+' conftest.er1 >conftest.err
45726 cat conftest.err >&5
45727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45728 (exit $ac_status); } &&
45729 { ac_try='test -z "$ac_c_werror_flag"
45730 || test ! -s conftest.err'
45731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45732 (eval $ac_try) 2>&5
45734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45735 (exit $ac_status); }; } &&
45736 { ac_try='test -s conftest$ac_exeext'
45737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45738 (eval $ac_try) 2>&5
45740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45741 (exit $ac_status); }; }; then
45742 ac_cv_func_setproctitle=yes
45744 echo "$as_me: failed program was:" >&5
45745 sed 's/^/| /' conftest.$ac_ext >&5
45747 ac_cv_func_setproctitle=no
45749 rm -f conftest.err conftest.$ac_objext \
45750 conftest$ac_exeext conftest.$ac_ext
45752 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45753 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45754 if test $ac_cv_func_setproctitle = yes; then
45755 have_setproctitle=yes
45758 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45759 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45760 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45761 echo $ECHO_N "(cached) $ECHO_C" >&6
45763 ac_check_lib_save_LIBS=$LIBS
45764 LIBS="-lutil $LIBS"
45765 cat >conftest.$ac_ext <<_ACEOF
45768 cat confdefs.h >>conftest.$ac_ext
45769 cat >>conftest.$ac_ext <<_ACEOF
45770 /* end confdefs.h. */
45772 /* Override any gcc2 internal prototype to avoid an error. */
45776 /* We use char because int might match the return type of a gcc2
45777 builtin and then its argument prototype would still apply. */
45778 char setproctitle ();
45787 rm -f conftest.$ac_objext conftest$ac_exeext
45788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45789 (eval $ac_link) 2>conftest.er1
45791 grep -v '^ *+' conftest.er1 >conftest.err
45793 cat conftest.err >&5
45794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45795 (exit $ac_status); } &&
45796 { ac_try='test -z "$ac_c_werror_flag"
45797 || test ! -s conftest.err'
45798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45799 (eval $ac_try) 2>&5
45801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45802 (exit $ac_status); }; } &&
45803 { ac_try='test -s conftest$ac_exeext'
45804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45805 (eval $ac_try) 2>&5
45807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45808 (exit $ac_status); }; }; then
45809 ac_cv_lib_util_setproctitle=yes
45811 echo "$as_me: failed program was:" >&5
45812 sed 's/^/| /' conftest.$ac_ext >&5
45814 ac_cv_lib_util_setproctitle=no
45816 rm -f conftest.err conftest.$ac_objext \
45817 conftest$ac_exeext conftest.$ac_ext
45818 LIBS=$ac_check_lib_save_LIBS
45820 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
45821 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
45822 if test $ac_cv_lib_util_setproctitle = yes; then
45823 have_setproctitle=yes
45824 LUTIL_LIBS="$LUTIL_LIBS -lutil"
45826 have_setproctitle=no
45828 "setproctitle.$ac_objext" | \
45829 *" setproctitle.$ac_objext" | \
45830 "setproctitle.$ac_objext "* | \
45831 *" setproctitle.$ac_objext "* ) ;;
45832 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
45835 LIBSRCS="$LIBSRCS setproctitle.c"
45841 if test $have_setproctitle = yes ; then
45843 cat >>confdefs.h <<\_ACEOF
45844 #define HAVE_SETPROCTITLE 1
45850 if test $ol_enable_slp != no ; then
45852 for ac_header in slp.h
45854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45856 echo "$as_me:$LINENO: checking for $ac_header" >&5
45857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45859 echo $ECHO_N "(cached) $ECHO_C" >&6
45861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45864 # Is the header compilable?
45865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45867 cat >conftest.$ac_ext <<_ACEOF
45870 cat confdefs.h >>conftest.$ac_ext
45871 cat >>conftest.$ac_ext <<_ACEOF
45872 /* end confdefs.h. */
45873 $ac_includes_default
45874 #include <$ac_header>
45876 rm -f conftest.$ac_objext
45877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45878 (eval $ac_compile) 2>conftest.er1
45880 grep -v '^ *+' conftest.er1 >conftest.err
45882 cat conftest.err >&5
45883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45884 (exit $ac_status); } &&
45885 { ac_try='test -z "$ac_c_werror_flag"
45886 || test ! -s conftest.err'
45887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45888 (eval $ac_try) 2>&5
45890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45891 (exit $ac_status); }; } &&
45892 { ac_try='test -s conftest.$ac_objext'
45893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45894 (eval $ac_try) 2>&5
45896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45897 (exit $ac_status); }; }; then
45898 ac_header_compiler=yes
45900 echo "$as_me: failed program was:" >&5
45901 sed 's/^/| /' conftest.$ac_ext >&5
45903 ac_header_compiler=no
45905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45907 echo "${ECHO_T}$ac_header_compiler" >&6
45909 # Is the header present?
45910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45912 cat >conftest.$ac_ext <<_ACEOF
45915 cat confdefs.h >>conftest.$ac_ext
45916 cat >>conftest.$ac_ext <<_ACEOF
45917 /* end confdefs.h. */
45918 #include <$ac_header>
45920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45923 grep -v '^ *+' conftest.er1 >conftest.err
45925 cat conftest.err >&5
45926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45927 (exit $ac_status); } >/dev/null; then
45928 if test -s conftest.err; then
45929 ac_cpp_err=$ac_c_preproc_warn_flag
45930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45937 if test -z "$ac_cpp_err"; then
45938 ac_header_preproc=yes
45940 echo "$as_me: failed program was:" >&5
45941 sed 's/^/| /' conftest.$ac_ext >&5
45943 ac_header_preproc=no
45945 rm -f conftest.err conftest.$ac_ext
45946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45947 echo "${ECHO_T}$ac_header_preproc" >&6
45949 # So? What about this header?
45950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45956 ac_header_preproc=yes
45959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45973 ## ------------------------------------------ ##
45974 ## Report this to the AC_PACKAGE_NAME lists. ##
45975 ## ------------------------------------------ ##
45978 sed "s/^/$as_me: WARNING: /" >&2
45981 echo "$as_me:$LINENO: checking for $ac_header" >&5
45982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45984 echo $ECHO_N "(cached) $ECHO_C" >&6
45986 eval "$as_ac_Header=\$ac_header_preproc"
45988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45993 cat >>confdefs.h <<_ACEOF
45994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46002 if test $ac_cv_header_slp_h = yes ; then
46003 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46004 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46005 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46006 echo $ECHO_N "(cached) $ECHO_C" >&6
46008 ac_check_lib_save_LIBS=$LIBS
46010 cat >conftest.$ac_ext <<_ACEOF
46013 cat confdefs.h >>conftest.$ac_ext
46014 cat >>conftest.$ac_ext <<_ACEOF
46015 /* end confdefs.h. */
46017 /* Override any gcc2 internal prototype to avoid an error. */
46021 /* We use char because int might match the return type of a gcc2
46022 builtin and then its argument prototype would still apply. */
46032 rm -f conftest.$ac_objext conftest$ac_exeext
46033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46034 (eval $ac_link) 2>conftest.er1
46036 grep -v '^ *+' conftest.er1 >conftest.err
46038 cat conftest.err >&5
46039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46040 (exit $ac_status); } &&
46041 { ac_try='test -z "$ac_c_werror_flag"
46042 || test ! -s conftest.err'
46043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46044 (eval $ac_try) 2>&5
46046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047 (exit $ac_status); }; } &&
46048 { ac_try='test -s conftest$ac_exeext'
46049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46050 (eval $ac_try) 2>&5
46052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46053 (exit $ac_status); }; }; then
46054 ac_cv_lib_slp_SLPOpen=yes
46056 echo "$as_me: failed program was:" >&5
46057 sed 's/^/| /' conftest.$ac_ext >&5
46059 ac_cv_lib_slp_SLPOpen=no
46061 rm -f conftest.err conftest.$ac_objext \
46062 conftest$ac_exeext conftest.$ac_ext
46063 LIBS=$ac_check_lib_save_LIBS
46065 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46066 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46067 if test $ac_cv_lib_slp_SLPOpen = yes; then
46073 if test $have_slp = yes ; then
46075 cat >>confdefs.h <<\_ACEOF
46079 SLAPD_SLP_LIBS=-lslp
46082 elif test $ol_enable_slp = yes ; then
46083 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46084 echo "$as_me: error: SLP not found" >&2;}
46085 { (exit 1); exit 1; }; }
46089 if test "$ol_with_multiple_precision" != "no" ; then
46095 for ac_header in openssl/bn.h bn.h
46097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46099 echo "$as_me:$LINENO: checking for $ac_header" >&5
46100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46102 echo $ECHO_N "(cached) $ECHO_C" >&6
46104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46107 # Is the header compilable?
46108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46110 cat >conftest.$ac_ext <<_ACEOF
46113 cat confdefs.h >>conftest.$ac_ext
46114 cat >>conftest.$ac_ext <<_ACEOF
46115 /* end confdefs.h. */
46116 $ac_includes_default
46117 #include <$ac_header>
46119 rm -f conftest.$ac_objext
46120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46121 (eval $ac_compile) 2>conftest.er1
46123 grep -v '^ *+' conftest.er1 >conftest.err
46125 cat conftest.err >&5
46126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46127 (exit $ac_status); } &&
46128 { ac_try='test -z "$ac_c_werror_flag"
46129 || test ! -s conftest.err'
46130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46131 (eval $ac_try) 2>&5
46133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46134 (exit $ac_status); }; } &&
46135 { ac_try='test -s conftest.$ac_objext'
46136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46137 (eval $ac_try) 2>&5
46139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46140 (exit $ac_status); }; }; then
46141 ac_header_compiler=yes
46143 echo "$as_me: failed program was:" >&5
46144 sed 's/^/| /' conftest.$ac_ext >&5
46146 ac_header_compiler=no
46148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46150 echo "${ECHO_T}$ac_header_compiler" >&6
46152 # Is the header present?
46153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46155 cat >conftest.$ac_ext <<_ACEOF
46158 cat confdefs.h >>conftest.$ac_ext
46159 cat >>conftest.$ac_ext <<_ACEOF
46160 /* end confdefs.h. */
46161 #include <$ac_header>
46163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46166 grep -v '^ *+' conftest.er1 >conftest.err
46168 cat conftest.err >&5
46169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46170 (exit $ac_status); } >/dev/null; then
46171 if test -s conftest.err; then
46172 ac_cpp_err=$ac_c_preproc_warn_flag
46173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46180 if test -z "$ac_cpp_err"; then
46181 ac_header_preproc=yes
46183 echo "$as_me: failed program was:" >&5
46184 sed 's/^/| /' conftest.$ac_ext >&5
46186 ac_header_preproc=no
46188 rm -f conftest.err conftest.$ac_ext
46189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46190 echo "${ECHO_T}$ac_header_preproc" >&6
46192 # So? What about this header?
46193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46199 ac_header_preproc=yes
46202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46216 ## ------------------------------------------ ##
46217 ## Report this to the AC_PACKAGE_NAME lists. ##
46218 ## ------------------------------------------ ##
46221 sed "s/^/$as_me: WARNING: /" >&2
46224 echo "$as_me:$LINENO: checking for $ac_header" >&5
46225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46227 echo $ECHO_N "(cached) $ECHO_C" >&6
46229 eval "$as_ac_Header=\$ac_header_preproc"
46231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46236 cat >>confdefs.h <<_ACEOF
46237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46246 for ac_header in openssl/crypto.h crypto.h
46248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46250 echo "$as_me:$LINENO: checking for $ac_header" >&5
46251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46253 echo $ECHO_N "(cached) $ECHO_C" >&6
46255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46258 # Is the header compilable?
46259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46261 cat >conftest.$ac_ext <<_ACEOF
46264 cat confdefs.h >>conftest.$ac_ext
46265 cat >>conftest.$ac_ext <<_ACEOF
46266 /* end confdefs.h. */
46267 $ac_includes_default
46268 #include <$ac_header>
46270 rm -f conftest.$ac_objext
46271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46272 (eval $ac_compile) 2>conftest.er1
46274 grep -v '^ *+' conftest.er1 >conftest.err
46276 cat conftest.err >&5
46277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46278 (exit $ac_status); } &&
46279 { ac_try='test -z "$ac_c_werror_flag"
46280 || test ! -s conftest.err'
46281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46282 (eval $ac_try) 2>&5
46284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46285 (exit $ac_status); }; } &&
46286 { ac_try='test -s conftest.$ac_objext'
46287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46288 (eval $ac_try) 2>&5
46290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46291 (exit $ac_status); }; }; then
46292 ac_header_compiler=yes
46294 echo "$as_me: failed program was:" >&5
46295 sed 's/^/| /' conftest.$ac_ext >&5
46297 ac_header_compiler=no
46299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46301 echo "${ECHO_T}$ac_header_compiler" >&6
46303 # Is the header present?
46304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46306 cat >conftest.$ac_ext <<_ACEOF
46309 cat confdefs.h >>conftest.$ac_ext
46310 cat >>conftest.$ac_ext <<_ACEOF
46311 /* end confdefs.h. */
46312 #include <$ac_header>
46314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46317 grep -v '^ *+' conftest.er1 >conftest.err
46319 cat conftest.err >&5
46320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46321 (exit $ac_status); } >/dev/null; then
46322 if test -s conftest.err; then
46323 ac_cpp_err=$ac_c_preproc_warn_flag
46324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46331 if test -z "$ac_cpp_err"; then
46332 ac_header_preproc=yes
46334 echo "$as_me: failed program was:" >&5
46335 sed 's/^/| /' conftest.$ac_ext >&5
46337 ac_header_preproc=no
46339 rm -f conftest.err conftest.$ac_ext
46340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46341 echo "${ECHO_T}$ac_header_preproc" >&6
46343 # So? What about this header?
46344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46350 ac_header_preproc=yes
46353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46367 ## ------------------------------------------ ##
46368 ## Report this to the AC_PACKAGE_NAME lists. ##
46369 ## ------------------------------------------ ##
46372 sed "s/^/$as_me: WARNING: /" >&2
46375 echo "$as_me:$LINENO: checking for $ac_header" >&5
46376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46378 echo $ECHO_N "(cached) $ECHO_C" >&6
46380 eval "$as_ac_Header=\$ac_header_preproc"
46382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46387 cat >>confdefs.h <<_ACEOF
46388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46396 for ac_header in gmp.h
46398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46400 echo "$as_me:$LINENO: checking for $ac_header" >&5
46401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46403 echo $ECHO_N "(cached) $ECHO_C" >&6
46405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46408 # Is the header compilable?
46409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46411 cat >conftest.$ac_ext <<_ACEOF
46414 cat confdefs.h >>conftest.$ac_ext
46415 cat >>conftest.$ac_ext <<_ACEOF
46416 /* end confdefs.h. */
46417 $ac_includes_default
46418 #include <$ac_header>
46420 rm -f conftest.$ac_objext
46421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46422 (eval $ac_compile) 2>conftest.er1
46424 grep -v '^ *+' conftest.er1 >conftest.err
46426 cat conftest.err >&5
46427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46428 (exit $ac_status); } &&
46429 { ac_try='test -z "$ac_c_werror_flag"
46430 || test ! -s conftest.err'
46431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46432 (eval $ac_try) 2>&5
46434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46435 (exit $ac_status); }; } &&
46436 { ac_try='test -s conftest.$ac_objext'
46437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46438 (eval $ac_try) 2>&5
46440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46441 (exit $ac_status); }; }; then
46442 ac_header_compiler=yes
46444 echo "$as_me: failed program was:" >&5
46445 sed 's/^/| /' conftest.$ac_ext >&5
46447 ac_header_compiler=no
46449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46451 echo "${ECHO_T}$ac_header_compiler" >&6
46453 # Is the header present?
46454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46456 cat >conftest.$ac_ext <<_ACEOF
46459 cat confdefs.h >>conftest.$ac_ext
46460 cat >>conftest.$ac_ext <<_ACEOF
46461 /* end confdefs.h. */
46462 #include <$ac_header>
46464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46467 grep -v '^ *+' conftest.er1 >conftest.err
46469 cat conftest.err >&5
46470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46471 (exit $ac_status); } >/dev/null; then
46472 if test -s conftest.err; then
46473 ac_cpp_err=$ac_c_preproc_warn_flag
46474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46481 if test -z "$ac_cpp_err"; then
46482 ac_header_preproc=yes
46484 echo "$as_me: failed program was:" >&5
46485 sed 's/^/| /' conftest.$ac_ext >&5
46487 ac_header_preproc=no
46489 rm -f conftest.err conftest.$ac_ext
46490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46491 echo "${ECHO_T}$ac_header_preproc" >&6
46493 # So? What about this header?
46494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46500 ac_header_preproc=yes
46503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46517 ## ------------------------------------------ ##
46518 ## Report this to the AC_PACKAGE_NAME lists. ##
46519 ## ------------------------------------------ ##
46522 sed "s/^/$as_me: WARNING: /" >&2
46525 echo "$as_me:$LINENO: checking for $ac_header" >&5
46526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46528 echo $ECHO_N "(cached) $ECHO_C" >&6
46530 eval "$as_ac_Header=\$ac_header_preproc"
46532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46537 cat >>confdefs.h <<_ACEOF
46538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46546 if test "$ol_with_tls" = "found" ; then
46548 ol_have_crypto_h=no
46550 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46551 -o "$ac_cv_header_bn_h" = "yes" ; then
46555 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46556 -o "$ac_cv_header_crypto_h" = "yes" ; then
46557 ol_have_crypto_h=yes
46560 if test "$ol_have_bn_h" = "yes" \
46561 -a "$ol_have_crypto_h" = "yes" ; then
46566 if test $ac_cv_header_gmp_h = yes ; then
46567 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46568 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46569 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46570 echo $ECHO_N "(cached) $ECHO_C" >&6
46572 ac_check_lib_save_LIBS=$LIBS
46574 cat >conftest.$ac_ext <<_ACEOF
46577 cat confdefs.h >>conftest.$ac_ext
46578 cat >>conftest.$ac_ext <<_ACEOF
46579 /* end confdefs.h. */
46581 /* Override any gcc2 internal prototype to avoid an error. */
46585 /* We use char because int might match the return type of a gcc2
46586 builtin and then its argument prototype would still apply. */
46587 char __gmpz_add_ui ();
46596 rm -f conftest.$ac_objext conftest$ac_exeext
46597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46598 (eval $ac_link) 2>conftest.er1
46600 grep -v '^ *+' conftest.er1 >conftest.err
46602 cat conftest.err >&5
46603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46604 (exit $ac_status); } &&
46605 { ac_try='test -z "$ac_c_werror_flag"
46606 || test ! -s conftest.err'
46607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46608 (eval $ac_try) 2>&5
46610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46611 (exit $ac_status); }; } &&
46612 { ac_try='test -s conftest$ac_exeext'
46613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46614 (eval $ac_try) 2>&5
46616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46617 (exit $ac_status); }; }; then
46618 ac_cv_lib_gmp___gmpz_add_ui=yes
46620 echo "$as_me: failed program was:" >&5
46621 sed 's/^/| /' conftest.$ac_ext >&5
46623 ac_cv_lib_gmp___gmpz_add_ui=no
46625 rm -f conftest.err conftest.$ac_objext \
46626 conftest$ac_exeext conftest.$ac_ext
46627 LIBS=$ac_check_lib_save_LIBS
46629 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46630 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46631 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46637 if test $have_gmp = yes ; then
46642 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46643 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46645 ol_mp_support="none"
46646 case "$ol_with_multiple_precision" in
46648 if test "$ol_have_bignum" = "yes" ; then
46649 ol_mp_support="bignum"
46651 if test "$ol_have_gmp" = "yes" ; then
46652 ol_mp_support="gmp"
46657 if test "$ol_have_bignum" != "yes" ; then
46658 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46659 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46660 { (exit 1); exit 1; }; }
46662 ol_mp_support="bignum"
46665 if test "$ol_have_gmp" != "yes" ; then
46666 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46667 echo "$as_me: error: GMP not available" >&2;}
46668 { (exit 1); exit 1; }; }
46670 ol_mp_support="gmp"
46673 if test "$ol_have_bignum" = "yes" ; then
46674 ol_mp_support="bignum"
46675 elif test "$ol_have_gmp" = "yes" ; then
46676 ol_mp_support="gmp"
46678 { { echo "$as_me:$LINENO: error: not available" >&5
46679 echo "$as_me: error: not available" >&2;}
46680 { (exit 1); exit 1; }; }
46685 case "$ol_mp_support" in
46688 cat >>confdefs.h <<\_ACEOF
46689 #define HAVE_BIGNUM 1
46695 cat >>confdefs.h <<\_ACEOF
46699 SLAPD_GMP_LIBS=-lgmp
46705 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46706 echo "${ECHO_T}$ol_mp_support" >&6
46710 echo "$as_me:$LINENO: checking long long" >&5
46711 echo $ECHO_N "checking long long... $ECHO_C" >&6
46712 if test "${ol_cv_type_long_long+set}" = set; then
46713 echo $ECHO_N "(cached) $ECHO_C" >&6
46716 cat >conftest.$ac_ext <<_ACEOF
46719 cat confdefs.h >>conftest.$ac_ext
46720 cat >>conftest.$ac_ext <<_ACEOF
46721 /* end confdefs.h. */
46731 rm -f conftest.$ac_objext
46732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46733 (eval $ac_compile) 2>conftest.er1
46735 grep -v '^ *+' conftest.er1 >conftest.err
46737 cat conftest.err >&5
46738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46739 (exit $ac_status); } &&
46740 { ac_try='test -z "$ac_c_werror_flag"
46741 || test ! -s conftest.err'
46742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46743 (eval $ac_try) 2>&5
46745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46746 (exit $ac_status); }; } &&
46747 { ac_try='test -s conftest.$ac_objext'
46748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46749 (eval $ac_try) 2>&5
46751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46752 (exit $ac_status); }; }; then
46753 ol_cv_type_long_long=yes
46755 echo "$as_me: failed program was:" >&5
46756 sed 's/^/| /' conftest.$ac_ext >&5
46758 ol_cv_type_long_long=no
46760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46762 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46763 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46764 if test $ol_cv_type_long_long = yes; then
46766 cat >>confdefs.h <<\_ACEOF
46767 #define HAVE_LONG_LONG 1
46772 echo "$as_me:$LINENO: checking for mode_t" >&5
46773 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46774 if test "${ac_cv_type_mode_t+set}" = set; then
46775 echo $ECHO_N "(cached) $ECHO_C" >&6
46777 cat >conftest.$ac_ext <<_ACEOF
46780 cat confdefs.h >>conftest.$ac_ext
46781 cat >>conftest.$ac_ext <<_ACEOF
46782 /* end confdefs.h. */
46783 $ac_includes_default
46789 if (sizeof (mode_t))
46795 rm -f conftest.$ac_objext
46796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46797 (eval $ac_compile) 2>conftest.er1
46799 grep -v '^ *+' conftest.er1 >conftest.err
46801 cat conftest.err >&5
46802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46803 (exit $ac_status); } &&
46804 { ac_try='test -z "$ac_c_werror_flag"
46805 || test ! -s conftest.err'
46806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46807 (eval $ac_try) 2>&5
46809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46810 (exit $ac_status); }; } &&
46811 { ac_try='test -s conftest.$ac_objext'
46812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46813 (eval $ac_try) 2>&5
46815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46816 (exit $ac_status); }; }; then
46817 ac_cv_type_mode_t=yes
46819 echo "$as_me: failed program was:" >&5
46820 sed 's/^/| /' conftest.$ac_ext >&5
46822 ac_cv_type_mode_t=no
46824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46826 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46827 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
46828 if test $ac_cv_type_mode_t = yes; then
46832 cat >>confdefs.h <<_ACEOF
46838 echo "$as_me:$LINENO: checking for off_t" >&5
46839 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
46840 if test "${ac_cv_type_off_t+set}" = set; then
46841 echo $ECHO_N "(cached) $ECHO_C" >&6
46843 cat >conftest.$ac_ext <<_ACEOF
46846 cat confdefs.h >>conftest.$ac_ext
46847 cat >>conftest.$ac_ext <<_ACEOF
46848 /* end confdefs.h. */
46849 $ac_includes_default
46855 if (sizeof (off_t))
46861 rm -f conftest.$ac_objext
46862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46863 (eval $ac_compile) 2>conftest.er1
46865 grep -v '^ *+' conftest.er1 >conftest.err
46867 cat conftest.err >&5
46868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46869 (exit $ac_status); } &&
46870 { ac_try='test -z "$ac_c_werror_flag"
46871 || test ! -s conftest.err'
46872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46873 (eval $ac_try) 2>&5
46875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46876 (exit $ac_status); }; } &&
46877 { ac_try='test -s conftest.$ac_objext'
46878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46879 (eval $ac_try) 2>&5
46881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46882 (exit $ac_status); }; }; then
46883 ac_cv_type_off_t=yes
46885 echo "$as_me: failed program was:" >&5
46886 sed 's/^/| /' conftest.$ac_ext >&5
46888 ac_cv_type_off_t=no
46890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46892 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
46893 echo "${ECHO_T}$ac_cv_type_off_t" >&6
46894 if test $ac_cv_type_off_t = yes; then
46898 cat >>confdefs.h <<_ACEOF
46904 echo "$as_me:$LINENO: checking for pid_t" >&5
46905 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
46906 if test "${ac_cv_type_pid_t+set}" = set; then
46907 echo $ECHO_N "(cached) $ECHO_C" >&6
46909 cat >conftest.$ac_ext <<_ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h. */
46915 $ac_includes_default
46921 if (sizeof (pid_t))
46927 rm -f conftest.$ac_objext
46928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46929 (eval $ac_compile) 2>conftest.er1
46931 grep -v '^ *+' conftest.er1 >conftest.err
46933 cat conftest.err >&5
46934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46935 (exit $ac_status); } &&
46936 { ac_try='test -z "$ac_c_werror_flag"
46937 || test ! -s conftest.err'
46938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46939 (eval $ac_try) 2>&5
46941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46942 (exit $ac_status); }; } &&
46943 { ac_try='test -s conftest.$ac_objext'
46944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46945 (eval $ac_try) 2>&5
46947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948 (exit $ac_status); }; }; then
46949 ac_cv_type_pid_t=yes
46951 echo "$as_me: failed program was:" >&5
46952 sed 's/^/| /' conftest.$ac_ext >&5
46954 ac_cv_type_pid_t=no
46956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46958 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
46959 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
46960 if test $ac_cv_type_pid_t = yes; then
46964 cat >>confdefs.h <<_ACEOF
46970 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
46971 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
46972 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
46973 echo $ECHO_N "(cached) $ECHO_C" >&6
46975 cat >conftest.$ac_ext <<_ACEOF
46978 cat confdefs.h >>conftest.$ac_ext
46979 cat >>conftest.$ac_ext <<_ACEOF
46980 /* end confdefs.h. */
46981 $ac_includes_default
46985 if ((ptrdiff_t *) 0)
46987 if (sizeof (ptrdiff_t))
46993 rm -f conftest.$ac_objext
46994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46995 (eval $ac_compile) 2>conftest.er1
46997 grep -v '^ *+' conftest.er1 >conftest.err
46999 cat conftest.err >&5
47000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47001 (exit $ac_status); } &&
47002 { ac_try='test -z "$ac_c_werror_flag"
47003 || test ! -s conftest.err'
47004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47005 (eval $ac_try) 2>&5
47007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47008 (exit $ac_status); }; } &&
47009 { ac_try='test -s conftest.$ac_objext'
47010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47011 (eval $ac_try) 2>&5
47013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47014 (exit $ac_status); }; }; then
47015 ac_cv_type_ptrdiff_t=yes
47017 echo "$as_me: failed program was:" >&5
47018 sed 's/^/| /' conftest.$ac_ext >&5
47020 ac_cv_type_ptrdiff_t=no
47022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47024 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47025 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47026 if test $ac_cv_type_ptrdiff_t = yes; then
47028 cat >>confdefs.h <<_ACEOF
47029 #define HAVE_PTRDIFF_T 1
47035 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47036 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47037 if test "${ac_cv_type_signal+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 #include <sys/types.h>
47047 #include <signal.h>
47052 extern "C" void (*signal (int, void (*)(int)))(int);
47054 void (*signal ()) ();
47065 rm -f conftest.$ac_objext
47066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47067 (eval $ac_compile) 2>conftest.er1
47069 grep -v '^ *+' conftest.er1 >conftest.err
47071 cat conftest.err >&5
47072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073 (exit $ac_status); } &&
47074 { ac_try='test -z "$ac_c_werror_flag"
47075 || test ! -s conftest.err'
47076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47077 (eval $ac_try) 2>&5
47079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47080 (exit $ac_status); }; } &&
47081 { ac_try='test -s conftest.$ac_objext'
47082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47083 (eval $ac_try) 2>&5
47085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086 (exit $ac_status); }; }; then
47087 ac_cv_type_signal=void
47089 echo "$as_me: failed program was:" >&5
47090 sed 's/^/| /' conftest.$ac_ext >&5
47092 ac_cv_type_signal=int
47094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47096 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47097 echo "${ECHO_T}$ac_cv_type_signal" >&6
47099 cat >>confdefs.h <<_ACEOF
47100 #define RETSIGTYPE $ac_cv_type_signal
47104 echo "$as_me:$LINENO: checking for size_t" >&5
47105 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47106 if test "${ac_cv_type_size_t+set}" = set; then
47107 echo $ECHO_N "(cached) $ECHO_C" >&6
47109 cat >conftest.$ac_ext <<_ACEOF
47112 cat confdefs.h >>conftest.$ac_ext
47113 cat >>conftest.$ac_ext <<_ACEOF
47114 /* end confdefs.h. */
47115 $ac_includes_default
47121 if (sizeof (size_t))
47127 rm -f conftest.$ac_objext
47128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47129 (eval $ac_compile) 2>conftest.er1
47131 grep -v '^ *+' conftest.er1 >conftest.err
47133 cat conftest.err >&5
47134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47135 (exit $ac_status); } &&
47136 { ac_try='test -z "$ac_c_werror_flag"
47137 || test ! -s conftest.err'
47138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47139 (eval $ac_try) 2>&5
47141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47142 (exit $ac_status); }; } &&
47143 { ac_try='test -s conftest.$ac_objext'
47144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47145 (eval $ac_try) 2>&5
47147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47148 (exit $ac_status); }; }; then
47149 ac_cv_type_size_t=yes
47151 echo "$as_me: failed program was:" >&5
47152 sed 's/^/| /' conftest.$ac_ext >&5
47154 ac_cv_type_size_t=no
47156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47158 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47159 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47160 if test $ac_cv_type_size_t = yes; then
47164 cat >>confdefs.h <<_ACEOF
47165 #define size_t unsigned
47171 echo "$as_me:$LINENO: checking for ssize_t" >&5
47172 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47173 if test "${ac_cv_type_ssize_t+set}" = set; then
47174 echo $ECHO_N "(cached) $ECHO_C" >&6
47176 cat >conftest.$ac_ext <<_ACEOF
47179 cat confdefs.h >>conftest.$ac_ext
47180 cat >>conftest.$ac_ext <<_ACEOF
47181 /* end confdefs.h. */
47182 $ac_includes_default
47188 if (sizeof (ssize_t))
47194 rm -f conftest.$ac_objext
47195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47196 (eval $ac_compile) 2>conftest.er1
47198 grep -v '^ *+' conftest.er1 >conftest.err
47200 cat conftest.err >&5
47201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47202 (exit $ac_status); } &&
47203 { ac_try='test -z "$ac_c_werror_flag"
47204 || test ! -s conftest.err'
47205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47206 (eval $ac_try) 2>&5
47208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209 (exit $ac_status); }; } &&
47210 { ac_try='test -s conftest.$ac_objext'
47211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47212 (eval $ac_try) 2>&5
47214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47215 (exit $ac_status); }; }; then
47216 ac_cv_type_ssize_t=yes
47218 echo "$as_me: failed program was:" >&5
47219 sed 's/^/| /' conftest.$ac_ext >&5
47221 ac_cv_type_ssize_t=no
47223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47225 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47226 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47227 if test $ac_cv_type_ssize_t = yes; then
47231 cat >>confdefs.h <<_ACEOF
47232 #define ssize_t signed int
47237 echo "$as_me:$LINENO: checking for caddr_t" >&5
47238 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47239 if test "${ac_cv_type_caddr_t+set}" = set; then
47240 echo $ECHO_N "(cached) $ECHO_C" >&6
47242 cat >conftest.$ac_ext <<_ACEOF
47245 cat confdefs.h >>conftest.$ac_ext
47246 cat >>conftest.$ac_ext <<_ACEOF
47247 /* end confdefs.h. */
47248 $ac_includes_default
47254 if (sizeof (caddr_t))
47260 rm -f conftest.$ac_objext
47261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47262 (eval $ac_compile) 2>conftest.er1
47264 grep -v '^ *+' conftest.er1 >conftest.err
47266 cat conftest.err >&5
47267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47268 (exit $ac_status); } &&
47269 { ac_try='test -z "$ac_c_werror_flag"
47270 || test ! -s conftest.err'
47271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47272 (eval $ac_try) 2>&5
47274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47275 (exit $ac_status); }; } &&
47276 { ac_try='test -s conftest.$ac_objext'
47277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47278 (eval $ac_try) 2>&5
47280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47281 (exit $ac_status); }; }; then
47282 ac_cv_type_caddr_t=yes
47284 echo "$as_me: failed program was:" >&5
47285 sed 's/^/| /' conftest.$ac_ext >&5
47287 ac_cv_type_caddr_t=no
47289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47291 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47292 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47293 if test $ac_cv_type_caddr_t = yes; then
47297 cat >>confdefs.h <<_ACEOF
47298 #define caddr_t char *
47304 echo "$as_me:$LINENO: checking for socklen_t" >&5
47305 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47306 if test "${ol_cv_type_socklen_t+set}" = set; then
47307 echo $ECHO_N "(cached) $ECHO_C" >&6
47309 cat >conftest.$ac_ext <<_ACEOF
47312 cat confdefs.h >>conftest.$ac_ext
47313 cat >>conftest.$ac_ext <<_ACEOF
47314 /* end confdefs.h. */
47316 #ifdef HAVE_SYS_TYPES_H
47317 #include <sys/types.h>
47319 #ifdef HAVE_SYS_SOCKET_H
47320 #include <sys/socket.h>
47331 rm -f conftest.$ac_objext
47332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47333 (eval $ac_compile) 2>conftest.er1
47335 grep -v '^ *+' conftest.er1 >conftest.err
47337 cat conftest.err >&5
47338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339 (exit $ac_status); } &&
47340 { ac_try='test -z "$ac_c_werror_flag"
47341 || test ! -s conftest.err'
47342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47343 (eval $ac_try) 2>&5
47345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346 (exit $ac_status); }; } &&
47347 { ac_try='test -s conftest.$ac_objext'
47348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47349 (eval $ac_try) 2>&5
47351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47352 (exit $ac_status); }; }; then
47353 ol_cv_type_socklen_t=yes
47355 echo "$as_me: failed program was:" >&5
47356 sed 's/^/| /' conftest.$ac_ext >&5
47358 ol_cv_type_socklen_t=no
47360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47362 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47363 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47364 if test $ol_cv_type_socklen_t = no; then
47366 cat >>confdefs.h <<\_ACEOF
47367 #define socklen_t int
47373 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47374 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47375 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47376 echo $ECHO_N "(cached) $ECHO_C" >&6
47378 cat >conftest.$ac_ext <<_ACEOF
47381 cat confdefs.h >>conftest.$ac_ext
47382 cat >>conftest.$ac_ext <<_ACEOF
47383 /* end confdefs.h. */
47384 $ac_includes_default
47388 static struct stat ac_aggr;
47389 if (ac_aggr.st_blksize)
47395 rm -f conftest.$ac_objext
47396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47397 (eval $ac_compile) 2>conftest.er1
47399 grep -v '^ *+' conftest.er1 >conftest.err
47401 cat conftest.err >&5
47402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47403 (exit $ac_status); } &&
47404 { ac_try='test -z "$ac_c_werror_flag"
47405 || test ! -s conftest.err'
47406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47407 (eval $ac_try) 2>&5
47409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47410 (exit $ac_status); }; } &&
47411 { ac_try='test -s conftest.$ac_objext'
47412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47413 (eval $ac_try) 2>&5
47415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47416 (exit $ac_status); }; }; then
47417 ac_cv_member_struct_stat_st_blksize=yes
47419 echo "$as_me: failed program was:" >&5
47420 sed 's/^/| /' conftest.$ac_ext >&5
47422 cat >conftest.$ac_ext <<_ACEOF
47425 cat confdefs.h >>conftest.$ac_ext
47426 cat >>conftest.$ac_ext <<_ACEOF
47427 /* end confdefs.h. */
47428 $ac_includes_default
47432 static struct stat ac_aggr;
47433 if (sizeof ac_aggr.st_blksize)
47439 rm -f conftest.$ac_objext
47440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47441 (eval $ac_compile) 2>conftest.er1
47443 grep -v '^ *+' conftest.er1 >conftest.err
47445 cat conftest.err >&5
47446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47447 (exit $ac_status); } &&
47448 { ac_try='test -z "$ac_c_werror_flag"
47449 || test ! -s conftest.err'
47450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47451 (eval $ac_try) 2>&5
47453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47454 (exit $ac_status); }; } &&
47455 { ac_try='test -s conftest.$ac_objext'
47456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47457 (eval $ac_try) 2>&5
47459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47460 (exit $ac_status); }; }; then
47461 ac_cv_member_struct_stat_st_blksize=yes
47463 echo "$as_me: failed program was:" >&5
47464 sed 's/^/| /' conftest.$ac_ext >&5
47466 ac_cv_member_struct_stat_st_blksize=no
47468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47472 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47473 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47474 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47476 cat >>confdefs.h <<_ACEOF
47477 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47481 cat >>confdefs.h <<\_ACEOF
47482 #define HAVE_ST_BLKSIZE 1
47488 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47489 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47490 if test "${ac_cv_header_time+set}" = set; then
47491 echo $ECHO_N "(cached) $ECHO_C" >&6
47493 cat >conftest.$ac_ext <<_ACEOF
47496 cat confdefs.h >>conftest.$ac_ext
47497 cat >>conftest.$ac_ext <<_ACEOF
47498 /* end confdefs.h. */
47499 #include <sys/types.h>
47500 #include <sys/time.h>
47506 if ((struct tm *) 0)
47512 rm -f conftest.$ac_objext
47513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47514 (eval $ac_compile) 2>conftest.er1
47516 grep -v '^ *+' conftest.er1 >conftest.err
47518 cat conftest.err >&5
47519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520 (exit $ac_status); } &&
47521 { ac_try='test -z "$ac_c_werror_flag"
47522 || test ! -s conftest.err'
47523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47524 (eval $ac_try) 2>&5
47526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47527 (exit $ac_status); }; } &&
47528 { ac_try='test -s conftest.$ac_objext'
47529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47530 (eval $ac_try) 2>&5
47532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47533 (exit $ac_status); }; }; then
47534 ac_cv_header_time=yes
47536 echo "$as_me: failed program was:" >&5
47537 sed 's/^/| /' conftest.$ac_ext >&5
47539 ac_cv_header_time=no
47541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47543 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47544 echo "${ECHO_T}$ac_cv_header_time" >&6
47545 if test $ac_cv_header_time = yes; then
47547 cat >>confdefs.h <<\_ACEOF
47548 #define TIME_WITH_SYS_TIME 1
47553 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47554 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47555 if test "${ac_cv_struct_tm+set}" = set; then
47556 echo $ECHO_N "(cached) $ECHO_C" >&6
47558 cat >conftest.$ac_ext <<_ACEOF
47561 cat confdefs.h >>conftest.$ac_ext
47562 cat >>conftest.$ac_ext <<_ACEOF
47563 /* end confdefs.h. */
47564 #include <sys/types.h>
47570 struct tm *tp; tp->tm_sec;
47575 rm -f conftest.$ac_objext
47576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47577 (eval $ac_compile) 2>conftest.er1
47579 grep -v '^ *+' conftest.er1 >conftest.err
47581 cat conftest.err >&5
47582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47583 (exit $ac_status); } &&
47584 { ac_try='test -z "$ac_c_werror_flag"
47585 || test ! -s conftest.err'
47586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47587 (eval $ac_try) 2>&5
47589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47590 (exit $ac_status); }; } &&
47591 { ac_try='test -s conftest.$ac_objext'
47592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47593 (eval $ac_try) 2>&5
47595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47596 (exit $ac_status); }; }; then
47597 ac_cv_struct_tm=time.h
47599 echo "$as_me: failed program was:" >&5
47600 sed 's/^/| /' conftest.$ac_ext >&5
47602 ac_cv_struct_tm=sys/time.h
47604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47606 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47607 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47608 if test $ac_cv_struct_tm = sys/time.h; then
47610 cat >>confdefs.h <<\_ACEOF
47611 #define TM_IN_SYS_TIME 1
47616 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47617 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47618 if test "${ac_cv_type_uid_t+set}" = set; then
47619 echo $ECHO_N "(cached) $ECHO_C" >&6
47621 cat >conftest.$ac_ext <<_ACEOF
47624 cat confdefs.h >>conftest.$ac_ext
47625 cat >>conftest.$ac_ext <<_ACEOF
47626 /* end confdefs.h. */
47627 #include <sys/types.h>
47630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47631 $EGREP "uid_t" >/dev/null 2>&1; then
47632 ac_cv_type_uid_t=yes
47634 ac_cv_type_uid_t=no
47639 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47640 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47641 if test $ac_cv_type_uid_t = no; then
47643 cat >>confdefs.h <<\_ACEOF
47648 cat >>confdefs.h <<\_ACEOF
47654 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47655 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47656 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47657 echo $ECHO_N "(cached) $ECHO_C" >&6
47659 cat >conftest.$ac_ext <<_ACEOF
47662 cat confdefs.h >>conftest.$ac_ext
47663 cat >>conftest.$ac_ext <<_ACEOF
47664 /* end confdefs.h. */
47665 #include <signal.h>
47669 sig_atomic_t atomic;
47674 rm -f conftest.$ac_objext
47675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47676 (eval $ac_compile) 2>conftest.er1
47678 grep -v '^ *+' conftest.er1 >conftest.err
47680 cat conftest.err >&5
47681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47682 (exit $ac_status); } &&
47683 { ac_try='test -z "$ac_c_werror_flag"
47684 || test ! -s conftest.err'
47685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47686 (eval $ac_try) 2>&5
47688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47689 (exit $ac_status); }; } &&
47690 { ac_try='test -s conftest.$ac_objext'
47691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47692 (eval $ac_try) 2>&5
47694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47695 (exit $ac_status); }; }; then
47696 ol_cv_type_sig_atomic_t=yes
47698 echo "$as_me: failed program was:" >&5
47699 sed 's/^/| /' conftest.$ac_ext >&5
47701 ol_cv_type_sig_atomic_t=no
47703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47705 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47706 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47707 if test $ol_cv_type_sig_atomic_t = no; then
47709 cat >>confdefs.h <<\_ACEOF
47710 #define sig_atomic_t int
47717 # test for pw_gecos in struct passwd
47718 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47719 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47720 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47721 echo $ECHO_N "(cached) $ECHO_C" >&6
47724 cat >conftest.$ac_ext <<_ACEOF
47727 cat confdefs.h >>conftest.$ac_ext
47728 cat >>conftest.$ac_ext <<_ACEOF
47729 /* end confdefs.h. */
47736 pwd.pw_gecos = pwd.pw_name;
47742 rm -f conftest.$ac_objext
47743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47744 (eval $ac_compile) 2>conftest.er1
47746 grep -v '^ *+' conftest.er1 >conftest.err
47748 cat conftest.err >&5
47749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47750 (exit $ac_status); } &&
47751 { ac_try='test -z "$ac_c_werror_flag"
47752 || test ! -s conftest.err'
47753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47754 (eval $ac_try) 2>&5
47756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47757 (exit $ac_status); }; } &&
47758 { ac_try='test -s conftest.$ac_objext'
47759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47760 (eval $ac_try) 2>&5
47762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47763 (exit $ac_status); }; }; then
47764 ol_cv_struct_passwd_pw_gecos=yes
47766 echo "$as_me: failed program was:" >&5
47767 sed 's/^/| /' conftest.$ac_ext >&5
47769 ol_cv_struct_passwd_pw_gecos=no
47771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47773 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47774 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47775 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47777 cat >>confdefs.h <<\_ACEOF
47778 #define HAVE_PW_GECOS 1
47783 # test for pw_passwd in struct passwd
47784 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47785 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47786 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47787 echo $ECHO_N "(cached) $ECHO_C" >&6
47790 cat >conftest.$ac_ext <<_ACEOF
47793 cat confdefs.h >>conftest.$ac_ext
47794 cat >>conftest.$ac_ext <<_ACEOF
47795 /* end confdefs.h. */
47802 pwd.pw_passwd = pwd.pw_name;
47808 rm -f conftest.$ac_objext
47809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47810 (eval $ac_compile) 2>conftest.er1
47812 grep -v '^ *+' conftest.er1 >conftest.err
47814 cat conftest.err >&5
47815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47816 (exit $ac_status); } &&
47817 { ac_try='test -z "$ac_c_werror_flag"
47818 || test ! -s conftest.err'
47819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47820 (eval $ac_try) 2>&5
47822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47823 (exit $ac_status); }; } &&
47824 { ac_try='test -s conftest.$ac_objext'
47825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47826 (eval $ac_try) 2>&5
47828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47829 (exit $ac_status); }; }; then
47830 ol_cv_struct_passwd_pw_passwd=yes
47832 echo "$as_me: failed program was:" >&5
47833 sed 's/^/| /' conftest.$ac_ext >&5
47835 ol_cv_struct_passwd_pw_passwd=no
47837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47839 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
47840 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
47841 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
47843 cat >>confdefs.h <<\_ACEOF
47844 #define HAVE_PW_PASSWD 1
47850 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
47851 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
47852 if test "${ol_cv_c_upper_lower+set}" = set; then
47853 echo $ECHO_N "(cached) $ECHO_C" >&6
47856 if test "$cross_compiling" = yes; then
47857 ol_cv_c_upper_lower=safe
47859 cat >conftest.$ac_ext <<_ACEOF
47862 cat confdefs.h >>conftest.$ac_ext
47863 cat >>conftest.$ac_ext <<_ACEOF
47864 /* end confdefs.h. */
47869 if ('C' == toupper('C'))
47875 rm -f conftest$ac_exeext
47876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47877 (eval $ac_link) 2>&5
47879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47882 (eval $ac_try) 2>&5
47884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47885 (exit $ac_status); }; }; then
47886 ol_cv_c_upper_lower=no
47888 echo "$as_me: program exited with status $ac_status" >&5
47889 echo "$as_me: failed program was:" >&5
47890 sed 's/^/| /' conftest.$ac_ext >&5
47892 ( exit $ac_status )
47893 ol_cv_c_upper_lower=yes
47895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47898 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
47899 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
47900 if test $ol_cv_c_upper_lower != no ; then
47902 cat >>confdefs.h <<\_ACEOF
47903 #define C_UPPER_LOWER 1
47908 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
47909 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
47910 if test "${ac_cv_c_const+set}" = set; then
47911 echo $ECHO_N "(cached) $ECHO_C" >&6
47913 cat >conftest.$ac_ext <<_ACEOF
47916 cat confdefs.h >>conftest.$ac_ext
47917 cat >>conftest.$ac_ext <<_ACEOF
47918 /* end confdefs.h. */
47923 /* FIXME: Include the comments suggested by Paul. */
47924 #ifndef __cplusplus
47925 /* Ultrix mips cc rejects this. */
47926 typedef int charset[2];
47928 /* SunOS 4.1.1 cc rejects this. */
47929 char const *const *ccp;
47931 /* NEC SVR4.0.2 mips cc rejects this. */
47932 struct point {int x, y;};
47933 static struct point const zero = {0,0};
47934 /* AIX XL C 1.02.0.0 rejects this.
47935 It does not let you subtract one const X* pointer from another in
47936 an arm of an if-expression whose if-part is not a constant
47938 const char *g = "string";
47939 ccp = &g + (g ? g-g : 0);
47940 /* HPUX 7.0 cc rejects these. */
47943 ccp = (char const *const *) p;
47944 { /* SCO 3.2v4 cc rejects this. */
47946 char const *s = 0 ? (char *) 0 : (char const *) 0;
47950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
47951 int x[] = {25, 17};
47952 const int *foo = &x[0];
47955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
47956 typedef const int *iptr;
47960 { /* AIX XL C 1.02.0.0 rejects this saying
47961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
47962 struct s { int j; const int *ap[3]; };
47963 struct s *b; b->j = 5;
47965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
47966 const int foo = 10;
47974 rm -f conftest.$ac_objext
47975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47976 (eval $ac_compile) 2>conftest.er1
47978 grep -v '^ *+' conftest.er1 >conftest.err
47980 cat conftest.err >&5
47981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47982 (exit $ac_status); } &&
47983 { ac_try='test -z "$ac_c_werror_flag"
47984 || test ! -s conftest.err'
47985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47986 (eval $ac_try) 2>&5
47988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47989 (exit $ac_status); }; } &&
47990 { ac_try='test -s conftest.$ac_objext'
47991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47992 (eval $ac_try) 2>&5
47994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47995 (exit $ac_status); }; }; then
47998 echo "$as_me: failed program was:" >&5
47999 sed 's/^/| /' conftest.$ac_ext >&5
48003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48005 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48006 echo "${ECHO_T}$ac_cv_c_const" >&6
48007 if test $ac_cv_c_const = no; then
48009 cat >>confdefs.h <<\_ACEOF
48015 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48016 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48017 if test "${ol_cv_c_volatile+set}" = set; then
48018 echo $ECHO_N "(cached) $ECHO_C" >&6
48020 cat >conftest.$ac_ext <<_ACEOF
48023 cat confdefs.h >>conftest.$ac_ext
48024 cat >>conftest.$ac_ext <<_ACEOF
48025 /* end confdefs.h. */
48030 volatile int a; int * volatile b = x ? &y : &z;
48031 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48037 rm -f conftest.$ac_objext
48038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48039 (eval $ac_compile) 2>conftest.er1
48041 grep -v '^ *+' conftest.er1 >conftest.err
48043 cat conftest.err >&5
48044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48045 (exit $ac_status); } &&
48046 { ac_try='test -z "$ac_c_werror_flag"
48047 || test ! -s conftest.err'
48048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48049 (eval $ac_try) 2>&5
48051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48052 (exit $ac_status); }; } &&
48053 { ac_try='test -s conftest.$ac_objext'
48054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48055 (eval $ac_try) 2>&5
48057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48058 (exit $ac_status); }; }; then
48059 ol_cv_c_volatile=yes
48061 echo "$as_me: failed program was:" >&5
48062 sed 's/^/| /' conftest.$ac_ext >&5
48064 ol_cv_c_volatile=no
48066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48068 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48069 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48070 if test $ol_cv_c_volatile = yes; then
48074 cat >>confdefs.h <<\_ACEOF
48081 if test $cross_compiling = yes ; then
48082 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48083 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48085 cat >>confdefs.h <<\_ACEOF
48086 #define CROSS_COMPILING 1
48090 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48092 if test "${ac_cv_c_bigendian+set}" = set; then
48093 echo $ECHO_N "(cached) $ECHO_C" >&6
48095 # See if sys/param.h defines the BYTE_ORDER macro.
48096 cat >conftest.$ac_ext <<_ACEOF
48099 cat confdefs.h >>conftest.$ac_ext
48100 cat >>conftest.$ac_ext <<_ACEOF
48101 /* end confdefs.h. */
48102 #include <sys/types.h>
48103 #include <sys/param.h>
48108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48109 bogus endian macros
48116 rm -f conftest.$ac_objext
48117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48118 (eval $ac_compile) 2>conftest.er1
48120 grep -v '^ *+' conftest.er1 >conftest.err
48122 cat conftest.err >&5
48123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48124 (exit $ac_status); } &&
48125 { ac_try='test -z "$ac_c_werror_flag"
48126 || test ! -s conftest.err'
48127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48128 (eval $ac_try) 2>&5
48130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48131 (exit $ac_status); }; } &&
48132 { ac_try='test -s conftest.$ac_objext'
48133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48134 (eval $ac_try) 2>&5
48136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48137 (exit $ac_status); }; }; then
48138 # It does; now see whether it defined to BIG_ENDIAN or not.
48139 cat >conftest.$ac_ext <<_ACEOF
48142 cat confdefs.h >>conftest.$ac_ext
48143 cat >>conftest.$ac_ext <<_ACEOF
48144 /* end confdefs.h. */
48145 #include <sys/types.h>
48146 #include <sys/param.h>
48151 #if BYTE_ORDER != BIG_ENDIAN
48159 rm -f conftest.$ac_objext
48160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48161 (eval $ac_compile) 2>conftest.er1
48163 grep -v '^ *+' conftest.er1 >conftest.err
48165 cat conftest.err >&5
48166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48167 (exit $ac_status); } &&
48168 { ac_try='test -z "$ac_c_werror_flag"
48169 || test ! -s conftest.err'
48170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48171 (eval $ac_try) 2>&5
48173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48174 (exit $ac_status); }; } &&
48175 { ac_try='test -s conftest.$ac_objext'
48176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48177 (eval $ac_try) 2>&5
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); }; }; then
48181 ac_cv_c_bigendian=yes
48183 echo "$as_me: failed program was:" >&5
48184 sed 's/^/| /' conftest.$ac_ext >&5
48186 ac_cv_c_bigendian=no
48188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48190 echo "$as_me: failed program was:" >&5
48191 sed 's/^/| /' conftest.$ac_ext >&5
48193 # It does not; compile a test program.
48194 if test "$cross_compiling" = yes; then
48195 # try to guess the endianness by grepping values into an object file
48196 ac_cv_c_bigendian=unknown
48197 cat >conftest.$ac_ext <<_ACEOF
48200 cat confdefs.h >>conftest.$ac_ext
48201 cat >>conftest.$ac_ext <<_ACEOF
48202 /* end confdefs.h. */
48203 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48204 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48205 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48206 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48207 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48208 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48212 _ascii (); _ebcdic ();
48217 rm -f conftest.$ac_objext
48218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48219 (eval $ac_compile) 2>conftest.er1
48221 grep -v '^ *+' conftest.er1 >conftest.err
48223 cat conftest.err >&5
48224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48225 (exit $ac_status); } &&
48226 { ac_try='test -z "$ac_c_werror_flag"
48227 || test ! -s conftest.err'
48228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48229 (eval $ac_try) 2>&5
48231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48232 (exit $ac_status); }; } &&
48233 { ac_try='test -s conftest.$ac_objext'
48234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48235 (eval $ac_try) 2>&5
48237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48238 (exit $ac_status); }; }; then
48239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48240 ac_cv_c_bigendian=yes
48242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48243 if test "$ac_cv_c_bigendian" = unknown; then
48244 ac_cv_c_bigendian=no
48246 # finding both strings is unlikely to happen, but who knows?
48247 ac_cv_c_bigendian=unknown
48251 echo "$as_me: failed program was:" >&5
48252 sed 's/^/| /' conftest.$ac_ext >&5
48255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48257 cat >conftest.$ac_ext <<_ACEOF
48260 cat confdefs.h >>conftest.$ac_ext
48261 cat >>conftest.$ac_ext <<_ACEOF
48262 /* end confdefs.h. */
48266 /* Are we little or big endian? From Harbison&Steele. */
48270 char c[sizeof (long)];
48273 exit (u.c[sizeof (long) - 1] == 1);
48276 rm -f conftest$ac_exeext
48277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48278 (eval $ac_link) 2>&5
48280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48283 (eval $ac_try) 2>&5
48285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48286 (exit $ac_status); }; }; then
48287 ac_cv_c_bigendian=no
48289 echo "$as_me: program exited with status $ac_status" >&5
48290 echo "$as_me: failed program was:" >&5
48291 sed 's/^/| /' conftest.$ac_ext >&5
48293 ( exit $ac_status )
48294 ac_cv_c_bigendian=yes
48296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48301 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48302 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48303 case $ac_cv_c_bigendian in
48306 cat >>confdefs.h <<\_ACEOF
48307 #define WORDS_BIGENDIAN 1
48313 { { echo "$as_me:$LINENO: error: unknown endianness
48314 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48315 echo "$as_me: error: unknown endianness
48316 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48317 { (exit 1); exit 1; }; } ;;
48322 echo "$as_me:$LINENO: checking size of short" >&5
48323 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48324 if test "${ac_cv_sizeof_short+set}" = set; then
48325 echo $ECHO_N "(cached) $ECHO_C" >&6
48327 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48328 cat >conftest.$ac_ext <<_ACEOF
48331 cat confdefs.h >>conftest.$ac_ext
48332 cat >>conftest.$ac_ext <<_ACEOF
48333 /* end confdefs.h. */
48334 #include "confdefs.h"
48335 #include <stdlib.h>
48336 #include <sys/types.h>
48342 switch (0) case 0: case (sizeof (short) == $ac_size):;
48347 rm -f conftest.$ac_objext
48348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48349 (eval $ac_compile) 2>conftest.er1
48351 grep -v '^ *+' conftest.er1 >conftest.err
48353 cat conftest.err >&5
48354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48355 (exit $ac_status); } &&
48356 { ac_try='test -z "$ac_c_werror_flag"
48357 || test ! -s conftest.err'
48358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48359 (eval $ac_try) 2>&5
48361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48362 (exit $ac_status); }; } &&
48363 { ac_try='test -s conftest.$ac_objext'
48364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48365 (eval $ac_try) 2>&5
48367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48368 (exit $ac_status); }; }; then
48369 ac_cv_sizeof_short=$ac_size
48371 echo "$as_me: failed program was:" >&5
48372 sed 's/^/| /' conftest.$ac_ext >&5
48375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48376 if test x$ac_cv_sizeof_short != x ; then break; fi
48381 if test x$ac_cv_sizeof_short = x ; then
48382 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48383 echo "$as_me: error: cannot determine a size for short" >&2;}
48384 { (exit 1); exit 1; }; }
48386 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48387 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48389 cat >>confdefs.h <<_ACEOF
48390 #define SIZEOF_SHORT $ac_cv_sizeof_short
48394 echo "$as_me:$LINENO: checking size of int" >&5
48395 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48396 if test "${ac_cv_sizeof_int+set}" = set; then
48397 echo $ECHO_N "(cached) $ECHO_C" >&6
48399 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48400 cat >conftest.$ac_ext <<_ACEOF
48403 cat confdefs.h >>conftest.$ac_ext
48404 cat >>conftest.$ac_ext <<_ACEOF
48405 /* end confdefs.h. */
48406 #include "confdefs.h"
48407 #include <stdlib.h>
48408 #include <sys/types.h>
48414 switch (0) case 0: case (sizeof (int) == $ac_size):;
48419 rm -f conftest.$ac_objext
48420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48421 (eval $ac_compile) 2>conftest.er1
48423 grep -v '^ *+' conftest.er1 >conftest.err
48425 cat conftest.err >&5
48426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48427 (exit $ac_status); } &&
48428 { ac_try='test -z "$ac_c_werror_flag"
48429 || test ! -s conftest.err'
48430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48431 (eval $ac_try) 2>&5
48433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48434 (exit $ac_status); }; } &&
48435 { ac_try='test -s conftest.$ac_objext'
48436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48437 (eval $ac_try) 2>&5
48439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48440 (exit $ac_status); }; }; then
48441 ac_cv_sizeof_int=$ac_size
48443 echo "$as_me: failed program was:" >&5
48444 sed 's/^/| /' conftest.$ac_ext >&5
48447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48448 if test x$ac_cv_sizeof_int != x ; then break; fi
48453 if test x$ac_cv_sizeof_int = x ; then
48454 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48455 echo "$as_me: error: cannot determine a size for int" >&2;}
48456 { (exit 1); exit 1; }; }
48458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48459 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48461 cat >>confdefs.h <<_ACEOF
48462 #define SIZEOF_INT $ac_cv_sizeof_int
48466 echo "$as_me:$LINENO: checking size of long" >&5
48467 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48468 if test "${ac_cv_sizeof_long+set}" = set; then
48469 echo $ECHO_N "(cached) $ECHO_C" >&6
48471 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48472 cat >conftest.$ac_ext <<_ACEOF
48475 cat confdefs.h >>conftest.$ac_ext
48476 cat >>conftest.$ac_ext <<_ACEOF
48477 /* end confdefs.h. */
48478 #include "confdefs.h"
48479 #include <stdlib.h>
48480 #include <sys/types.h>
48486 switch (0) case 0: case (sizeof (long) == $ac_size):;
48491 rm -f conftest.$ac_objext
48492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48493 (eval $ac_compile) 2>conftest.er1
48495 grep -v '^ *+' conftest.er1 >conftest.err
48497 cat conftest.err >&5
48498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48499 (exit $ac_status); } &&
48500 { ac_try='test -z "$ac_c_werror_flag"
48501 || test ! -s conftest.err'
48502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48503 (eval $ac_try) 2>&5
48505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48506 (exit $ac_status); }; } &&
48507 { ac_try='test -s conftest.$ac_objext'
48508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48509 (eval $ac_try) 2>&5
48511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48512 (exit $ac_status); }; }; then
48513 ac_cv_sizeof_long=$ac_size
48515 echo "$as_me: failed program was:" >&5
48516 sed 's/^/| /' conftest.$ac_ext >&5
48519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48520 if test x$ac_cv_sizeof_long != x ; then break; fi
48525 if test x$ac_cv_sizeof_long = x ; then
48526 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48527 echo "$as_me: error: cannot determine a size for long" >&2;}
48528 { (exit 1); exit 1; }; }
48530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48531 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48533 cat >>confdefs.h <<_ACEOF
48534 #define SIZEOF_LONG $ac_cv_sizeof_long
48538 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48539 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48540 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48541 echo $ECHO_N "(cached) $ECHO_C" >&6
48543 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48544 cat >conftest.$ac_ext <<_ACEOF
48547 cat confdefs.h >>conftest.$ac_ext
48548 cat >>conftest.$ac_ext <<_ACEOF
48549 /* end confdefs.h. */
48550 #include "confdefs.h"
48551 #include <stdlib.h>
48552 #include <sys/types.h>
48558 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48563 rm -f conftest.$ac_objext
48564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48565 (eval $ac_compile) 2>conftest.er1
48567 grep -v '^ *+' conftest.er1 >conftest.err
48569 cat conftest.err >&5
48570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48571 (exit $ac_status); } &&
48572 { ac_try='test -z "$ac_c_werror_flag"
48573 || test ! -s conftest.err'
48574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48575 (eval $ac_try) 2>&5
48577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48578 (exit $ac_status); }; } &&
48579 { ac_try='test -s conftest.$ac_objext'
48580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48581 (eval $ac_try) 2>&5
48583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48584 (exit $ac_status); }; }; then
48585 ac_cv_sizeof_wchar_t=$ac_size
48587 echo "$as_me: failed program was:" >&5
48588 sed 's/^/| /' conftest.$ac_ext >&5
48591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48592 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48597 if test x$ac_cv_sizeof_wchar_t = x ; then
48598 { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48599 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48600 { (exit 1); exit 1; }; }
48602 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48603 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48605 cat >>confdefs.h <<_ACEOF
48606 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48611 if test "$ac_cv_sizeof_int" -lt 4 ; then
48612 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48613 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48615 cat >>confdefs.h <<\_ACEOF
48616 #define LBER_INT_T long
48620 cat >>confdefs.h <<\_ACEOF
48621 #define LBER_INT_T int
48626 cat >>confdefs.h <<\_ACEOF
48627 #define LBER_LEN_T long
48630 cat >>confdefs.h <<\_ACEOF
48631 #define LBER_SOCKET_T int
48634 cat >>confdefs.h <<\_ACEOF
48635 #define LBER_TAG_T long
48639 echo "$as_me:$LINENO: checking for working memcmp" >&5
48640 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48641 if test "${ac_cv_func_memcmp_working+set}" = set; then
48642 echo $ECHO_N "(cached) $ECHO_C" >&6
48644 if test "$cross_compiling" = yes; then
48645 ac_cv_func_memcmp_working=no
48647 cat >conftest.$ac_ext <<_ACEOF
48650 cat confdefs.h >>conftest.$ac_ext
48651 cat >>conftest.$ac_ext <<_ACEOF
48652 /* end confdefs.h. */
48653 $ac_includes_default
48658 /* Some versions of memcmp are not 8-bit clean. */
48659 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48660 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48663 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48664 or more and with at least one buffer not starting on a 4-byte boundary.
48665 William Lewis provided this test program. */
48670 for (i = 0; i < 4; i++)
48674 strcpy (a, "--------01111111");
48675 strcpy (b, "--------10000000");
48676 if (memcmp (a, b, 16) >= 0)
48686 rm -f conftest$ac_exeext
48687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48688 (eval $ac_link) 2>&5
48690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48693 (eval $ac_try) 2>&5
48695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48696 (exit $ac_status); }; }; then
48697 ac_cv_func_memcmp_working=yes
48699 echo "$as_me: program exited with status $ac_status" >&5
48700 echo "$as_me: failed program was:" >&5
48701 sed 's/^/| /' conftest.$ac_ext >&5
48703 ( exit $ac_status )
48704 ac_cv_func_memcmp_working=no
48706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48709 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48710 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48711 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48712 "memcmp.$ac_objext" | \
48713 *" memcmp.$ac_objext" | \
48714 "memcmp.$ac_objext "* | \
48715 *" memcmp.$ac_objext "* ) ;;
48716 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48721 if test $ac_cv_func_memcmp_working = no ; then
48723 cat >>confdefs.h <<\_ACEOF
48724 #define NEED_MEMCMP_REPLACEMENT 1
48730 for ac_func in strftime
48732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48733 echo "$as_me:$LINENO: checking for $ac_func" >&5
48734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48735 if eval "test \"\${$as_ac_var+set}\" = set"; then
48736 echo $ECHO_N "(cached) $ECHO_C" >&6
48738 cat >conftest.$ac_ext <<_ACEOF
48741 cat confdefs.h >>conftest.$ac_ext
48742 cat >>conftest.$ac_ext <<_ACEOF
48743 /* end confdefs.h. */
48744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48746 #define $ac_func innocuous_$ac_func
48748 /* System header to define __stub macros and hopefully few prototypes,
48749 which can conflict with char $ac_func (); below.
48750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48751 <limits.h> exists even on freestanding compilers. */
48754 # include <limits.h>
48756 # include <assert.h>
48761 /* Override any gcc2 internal prototype to avoid an error. */
48766 /* We use char because int might match the return type of a gcc2
48767 builtin and then its argument prototype would still apply. */
48769 /* The GNU C library defines this for functions which it implements
48770 to always fail with ENOSYS. Some functions are actually named
48771 something starting with __ and the normal name is an alias. */
48772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48775 char (*f) () = $ac_func;
48784 return f != $ac_func;
48789 rm -f conftest.$ac_objext conftest$ac_exeext
48790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48791 (eval $ac_link) 2>conftest.er1
48793 grep -v '^ *+' conftest.er1 >conftest.err
48795 cat conftest.err >&5
48796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48797 (exit $ac_status); } &&
48798 { ac_try='test -z "$ac_c_werror_flag"
48799 || test ! -s conftest.err'
48800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48801 (eval $ac_try) 2>&5
48803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48804 (exit $ac_status); }; } &&
48805 { ac_try='test -s conftest$ac_exeext'
48806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48807 (eval $ac_try) 2>&5
48809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48810 (exit $ac_status); }; }; then
48811 eval "$as_ac_var=yes"
48813 echo "$as_me: failed program was:" >&5
48814 sed 's/^/| /' conftest.$ac_ext >&5
48816 eval "$as_ac_var=no"
48818 rm -f conftest.err conftest.$ac_objext \
48819 conftest$ac_exeext conftest.$ac_ext
48821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48823 if test `eval echo '${'$as_ac_var'}'` = yes; then
48824 cat >>confdefs.h <<_ACEOF
48825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48829 # strftime is in -lintl on SCO UNIX.
48830 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
48831 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
48832 if test "${ac_cv_lib_intl_strftime+set}" = set; then
48833 echo $ECHO_N "(cached) $ECHO_C" >&6
48835 ac_check_lib_save_LIBS=$LIBS
48836 LIBS="-lintl $LIBS"
48837 cat >conftest.$ac_ext <<_ACEOF
48840 cat confdefs.h >>conftest.$ac_ext
48841 cat >>conftest.$ac_ext <<_ACEOF
48842 /* end confdefs.h. */
48844 /* Override any gcc2 internal prototype to avoid an error. */
48848 /* We use char because int might match the return type of a gcc2
48849 builtin and then its argument prototype would still apply. */
48859 rm -f conftest.$ac_objext conftest$ac_exeext
48860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48861 (eval $ac_link) 2>conftest.er1
48863 grep -v '^ *+' conftest.er1 >conftest.err
48865 cat conftest.err >&5
48866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48867 (exit $ac_status); } &&
48868 { ac_try='test -z "$ac_c_werror_flag"
48869 || test ! -s conftest.err'
48870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48871 (eval $ac_try) 2>&5
48873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48874 (exit $ac_status); }; } &&
48875 { ac_try='test -s conftest$ac_exeext'
48876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48877 (eval $ac_try) 2>&5
48879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48880 (exit $ac_status); }; }; then
48881 ac_cv_lib_intl_strftime=yes
48883 echo "$as_me: failed program was:" >&5
48884 sed 's/^/| /' conftest.$ac_ext >&5
48886 ac_cv_lib_intl_strftime=no
48888 rm -f conftest.err conftest.$ac_objext \
48889 conftest$ac_exeext conftest.$ac_ext
48890 LIBS=$ac_check_lib_save_LIBS
48892 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
48893 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
48894 if test $ac_cv_lib_intl_strftime = yes; then
48895 cat >>confdefs.h <<\_ACEOF
48896 #define HAVE_STRFTIME 1
48899 LIBS="-lintl $LIBS"
48906 echo "$as_me:$LINENO: checking for inet_aton()" >&5
48907 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
48908 if test "${ol_cv_func_inet_aton+set}" = set; then
48909 echo $ECHO_N "(cached) $ECHO_C" >&6
48911 cat >conftest.$ac_ext <<_ACEOF
48914 cat confdefs.h >>conftest.$ac_ext
48915 cat >>conftest.$ac_ext <<_ACEOF
48916 /* end confdefs.h. */
48918 #ifdef HAVE_SYS_TYPES_H
48919 # include <sys/types.h>
48921 #ifdef HAVE_SYS_SOCKET_H
48922 # include <sys/socket.h>
48923 # ifdef HAVE_SYS_SELECT_H
48924 # include <sys/select.h>
48926 # include <netinet/in.h>
48927 # ifdef HAVE_ARPA_INET_H
48928 # include <arpa/inet.h>
48936 int rc = inet_aton( "255.255.255.255", &in );
48941 rm -f conftest.$ac_objext conftest$ac_exeext
48942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48943 (eval $ac_link) 2>conftest.er1
48945 grep -v '^ *+' conftest.er1 >conftest.err
48947 cat conftest.err >&5
48948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48949 (exit $ac_status); } &&
48950 { ac_try='test -z "$ac_c_werror_flag"
48951 || test ! -s conftest.err'
48952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48953 (eval $ac_try) 2>&5
48955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48956 (exit $ac_status); }; } &&
48957 { ac_try='test -s conftest$ac_exeext'
48958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48959 (eval $ac_try) 2>&5
48961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48962 (exit $ac_status); }; }; then
48963 ol_cv_func_inet_aton=yes
48965 echo "$as_me: failed program was:" >&5
48966 sed 's/^/| /' conftest.$ac_ext >&5
48968 ol_cv_func_inet_aton=no
48970 rm -f conftest.err conftest.$ac_objext \
48971 conftest$ac_exeext conftest.$ac_ext
48973 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
48974 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
48975 if test $ol_cv_func_inet_aton != no; then
48977 cat >>confdefs.h <<\_ACEOF
48978 #define HAVE_INET_ATON 1
48984 echo "$as_me:$LINENO: checking for _spawnlp" >&5
48985 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
48986 if test "${ac_cv_func__spawnlp+set}" = set; then
48987 echo $ECHO_N "(cached) $ECHO_C" >&6
48989 cat >conftest.$ac_ext <<_ACEOF
48992 cat confdefs.h >>conftest.$ac_ext
48993 cat >>conftest.$ac_ext <<_ACEOF
48994 /* end confdefs.h. */
48995 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
48996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48997 #define _spawnlp innocuous__spawnlp
48999 /* System header to define __stub macros and hopefully few prototypes,
49000 which can conflict with char _spawnlp (); below.
49001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49002 <limits.h> exists even on freestanding compilers. */
49005 # include <limits.h>
49007 # include <assert.h>
49012 /* Override any gcc2 internal prototype to avoid an error. */
49017 /* We use char because int might match the return type of a gcc2
49018 builtin and then its argument prototype would still apply. */
49020 /* The GNU C library defines this for functions which it implements
49021 to always fail with ENOSYS. Some functions are actually named
49022 something starting with __ and the normal name is an alias. */
49023 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49026 char (*f) () = _spawnlp;
49035 return f != _spawnlp;
49040 rm -f conftest.$ac_objext conftest$ac_exeext
49041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49042 (eval $ac_link) 2>conftest.er1
49044 grep -v '^ *+' conftest.er1 >conftest.err
49046 cat conftest.err >&5
49047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49048 (exit $ac_status); } &&
49049 { ac_try='test -z "$ac_c_werror_flag"
49050 || test ! -s conftest.err'
49051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49052 (eval $ac_try) 2>&5
49054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49055 (exit $ac_status); }; } &&
49056 { ac_try='test -s conftest$ac_exeext'
49057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49058 (eval $ac_try) 2>&5
49060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49061 (exit $ac_status); }; }; then
49062 ac_cv_func__spawnlp=yes
49064 echo "$as_me: failed program was:" >&5
49065 sed 's/^/| /' conftest.$ac_ext >&5
49067 ac_cv_func__spawnlp=no
49069 rm -f conftest.err conftest.$ac_objext \
49070 conftest$ac_exeext conftest.$ac_ext
49072 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49073 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49074 if test $ac_cv_func__spawnlp = yes; then
49076 cat >>confdefs.h <<\_ACEOF
49077 #define HAVE_SPAWNLP 1
49083 echo "$as_me:$LINENO: checking for _snprintf" >&5
49084 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49085 if test "${ac_cv_func__snprintf+set}" = set; then
49086 echo $ECHO_N "(cached) $ECHO_C" >&6
49088 cat >conftest.$ac_ext <<_ACEOF
49091 cat confdefs.h >>conftest.$ac_ext
49092 cat >>conftest.$ac_ext <<_ACEOF
49093 /* end confdefs.h. */
49094 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49096 #define _snprintf innocuous__snprintf
49098 /* System header to define __stub macros and hopefully few prototypes,
49099 which can conflict with char _snprintf (); below.
49100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49101 <limits.h> exists even on freestanding compilers. */
49104 # include <limits.h>
49106 # include <assert.h>
49111 /* Override any gcc2 internal prototype to avoid an error. */
49116 /* We use char because int might match the return type of a gcc2
49117 builtin and then its argument prototype would still apply. */
49119 /* The GNU C library defines this for functions which it implements
49120 to always fail with ENOSYS. Some functions are actually named
49121 something starting with __ and the normal name is an alias. */
49122 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49125 char (*f) () = _snprintf;
49134 return f != _snprintf;
49139 rm -f conftest.$ac_objext conftest$ac_exeext
49140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49141 (eval $ac_link) 2>conftest.er1
49143 grep -v '^ *+' conftest.er1 >conftest.err
49145 cat conftest.err >&5
49146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49147 (exit $ac_status); } &&
49148 { ac_try='test -z "$ac_c_werror_flag"
49149 || test ! -s conftest.err'
49150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49151 (eval $ac_try) 2>&5
49153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49154 (exit $ac_status); }; } &&
49155 { ac_try='test -s conftest$ac_exeext'
49156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49157 (eval $ac_try) 2>&5
49159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49160 (exit $ac_status); }; }; then
49161 ac_cv_func__snprintf=yes
49163 echo "$as_me: failed program was:" >&5
49164 sed 's/^/| /' conftest.$ac_ext >&5
49166 ac_cv_func__snprintf=no
49168 rm -f conftest.err conftest.$ac_objext \
49169 conftest$ac_exeext conftest.$ac_ext
49171 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49172 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49173 if test $ac_cv_func__snprintf = yes; then
49174 ac_cv_func_snprintf=yes
49176 cat >>confdefs.h <<\_ACEOF
49177 #define snprintf _snprintf
49184 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49185 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49186 if test "${ac_cv_func__vsnprintf+set}" = set; then
49187 echo $ECHO_N "(cached) $ECHO_C" >&6
49189 cat >conftest.$ac_ext <<_ACEOF
49192 cat confdefs.h >>conftest.$ac_ext
49193 cat >>conftest.$ac_ext <<_ACEOF
49194 /* end confdefs.h. */
49195 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49197 #define _vsnprintf innocuous__vsnprintf
49199 /* System header to define __stub macros and hopefully few prototypes,
49200 which can conflict with char _vsnprintf (); below.
49201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49202 <limits.h> exists even on freestanding compilers. */
49205 # include <limits.h>
49207 # include <assert.h>
49212 /* Override any gcc2 internal prototype to avoid an error. */
49217 /* We use char because int might match the return type of a gcc2
49218 builtin and then its argument prototype would still apply. */
49219 char _vsnprintf ();
49220 /* The GNU C library defines this for functions which it implements
49221 to always fail with ENOSYS. Some functions are actually named
49222 something starting with __ and the normal name is an alias. */
49223 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49226 char (*f) () = _vsnprintf;
49235 return f != _vsnprintf;
49240 rm -f conftest.$ac_objext conftest$ac_exeext
49241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49242 (eval $ac_link) 2>conftest.er1
49244 grep -v '^ *+' conftest.er1 >conftest.err
49246 cat conftest.err >&5
49247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49248 (exit $ac_status); } &&
49249 { ac_try='test -z "$ac_c_werror_flag"
49250 || test ! -s conftest.err'
49251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49252 (eval $ac_try) 2>&5
49254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49255 (exit $ac_status); }; } &&
49256 { ac_try='test -s conftest$ac_exeext'
49257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49258 (eval $ac_try) 2>&5
49260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49261 (exit $ac_status); }; }; then
49262 ac_cv_func__vsnprintf=yes
49264 echo "$as_me: failed program was:" >&5
49265 sed 's/^/| /' conftest.$ac_ext >&5
49267 ac_cv_func__vsnprintf=no
49269 rm -f conftest.err conftest.$ac_objext \
49270 conftest$ac_exeext conftest.$ac_ext
49272 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49273 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49274 if test $ac_cv_func__vsnprintf = yes; then
49275 ac_cv_func_vsnprintf=yes
49277 cat >>confdefs.h <<\_ACEOF
49278 #define vsnprintf _vsnprintf
49286 for ac_func in vprintf
49288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49289 echo "$as_me:$LINENO: checking for $ac_func" >&5
49290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49291 if eval "test \"\${$as_ac_var+set}\" = set"; then
49292 echo $ECHO_N "(cached) $ECHO_C" >&6
49294 cat >conftest.$ac_ext <<_ACEOF
49297 cat confdefs.h >>conftest.$ac_ext
49298 cat >>conftest.$ac_ext <<_ACEOF
49299 /* end confdefs.h. */
49300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49302 #define $ac_func innocuous_$ac_func
49304 /* System header to define __stub macros and hopefully few prototypes,
49305 which can conflict with char $ac_func (); below.
49306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49307 <limits.h> exists even on freestanding compilers. */
49310 # include <limits.h>
49312 # include <assert.h>
49317 /* Override any gcc2 internal prototype to avoid an error. */
49322 /* We use char because int might match the return type of a gcc2
49323 builtin and then its argument prototype would still apply. */
49325 /* The GNU C library defines this for functions which it implements
49326 to always fail with ENOSYS. Some functions are actually named
49327 something starting with __ and the normal name is an alias. */
49328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49331 char (*f) () = $ac_func;
49340 return f != $ac_func;
49345 rm -f conftest.$ac_objext conftest$ac_exeext
49346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49347 (eval $ac_link) 2>conftest.er1
49349 grep -v '^ *+' conftest.er1 >conftest.err
49351 cat conftest.err >&5
49352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49353 (exit $ac_status); } &&
49354 { ac_try='test -z "$ac_c_werror_flag"
49355 || test ! -s conftest.err'
49356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49357 (eval $ac_try) 2>&5
49359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49360 (exit $ac_status); }; } &&
49361 { ac_try='test -s conftest$ac_exeext'
49362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49363 (eval $ac_try) 2>&5
49365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49366 (exit $ac_status); }; }; then
49367 eval "$as_ac_var=yes"
49369 echo "$as_me: failed program was:" >&5
49370 sed 's/^/| /' conftest.$ac_ext >&5
49372 eval "$as_ac_var=no"
49374 rm -f conftest.err conftest.$ac_objext \
49375 conftest$ac_exeext conftest.$ac_ext
49377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49379 if test `eval echo '${'$as_ac_var'}'` = yes; then
49380 cat >>confdefs.h <<_ACEOF
49381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49384 echo "$as_me:$LINENO: checking for _doprnt" >&5
49385 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49386 if test "${ac_cv_func__doprnt+set}" = set; then
49387 echo $ECHO_N "(cached) $ECHO_C" >&6
49389 cat >conftest.$ac_ext <<_ACEOF
49392 cat confdefs.h >>conftest.$ac_ext
49393 cat >>conftest.$ac_ext <<_ACEOF
49394 /* end confdefs.h. */
49395 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49397 #define _doprnt innocuous__doprnt
49399 /* System header to define __stub macros and hopefully few prototypes,
49400 which can conflict with char _doprnt (); below.
49401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49402 <limits.h> exists even on freestanding compilers. */
49405 # include <limits.h>
49407 # include <assert.h>
49412 /* Override any gcc2 internal prototype to avoid an error. */
49417 /* We use char because int might match the return type of a gcc2
49418 builtin and then its argument prototype would still apply. */
49420 /* The GNU C library defines this for functions which it implements
49421 to always fail with ENOSYS. Some functions are actually named
49422 something starting with __ and the normal name is an alias. */
49423 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49426 char (*f) () = _doprnt;
49435 return f != _doprnt;
49440 rm -f conftest.$ac_objext conftest$ac_exeext
49441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49442 (eval $ac_link) 2>conftest.er1
49444 grep -v '^ *+' conftest.er1 >conftest.err
49446 cat conftest.err >&5
49447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49448 (exit $ac_status); } &&
49449 { ac_try='test -z "$ac_c_werror_flag"
49450 || test ! -s conftest.err'
49451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49452 (eval $ac_try) 2>&5
49454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49455 (exit $ac_status); }; } &&
49456 { ac_try='test -s conftest$ac_exeext'
49457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49458 (eval $ac_try) 2>&5
49460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49461 (exit $ac_status); }; }; then
49462 ac_cv_func__doprnt=yes
49464 echo "$as_me: failed program was:" >&5
49465 sed 's/^/| /' conftest.$ac_ext >&5
49467 ac_cv_func__doprnt=no
49469 rm -f conftest.err conftest.$ac_objext \
49470 conftest$ac_exeext conftest.$ac_ext
49472 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49473 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49474 if test $ac_cv_func__doprnt = yes; then
49476 cat >>confdefs.h <<\_ACEOF
49477 #define HAVE_DOPRNT 1
49487 if test $ac_cv_func_vprintf = yes ; then
49490 for ac_func in snprintf vsnprintf
49492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49493 echo "$as_me:$LINENO: checking for $ac_func" >&5
49494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49495 if eval "test \"\${$as_ac_var+set}\" = set"; then
49496 echo $ECHO_N "(cached) $ECHO_C" >&6
49498 cat >conftest.$ac_ext <<_ACEOF
49501 cat confdefs.h >>conftest.$ac_ext
49502 cat >>conftest.$ac_ext <<_ACEOF
49503 /* end confdefs.h. */
49504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49506 #define $ac_func innocuous_$ac_func
49508 /* System header to define __stub macros and hopefully few prototypes,
49509 which can conflict with char $ac_func (); below.
49510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49511 <limits.h> exists even on freestanding compilers. */
49514 # include <limits.h>
49516 # include <assert.h>
49521 /* Override any gcc2 internal prototype to avoid an error. */
49526 /* We use char because int might match the return type of a gcc2
49527 builtin and then its argument prototype would still apply. */
49529 /* The GNU C library defines this for functions which it implements
49530 to always fail with ENOSYS. Some functions are actually named
49531 something starting with __ and the normal name is an alias. */
49532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49535 char (*f) () = $ac_func;
49544 return f != $ac_func;
49549 rm -f conftest.$ac_objext conftest$ac_exeext
49550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49551 (eval $ac_link) 2>conftest.er1
49553 grep -v '^ *+' conftest.er1 >conftest.err
49555 cat conftest.err >&5
49556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49557 (exit $ac_status); } &&
49558 { ac_try='test -z "$ac_c_werror_flag"
49559 || test ! -s conftest.err'
49560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49561 (eval $ac_try) 2>&5
49563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49564 (exit $ac_status); }; } &&
49565 { ac_try='test -s conftest$ac_exeext'
49566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49567 (eval $ac_try) 2>&5
49569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49570 (exit $ac_status); }; }; then
49571 eval "$as_ac_var=yes"
49573 echo "$as_me: failed program was:" >&5
49574 sed 's/^/| /' conftest.$ac_ext >&5
49576 eval "$as_ac_var=no"
49578 rm -f conftest.err conftest.$ac_objext \
49579 conftest$ac_exeext conftest.$ac_ext
49581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49583 if test `eval echo '${'$as_ac_var'}'` = yes; then
49584 cat >>confdefs.h <<_ACEOF
49585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49703 echo "$as_me:$LINENO: checking for $ac_func" >&5
49704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49705 if eval "test \"\${$as_ac_var+set}\" = set"; then
49706 echo $ECHO_N "(cached) $ECHO_C" >&6
49708 cat >conftest.$ac_ext <<_ACEOF
49711 cat confdefs.h >>conftest.$ac_ext
49712 cat >>conftest.$ac_ext <<_ACEOF
49713 /* end confdefs.h. */
49714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49716 #define $ac_func innocuous_$ac_func
49718 /* System header to define __stub macros and hopefully few prototypes,
49719 which can conflict with char $ac_func (); below.
49720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49721 <limits.h> exists even on freestanding compilers. */
49724 # include <limits.h>
49726 # include <assert.h>
49731 /* Override any gcc2 internal prototype to avoid an error. */
49736 /* We use char because int might match the return type of a gcc2
49737 builtin and then its argument prototype would still apply. */
49739 /* The GNU C library defines this for functions which it implements
49740 to always fail with ENOSYS. Some functions are actually named
49741 something starting with __ and the normal name is an alias. */
49742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49745 char (*f) () = $ac_func;
49754 return f != $ac_func;
49759 rm -f conftest.$ac_objext conftest$ac_exeext
49760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49761 (eval $ac_link) 2>conftest.er1
49763 grep -v '^ *+' conftest.er1 >conftest.err
49765 cat conftest.err >&5
49766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49767 (exit $ac_status); } &&
49768 { ac_try='test -z "$ac_c_werror_flag"
49769 || test ! -s conftest.err'
49770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49771 (eval $ac_try) 2>&5
49773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49774 (exit $ac_status); }; } &&
49775 { ac_try='test -s conftest$ac_exeext'
49776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49777 (eval $ac_try) 2>&5
49779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49780 (exit $ac_status); }; }; then
49781 eval "$as_ac_var=yes"
49783 echo "$as_me: failed program was:" >&5
49784 sed 's/^/| /' conftest.$ac_ext >&5
49786 eval "$as_ac_var=no"
49788 rm -f conftest.err conftest.$ac_objext \
49789 conftest$ac_exeext conftest.$ac_ext
49791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49793 if test `eval echo '${'$as_ac_var'}'` = yes; then
49794 cat >>confdefs.h <<_ACEOF
49795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49804 for ac_func in getopt getpeereid
49806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49807 echo "$as_me:$LINENO: checking for $ac_func" >&5
49808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49809 if eval "test \"\${$as_ac_var+set}\" = set"; then
49810 echo $ECHO_N "(cached) $ECHO_C" >&6
49812 cat >conftest.$ac_ext <<_ACEOF
49815 cat confdefs.h >>conftest.$ac_ext
49816 cat >>conftest.$ac_ext <<_ACEOF
49817 /* end confdefs.h. */
49818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49820 #define $ac_func innocuous_$ac_func
49822 /* System header to define __stub macros and hopefully few prototypes,
49823 which can conflict with char $ac_func (); below.
49824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49825 <limits.h> exists even on freestanding compilers. */
49828 # include <limits.h>
49830 # include <assert.h>
49835 /* Override any gcc2 internal prototype to avoid an error. */
49840 /* We use char because int might match the return type of a gcc2
49841 builtin and then its argument prototype would still apply. */
49843 /* The GNU C library defines this for functions which it implements
49844 to always fail with ENOSYS. Some functions are actually named
49845 something starting with __ and the normal name is an alias. */
49846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49849 char (*f) () = $ac_func;
49858 return f != $ac_func;
49863 rm -f conftest.$ac_objext conftest$ac_exeext
49864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49865 (eval $ac_link) 2>conftest.er1
49867 grep -v '^ *+' conftest.er1 >conftest.err
49869 cat conftest.err >&5
49870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49871 (exit $ac_status); } &&
49872 { ac_try='test -z "$ac_c_werror_flag"
49873 || test ! -s conftest.err'
49874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49875 (eval $ac_try) 2>&5
49877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49878 (exit $ac_status); }; } &&
49879 { ac_try='test -s conftest$ac_exeext'
49880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49881 (eval $ac_try) 2>&5
49883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49884 (exit $ac_status); }; }; then
49885 eval "$as_ac_var=yes"
49887 echo "$as_me: failed program was:" >&5
49888 sed 's/^/| /' conftest.$ac_ext >&5
49890 eval "$as_ac_var=no"
49892 rm -f conftest.err conftest.$ac_objext \
49893 conftest$ac_exeext conftest.$ac_ext
49895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49897 if test `eval echo '${'$as_ac_var'}'` = yes; then
49898 cat >>confdefs.h <<_ACEOF
49899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49904 "$ac_func.$ac_objext" | \
49905 *" $ac_func.$ac_objext" | \
49906 "$ac_func.$ac_objext "* | \
49907 *" $ac_func.$ac_objext "* ) ;;
49908 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49916 if test "$ac_cv_func_getopt" != yes; then
49917 LIBSRCS="$LIBSRCS getopt.c"
49919 if test "$ac_cv_func_getpeereid" != yes; then
49920 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
49921 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
49922 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
49923 echo $ECHO_N "(cached) $ECHO_C" >&6
49925 cat >conftest.$ac_ext <<_ACEOF
49928 cat confdefs.h >>conftest.$ac_ext
49929 cat >>conftest.$ac_ext <<_ACEOF
49930 /* end confdefs.h. */
49931 #include <sys/socket.h>
49935 struct msghdr m; m.msg_accrightslen=0
49940 rm -f conftest.$ac_objext
49941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49942 (eval $ac_compile) 2>conftest.er1
49944 grep -v '^ *+' conftest.er1 >conftest.err
49946 cat conftest.err >&5
49947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49948 (exit $ac_status); } &&
49949 { ac_try='test -z "$ac_c_werror_flag"
49950 || test ! -s conftest.err'
49951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49952 (eval $ac_try) 2>&5
49954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49955 (exit $ac_status); }; } &&
49956 { ac_try='test -s conftest.$ac_objext'
49957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49958 (eval $ac_try) 2>&5
49960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49961 (exit $ac_status); }; }; then
49962 ol_cv_msghdr_msg_accrights=yes
49964 echo "$as_me: failed program was:" >&5
49965 sed 's/^/| /' conftest.$ac_ext >&5
49967 ol_cv_msghdr_msg_accrights=no
49969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49972 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
49973 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
49974 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
49976 cat >>confdefs.h <<\_ACEOF
49977 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
49982 if test "$ac_cv_func_getpeereid" != yes; then
49983 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
49984 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
49985 if test "${ol_cv_msghdr_msg_control+set}" = set; then
49986 echo $ECHO_N "(cached) $ECHO_C" >&6
49988 cat >conftest.$ac_ext <<_ACEOF
49991 cat confdefs.h >>conftest.$ac_ext
49992 cat >>conftest.$ac_ext <<_ACEOF
49993 /* end confdefs.h. */
49994 #include <sys/socket.h>
49998 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50003 rm -f conftest.$ac_objext
50004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50005 (eval $ac_compile) 2>conftest.er1
50007 grep -v '^ *+' conftest.er1 >conftest.err
50009 cat conftest.err >&5
50010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50011 (exit $ac_status); } &&
50012 { ac_try='test -z "$ac_c_werror_flag"
50013 || test ! -s conftest.err'
50014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50015 (eval $ac_try) 2>&5
50017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50018 (exit $ac_status); }; } &&
50019 { ac_try='test -s conftest.$ac_objext'
50020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50021 (eval $ac_try) 2>&5
50023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50024 (exit $ac_status); }; }; then
50025 ol_cv_msghdr_msg_control=yes
50027 echo "$as_me: failed program was:" >&5
50028 sed 's/^/| /' conftest.$ac_ext >&5
50030 ol_cv_msghdr_msg_control=no
50032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50035 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50036 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50037 if test $ol_cv_msghdr_msg_control = "yes" ; then
50039 cat >>confdefs.h <<\_ACEOF
50040 #define HAVE_MSGHDR_MSG_CONTROL 1
50046 LIBSRCS="$LIBSRCS getpeereid.c"
50048 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50049 if test "$ac_cv_func_snprintf" != yes; then
50051 cat >>confdefs.h <<\_ACEOF
50052 #define snprintf ber_pvt_snprintf
50056 if test "$ac_cv_func_vsnprintf" != yes; then
50058 cat >>confdefs.h <<\_ACEOF
50059 #define vsnprintf ber_pvt_vsnprintf
50066 if test "$ol_enable_slapi" != no ; then
50068 for ac_header in ltdl.h
50070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50072 echo "$as_me:$LINENO: checking for $ac_header" >&5
50073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50075 echo $ECHO_N "(cached) $ECHO_C" >&6
50077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50080 # Is the header compilable?
50081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50083 cat >conftest.$ac_ext <<_ACEOF
50086 cat confdefs.h >>conftest.$ac_ext
50087 cat >>conftest.$ac_ext <<_ACEOF
50088 /* end confdefs.h. */
50089 $ac_includes_default
50090 #include <$ac_header>
50092 rm -f conftest.$ac_objext
50093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50094 (eval $ac_compile) 2>conftest.er1
50096 grep -v '^ *+' conftest.er1 >conftest.err
50098 cat conftest.err >&5
50099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50100 (exit $ac_status); } &&
50101 { ac_try='test -z "$ac_c_werror_flag"
50102 || test ! -s conftest.err'
50103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50104 (eval $ac_try) 2>&5
50106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50107 (exit $ac_status); }; } &&
50108 { ac_try='test -s conftest.$ac_objext'
50109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50110 (eval $ac_try) 2>&5
50112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50113 (exit $ac_status); }; }; then
50114 ac_header_compiler=yes
50116 echo "$as_me: failed program was:" >&5
50117 sed 's/^/| /' conftest.$ac_ext >&5
50119 ac_header_compiler=no
50121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50123 echo "${ECHO_T}$ac_header_compiler" >&6
50125 # Is the header present?
50126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50128 cat >conftest.$ac_ext <<_ACEOF
50131 cat confdefs.h >>conftest.$ac_ext
50132 cat >>conftest.$ac_ext <<_ACEOF
50133 /* end confdefs.h. */
50134 #include <$ac_header>
50136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50139 grep -v '^ *+' conftest.er1 >conftest.err
50141 cat conftest.err >&5
50142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50143 (exit $ac_status); } >/dev/null; then
50144 if test -s conftest.err; then
50145 ac_cpp_err=$ac_c_preproc_warn_flag
50146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50153 if test -z "$ac_cpp_err"; then
50154 ac_header_preproc=yes
50156 echo "$as_me: failed program was:" >&5
50157 sed 's/^/| /' conftest.$ac_ext >&5
50159 ac_header_preproc=no
50161 rm -f conftest.err conftest.$ac_ext
50162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50163 echo "${ECHO_T}$ac_header_preproc" >&6
50165 # So? What about this header?
50166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50172 ac_header_preproc=yes
50175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50189 ## ------------------------------------------ ##
50190 ## Report this to the AC_PACKAGE_NAME lists. ##
50191 ## ------------------------------------------ ##
50194 sed "s/^/$as_me: WARNING: /" >&2
50197 echo "$as_me:$LINENO: checking for $ac_header" >&5
50198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50200 echo $ECHO_N "(cached) $ECHO_C" >&6
50202 eval "$as_ac_Header=\$ac_header_preproc"
50204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50209 cat >>confdefs.h <<_ACEOF
50210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50218 if test $ac_cv_header_ltdl_h != yes ; then
50219 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50220 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50221 { (exit 1); exit 1; }; }
50223 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50224 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50225 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50226 echo $ECHO_N "(cached) $ECHO_C" >&6
50228 ac_check_lib_save_LIBS=$LIBS
50229 LIBS="-lltdl $LIBS"
50230 cat >conftest.$ac_ext <<_ACEOF
50233 cat confdefs.h >>conftest.$ac_ext
50234 cat >>conftest.$ac_ext <<_ACEOF
50235 /* end confdefs.h. */
50237 /* Override any gcc2 internal prototype to avoid an error. */
50241 /* We use char because int might match the return type of a gcc2
50242 builtin and then its argument prototype would still apply. */
50252 rm -f conftest.$ac_objext conftest$ac_exeext
50253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50254 (eval $ac_link) 2>conftest.er1
50256 grep -v '^ *+' conftest.er1 >conftest.err
50258 cat conftest.err >&5
50259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50260 (exit $ac_status); } &&
50261 { ac_try='test -z "$ac_c_werror_flag"
50262 || test ! -s conftest.err'
50263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50264 (eval $ac_try) 2>&5
50266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50267 (exit $ac_status); }; } &&
50268 { ac_try='test -s conftest$ac_exeext'
50269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50270 (eval $ac_try) 2>&5
50272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50273 (exit $ac_status); }; }; then
50274 ac_cv_lib_ltdl_lt_dlinit=yes
50276 echo "$as_me: failed program was:" >&5
50277 sed 's/^/| /' conftest.$ac_ext >&5
50279 ac_cv_lib_ltdl_lt_dlinit=no
50281 rm -f conftest.err conftest.$ac_objext \
50282 conftest$ac_exeext conftest.$ac_ext
50283 LIBS=$ac_check_lib_save_LIBS
50285 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50286 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50287 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50290 LIBSLAPI=libslapi.a
50291 LIBSLAPITOOLS=../libslapi.a
50293 cat >>confdefs.h <<\_ACEOF
50294 #define HAVE_LIBLTDL 1
50299 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50300 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50301 { (exit 1); exit 1; }; }
50306 cat >>confdefs.h <<\_ACEOF
50307 #define LDAP_SLAPI 1
50312 if test "$ol_enable_debug" != no ; then
50314 cat >>confdefs.h <<\_ACEOF
50315 #define LDAP_DEBUG 1
50319 if test "$ol_enable_syslog" = yes ; then
50321 cat >>confdefs.h <<\_ACEOF
50322 #define LDAP_SYSLOG 1
50326 if test "$ol_link_kbind" != no ; then
50327 cat >>confdefs.h <<\_ACEOF
50328 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50332 if test "$ol_enable_proctitle" != no ; then
50334 cat >>confdefs.h <<\_ACEOF
50335 #define LDAP_PROCTITLE 1
50339 if test "$ol_enable_referrals" != no ; then
50340 cat >>confdefs.h <<\_ACEOF
50341 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50345 if test "$ol_enable_local" != no; then
50347 cat >>confdefs.h <<\_ACEOF
50348 #define LDAP_PF_LOCAL 1
50352 if test "$ol_link_ipv6" != no; then
50354 cat >>confdefs.h <<\_ACEOF
50355 #define LDAP_PF_INET6 1
50359 if test "$ol_enable_cleartext" != no ; then
50361 cat >>confdefs.h <<\_ACEOF
50362 #define SLAPD_CLEARTEXT 1
50366 if test "$ol_enable_crypt" != no ; then
50368 cat >>confdefs.h <<\_ACEOF
50369 #define SLAPD_CRYPT 1
50373 if test "$ol_link_spasswd" != no ; then
50375 cat >>confdefs.h <<\_ACEOF
50376 #define SLAPD_SPASSWD 1
50380 if test "$ol_enable_multimaster" != no ; then
50382 cat >>confdefs.h <<\_ACEOF
50383 #define SLAPD_MULTIMASTER 1
50387 if test "$ol_enable_rlookups" != no ; then
50389 cat >>confdefs.h <<\_ACEOF
50390 #define SLAPD_RLOOKUPS 1
50394 if test "$ol_enable_aci" != no ; then
50396 cat >>confdefs.h <<\_ACEOF
50397 #define SLAPD_ACI_ENABLED 1
50402 if test "$ol_link_modules" != no ; then
50404 cat >>confdefs.h <<\_ACEOF
50405 #define SLAPD_MODULES 1
50409 SLAPD_MODULES_LDFLAGS="-dlopen self"
50413 cat >>confdefs.h <<\_ACEOF
50414 #define SLAPD_MOD_STATIC 1
50418 cat >>confdefs.h <<\_ACEOF
50419 #define SLAPD_MOD_DYNAMIC 2
50423 if test "$ol_enable_bdb" != no ; then
50425 BUILD_BDB=$ol_enable_bdb
50426 if test "$ol_enable_bdb" = mod ; then
50427 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50428 MFLAG=SLAPD_MOD_DYNAMIC
50430 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50431 MFLAG=SLAPD_MOD_STATIC
50434 cat >>confdefs.h <<_ACEOF
50435 #define SLAPD_BDB $MFLAG
50440 if test "$ol_enable_dnssrv" != no ; then
50442 BUILD_DNSSRV=$ol_enable_dnssrv
50443 if test "$ol_enable_dnssrv" = mod ; then
50444 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50445 MFLAG=SLAPD_MOD_DYNAMIC
50447 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50448 MFLAG=SLAPD_MOD_STATIC
50451 cat >>confdefs.h <<_ACEOF
50452 #define SLAPD_DNSSRV $MFLAG
50457 if test "$ol_enable_hdb" != no ; then
50459 BUILD_HDB=$ol_enable_hdb
50460 if test "$ol_enable_hdb" = mod ; then
50461 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50462 MFLAG=SLAPD_MOD_DYNAMIC
50464 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50465 MFLAG=SLAPD_MOD_STATIC
50468 cat >>confdefs.h <<_ACEOF
50469 #define SLAPD_HDB $MFLAG
50474 if test "$ol_enable_ldap" != no ; then
50476 BUILD_LDAP=$ol_enable_ldap
50477 if test "$ol_enable_ldap" = mod ; then
50478 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50479 MFLAG=SLAPD_MOD_DYNAMIC
50481 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50482 MFLAG=SLAPD_MOD_STATIC
50485 cat >>confdefs.h <<_ACEOF
50486 #define SLAPD_LDAP $MFLAG
50491 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50493 BUILD_LDBM=$ol_enable_ldbm
50494 if test "$ol_enable_ldbm" = mod ; then
50495 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50496 MFLAG=SLAPD_MOD_DYNAMIC
50498 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50499 MFLAG=SLAPD_MOD_STATIC
50502 cat >>confdefs.h <<_ACEOF
50503 #define SLAPD_LDBM $MFLAG
50508 if test "$ol_enable_meta" != no ; then
50510 BUILD_META=$ol_enable_meta
50512 if test "$ol_enable_meta" = mod ; then
50513 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50514 MFLAG=SLAPD_MOD_DYNAMIC
50516 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50517 MFLAG=SLAPD_MOD_STATIC
50520 cat >>confdefs.h <<_ACEOF
50521 #define SLAPD_META $MFLAG
50526 if test "$ol_enable_monitor" != no ; then
50528 BUILD_MONITOR=$ol_enable_monitor
50529 if test "$ol_enable_monitor" = mod ; then
50530 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50531 MFLAG=SLAPD_MOD_DYNAMIC
50533 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50534 MFLAG=SLAPD_MOD_STATIC
50537 cat >>confdefs.h <<_ACEOF
50538 #define SLAPD_MONITOR $MFLAG
50543 if test "$ol_enable_null" != no ; then
50545 BUILD_NULL=$ol_enable_null
50546 if test "$ol_enable_null" = mod ; then
50547 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50548 MFLAG=SLAPD_MOD_DYNAMIC
50550 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50551 MFLAG=SLAPD_MOD_STATIC
50554 cat >>confdefs.h <<_ACEOF
50555 #define SLAPD_NULL $MFLAG
50560 if test "$ol_enable_passwd" != no ; then
50562 BUILD_PASSWD=$ol_enable_passwd
50563 if test "$ol_enable_passwd" = mod ; then
50564 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50565 MFLAG=SLAPD_MOD_DYNAMIC
50567 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50568 MFLAG=SLAPD_MOD_STATIC
50571 cat >>confdefs.h <<_ACEOF
50572 #define SLAPD_PASSWD $MFLAG
50577 if test "$ol_link_perl" != no ; then
50579 BUILD_PERL=$ol_enable_perl
50580 if test "$ol_enable_perl" = mod ; then
50581 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50582 MFLAG=SLAPD_MOD_DYNAMIC
50584 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50585 MFLAG=SLAPD_MOD_STATIC
50588 cat >>confdefs.h <<_ACEOF
50589 #define SLAPD_PERL $MFLAG
50594 if test "$ol_enable_relay" != no ; then
50596 BUILD_RELAY=$ol_enable_relay
50597 if test "$ol_enable_relay" = mod ; then
50598 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50599 MFLAG=SLAPD_MOD_DYNAMIC
50601 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50602 MFLAG=SLAPD_MOD_STATIC
50605 cat >>confdefs.h <<_ACEOF
50606 #define SLAPD_RELAY $MFLAG
50611 if test "$ol_enable_shell" != no ; then
50612 if test "$ol_link_thread" != no ; then
50613 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50614 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50617 BUILD_SHELL=$ol_enable_shell
50618 if test "$ol_enable_shell" = mod ; then
50619 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50620 MFLAG=SLAPD_MOD_DYNAMIC
50622 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50623 MFLAG=SLAPD_MOD_STATIC
50626 cat >>confdefs.h <<_ACEOF
50627 #define SLAPD_SHELL $MFLAG
50632 if test "$ol_link_sql" != no ; then
50634 BUILD_SQL=$ol_enable_sql
50635 if test "$ol_enable_sql" = mod; then
50636 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50637 MFLAG=SLAPD_MOD_DYNAMIC
50639 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50640 MFLAG=SLAPD_MOD_STATIC
50643 cat >>confdefs.h <<_ACEOF
50644 #define SLAPD_SQL $MFLAG
50649 if test "$ol_enable_accesslog" != no ; then
50650 BUILD_ACCESSLOG=$ol_enable_accesslog
50651 if test "$ol_enable_accesslog" = mod ; then
50652 MFLAG=SLAPD_MOD_DYNAMIC
50653 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50655 MFLAG=SLAPD_MOD_STATIC
50656 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50659 cat >>confdefs.h <<_ACEOF
50660 #define SLAPD_OVER_ACCESSLOG $MFLAG
50665 if test "$ol_enable_denyop" != no ; then
50666 BUILD_DENYOP=$ol_enable_denyop
50667 if test "$ol_enable_denyop" = mod ; then
50668 MFLAG=SLAPD_MOD_DYNAMIC
50669 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50671 MFLAG=SLAPD_MOD_STATIC
50672 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50675 cat >>confdefs.h <<_ACEOF
50676 #define SLAPD_OVER_DENYOP $MFLAG
50681 if test "$ol_enable_dyngroup" != no ; then
50682 BUILD_DYNGROUP=$ol_enable_dyngroup
50683 if test "$ol_enable_dyngroup" = mod ; then
50684 MFLAG=SLAPD_MOD_DYNAMIC
50685 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50687 MFLAG=SLAPD_MOD_STATIC
50688 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50691 cat >>confdefs.h <<_ACEOF
50692 #define SLAPD_OVER_DYNGROUP $MFLAG
50697 if test "$ol_enable_dynlist" != no ; then
50698 BUILD_DYNLIST=$ol_enable_dynlist
50699 if test "$ol_enable_dynlist" = mod ; then
50700 MFLAG=SLAPD_MOD_DYNAMIC
50701 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50703 MFLAG=SLAPD_MOD_STATIC
50704 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50707 cat >>confdefs.h <<_ACEOF
50708 #define SLAPD_OVER_DYNLIST $MFLAG
50713 if test "$ol_enable_glue" != no ; then
50714 BUILD_GLUE=$ol_enable_glue
50715 if test "$ol_enable_glue" = mod ; then
50716 MFLAG=SLAPD_MOD_DYNAMIC
50717 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50719 MFLAG=SLAPD_MOD_STATIC
50720 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50723 cat >>confdefs.h <<_ACEOF
50724 #define SLAPD_OVER_GLUE $MFLAG
50729 if test "$ol_enable_lastmod" != no ; then
50730 BUILD_LASTMOD=$ol_enable_lastmod
50731 if test "$ol_enable_lastmod" = mod ; then
50732 MFLAG=SLAPD_MOD_DYNAMIC
50733 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50735 MFLAG=SLAPD_MOD_STATIC
50736 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50739 cat >>confdefs.h <<_ACEOF
50740 #define SLAPD_OVER_LASTMOD $MFLAG
50745 if test "$ol_enable_ppolicy" != no ; then
50746 BUILD_PPOLICY=$ol_enable_ppolicy
50747 if test "$ol_enable_ppolicy" = mod ; then
50748 MFLAG=SLAPD_MOD_DYNAMIC
50749 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50751 MFLAG=SLAPD_MOD_STATIC
50752 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50755 cat >>confdefs.h <<_ACEOF
50756 #define SLAPD_OVER_PPOLICY $MFLAG
50761 if test "$ol_enable_proxycache" != no ; then
50762 BUILD_PROXYCACHE=$ol_enable_proxycache
50763 if test "$ol_enable_proxycache" = mod ; then
50764 MFLAG=SLAPD_MOD_DYNAMIC
50765 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50767 MFLAG=SLAPD_MOD_STATIC
50768 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50771 cat >>confdefs.h <<_ACEOF
50772 #define SLAPD_OVER_PROXYCACHE $MFLAG
50777 if test "$ol_enable_refint" != no ; then
50778 BUILD_REFINT=$ol_enable_refint
50779 if test "$ol_enable_refint" = mod ; then
50780 MFLAG=SLAPD_MOD_DYNAMIC
50781 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50783 MFLAG=SLAPD_MOD_STATIC
50784 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50787 cat >>confdefs.h <<_ACEOF
50788 #define SLAPD_OVER_REFINT $MFLAG
50793 if test "$ol_enable_retcode" != no ; then
50794 BUILD_RETCODE=$ol_enable_retcode
50795 if test "$ol_enable_retcode" = mod ; then
50796 MFLAG=SLAPD_MOD_DYNAMIC
50797 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50799 MFLAG=SLAPD_MOD_STATIC
50800 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
50803 cat >>confdefs.h <<_ACEOF
50804 #define SLAPD_OVER_RETCODE $MFLAG
50809 if test "$ol_enable_rwm" != no ; then
50811 BUILD_RWM=$ol_enable_rwm
50812 if test "$ol_enable_rwm" = mod ; then
50813 MFLAG=SLAPD_MOD_DYNAMIC
50814 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
50816 MFLAG=SLAPD_MOD_STATIC
50817 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
50820 cat >>confdefs.h <<_ACEOF
50821 #define SLAPD_OVER_RWM $MFLAG
50826 if test "$ol_enable_syncprov" != no ; then
50827 BUILD_SYNCPROV=$ol_enable_syncprov
50828 if test "$ol_enable_syncprov" = mod ; then
50829 MFLAG=SLAPD_MOD_DYNAMIC
50830 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
50832 MFLAG=SLAPD_MOD_STATIC
50833 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
50836 cat >>confdefs.h <<_ACEOF
50837 #define SLAPD_OVER_SYNCPROV $MFLAG
50842 if test "$ol_enable_translucent" != no ; then
50843 BUILD_TRANSLUCENT=$ol_enable_translucent
50844 if test "$ol_enable_translucent" = mod ; then
50845 MFLAG=SLAPD_MOD_DYNAMIC
50846 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
50848 MFLAG=SLAPD_MOD_STATIC
50849 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
50852 cat >>confdefs.h <<_ACEOF
50853 #define SLAPD_OVER_TRANSLUCENT $MFLAG
50858 if test "$ol_enable_unique" != no ; then
50859 BUILD_UNIQUE=$ol_enable_unique
50860 if test "$ol_enable_unique" = mod ; then
50861 MFLAG=SLAPD_MOD_DYNAMIC
50862 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
50864 MFLAG=SLAPD_MOD_STATIC
50865 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
50868 cat >>confdefs.h <<_ACEOF
50869 #define SLAPD_OVER_UNIQUE $MFLAG
50874 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
50875 $BUILD_SLAPD = yes ; then
50879 if test "$ol_enable_rewrite" != no ; then
50881 cat >>confdefs.h <<\_ACEOF
50882 #define ENABLE_REWRITE 1
50888 if test "$ol_enable_slapi" != no ; then
50890 cat >>confdefs.h <<\_ACEOF
50891 #define ENABLE_SLAPI 1
50895 SLAPD_SLAPI_DEPEND=libslapi.a
50900 if test "$ac_cv_mingw32" = yes ; then
50902 SLAPD_MODULES_LDFLAGS=
50985 # Check whether --with-xxinstall or --without-xxinstall was given.
50986 if test "${with_xxinstall+set}" = set; then
50987 withval="$with_xxinstall"
50992 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"
50994 ac_config_commands="$ac_config_commands default"
50998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50999 # Let make expand exec_prefix.
51000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51004 # trailing colons and then remove the whole line if VPATH becomes empty
51005 # (actually we leave an empty line to preserve line numbers).
51006 if test "x$srcdir" = x.; then
51007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51008 s/:*\$(srcdir):*/:/;
51009 s/:*\${srcdir}:*/:/;
51011 s/^\([^=]*=[ ]*\):*/\1/;
51017 DEFS=-DHAVE_CONFIG_H
51021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51022 # 1. Remove the extension, and $U if already installed.
51023 ac_i=`echo "$ac_i" |
51024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51026 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51027 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51029 LIBOBJS=$ac_libobjs
51031 LTLIBOBJS=$ac_ltlibobjs
51034 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51035 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51036 Usually this means the macro was only invoked conditionally." >&5
51037 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51038 Usually this means the macro was only invoked conditionally." >&2;}
51039 { (exit 1); exit 1; }; }
51041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51042 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51043 Usually this means the macro was only invoked conditionally." >&5
51044 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51045 Usually this means the macro was only invoked conditionally." >&2;}
51046 { (exit 1); exit 1; }; }
51048 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51049 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51050 Usually this means the macro was only invoked conditionally." >&5
51051 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51052 Usually this means the macro was only invoked conditionally." >&2;}
51053 { (exit 1); exit 1; }; }
51055 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51056 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51057 Usually this means the macro was only invoked conditionally." >&5
51058 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51059 Usually this means the macro was only invoked conditionally." >&2;}
51060 { (exit 1); exit 1; }; }
51063 : ${CONFIG_STATUS=./config.status}
51064 ac_clean_files_save=$ac_clean_files
51065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51066 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51067 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51068 cat >$CONFIG_STATUS <<_ACEOF
51070 # Generated by $as_me.
51071 # Run this file to recreate the current configuration.
51072 # Compiler output produced by configure, useful for debugging
51073 # configure, is in config.log if it exists.
51076 ac_cs_recheck=false
51078 SHELL=\${CONFIG_SHELL-$SHELL}
51081 cat >>$CONFIG_STATUS <<\_ACEOF
51082 ## --------------------- ##
51083 ## M4sh Initialization. ##
51084 ## --------------------- ##
51086 # Be Bourne compatible
51087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51090 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51091 # is contrary to our usage. Disable this feature.
51092 alias -g '${1+"$@"}'='"$@"'
51093 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51096 DUALCASE=1; export DUALCASE # for MKS sh
51098 # Support unset when possible.
51099 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51106 # Work around bugs in pre-3.0 UWIN ksh.
51107 $as_unset ENV MAIL MAILPATH
51114 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51115 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51116 LC_TELEPHONE LC_TIME
51118 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51119 eval $as_var=C; export $as_var
51125 # Required to use basename.
51126 if expr a : '\(a\)' >/dev/null 2>&1; then
51132 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51133 as_basename=basename
51139 # Name of the executable.
51140 as_me=`$as_basename "$0" ||
51141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51142 X"$0" : 'X\(//\)$' \| \
51143 X"$0" : 'X\(/\)$' \| \
51144 . : '\(.\)' 2>/dev/null ||
51146 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51147 /^X\/\(\/\/\)$/{ s//\1/; q; }
51148 /^X\/\(\/\).*/{ s//\1/; q; }
51152 # PATH needs CR, and LINENO needs CR and PATH.
51153 # Avoid depending upon Character Ranges.
51154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51157 as_cr_digits='0123456789'
51158 as_cr_alnum=$as_cr_Letters$as_cr_digits
51160 # The user is always right.
51161 if test "${PATH_SEPARATOR+set}" != set; then
51162 echo "#! /bin/sh" >conf$$.sh
51163 echo "exit 0" >>conf$$.sh
51165 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51174 as_lineno_1=$LINENO
51175 as_lineno_2=$LINENO
51176 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51177 test "x$as_lineno_1" != "x$as_lineno_2" &&
51178 test "x$as_lineno_3" = "x$as_lineno_2" || {
51179 # Find who we are. Look in the path if we contain no path at all
51182 *[\\/]* ) as_myself=$0 ;;
51183 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51184 for as_dir in $PATH
51187 test -z "$as_dir" && as_dir=.
51188 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51193 # We did not find ourselves, most probably we were run as `sh COMMAND'
51194 # in which case we are not to be found in the path.
51195 if test "x$as_myself" = x; then
51198 if test ! -f "$as_myself"; then
51199 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51200 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51201 { (exit 1); exit 1; }; }
51203 case $CONFIG_SHELL in
51205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51206 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51209 test -z "$as_dir" && as_dir=.
51210 for as_base in sh bash ksh sh5; do
51213 if ("$as_dir/$as_base" -c '
51214 as_lineno_1=$LINENO
51215 as_lineno_2=$LINENO
51216 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51217 test "x$as_lineno_1" != "x$as_lineno_2" &&
51218 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51219 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51220 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51221 CONFIG_SHELL=$as_dir/$as_base
51222 export CONFIG_SHELL
51223 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51231 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51232 # uniformly replaced by the line number. The first 'sed' inserts a
51233 # line-number line before each line; the second 'sed' does the real
51234 # work. The second script uses 'N' to pair each line-number line
51235 # with the numbered line, and appends trailing '-' during
51236 # substitution so that $LINENO is not a special case at line end.
51237 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51238 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51239 sed '=' <$as_myself |
51244 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51247 s,^['$as_cr_digits']*\n,,
51248 ' >$as_me.lineno &&
51249 chmod +x $as_me.lineno ||
51250 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51251 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51252 { (exit 1); exit 1; }; }
51254 # Don't try to exec as it changes $[0], causing all sort of problems
51255 # (the dirname of $[0] is not the place where we might find the
51256 # original and so on. Autoconf is especially sensible to this).
51258 # Exit status is that of the last command.
51263 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51264 *c*,-n*) ECHO_N= ECHO_C='
51266 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51267 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51270 if expr a : '\(a\)' >/dev/null 2>&1; then
51276 rm -f conf$$ conf$$.exe conf$$.file
51278 if ln -s conf$$.file conf$$ 2>/dev/null; then
51279 # We could just check for DJGPP; but this test a) works b) is more generic
51280 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51281 if test -f conf$$.exe; then
51282 # Don't use ln at all; we don't have any links
51287 elif ln conf$$.file conf$$ 2>/dev/null; then
51292 rm -f conf$$ conf$$.exe conf$$.file
51294 if mkdir -p . 2>/dev/null; then
51297 test -d ./-p && rmdir ./-p
51301 as_executable_p="test -f"
51303 # Sed expression to map a string onto a valid CPP name.
51304 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51306 # Sed expression to map a string onto a valid variable name.
51307 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51311 # We need space, tab and new line, in precisely that order.
51321 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51322 # report actual input values of CONFIG_FILES etc. instead of their
51323 # values after options handling. Logging --version etc. is OK.
51327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51328 ## Running $as_me. ##
51333 This file was extended by $as_me, which was
51334 generated by GNU Autoconf 2.59. Invocation command line was
51336 CONFIG_FILES = $CONFIG_FILES
51337 CONFIG_HEADERS = $CONFIG_HEADERS
51338 CONFIG_LINKS = $CONFIG_LINKS
51339 CONFIG_COMMANDS = $CONFIG_COMMANDS
51343 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51347 # Files that config.status was made for.
51348 if test -n "$ac_config_files"; then
51349 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51352 if test -n "$ac_config_headers"; then
51353 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51356 if test -n "$ac_config_links"; then
51357 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51360 if test -n "$ac_config_commands"; then
51361 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51364 cat >>$CONFIG_STATUS <<\_ACEOF
51367 \`$as_me' instantiates files from templates according to the
51368 current configuration.
51370 Usage: $0 [OPTIONS] [FILE]...
51372 -h, --help print this help, then exit
51373 -V, --version print version number, then exit
51374 -q, --quiet do not print progress messages
51375 -d, --debug don't remove temporary files
51376 --recheck update $as_me by reconfiguring in the same conditions
51377 --file=FILE[:TEMPLATE]
51378 instantiate the configuration file FILE
51379 --header=FILE[:TEMPLATE]
51380 instantiate the configuration header FILE
51382 Configuration files:
51385 Configuration headers:
51388 Configuration commands:
51391 Report bugs to <bug-autoconf@gnu.org>."
51394 cat >>$CONFIG_STATUS <<_ACEOF
51397 configured by $0, generated by GNU Autoconf 2.59,
51398 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51400 Copyright (C) 2003 Free Software Foundation, Inc.
51401 This config.status script is free software; the Free Software Foundation
51402 gives unlimited permission to copy, distribute and modify it."
51407 cat >>$CONFIG_STATUS <<\_ACEOF
51408 # If no file are specified by the user, then we need to provide default
51409 # value. By we need to know if files were specified by the user.
51415 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51416 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51424 *) # This is not an option, so the user has probably given explicit
51427 ac_need_defaults=false;;
51431 # Handling of the options.
51433 cat >>$CONFIG_STATUS <<\_ACEOF
51434 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51436 --version | --vers* | -V )
51437 echo "$ac_cs_version"; exit 0 ;;
51439 # Conflict between --help and --header
51440 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51441 Try \`$0 --help' for more information." >&5
51442 echo "$as_me: error: ambiguous option: $1
51443 Try \`$0 --help' for more information." >&2;}
51444 { (exit 1); exit 1; }; };;
51445 --help | --hel | -h )
51446 echo "$ac_cs_usage"; exit 0 ;;
51447 --debug | --d* | -d )
51449 --file | --fil | --fi | --f )
51451 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51452 ac_need_defaults=false;;
51453 --header | --heade | --head | --hea )
51455 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51456 ac_need_defaults=false;;
51457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51458 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51461 # This is an error.
51462 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51463 Try \`$0 --help' for more information." >&5
51464 echo "$as_me: error: unrecognized option: $1
51465 Try \`$0 --help' for more information." >&2;}
51466 { (exit 1); exit 1; }; } ;;
51468 *) ac_config_targets="$ac_config_targets $1" ;;
51474 ac_configure_extra_args=
51476 if $ac_cs_silent; then
51478 ac_configure_extra_args="$ac_configure_extra_args --silent"
51482 cat >>$CONFIG_STATUS <<_ACEOF
51483 if \$ac_cs_recheck; then
51484 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51485 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51490 cat >>$CONFIG_STATUS <<_ACEOF
51492 # INIT-COMMANDS section.
51495 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51496 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51502 cat >>$CONFIG_STATUS <<\_ACEOF
51503 for ac_config_target in $ac_config_targets
51505 case "$ac_config_target" in
51506 # Handling of arguments.
51507 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51508 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51509 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51510 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51511 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51512 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51513 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51514 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51515 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51516 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51517 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51518 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51519 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51520 "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" ;;
51521 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51522 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51523 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51524 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51525 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51526 "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" ;;
51527 "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" ;;
51528 "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" ;;
51529 "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" ;;
51530 "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" ;;
51531 "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" ;;
51532 "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" ;;
51533 "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" ;;
51534 "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" ;;
51535 "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" ;;
51536 "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" ;;
51537 "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" ;;
51538 "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" ;;
51539 "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" ;;
51540 "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" ;;
51541 "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" ;;
51542 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51543 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51544 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51545 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51546 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51547 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51548 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51549 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
51550 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
51551 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
51552 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51553 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51554 { (exit 1); exit 1; }; };;
51558 # If the user did not use the arguments to specify the items to instantiate,
51559 # then the envvar interface is used. Set only those that are not.
51560 # We use the long form for the default assignment because of an extremely
51561 # bizarre bug on SunOS 4.1.3.
51562 if $ac_need_defaults; then
51563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51568 # Have a temporary directory for convenience. Make it in the build tree
51569 # simply because there is no reason to put it here, and in addition,
51570 # creating and moving files from /tmp can sometimes cause problems.
51571 # Create a temporary directory, and hook for its removal unless debugging.
51574 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51575 trap '{ (exit 1); exit 1; }' 1 2 13 15
51578 # Create a (secure) tmp directory for tmp files.
51581 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51582 test -n "$tmp" && test -d "$tmp"
51585 tmp=./confstat$$-$RANDOM
51586 (umask 077 && mkdir $tmp)
51589 echo "$me: cannot create a temporary directory in ." >&2
51590 { (exit 1); exit 1; }
51595 cat >>$CONFIG_STATUS <<_ACEOF
51598 # CONFIG_FILES section.
51601 # No need to generate the scripts if there are no CONFIG_FILES.
51602 # This happens for instance when ./config.status config.h
51603 if test -n "\$CONFIG_FILES"; then
51604 # Protect against being on the right side of a sed subst in config.status.
51605 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51606 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51607 s,@SHELL@,$SHELL,;t t
51608 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51609 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51610 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51611 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51612 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51613 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51614 s,@exec_prefix@,$exec_prefix,;t t
51615 s,@prefix@,$prefix,;t t
51616 s,@program_transform_name@,$program_transform_name,;t t
51617 s,@bindir@,$bindir,;t t
51618 s,@sbindir@,$sbindir,;t t
51619 s,@libexecdir@,$libexecdir,;t t
51620 s,@datadir@,$datadir,;t t
51621 s,@sysconfdir@,$sysconfdir,;t t
51622 s,@sharedstatedir@,$sharedstatedir,;t t
51623 s,@localstatedir@,$localstatedir,;t t
51624 s,@libdir@,$libdir,;t t
51625 s,@includedir@,$includedir,;t t
51626 s,@oldincludedir@,$oldincludedir,;t t
51627 s,@infodir@,$infodir,;t t
51628 s,@mandir@,$mandir,;t t
51629 s,@build_alias@,$build_alias,;t t
51630 s,@host_alias@,$host_alias,;t t
51631 s,@target_alias@,$target_alias,;t t
51632 s,@DEFS@,$DEFS,;t t
51633 s,@ECHO_C@,$ECHO_C,;t t
51634 s,@ECHO_N@,$ECHO_N,;t t
51635 s,@ECHO_T@,$ECHO_T,;t t
51636 s,@LIBS@,$LIBS,;t t
51637 s,@build@,$build,;t t
51638 s,@build_cpu@,$build_cpu,;t t
51639 s,@build_vendor@,$build_vendor,;t t
51640 s,@build_os@,$build_os,;t t
51641 s,@host@,$host,;t t
51642 s,@host_cpu@,$host_cpu,;t t
51643 s,@host_vendor@,$host_vendor,;t t
51644 s,@host_os@,$host_os,;t t
51645 s,@target@,$target,;t t
51646 s,@target_cpu@,$target_cpu,;t t
51647 s,@target_vendor@,$target_vendor,;t t
51648 s,@target_os@,$target_os,;t t
51649 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51650 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51651 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51652 s,@CYGPATH_W@,$CYGPATH_W,;t t
51653 s,@PACKAGE@,$PACKAGE,;t t
51654 s,@VERSION@,$VERSION,;t t
51655 s,@ACLOCAL@,$ACLOCAL,;t t
51656 s,@AUTOCONF@,$AUTOCONF,;t t
51657 s,@AUTOMAKE@,$AUTOMAKE,;t t
51658 s,@AUTOHEADER@,$AUTOHEADER,;t t
51659 s,@MAKEINFO@,$MAKEINFO,;t t
51660 s,@install_sh@,$install_sh,;t t
51661 s,@STRIP@,$STRIP,;t t
51662 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51663 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51664 s,@mkdir_p@,$mkdir_p,;t t
51666 s,@SET_MAKE@,$SET_MAKE,;t t
51667 s,@am__leading_dot@,$am__leading_dot,;t t
51668 s,@AMTAR@,$AMTAR,;t t
51669 s,@am__tar@,$am__tar,;t t
51670 s,@am__untar@,$am__untar,;t t
51671 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51672 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51673 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51674 s,@top_builddir@,$top_builddir,;t t
51675 s,@ldap_subdir@,$ldap_subdir,;t t
51678 s,@CFLAGS@,$CFLAGS,;t t
51679 s,@LDFLAGS@,$LDFLAGS,;t t
51680 s,@CPPFLAGS@,$CPPFLAGS,;t t
51681 s,@ac_ct_CC@,$ac_ct_CC,;t t
51682 s,@EXEEXT@,$EXEEXT,;t t
51683 s,@OBJEXT@,$OBJEXT,;t t
51684 s,@DEPDIR@,$DEPDIR,;t t
51685 s,@am__include@,$am__include,;t t
51686 s,@am__quote@,$am__quote,;t t
51687 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51688 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51689 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51690 s,@CCDEPMODE@,$CCDEPMODE,;t t
51691 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51692 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51693 s,@EGREP@,$EGREP,;t t
51694 s,@LN_S@,$LN_S,;t t
51695 s,@ECHO@,$ECHO,;t t
51696 s,@ac_ct_AR@,$ac_ct_AR,;t t
51697 s,@RANLIB@,$RANLIB,;t t
51698 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51699 s,@DLLTOOL@,$DLLTOOL,;t t
51700 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51702 s,@ac_ct_AS@,$ac_ct_AS,;t t
51703 s,@OBJDUMP@,$OBJDUMP,;t t
51704 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51707 s,@CXXFLAGS@,$CXXFLAGS,;t t
51708 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51709 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51710 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51711 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51712 s,@CXXCPP@,$CXXCPP,;t t
51714 s,@FFLAGS@,$FFLAGS,;t t
51715 s,@ac_ct_F77@,$ac_ct_F77,;t t
51716 s,@LIBTOOL@,$LIBTOOL,;t t
51717 s,@PERLBIN@,$PERLBIN,;t t
51718 s,@OL_MKDEP@,$OL_MKDEP,;t t
51719 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51720 s,@LTSTATIC@,$LTSTATIC,;t t
51721 s,@LIBOBJS@,$LIBOBJS,;t t
51722 s,@LIBSRCS@,$LIBSRCS,;t t
51723 s,@PLAT@,$PLAT,;t t
51724 s,@WITH_SASL@,$WITH_SASL,;t t
51725 s,@WITH_TLS@,$WITH_TLS,;t t
51726 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51727 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51728 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51729 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51730 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51731 s,@BUILD_BDB@,$BUILD_BDB,;t t
51732 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51733 s,@BUILD_HDB@,$BUILD_HDB,;t t
51734 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51735 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51736 s,@BUILD_META@,$BUILD_META,;t t
51737 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51738 s,@BUILD_NULL@,$BUILD_NULL,;t t
51739 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51740 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51741 s,@BUILD_PERL@,$BUILD_PERL,;t t
51742 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51743 s,@BUILD_SQL@,$BUILD_SQL,;t t
51744 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51745 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51746 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51747 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51748 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51749 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51750 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51751 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51752 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51753 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51754 s,@BUILD_RWM@,$BUILD_RWM,;t t
51755 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51756 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51757 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51758 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51759 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51760 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51761 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51762 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51763 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51764 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51765 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51766 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51767 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51768 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51769 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51770 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51771 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51772 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51773 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51774 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51775 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51776 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51777 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51778 s,@SASL_LIBS@,$SASL_LIBS,;t t
51779 s,@TLS_LIBS@,$TLS_LIBS,;t t
51780 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51781 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51782 s,@LIBSLAPI@,$LIBSLAPI,;t t
51783 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51784 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51785 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51786 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51787 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51788 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51789 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51790 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51795 cat >>$CONFIG_STATUS <<\_ACEOF
51796 # Split the substitutions into bite-sized pieces for seds with
51797 # small command number limits, like on Digital OSF/1 and HP-UX.
51798 ac_max_sed_lines=48
51799 ac_sed_frag=1 # Number of current file.
51800 ac_beg=1 # First line for current file.
51801 ac_end=$ac_max_sed_lines # Line after last line for current file.
51804 while $ac_more_lines; do
51805 if test $ac_beg -gt 1; then
51806 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51808 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51810 if test ! -s $tmp/subs.frag; then
51811 ac_more_lines=false
51813 # The purpose of the label and of the branching condition is to
51814 # speed up the sed processing (if there are no `@' at all, there
51815 # is no need to browse any of the substitutions).
51816 # These are the two extra sed commands mentioned above.
51818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51819 if test -z "$ac_sed_cmds"; then
51820 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
51822 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
51824 ac_sed_frag=`expr $ac_sed_frag + 1`
51826 ac_end=`expr $ac_end + $ac_max_sed_lines`
51829 if test -z "$ac_sed_cmds"; then
51832 fi # test -n "$CONFIG_FILES"
51835 cat >>$CONFIG_STATUS <<\_ACEOF
51836 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51839 - | *:- | *:-:* ) # input from stdin
51841 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51843 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51845 * ) ac_file_in=$ac_file.in ;;
51848 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51849 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51851 X"$ac_file" : 'X\(//\)[^/]' \| \
51852 X"$ac_file" : 'X\(//\)$' \| \
51853 X"$ac_file" : 'X\(/\)' \| \
51854 . : '\(.\)' 2>/dev/null ||
51856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51858 /^X\(\/\/\)$/{ s//\1/; q; }
51859 /^X\(\/\).*/{ s//\1/; q; }
51861 { if $as_mkdir_p; then
51866 while test ! -d "$as_dir"; do
51867 as_dirs="$as_dir $as_dirs"
51868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51870 X"$as_dir" : 'X\(//\)[^/]' \| \
51871 X"$as_dir" : 'X\(//\)$' \| \
51872 X"$as_dir" : 'X\(/\)' \| \
51873 . : '\(.\)' 2>/dev/null ||
51875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51877 /^X\(\/\/\)$/{ s//\1/; q; }
51878 /^X\(\/\).*/{ s//\1/; q; }
51881 test ! -n "$as_dirs" || mkdir $as_dirs
51882 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51884 { (exit 1); exit 1; }; }; }
51888 if test "$ac_dir" != .; then
51889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51890 # A "../" for each directory in $ac_dir_suffix.
51891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51893 ac_dir_suffix= ac_top_builddir=
51897 .) # No --srcdir option. We are building in place.
51899 if test -z "$ac_top_builddir"; then
51902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51904 [\\/]* | ?:[\\/]* ) # Absolute path.
51905 ac_srcdir=$srcdir$ac_dir_suffix;
51906 ac_top_srcdir=$srcdir ;;
51907 *) # Relative path.
51908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51912 # Do not use `cd foo && pwd` to compute absolute paths, because
51913 # the directories may not exist.
51915 .) ac_abs_builddir="$ac_dir";;
51918 .) ac_abs_builddir=`pwd`;;
51919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51923 case $ac_abs_builddir in
51924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51926 case ${ac_top_builddir}. in
51927 .) ac_abs_top_builddir=$ac_abs_builddir;;
51928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51932 case $ac_abs_builddir in
51933 .) ac_abs_srcdir=$ac_srcdir;;
51936 .) ac_abs_srcdir=$ac_abs_builddir;;
51937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51941 case $ac_abs_builddir in
51942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51944 case $ac_top_srcdir in
51945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51954 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51957 if test x"$ac_file" != x-; then
51958 { echo "$as_me:$LINENO: creating $ac_file" >&5
51959 echo "$as_me: creating $ac_file" >&6;}
51962 # Let's still pretend it is `configure' which instantiates (i.e., don't
51963 # use $as_me), people would be surprised to read:
51964 # /* config.h. Generated by config.status. */
51965 if test x"$ac_file" = x-; then
51968 configure_input="$ac_file. "
51970 configure_input=$configure_input"Generated from `echo $ac_file_in |
51971 sed 's,.*/,,'` by configure."
51973 # First look for the input files in the build tree, otherwise in the
51975 ac_file_inputs=`IFS=:
51976 for f in $ac_file_in; do
51978 -) echo $tmp/stdin ;;
51980 # Absolute (can't be DOS-style, as IFS=:)
51981 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51982 echo "$as_me: error: cannot find input file: $f" >&2;}
51983 { (exit 1); exit 1; }; }
51986 if test -f "$f"; then
51989 elif test -f "$srcdir/$f"; then
51994 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51995 echo "$as_me: error: cannot find input file: $f" >&2;}
51996 { (exit 1); exit 1; }; }
51999 done` || { (exit 1); exit 1; }
52001 cat >>$CONFIG_STATUS <<_ACEOF
52005 cat >>$CONFIG_STATUS <<\_ACEOF
52007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52008 s,@configure_input@,$configure_input,;t t
52009 s,@srcdir@,$ac_srcdir,;t t
52010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52011 s,@top_srcdir@,$ac_top_srcdir,;t t
52012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52013 s,@builddir@,$ac_builddir,;t t
52014 s,@abs_builddir@,$ac_abs_builddir,;t t
52015 s,@top_builddir@,$ac_top_builddir,;t t
52016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52017 s,@INSTALL@,$ac_INSTALL,;t t
52018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52020 if test x"$ac_file" != x-; then
52021 mv $tmp/out $ac_file
52029 cat >>$CONFIG_STATUS <<\_ACEOF
52032 # CONFIG_HEADER section.
52035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52038 # ac_d sets the value in "#define NAME VALUE" lines.
52039 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52040 ac_dB='[ ].*$,\1#\2'
52043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52044 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
52045 ac_uB='$,\1#\2define\3'
52049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52052 - | *:- | *:-:* ) # input from stdin
52054 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52056 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52058 * ) ac_file_in=$ac_file.in ;;
52061 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52062 echo "$as_me: creating $ac_file" >&6;}
52064 # First look for the input files in the build tree, otherwise in the
52066 ac_file_inputs=`IFS=:
52067 for f in $ac_file_in; do
52069 -) echo $tmp/stdin ;;
52071 # Absolute (can't be DOS-style, as IFS=:)
52072 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52073 echo "$as_me: error: cannot find input file: $f" >&2;}
52074 { (exit 1); exit 1; }; }
52075 # Do quote $f, to prevent DOS paths from being IFS'd.
52078 if test -f "$f"; then
52081 elif test -f "$srcdir/$f"; then
52086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52087 echo "$as_me: error: cannot find input file: $f" >&2;}
52088 { (exit 1); exit 1; }; }
52091 done` || { (exit 1); exit 1; }
52092 # Remove the trailing spaces.
52093 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
52097 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52098 # `conftest.undefs', that substitutes the proper values into
52099 # config.h.in to produce config.h. The first handles `#define'
52100 # templates, and the second `#undef' templates.
52101 # And first: Protect against being on the right side of a sed subst in
52102 # config.status. Protect against being in an unquoted here document
52103 # in config.status.
52104 rm -f conftest.defines conftest.undefs
52105 # Using a here document instead of a string reduces the quoting nightmare.
52106 # Putting comments in sed scripts is not portable.
52108 # `end' is used to avoid that the second main sed command (meant for
52109 # 0-ary CPP macros) applies to n-ary macro definitions.
52110 # See the Autoconf documentation for `clear'.
52111 cat >confdef2sed.sed <<\_ACEOF
52116 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52118 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52121 # If some macros were called several times there might be several times
52122 # the same #defines, which is useless. Nevertheless, we may not want to
52123 # sort them, since we want the *last* AC-DEFINE to be honored.
52124 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52125 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52126 rm -f confdef2sed.sed
52128 # This sed command replaces #undef with comments. This is necessary, for
52129 # example, in the case of _POSIX_SOURCE, which is predefined and required
52130 # on some systems where configure will not decide to define it.
52131 cat >>conftest.undefs <<\_ACEOF
52132 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52135 # Break up conftest.defines because some shells have a limit on the size
52136 # of here documents, and old seds have small limits too (100 cmds).
52137 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52138 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52139 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52140 echo ' :' >>$CONFIG_STATUS
52141 rm -f conftest.tail
52142 while grep . conftest.defines >/dev/null
52144 # Write a limited-size here document to $tmp/defines.sed.
52145 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52146 # Speed up: don't consider the non `#define' lines.
52147 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
52148 # Work around the forget-to-reset-the-flag bug.
52149 echo 't clr' >>$CONFIG_STATUS
52150 echo ': clr' >>$CONFIG_STATUS
52151 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52153 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52155 mv $tmp/out $tmp/in
52157 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52158 rm -f conftest.defines
52159 mv conftest.tail conftest.defines
52161 rm -f conftest.defines
52162 echo ' fi # grep' >>$CONFIG_STATUS
52163 echo >>$CONFIG_STATUS
52165 # Break up conftest.undefs because some shells have a limit on the size
52166 # of here documents, and old seds have small limits too (100 cmds).
52167 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52168 rm -f conftest.tail
52169 while grep . conftest.undefs >/dev/null
52171 # Write a limited-size here document to $tmp/undefs.sed.
52172 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52173 # Speed up: don't consider the non `#undef'
52174 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
52175 # Work around the forget-to-reset-the-flag bug.
52176 echo 't clr' >>$CONFIG_STATUS
52177 echo ': clr' >>$CONFIG_STATUS
52178 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52180 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52182 mv $tmp/out $tmp/in
52184 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52185 rm -f conftest.undefs
52186 mv conftest.tail conftest.undefs
52188 rm -f conftest.undefs
52190 cat >>$CONFIG_STATUS <<\_ACEOF
52191 # Let's still pretend it is `configure' which instantiates (i.e., don't
52192 # use $as_me), people would be surprised to read:
52193 # /* config.h. Generated by config.status. */
52194 if test x"$ac_file" = x-; then
52195 echo "/* Generated by configure. */" >$tmp/config.h
52197 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52199 cat $tmp/in >>$tmp/config.h
52201 if test x"$ac_file" != x-; then
52202 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52203 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52204 echo "$as_me: $ac_file is unchanged" >&6;}
52206 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52208 X"$ac_file" : 'X\(//\)[^/]' \| \
52209 X"$ac_file" : 'X\(//\)$' \| \
52210 X"$ac_file" : 'X\(/\)' \| \
52211 . : '\(.\)' 2>/dev/null ||
52213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52215 /^X\(\/\/\)$/{ s//\1/; q; }
52216 /^X\(\/\).*/{ s//\1/; q; }
52218 { if $as_mkdir_p; then
52223 while test ! -d "$as_dir"; do
52224 as_dirs="$as_dir $as_dirs"
52225 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52227 X"$as_dir" : 'X\(//\)[^/]' \| \
52228 X"$as_dir" : 'X\(//\)$' \| \
52229 X"$as_dir" : 'X\(/\)' \| \
52230 . : '\(.\)' 2>/dev/null ||
52232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52233 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52234 /^X\(\/\/\)$/{ s//\1/; q; }
52235 /^X\(\/\).*/{ s//\1/; q; }
52238 test ! -n "$as_dirs" || mkdir $as_dirs
52239 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52241 { (exit 1); exit 1; }; }; }
52244 mv $tmp/config.h $ac_file
52248 rm -f $tmp/config.h
52250 # Compute $ac_file's index in $config_headers.
52252 for _am_header in $config_headers :; do
52253 case $_am_header in
52254 $ac_file | $ac_file:* )
52257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52260 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52261 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52262 X$ac_file : 'X\(//\)[^/]' \| \
52263 X$ac_file : 'X\(//\)$' \| \
52264 X$ac_file : 'X\(/\)' \| \
52265 . : '\(.\)' 2>/dev/null ||
52267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52269 /^X\(\/\/\)$/{ s//\1/; q; }
52270 /^X\(\/\).*/{ s//\1/; q; }
52271 s/.*/./; q'`/stamp-h$_am_stamp_count
52274 cat >>$CONFIG_STATUS <<\_ACEOF
52277 # CONFIG_COMMANDS section.
52279 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52280 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52281 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52282 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52283 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52284 X"$ac_dest" : 'X\(//\)[^/]' \| \
52285 X"$ac_dest" : 'X\(//\)$' \| \
52286 X"$ac_dest" : 'X\(/\)' \| \
52287 . : '\(.\)' 2>/dev/null ||
52289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52291 /^X\(\/\/\)$/{ s//\1/; q; }
52292 /^X\(\/\).*/{ s//\1/; q; }
52294 { if $as_mkdir_p; then
52299 while test ! -d "$as_dir"; do
52300 as_dirs="$as_dir $as_dirs"
52301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52303 X"$as_dir" : 'X\(//\)[^/]' \| \
52304 X"$as_dir" : 'X\(//\)$' \| \
52305 X"$as_dir" : 'X\(/\)' \| \
52306 . : '\(.\)' 2>/dev/null ||
52308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52310 /^X\(\/\/\)$/{ s//\1/; q; }
52311 /^X\(\/\).*/{ s//\1/; q; }
52314 test ! -n "$as_dirs" || mkdir $as_dirs
52315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52317 { (exit 1); exit 1; }; }; }
52321 if test "$ac_dir" != .; then
52322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52323 # A "../" for each directory in $ac_dir_suffix.
52324 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52326 ac_dir_suffix= ac_top_builddir=
52330 .) # No --srcdir option. We are building in place.
52332 if test -z "$ac_top_builddir"; then
52335 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52337 [\\/]* | ?:[\\/]* ) # Absolute path.
52338 ac_srcdir=$srcdir$ac_dir_suffix;
52339 ac_top_srcdir=$srcdir ;;
52340 *) # Relative path.
52341 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52342 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52345 # Do not use `cd foo && pwd` to compute absolute paths, because
52346 # the directories may not exist.
52348 .) ac_abs_builddir="$ac_dir";;
52351 .) ac_abs_builddir=`pwd`;;
52352 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52353 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52356 case $ac_abs_builddir in
52357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52359 case ${ac_top_builddir}. in
52360 .) ac_abs_top_builddir=$ac_abs_builddir;;
52361 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52362 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52365 case $ac_abs_builddir in
52366 .) ac_abs_srcdir=$ac_srcdir;;
52369 .) ac_abs_srcdir=$ac_abs_builddir;;
52370 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52371 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52374 case $ac_abs_builddir in
52375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52377 case $ac_top_srcdir in
52378 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52379 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52380 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52385 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52386 echo "$as_me: executing $ac_dest commands" >&6;}
52388 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52389 # Strip MF so we end up with the name of the file.
52390 mf=`echo "$mf" | sed -e 's/:.*$//'`
52391 # Check whether this is an Automake generated Makefile or not.
52392 # We used to match only the files named `Makefile.in', but
52393 # some people rename them; so instead we look at the file content.
52394 # Grep'ing the first line is not enough: some people post-process
52395 # each Makefile.in and add a new line on top of each file to say so.
52396 # So let's grep whole file.
52397 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52398 dirpart=`(dirname "$mf") 2>/dev/null ||
52399 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52400 X"$mf" : 'X\(//\)[^/]' \| \
52401 X"$mf" : 'X\(//\)$' \| \
52402 X"$mf" : 'X\(/\)' \| \
52403 . : '\(.\)' 2>/dev/null ||
52405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52407 /^X\(\/\/\)$/{ s//\1/; q; }
52408 /^X\(\/\).*/{ s//\1/; q; }
52413 # Extract the definition of DEPDIR, am__include, and am__quote
52414 # from the Makefile without running `make'.
52415 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52416 test -z "$DEPDIR" && continue
52417 am__include=`sed -n 's/^am__include = //p' < "$mf"`
52418 test -z "am__include" && continue
52419 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52420 # When using ansi2knr, U may be empty or an underscore; expand it
52421 U=`sed -n 's/^U = //p' < "$mf"`
52422 # Find all dependency output files, they are included files with
52423 # $(DEPDIR) in their names. We invoke sed twice because it is the
52424 # simplest approach to changing $(DEPDIR) to its actual value in the
52426 for file in `sed -n "
52427 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52428 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52429 # Make sure the directory exists.
52430 test -f "$dirpart/$file" && continue
52431 fdir=`(dirname "$file") 2>/dev/null ||
52432 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52433 X"$file" : 'X\(//\)[^/]' \| \
52434 X"$file" : 'X\(//\)$' \| \
52435 X"$file" : 'X\(/\)' \| \
52436 . : '\(.\)' 2>/dev/null ||
52438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52440 /^X\(\/\/\)$/{ s//\1/; q; }
52441 /^X\(\/\).*/{ s//\1/; q; }
52443 { if $as_mkdir_p; then
52444 mkdir -p $dirpart/$fdir
52446 as_dir=$dirpart/$fdir
52448 while test ! -d "$as_dir"; do
52449 as_dirs="$as_dir $as_dirs"
52450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52452 X"$as_dir" : 'X\(//\)[^/]' \| \
52453 X"$as_dir" : 'X\(//\)$' \| \
52454 X"$as_dir" : 'X\(/\)' \| \
52455 . : '\(.\)' 2>/dev/null ||
52457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52459 /^X\(\/\/\)$/{ s//\1/; q; }
52460 /^X\(\/\).*/{ s//\1/; q; }
52463 test ! -n "$as_dirs" || mkdir $as_dirs
52464 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52465 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52466 { (exit 1); exit 1; }; }; }
52468 # echo "creating $dirpart/$file"
52469 echo '# dummy' > "$dirpart/$file"
52476 BACKENDSC="servers/slapd/backends.c"
52477 echo "Making $BACKENDSC"
52479 cat > $BACKENDSC << ENDX
52480 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52482 * Copyright 1998-2005 The OpenLDAP Foundation.
52483 * All rights reserved.
52485 * Redistribution and use in source and binary forms, with or without
52486 * modification, are permitted only as authorized by the OpenLDAP
52489 * A copy of this license is available in the file LICENSE in the
52490 * top-level directory of the distribution or, alternatively, at
52491 * <http://www.OpenLDAP.org/license.html>.
52493 /* This file is automatically generated by configure; please do not edit. */
52495 #include "portable.h"
52499 if test "${STATIC_BACKENDS}"; then
52500 for b in config ${STATIC_BACKENDS}; do
52501 bb=`echo "${b}" | sed -e 's/back-//'`
52502 cat >> $BACKENDSC << ENDX
52503 extern BI_init ${bb}_back_initialize;
52507 cat >> $BACKENDSC << ENDX
52509 BackendInfo slap_binfo[[]] = {
52512 for b in config ${STATIC_BACKENDS}; do
52513 bb=`echo "${b}" | sed -e 's/back-//'`
52514 echo " Add ${bb} ..."
52515 cat >> $BACKENDSC << ENDX
52516 { "${bb}", ${bb}_back_initialize },
52520 cat >> $BACKENDSC << ENDX
52524 /* end of generated file */
52528 echo Please run \"make depend\" to build dependencies
52534 cat >>$CONFIG_STATUS <<\_ACEOF
52536 { (exit 0); exit 0; }
52538 chmod +x $CONFIG_STATUS
52539 ac_clean_files=$ac_clean_files_save
52542 # configure is writing to config.log, and then calls config.status.
52543 # config.status does its own redirection, appending to config.log.
52544 # Unfortunately, on DOS this fails, as config.log is still kept open
52545 # by configure, so config.status won't be able to write to it; its
52546 # output is simply discarded. So we exec the FD to /dev/null,
52547 # effectively closing config.log, so it can be properly (re)opened and
52548 # appended to by config.status. When coming back to configure, we
52549 # need to make the FD available again.
52550 if test "$no_create" != yes; then
52552 ac_config_status_args=
52553 test "$silent" = yes &&
52554 ac_config_status_args="$ac_config_status_args --quiet"
52556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52559 # would make configure fail if this is the last instruction.
52560 $ac_cs_success || { (exit 1); exit 1; }