3 # from OpenLDAP: pkg/ldap/configure.in,v 1.527 2004/04/08 04:10:20 hyc Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
85 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
87 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
89 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
91 --enable-ldap enable ldap backend no|yes|mod [no]"
93 --enable-ldbm enable ldbm backend no|yes|mod [no]"
95 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
97 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
99 --enable-meta enable metadirectory backend no|yes|mod [no]"
101 --enable-monitor enable monitor backend no|yes|mod [yes]"
103 --enable-null enable null backend no|yes|mod [no]"
105 --enable-passwd enable passwd backend no|yes|mod [no]"
107 --enable-perl enable perl backend no|yes|mod [no]"
109 --enable-relay enable relay backend no|yes|mod [yes]"
111 --enable-shell enable shell backend no|yes|mod [no]"
113 --enable-sql enable sql backend no|yes|mod [no]"
116 SLAPD Overlay Options:"
118 --enable-chain LDAP Chain Response no|yes|mod [no]"
120 --enable-denyop Deny Operation overlay no|yes|mod [no]"
122 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
124 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
126 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
128 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
131 SLURPD (Replication Daemon) Options:"
133 --enable-slurpd enable building slurpd [auto]"
136 Library Generation & Linking Options"
138 --enable-static[=PKGS] build static libraries [default=yes]"
140 --enable-shared[=PKGS] build shared libraries [default=yes]"
142 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
144 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
146 # Find the correct PATH separator. Usually this is `:', but
147 # DJGPP uses `;' like DOS.
148 if test "X${PATH_SEPARATOR+set}" != Xset; then
149 UNAME=${UNAME-`uname 2>/dev/null`}
151 *-DOS) lt_cv_sys_path_separator=';' ;;
152 *) lt_cv_sys_path_separator=':' ;;
154 PATH_SEPARATOR=$lt_cv_sys_path_separator
158 # Check that we are running under the correct shell.
159 SHELL=${CONFIG_SHELL-/bin/sh}
163 # Remove one level of quotation (which was required for Make).
164 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
169 if test "X$1" = X--no-reexec; then
170 # Discard the --no-reexec flag, and continue.
172 elif test "X$1" = X--fallback-echo; then
173 # Avoid inline document here, it may be left over
175 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
176 # Yippee, $echo works!
179 # Restart under the correct shell.
180 exec $SHELL "$0" --no-reexec ${1+"$@"}
183 if test "X$1" = X--fallback-echo; then
184 # used as fallback echo
192 # The HP-UX ksh and POSIX shell print the target directory to stdout
194 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
196 if test -z "$ECHO"; then
197 if test "X${echo_test_string+set}" != Xset; then
198 # find a string as large as possible, as long as the shell can cope with it
199 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
200 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
201 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
202 echo_test_string="`eval $cmd`" &&
203 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
210 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
211 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
212 test "X$echo_testing_string" = "X$echo_test_string"; then
215 # The Solaris, AIX, and Digital Unix default echo programs unquote
216 # backslashes. This makes it impossible to quote backslashes using
217 # echo "$something" | sed 's/\\/\\\\/g'
219 # So, first we look for a working echo in the user's PATH.
221 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
222 for dir in $PATH /usr/ucb; do
223 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
224 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
225 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
226 test "X$echo_testing_string" = "X$echo_test_string"; then
233 if test "X$echo" = Xecho; then
234 # We didn't find a better echo, so look for alternatives.
235 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
236 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
237 test "X$echo_testing_string" = "X$echo_test_string"; then
238 # This shell has a builtin print -r that does the trick.
240 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
241 test "X$CONFIG_SHELL" != X/bin/ksh; then
242 # If we have ksh, try running configure again with it.
243 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
244 export ORIGINAL_CONFIG_SHELL
245 CONFIG_SHELL=/bin/ksh
247 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
251 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
252 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
253 test "X$echo_testing_string" = "X$echo_test_string"; then
256 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
257 test "X$echo_testing_string" = 'X\t' &&
258 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
259 test "X$echo_testing_string" = "X$echo_test_string"; then
260 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
262 SHELL="$CONFIG_SHELL"
264 echo="$CONFIG_SHELL $0 --fallback-echo"
265 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
266 test "X$echo_testing_string" = 'X\t' &&
267 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
268 test "X$echo_testing_string" = "X$echo_test_string"; then
269 echo="$CONFIG_SHELL $0 --fallback-echo"
271 # maybe with a smaller string...
274 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
275 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
282 if test "$prev" != 'sed 50q "$0"'; then
283 echo_test_string=`eval $prev`
284 export echo_test_string
285 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
287 # Oops. We lost completely, so just stick with echo.
296 # Copy echo and quote the copy suitably for passing to libtool from
297 # the Makefile, instead of quoting the original, which is used later.
299 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
300 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
305 --disable-libtool-lock avoid locking (might break parallel builds)"
307 --with-pic try to use only PIC/non-PIC objects [default=use both]"
310 See INSTALL file for further details."
312 # Initialize some variables set by options.
313 # The variables have the same names as the options, with
314 # dashes changed to underlines.
316 cache_file=./config.cache
325 program_transform_name=s,x,x,
333 bindir='${exec_prefix}/bin'
334 sbindir='${exec_prefix}/sbin'
335 libexecdir='${exec_prefix}/libexec'
336 datadir='${prefix}/share'
337 sysconfdir='${prefix}/etc'
338 sharedstatedir='${prefix}/com'
339 localstatedir='${prefix}/var'
340 libdir='${exec_prefix}/lib'
341 includedir='${prefix}/include'
342 oldincludedir='/usr/include'
343 infodir='${prefix}/info'
344 mandir='${prefix}/man'
346 # Initialize some other variables.
349 SHELL=${CONFIG_SHELL-/bin/sh}
350 # Maximum number of lines to put in a shell here document.
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
365 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
369 # Accept the important Cygnus configure options, so we can diagnose typos.
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir="$ac_optarg" ;;
378 -build | --build | --buil | --bui | --bu)
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build="$ac_optarg" ;;
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file="$ac_optarg" ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir="$ac_optarg" ;;
396 -disable-* | --disable-*)
397 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
402 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
403 eval "enable_${ac_feature}=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
411 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
416 eval "enable_${ac_feature}='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix="$ac_optarg" ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he)
432 # Omit some internal or obsolete options to make the list less imposing.
433 # This message is too long to be a string in the A/UX 3.1 sh.
435 Usage: configure [options] [host]
436 Options: [defaults in brackets after descriptions]
438 --cache-file=FILE cache test results in FILE
439 --help print this message
440 --no-create do not create output files
441 --quiet, --silent do not print \`checking...' messages
442 --version print the version of autoconf that created configure
443 Directory and file names:
444 --prefix=PREFIX install architecture-independent files in PREFIX
446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
448 --bindir=DIR user executables in DIR [EPREFIX/bin]
449 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
450 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
451 --datadir=DIR read-only architecture-independent data in DIR
453 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
454 --sharedstatedir=DIR modifiable architecture-independent data in DIR
456 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
457 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
458 --includedir=DIR C header files in DIR [PREFIX/include]
459 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
460 --infodir=DIR info documentation in DIR [PREFIX/info]
461 --mandir=DIR man documentation in DIR [PREFIX/man]
462 --srcdir=DIR find the sources in DIR [configure dir or ..]
463 --program-prefix=PREFIX prepend PREFIX to installed program names
464 --program-suffix=SUFFIX append SUFFIX to installed program names
465 --program-transform-name=PROGRAM
466 run sed PROGRAM on installed program names
470 --build=BUILD configure for building on BUILD [BUILD=HOST]
471 --host=HOST configure for HOST [guessed]
472 --target=TARGET configure for TARGET [TARGET=HOST]
473 Features and packages:
474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
478 --x-includes=DIR X include files are in DIR
479 --x-libraries=DIR X library files are in DIR
481 if test -n "$ac_help"; then
482 echo "--enable and --with options recognized:$ac_help"
486 -host | --host | --hos | --ho)
488 -host=* | --host=* | --hos=* | --ho=*)
491 -includedir | --includedir | --includedi | --included | --include \
492 | --includ | --inclu | --incl | --inc)
493 ac_prev=includedir ;;
494 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
495 | --includ=* | --inclu=* | --incl=* | --inc=*)
496 includedir="$ac_optarg" ;;
498 -infodir | --infodir | --infodi | --infod | --info | --inf)
500 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
501 infodir="$ac_optarg" ;;
503 -libdir | --libdir | --libdi | --libd)
505 -libdir=* | --libdir=* | --libdi=* | --libd=*)
506 libdir="$ac_optarg" ;;
508 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
509 | --libexe | --libex | --libe)
510 ac_prev=libexecdir ;;
511 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
512 | --libexe=* | --libex=* | --libe=*)
513 libexecdir="$ac_optarg" ;;
515 -localstatedir | --localstatedir | --localstatedi | --localstated \
516 | --localstate | --localstat | --localsta | --localst \
517 | --locals | --local | --loca | --loc | --lo)
518 ac_prev=localstatedir ;;
519 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
520 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
521 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
522 localstatedir="$ac_optarg" ;;
524 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
526 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
527 mandir="$ac_optarg" ;;
530 # Obsolete; use --without-fp.
533 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
537 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
541 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
542 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
543 | --oldin | --oldi | --old | --ol | --o)
544 ac_prev=oldincludedir ;;
545 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
546 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
547 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
548 oldincludedir="$ac_optarg" ;;
550 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
552 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
553 prefix="$ac_optarg" ;;
555 -program-prefix | --program-prefix | --program-prefi | --program-pref \
556 | --program-pre | --program-pr | --program-p)
557 ac_prev=program_prefix ;;
558 -program-prefix=* | --program-prefix=* | --program-prefi=* \
559 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
560 program_prefix="$ac_optarg" ;;
562 -program-suffix | --program-suffix | --program-suffi | --program-suff \
563 | --program-suf | --program-su | --program-s)
564 ac_prev=program_suffix ;;
565 -program-suffix=* | --program-suffix=* | --program-suffi=* \
566 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
567 program_suffix="$ac_optarg" ;;
569 -program-transform-name | --program-transform-name \
570 | --program-transform-nam | --program-transform-na \
571 | --program-transform-n | --program-transform- \
572 | --program-transform | --program-transfor \
573 | --program-transfo | --program-transf \
574 | --program-trans | --program-tran \
575 | --progr-tra | --program-tr | --program-t)
576 ac_prev=program_transform_name ;;
577 -program-transform-name=* | --program-transform-name=* \
578 | --program-transform-nam=* | --program-transform-na=* \
579 | --program-transform-n=* | --program-transform-=* \
580 | --program-transform=* | --program-transfor=* \
581 | --program-transfo=* | --program-transf=* \
582 | --program-trans=* | --program-tran=* \
583 | --progr-tra=* | --program-tr=* | --program-t=*)
584 program_transform_name="$ac_optarg" ;;
586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
587 | -silent | --silent | --silen | --sile | --sil)
590 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
592 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
594 sbindir="$ac_optarg" ;;
596 -sharedstatedir | --sharedstatedir | --sharedstatedi \
597 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
598 | --sharedst | --shareds | --shared | --share | --shar \
600 ac_prev=sharedstatedir ;;
601 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
602 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
603 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
605 sharedstatedir="$ac_optarg" ;;
607 -site | --site | --sit)
609 -site=* | --site=* | --sit=*)
612 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
614 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
615 srcdir="$ac_optarg" ;;
617 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
618 | --syscon | --sysco | --sysc | --sys | --sy)
619 ac_prev=sysconfdir ;;
620 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
621 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
622 sysconfdir="$ac_optarg" ;;
624 -target | --target | --targe | --targ | --tar | --ta | --t)
626 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
627 target="$ac_optarg" ;;
629 -v | -verbose | --verbose | --verbos | --verbo | --verb)
632 -version | --version | --versio | --versi | --vers)
633 echo "configure generated by autoconf version 2.13.1"
637 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
638 # Reject names that are not valid shell variable names.
639 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
640 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
642 ac_package=`echo $ac_package| sed 's/-/_/g'`
647 eval "with_${ac_package}='$ac_optarg'" ;;
649 -without-* | --without-*)
650 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
651 # Reject names that are not valid shell variable names.
652 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
653 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
655 ac_package=`echo $ac_package| sed 's/-/_/g'`
656 eval "with_${ac_package}=no" ;;
659 # Obsolete; use --with-x.
662 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
663 | --x-incl | --x-inc | --x-in | --x-i)
664 ac_prev=x_includes ;;
665 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
666 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
667 x_includes="$ac_optarg" ;;
669 -x-libraries | --x-libraries | --x-librarie | --x-librari \
670 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
671 ac_prev=x_libraries ;;
672 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
673 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
674 x_libraries="$ac_optarg" ;;
676 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
680 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
681 echo "configure: warning: $ac_option: invalid host type" 1>&2
683 if test "x$nonopt" != xNONE; then
684 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
692 if test -n "$ac_prev"; then
693 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
696 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
698 # File descriptor usage:
701 # 2 errors and warnings
702 # 3 some systems may open it to /dev/tty
703 # 4 used on the Kubota Titan
704 # 6 checking for... messages and results
705 # 5 compiler messages saved in config.log
706 if test "$silent" = yes; then
714 This file contains any messages produced by compilers while
715 running configure, to aid debugging if configure makes a mistake.
718 # Strip out --no-create and --no-recursion so they do not pile up.
719 # Also quote any args containing shell metacharacters.
724 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
725 | --no-cr | --no-c) ;;
726 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
727 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
728 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
729 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
730 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
735 # Only set these to C if already set. These must not be set unconditionally
736 # because not all systems understand e.g. LANG=C (notably SCO).
737 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
738 # Non-C LC_CTYPE values break the ctype check.
739 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
740 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
741 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
742 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
744 # confdefs.h avoids OS command line length limits that DEFS can exceed.
745 rm -rf conftest* confdefs.h
746 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
749 # A filename unique to this package, relative to the directory that
750 # configure is in, which we can look for to find out if srcdir is correct.
751 ac_unique_file=build/version.sh
753 # Find the source files, if location was not specified.
754 if test -z "$srcdir"; then
755 ac_srcdir_defaulted=yes
756 # Try the directory containing this script, then its parent.
758 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
759 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
761 if test ! -r $srcdir/$ac_unique_file; then
765 ac_srcdir_defaulted=no
767 if test ! -r $srcdir/$ac_unique_file; then
768 if test "$ac_srcdir_defaulted" = yes; then
769 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
771 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
774 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
776 # Prefer explicitly selected file to automatically selected ones.
777 if test -z "$CONFIG_SITE"; then
778 if test "x$prefix" != xNONE; then
779 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
781 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
784 for ac_site_file in $CONFIG_SITE; do
785 if test -r "$ac_site_file"; then
786 echo "loading site script $ac_site_file"
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
801 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
802 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
803 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
810 ac_n= ac_c='\c' ac_t=
814 # set unset (borrowed from autoconf 2.49c)
815 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
821 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
824 for ac_dir in build $srcdir/build; do
825 if test -f $ac_dir/install-sh; then
827 ac_install_sh="$ac_aux_dir/install-sh -c"
829 elif test -f $ac_dir/install.sh; then
831 ac_install_sh="$ac_aux_dir/install.sh -c"
833 elif test -f $ac_dir/shtool; then
835 ac_install_sh="$ac_aux_dir/shtool install -c"
839 if test -z "$ac_aux_dir"; then
840 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
842 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
843 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
844 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
846 eval `$ac_aux_dir/version.sh`
847 if test -z "$OL_STRING"; then
848 { echo "configure: error: could not determine version" 1>&2; exit 1; }
851 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
852 ac_cv_shtool="$ac_aux_dir/shtool"
854 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
857 SHTOOL="$ac_cv_shtool"
859 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
860 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
863 if test -d $ac_aux_dir/CVS; then
864 OPENLDAP_CVS="(from CVS sources) "
867 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
870 echo $ac_n "checking host system type""... $ac_c" 1>&6
871 echo "configure:872: checking host system type" >&5
872 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
874 # Make sure we can run config.sub.
875 if $ac_config_sub sun4 >/dev/null 2>&1; then :
876 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
879 ac_cv_host_alias=$host
880 case "$ac_cv_host_alias" in
884 if ac_cv_host_alias=`$ac_config_guess`; then :
885 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
887 *) ac_cv_host_alias=$nonopt ;;
891 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
892 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
893 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
894 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
896 echo $ac_n "(cached) $ac_c" 1>&6
899 echo "$ac_t""$ac_cv_host" 1>&6
902 host_alias=$ac_cv_host_alias
903 host_cpu=$ac_cv_host_cpu
904 host_vendor=$ac_cv_host_vendor
905 host_os=$ac_cv_host_os
911 echo $ac_n "checking target system type""... $ac_c" 1>&6
912 echo "configure:913: checking target system type" >&5
913 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
915 # Make sure we can run config.sub.
916 if $ac_config_sub sun4 >/dev/null 2>&1; then :
917 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
920 ac_cv_target_alias=$target
921 case "$ac_cv_target_alias" in
925 ac_cv_target_alias=$host_alias ;;
927 *) ac_cv_target_alias=$nonopt ;;
931 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
932 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
933 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
934 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
936 echo $ac_n "(cached) $ac_c" 1>&6
939 echo "$ac_t""$ac_cv_target" 1>&6
942 target_alias=$ac_cv_target_alias
943 target_cpu=$ac_cv_target_cpu
944 target_vendor=$ac_cv_target_vendor
945 target_os=$ac_cv_target_os
951 echo $ac_n "checking build system type""... $ac_c" 1>&6
952 echo "configure:953: checking build system type" >&5
953 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
955 # Make sure we can run config.sub.
956 if $ac_config_sub sun4 >/dev/null 2>&1; then :
957 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
960 ac_cv_build_alias=$build
961 case "$ac_cv_build_alias" in
965 ac_cv_build_alias=$host_alias ;;
967 *) ac_cv_build_alias=$nonopt ;;
971 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
972 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
973 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
974 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976 echo $ac_n "(cached) $ac_c" 1>&6
979 echo "$ac_t""$ac_cv_build" 1>&6
982 build_alias=$ac_cv_build_alias
983 build_cpu=$ac_cv_build_cpu
984 build_vendor=$ac_cv_build_vendor
985 build_os=$ac_cv_build_os
991 # Do some error checking and defaulting for the host and target type.
993 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
996 # 1. You are not allowed to specify --host, --target, and nonopt at the
998 # 2. Host defaults to nonopt.
999 # 3. If nonopt is not specified, then host defaults to the current host,
1000 # as determined by config.guess.
1001 # 4. Target and build default to nonopt.
1002 # 5. If nonopt is not specified, then target and build default to host.
1004 # The aliases save the names the user supplied, while $host etc.
1005 # will get canonicalized.
1006 case $host---$target---$nonopt in
1007 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1008 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1011 test "$host_alias" != "$target_alias" &&
1012 test "$program_prefix$program_suffix$program_transform_name" = \
1014 program_prefix=${target_alias}-
1017 # Find a good install program. We prefer a C program (faster),
1018 # so one script is as good as another. But avoid the broken or
1019 # incompatible versions:
1020 # SysV /etc/install, /usr/sbin/install
1021 # SunOS /usr/etc/install
1022 # IRIX /sbin/install
1024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1027 # ./install, which can be erroneously created by make from ./install.sh.
1028 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1029 echo "configure:1030: checking for a BSD compatible install" >&5
1030 if test -z "$INSTALL"; then
1031 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1035 for ac_dir in $PATH; do
1036 # Account for people who put trailing slashes in PATH elements.
1038 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1040 # OSF1 and SCO ODT 3.0 have their own names for install.
1041 # Don't use installbsd from OSF since it installs stuff as root
1043 for ac_prog in ginstall scoinst install; do
1044 if test -f $ac_dir/$ac_prog; then
1045 if test $ac_prog = install &&
1046 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1047 # AIX install. It has an incompatible calling convention.
1049 elif test $ac_prog = install &&
1050 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1051 # program-specific install script used by HP pwplus--don't use.
1054 ac_cv_path_install="$ac_dir/$ac_prog -c"
1065 if test "${ac_cv_path_install+set}" = set; then
1066 INSTALL="$ac_cv_path_install"
1068 # As a last resort, use the slow shell script. We don't cache a
1069 # path for INSTALL within a source directory, because that will
1070 # break other packages using the cache if that directory is
1071 # removed, or if the path is relative.
1072 INSTALL="$ac_install_sh"
1075 echo "$ac_t""$INSTALL" 1>&6
1077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1078 # It thinks the first close brace ends the variable substitution.
1079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1085 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1086 echo "configure:1087: checking whether build environment is sane" >&5
1089 echo timestamp > conftestfile
1090 # Do `set' in a subshell so we don't clobber the current shell's
1091 # arguments. Must try -L first in case configure is actually a
1092 # symlink; some systems play weird games with the mod time of symlinks
1093 # (eg FreeBSD returns the mod time of the symlink's containing
1096 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1097 if test "$*" = "X"; then
1099 set X `ls -t $srcdir/configure conftestfile`
1101 if test "$*" != "X $srcdir/configure conftestfile" \
1102 && test "$*" != "X conftestfile $srcdir/configure"; then
1104 # If neither matched, then we have a broken ls. This can happen
1105 # if, for instance, CONFIG_SHELL is bash and it inherits a
1106 # broken ls alias from the environment. This has actually
1107 # happened. Such a system could not be considered "sane".
1108 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1109 alias in your environment" 1>&2; exit 1; }
1112 test "$2" = conftestfile
1118 { echo "configure: error: newly created file is older than distributed files!
1119 Check your system clock" 1>&2; exit 1; }
1122 echo "$ac_t""yes" 1>&6
1123 if test "$program_transform_name" = s,x,x,; then
1124 program_transform_name=
1126 # Double any \ or $. echo might interpret backslashes.
1127 cat <<\EOF_SED > conftestsed
1128 s,\\,\\\\,g; s,\$,$$,g
1130 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1133 test "$program_prefix" != NONE &&
1134 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1135 # Use a double $ so make ignores it.
1136 test "$program_suffix" != NONE &&
1137 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1139 # sed with no file args requires a program.
1140 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1142 for ac_prog in mawk gawk nawk awk
1144 # Extract the first word of "$ac_prog", so it can be a program name with args.
1145 set dummy $ac_prog; ac_word=$2
1146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1147 echo "configure:1148: checking for $ac_word" >&5
1148 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 if test -n "$AWK"; then
1152 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1156 for ac_dir in $ac_dummy; do
1157 test -z "$ac_dir" && ac_dir=.
1158 if test -f $ac_dir/$ac_word; then
1159 ac_cv_prog_AWK="$ac_prog"
1166 AWK="$ac_cv_prog_AWK"
1167 if test -n "$AWK"; then
1168 echo "$ac_t""$AWK" 1>&6
1170 echo "$ac_t""no" 1>&6
1173 test -n "$AWK" && break
1176 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether ${MAKE-make} sets \${MAKE}" >&5
1178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 cat > conftestmake <<\EOF
1184 @echo 'ac_maketemp="${MAKE}"'
1186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1187 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1188 if test -n "$ac_maketemp"; then
1189 eval ac_cv_prog_make_${ac_make}_set=yes
1191 eval ac_cv_prog_make_${ac_make}_set=no
1195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1199 echo "$ac_t""no" 1>&6
1200 SET_MAKE="MAKE=${MAKE-make}"
1209 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1210 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1215 missing_dir=`cd $ac_aux_dir && pwd`
1216 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1217 echo "configure:1218: checking for working aclocal" >&5
1218 # Run test in a subshell; some versions of sh will print an error if
1219 # an executable is not found, even if stderr is redirected.
1220 # Redirect stdin to placate older versions of autoconf. Sigh.
1221 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1223 echo "$ac_t""found" 1>&6
1225 ACLOCAL="$missing_dir/missing aclocal"
1226 echo "$ac_t""missing" 1>&6
1229 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1230 echo "configure:1231: checking for working autoconf" >&5
1231 # Run test in a subshell; some versions of sh will print an error if
1232 # an executable is not found, even if stderr is redirected.
1233 # Redirect stdin to placate older versions of autoconf. Sigh.
1234 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1236 echo "$ac_t""found" 1>&6
1238 AUTOCONF="$missing_dir/missing autoconf"
1239 echo "$ac_t""missing" 1>&6
1242 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1243 echo "configure:1244: checking for working automake" >&5
1244 # Run test in a subshell; some versions of sh will print an error if
1245 # an executable is not found, even if stderr is redirected.
1246 # Redirect stdin to placate older versions of autoconf. Sigh.
1247 if (automake --version) < /dev/null > /dev/null 2>&1; then
1249 echo "$ac_t""found" 1>&6
1251 AUTOMAKE="$missing_dir/missing automake"
1252 echo "$ac_t""missing" 1>&6
1255 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1256 echo "configure:1257: checking for working autoheader" >&5
1257 # Run test in a subshell; some versions of sh will print an error if
1258 # an executable is not found, even if stderr is redirected.
1259 # Redirect stdin to placate older versions of autoconf. Sigh.
1260 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1261 AUTOHEADER=autoheader
1262 echo "$ac_t""found" 1>&6
1264 AUTOHEADER="$missing_dir/missing autoheader"
1265 echo "$ac_t""missing" 1>&6
1268 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working makeinfo" >&5
1270 # Run test in a subshell; some versions of sh will print an error if
1271 # an executable is not found, even if stderr is redirected.
1272 # Redirect stdin to placate older versions of autoconf. Sigh.
1273 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1275 echo "$ac_t""found" 1>&6
1277 MAKEINFO="$missing_dir/missing makeinfo"
1278 echo "$ac_t""missing" 1>&6
1281 install_sh="$missing_dir/install-sh"
1282 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1284 for ac_prog in gnutar gtar tar
1286 # Extract the first word of "$ac_prog", so it can be a program name with args.
1287 set dummy $ac_prog; ac_word=$2
1288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1289 echo "configure:1290: checking for $ac_word" >&5
1290 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 if test -n "$AMTAR"; then
1294 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 for ac_dir in $ac_dummy; do
1299 test -z "$ac_dir" && ac_dir=.
1300 if test -f $ac_dir/$ac_word; then
1301 ac_cv_prog_AMTAR="$ac_prog"
1308 AMTAR="$ac_cv_prog_AMTAR"
1309 if test -n "$AMTAR"; then
1310 echo "$ac_t""$AMTAR" 1>&6
1312 echo "$ac_t""no" 1>&6
1315 test -n "$AMTAR" && break
1320 if test -n "$AMTAR"; then
1321 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1326 cat >> confdefs.h <<EOF
1327 #define OPENLDAP_PACKAGE "$PACKAGE"
1330 cat >> confdefs.h <<EOF
1331 #define OPENLDAP_VERSION "$VERSION"
1335 cat >> confdefs.h <<EOF
1336 #define LDAP_VENDOR_VERSION $OL_API_INC
1339 cat >> confdefs.h <<EOF
1340 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1343 cat >> confdefs.h <<EOF
1344 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1347 cat >> confdefs.h <<EOF
1348 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1352 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1354 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1356 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1360 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1361 echo "configure:1362: checking configure arguments" >&5
1366 ldap_subdir="/openldap"
1368 # Check whether --with-subdir or --without-subdir was given.
1369 if test "${with_subdir+set}" = set; then
1370 withval="$with_subdir"
1377 ldap_subdir="$withval"
1380 ldap_subdir="/$withval"
1387 # OpenLDAP --enable-debug
1388 # Check whether --enable-debug or --disable-debug was given.
1389 if test "${enable_debug+set}" = set; then
1390 enableval="$enable_debug"
1393 for ol_val in auto yes no ; do
1394 if test "$enableval" = "$ol_val" ; then
1398 if test "$ol_arg" = "invalid" ; then
1399 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1401 ol_enable_debug="$ol_arg"
1404 ol_enable_debug="yes"
1406 # end --enable-debug
1407 # OpenLDAP --enable-dynamic
1408 # Check whether --enable-dynamic or --disable-dynamic was given.
1409 if test "${enable_dynamic+set}" = set; then
1410 enableval="$enable_dynamic"
1413 for ol_val in auto yes no ; do
1414 if test "$enableval" = "$ol_val" ; then
1418 if test "$ol_arg" = "invalid" ; then
1419 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1421 ol_enable_dynamic="$ol_arg"
1424 ol_enable_dynamic="no"
1426 # end --enable-dynamic
1427 # OpenLDAP --enable-syslog
1428 # Check whether --enable-syslog or --disable-syslog was given.
1429 if test "${enable_syslog+set}" = set; then
1430 enableval="$enable_syslog"
1433 for ol_val in auto yes no ; do
1434 if test "$enableval" = "$ol_val" ; then
1438 if test "$ol_arg" = "invalid" ; then
1439 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1441 ol_enable_syslog="$ol_arg"
1444 ol_enable_syslog="auto"
1446 # end --enable-syslog
1447 # OpenLDAP --enable-proctitle
1448 # Check whether --enable-proctitle or --disable-proctitle was given.
1449 if test "${enable_proctitle+set}" = set; then
1450 enableval="$enable_proctitle"
1453 for ol_val in auto yes no ; do
1454 if test "$enableval" = "$ol_val" ; then
1458 if test "$ol_arg" = "invalid" ; then
1459 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1461 ol_enable_proctitle="$ol_arg"
1464 ol_enable_proctitle="yes"
1466 # end --enable-proctitle
1467 ol_enable_referrals=${ol_enable_referrals-no}
1468 ol_enable_kbind=${ol_enable_kbind-no}
1469 # OpenLDAP --enable-ipv6
1470 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1471 if test "${enable_ipv6+set}" = set; then
1472 enableval="$enable_ipv6"
1475 for ol_val in auto yes no ; do
1476 if test "$enableval" = "$ol_val" ; then
1480 if test "$ol_arg" = "invalid" ; then
1481 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1483 ol_enable_ipv6="$ol_arg"
1486 ol_enable_ipv6="auto"
1489 # OpenLDAP --enable-local
1490 # Check whether --enable-local or --disable-local was given.
1491 if test "${enable_local+set}" = set; then
1492 enableval="$enable_local"
1495 for ol_val in auto yes no ; do
1496 if test "$enableval" = "$ol_val" ; then
1500 if test "$ol_arg" = "invalid" ; then
1501 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1503 ol_enable_local="$ol_arg"
1506 ol_enable_local="auto"
1508 # end --enable-local
1511 # OpenLDAP --with-cyrus_sasl
1512 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1513 if test "${with_cyrus_sasl+set}" = set; then
1514 withval="$with_cyrus_sasl"
1517 for ol_val in auto yes no ; do
1518 if test "$withval" = "$ol_val" ; then
1522 if test "$ol_arg" = "invalid" ; then
1523 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1525 ol_with_cyrus_sasl="$ol_arg"
1528 ol_with_cyrus_sasl="auto"
1530 # end --with-cyrus_sasl
1532 # OpenLDAP --with-fetch
1533 # Check whether --with-fetch or --without-fetch was given.
1534 if test "${with_fetch+set}" = set; then
1535 withval="$with_fetch"
1538 for ol_val in auto yes no ; do
1539 if test "$withval" = "$ol_val" ; then
1543 if test "$ol_arg" = "invalid" ; then
1544 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1546 ol_with_fetch="$ol_arg"
1549 ol_with_fetch="auto"
1553 ol_with_kerberos=${ol_with_kerberos-auto}
1554 # OpenLDAP --with-threads
1555 # Check whether --with-threads or --without-threads was given.
1556 if test "${with_threads+set}" = set; then
1557 withval="$with_threads"
1560 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1561 if test "$withval" = "$ol_val" ; then
1565 if test "$ol_arg" = "invalid" ; then
1566 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1568 ol_with_threads="$ol_arg"
1571 ol_with_threads="auto"
1573 # end --with-threads
1575 # OpenLDAP --with-tls
1576 # Check whether --with-tls or --without-tls was given.
1577 if test "${with_tls+set}" = set; then
1581 for ol_val in auto ssleay openssl yes no ; do
1582 if test "$withval" = "$ol_val" ; then
1586 if test "$ol_arg" = "invalid" ; then
1587 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1589 ol_with_tls="$ol_arg"
1596 # OpenLDAP --with-yielding_select
1597 # Check whether --with-yielding_select or --without-yielding_select was given.
1598 if test "${with_yielding_select+set}" = set; then
1599 withval="$with_yielding_select"
1602 for ol_val in auto yes no manual ; do
1603 if test "$withval" = "$ol_val" ; then
1607 if test "$ol_arg" = "invalid" ; then
1608 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1610 ol_with_yielding_select="$ol_arg"
1613 ol_with_yielding_select="auto"
1615 # end --with-yielding_select
1619 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1620 if test "${with_xxslapdoptions+set}" = set; then
1621 withval="$with_xxslapdoptions"
1625 # OpenLDAP --enable-slapd
1626 # Check whether --enable-slapd or --disable-slapd was given.
1627 if test "${enable_slapd+set}" = set; then
1628 enableval="$enable_slapd"
1631 for ol_val in auto yes no ; do
1632 if test "$enableval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1639 ol_enable_slapd="$ol_arg"
1642 ol_enable_slapd="yes"
1644 # end --enable-slapd
1645 # OpenLDAP --enable-aci
1646 # Check whether --enable-aci or --disable-aci was given.
1647 if test "${enable_aci+set}" = set; then
1648 enableval="$enable_aci"
1651 for ol_val in auto yes no ; do
1652 if test "$enableval" = "$ol_val" ; then
1656 if test "$ol_arg" = "invalid" ; then
1657 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1659 ol_enable_aci="$ol_arg"
1665 # OpenLDAP --enable-cleartext
1666 # Check whether --enable-cleartext or --disable-cleartext was given.
1667 if test "${enable_cleartext+set}" = set; then
1668 enableval="$enable_cleartext"
1671 for ol_val in auto yes no ; do
1672 if test "$enableval" = "$ol_val" ; then
1676 if test "$ol_arg" = "invalid" ; then
1677 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1679 ol_enable_cleartext="$ol_arg"
1682 ol_enable_cleartext="yes"
1684 # end --enable-cleartext
1685 # OpenLDAP --enable-crypt
1686 # Check whether --enable-crypt or --disable-crypt was given.
1687 if test "${enable_crypt+set}" = set; then
1688 enableval="$enable_crypt"
1691 for ol_val in auto yes no ; do
1692 if test "$enableval" = "$ol_val" ; then
1696 if test "$ol_arg" = "invalid" ; then
1697 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1699 ol_enable_crypt="$ol_arg"
1702 ol_enable_crypt="no"
1704 # end --enable-crypt
1705 # OpenLDAP --enable-lmpasswd
1706 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1707 if test "${enable_lmpasswd+set}" = set; then
1708 enableval="$enable_lmpasswd"
1711 for ol_val in auto yes no ; do
1712 if test "$enableval" = "$ol_val" ; then
1716 if test "$ol_arg" = "invalid" ; then
1717 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1719 ol_enable_lmpasswd="$ol_arg"
1722 ol_enable_lmpasswd="no"
1724 # end --enable-lmpasswd
1725 # OpenLDAP --enable-spasswd
1726 # Check whether --enable-spasswd or --disable-spasswd was given.
1727 if test "${enable_spasswd+set}" = set; then
1728 enableval="$enable_spasswd"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1739 ol_enable_spasswd="$ol_arg"
1742 ol_enable_spasswd="no"
1744 # end --enable-spasswd
1745 # OpenLDAP --enable-modules
1746 # Check whether --enable-modules or --disable-modules was given.
1747 if test "${enable_modules+set}" = set; then
1748 enableval="$enable_modules"
1751 for ol_val in auto yes no ; do
1752 if test "$enableval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1759 ol_enable_modules="$ol_arg"
1762 ol_enable_modules="no"
1764 # end --enable-modules
1765 ol_enable_multimaster=${ol_enable_multimaster-no}
1766 # OpenLDAP --enable-rewrite
1767 # Check whether --enable-rewrite or --disable-rewrite was given.
1768 if test "${enable_rewrite+set}" = set; then
1769 enableval="$enable_rewrite"
1772 for ol_val in auto yes no ; do
1773 if test "$enableval" = "$ol_val" ; then
1777 if test "$ol_arg" = "invalid" ; then
1778 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1780 ol_enable_rewrite="$ol_arg"
1783 ol_enable_rewrite="auto"
1785 # end --enable-rewrite
1786 # OpenLDAP --enable-rlookups
1787 # Check whether --enable-rlookups or --disable-rlookups was given.
1788 if test "${enable_rlookups+set}" = set; then
1789 enableval="$enable_rlookups"
1792 for ol_val in auto yes no ; do
1793 if test "$enableval" = "$ol_val" ; then
1797 if test "$ol_arg" = "invalid" ; then
1798 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1800 ol_enable_rlookups="$ol_arg"
1803 ol_enable_rlookups="no"
1805 # end --enable-rlookups
1806 # OpenLDAP --enable-slapi
1807 # Check whether --enable-slapi or --disable-slapi was given.
1808 if test "${enable_slapi+set}" = set; then
1809 enableval="$enable_slapi"
1812 for ol_val in auto yes no ; do
1813 if test "$enableval" = "$ol_val" ; then
1817 if test "$ol_arg" = "invalid" ; then
1818 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1820 ol_enable_slapi="$ol_arg"
1823 ol_enable_slapi="no"
1825 # end --enable-slapi
1826 # OpenLDAP --enable-slp
1827 # Check whether --enable-slp or --disable-slp was given.
1828 if test "${enable_slp+set}" = set; then
1829 enableval="$enable_slp"
1832 for ol_val in auto yes no ; do
1833 if test "$enableval" = "$ol_val" ; then
1837 if test "$ol_arg" = "invalid" ; then
1838 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1840 ol_enable_slp="$ol_arg"
1846 # OpenLDAP --enable-wrappers
1847 # Check whether --enable-wrappers or --disable-wrappers was given.
1848 if test "${enable_wrappers+set}" = set; then
1849 enableval="$enable_wrappers"
1852 for ol_val in auto yes no ; do
1853 if test "$enableval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1860 ol_enable_wrappers="$ol_arg"
1863 ol_enable_wrappers="no"
1865 # end --enable-wrappers
1868 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1869 passwd perl relay shell sql"
1871 # OpenLDAP --enable-bdb
1872 # Check whether --enable-bdb or --disable-bdb was given.
1873 if test "${enable_bdb+set}" = set; then
1874 enableval="$enable_bdb"
1877 for ol_val in no yes mod ; do
1878 if test "$enableval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1885 ol_enable_bdb="$ol_arg"
1891 # OpenLDAP --enable-dnssrv
1892 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1893 if test "${enable_dnssrv+set}" = set; then
1894 enableval="$enable_dnssrv"
1897 for ol_val in no yes mod ; do
1898 if test "$enableval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1905 ol_enable_dnssrv="$ol_arg"
1908 ol_enable_dnssrv="no"
1910 # end --enable-dnssrv
1911 # OpenLDAP --enable-hdb
1912 # Check whether --enable-hdb or --disable-hdb was given.
1913 if test "${enable_hdb+set}" = set; then
1914 enableval="$enable_hdb"
1917 for ol_val in no yes mod ; do
1918 if test "$enableval" = "$ol_val" ; then
1922 if test "$ol_arg" = "invalid" ; then
1923 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1925 ol_enable_hdb="$ol_arg"
1931 # OpenLDAP --enable-ldap
1932 # Check whether --enable-ldap or --disable-ldap was given.
1933 if test "${enable_ldap+set}" = set; then
1934 enableval="$enable_ldap"
1937 for ol_val in no yes mod ; do
1938 if test "$enableval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1945 ol_enable_ldap="$ol_arg"
1951 # OpenLDAP --enable-ldbm
1952 # Check whether --enable-ldbm or --disable-ldbm was given.
1953 if test "${enable_ldbm+set}" = set; then
1954 enableval="$enable_ldbm"
1957 for ol_val in no yes mod ; do
1958 if test "$enableval" = "$ol_val" ; then
1962 if test "$ol_arg" = "invalid" ; then
1963 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1965 ol_enable_ldbm="$ol_arg"
1971 # OpenLDAP --with-ldbm_api
1972 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1973 if test "${with_ldbm_api+set}" = set; then
1974 withval="$with_ldbm_api"
1977 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1978 if test "$withval" = "$ol_val" ; then
1982 if test "$ol_arg" = "invalid" ; then
1983 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1985 ol_with_ldbm_api="$ol_arg"
1988 ol_with_ldbm_api="auto"
1990 # end --with-ldbm_api
1992 # OpenLDAP --with-ldbm_type
1993 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1994 if test "${with_ldbm_type+set}" = set; then
1995 withval="$with_ldbm_type"
1998 for ol_val in auto btree hash ; do
1999 if test "$withval" = "$ol_val" ; then
2003 if test "$ol_arg" = "invalid" ; then
2004 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2006 ol_with_ldbm_type="$ol_arg"
2009 ol_with_ldbm_type="auto"
2011 # end --with-ldbm_type
2013 # OpenLDAP --enable-meta
2014 # Check whether --enable-meta or --disable-meta was given.
2015 if test "${enable_meta+set}" = set; then
2016 enableval="$enable_meta"
2019 for ol_val in no yes mod ; do
2020 if test "$enableval" = "$ol_val" ; then
2024 if test "$ol_arg" = "invalid" ; then
2025 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2027 ol_enable_meta="$ol_arg"
2033 # OpenLDAP --enable-monitor
2034 # Check whether --enable-monitor or --disable-monitor was given.
2035 if test "${enable_monitor+set}" = set; then
2036 enableval="$enable_monitor"
2039 for ol_val in no yes mod ; do
2040 if test "$enableval" = "$ol_val" ; then
2044 if test "$ol_arg" = "invalid" ; then
2045 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2047 ol_enable_monitor="$ol_arg"
2050 ol_enable_monitor="yes"
2052 # end --enable-monitor
2053 # OpenLDAP --enable-null
2054 # Check whether --enable-null or --disable-null was given.
2055 if test "${enable_null+set}" = set; then
2056 enableval="$enable_null"
2059 for ol_val in no yes mod ; do
2060 if test "$enableval" = "$ol_val" ; then
2064 if test "$ol_arg" = "invalid" ; then
2065 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2067 ol_enable_null="$ol_arg"
2073 # OpenLDAP --enable-passwd
2074 # Check whether --enable-passwd or --disable-passwd was given.
2075 if test "${enable_passwd+set}" = set; then
2076 enableval="$enable_passwd"
2079 for ol_val in no yes mod ; do
2080 if test "$enableval" = "$ol_val" ; then
2084 if test "$ol_arg" = "invalid" ; then
2085 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2087 ol_enable_passwd="$ol_arg"
2090 ol_enable_passwd="no"
2092 # end --enable-passwd
2093 # OpenLDAP --enable-perl
2094 # Check whether --enable-perl or --disable-perl was given.
2095 if test "${enable_perl+set}" = set; then
2096 enableval="$enable_perl"
2099 for ol_val in no yes mod ; do
2100 if test "$enableval" = "$ol_val" ; then
2104 if test "$ol_arg" = "invalid" ; then
2105 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2107 ol_enable_perl="$ol_arg"
2113 # OpenLDAP --enable-relay
2114 # Check whether --enable-relay or --disable-relay was given.
2115 if test "${enable_relay+set}" = set; then
2116 enableval="$enable_relay"
2119 for ol_val in no yes mod ; do
2120 if test "$enableval" = "$ol_val" ; then
2124 if test "$ol_arg" = "invalid" ; then
2125 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2127 ol_enable_relay="$ol_arg"
2130 ol_enable_relay="yes"
2132 # end --enable-relay
2133 # OpenLDAP --enable-shell
2134 # Check whether --enable-shell or --disable-shell was given.
2135 if test "${enable_shell+set}" = set; then
2136 enableval="$enable_shell"
2139 for ol_val in no yes mod ; do
2140 if test "$enableval" = "$ol_val" ; then
2144 if test "$ol_arg" = "invalid" ; then
2145 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2147 ol_enable_shell="$ol_arg"
2150 ol_enable_shell="no"
2152 # end --enable-shell
2153 # OpenLDAP --enable-sql
2154 # Check whether --enable-sql or --disable-sql was given.
2155 if test "${enable_sql+set}" = set; then
2156 enableval="$enable_sql"
2159 for ol_val in no yes mod ; do
2160 if test "$enableval" = "$ol_val" ; then
2164 if test "$ol_arg" = "invalid" ; then
2165 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2167 ol_enable_sql="$ol_arg"
2174 Overlays="chain denyop dyngroup ppolicy proxycache rwm"
2176 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2177 if test "${with_xxslapoverlays+set}" = set; then
2178 withval="$with_xxslapoverlays"
2182 # OpenLDAP --enable-chain
2183 # Check whether --enable-chain or --disable-chain was given.
2184 if test "${enable_chain+set}" = set; then
2185 enableval="$enable_chain"
2188 for ol_val in no yes mod ; do
2189 if test "$enableval" = "$ol_val" ; then
2193 if test "$ol_arg" = "invalid" ; then
2194 { echo "configure: error: bad value $enableval for --enable-chain" 1>&2; exit 1; }
2196 ol_enable_chain="$ol_arg"
2199 ol_enable_chain="no"
2201 # end --enable-chain
2203 # OpenLDAP --enable-denyop
2204 # Check whether --enable-denyop or --disable-denyop was given.
2205 if test "${enable_denyop+set}" = set; then
2206 enableval="$enable_denyop"
2209 for ol_val in no yes mod ; do
2210 if test "$enableval" = "$ol_val" ; then
2214 if test "$ol_arg" = "invalid" ; then
2215 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2217 ol_enable_denyop="$ol_arg"
2220 ol_enable_denyop="no"
2222 # end --enable-denyop
2224 # OpenLDAP --enable-dyngroup
2225 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2226 if test "${enable_dyngroup+set}" = set; then
2227 enableval="$enable_dyngroup"
2230 for ol_val in no yes mod ; do
2231 if test "$enableval" = "$ol_val" ; then
2235 if test "$ol_arg" = "invalid" ; then
2236 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2238 ol_enable_dyngroup="$ol_arg"
2241 ol_enable_dyngroup="no"
2243 # end --enable-dyngroup
2245 # OpenLDAP --enable-ppolicy
2246 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2247 if test "${enable_ppolicy+set}" = set; then
2248 enableval="$enable_ppolicy"
2251 for ol_val in no yes mod ; do
2252 if test "$enableval" = "$ol_val" ; then
2256 if test "$ol_arg" = "invalid" ; then
2257 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2259 ol_enable_ppolicy="$ol_arg"
2262 ol_enable_ppolicy="no"
2264 # end --enable-ppolicy
2266 # OpenLDAP --enable-proxycache
2267 # Check whether --enable-proxycache or --disable-proxycache was given.
2268 if test "${enable_proxycache+set}" = set; then
2269 enableval="$enable_proxycache"
2272 for ol_val in no yes mod ; do
2273 if test "$enableval" = "$ol_val" ; then
2277 if test "$ol_arg" = "invalid" ; then
2278 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2280 ol_enable_proxycache="$ol_arg"
2283 ol_enable_proxycache="no"
2285 # end --enable-proxycache
2287 # OpenLDAP --enable-rwm
2288 # Check whether --enable-rwm or --disable-rwm was given.
2289 if test "${enable_rwm+set}" = set; then
2290 enableval="$enable_rwm"
2293 for ol_val in no yes mod ; do
2294 if test "$enableval" = "$ol_val" ; then
2298 if test "$ol_arg" = "invalid" ; then
2299 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2301 ol_enable_rwm="$ol_arg"
2309 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2310 if test "${with_xxslurpdoptions+set}" = set; then
2311 withval="$with_xxslurpdoptions"
2315 # OpenLDAP --enable-slurpd
2316 # Check whether --enable-slurpd or --disable-slurpd was given.
2317 if test "${enable_slurpd+set}" = set; then
2318 enableval="$enable_slurpd"
2321 for ol_val in auto yes no ; do
2322 if test "$enableval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2329 ol_enable_slurpd="$ol_arg"
2332 ol_enable_slurpd="auto"
2334 # end --enable-slurpd
2336 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2337 if test "${with_xxliboptions+set}" = set; then
2338 withval="$with_xxliboptions"
2342 # Check whether --enable-static or --disable-static was given.
2343 if test "${enable_static+set}" = set; then
2344 enableval="$enable_static"
2345 p=${PACKAGE-default}
2347 yes) enable_static=yes ;;
2348 no) enable_static=no ;;
2351 # Look at the argument we got. We use all the common list separators.
2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2353 for pkg in $enableval; do
2354 if test "X$pkg" = "X$p"; then
2365 # Check whether --enable-shared or --disable-shared was given.
2366 if test "${enable_shared+set}" = set; then
2367 enableval="$enable_shared"
2368 p=${PACKAGE-default}
2370 yes) enable_shared=yes ;;
2371 no) enable_shared=no ;;
2374 # Look at the argument we got. We use all the common list separators.
2375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2376 for pkg in $enableval; do
2377 if test "X$pkg" = "X$p"; then
2391 if test $ol_enable_slapd = no ; then
2392 if test $ol_enable_slapi = yes ; then
2393 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2395 for i in $Backends; do
2396 eval "ol_tmp=\$ol_enable_$i"
2397 if test $ol_tmp != no ; then
2398 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2399 eval "ol_enable_$i=no"
2402 if test $ol_enable_modules = yes ; then
2403 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2405 if test $ol_enable_multimaster = yes ; then
2406 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2408 if test $ol_enable_wrappers = yes ; then
2409 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2411 if test $ol_enable_rlookups = yes ; then
2412 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2414 if test $ol_enable_aci = yes ; then
2415 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2417 if test $ol_with_ldbm_api != auto ; then
2418 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2420 if test $ol_with_ldbm_type != auto ; then
2421 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2423 if test $ol_enable_slurpd = yes ; then
2424 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2426 if test $ol_enable_rewrite = yes ; then
2427 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2429 for i in $Overlays; do
2430 eval "ol_tmp=\$ol_enable_$i"
2431 if test $ol_tmp != no ; then
2432 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2433 eval "ol_enable_$i=no"
2437 # force settings to no
2440 ol_enable_modules=no
2441 ol_enable_multimaster=no
2442 ol_enable_rlookups=no
2444 ol_enable_wrappers=no
2447 ol_with_ldbm_type=no
2451 ol_enable_rewrite=no
2453 elif test $ol_enable_ldbm = no ; then
2455 if test $ol_with_ldbm_api != auto ; then
2456 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2459 if test $ol_with_ldbm_type != auto ; then
2460 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2463 if test $ol_enable_modules != yes -a \
2464 $ol_enable_bdb = no -a \
2465 $ol_enable_dnssrv = no -a \
2466 $ol_enable_hdb = no -a \
2467 $ol_enable_ldap = no -a \
2468 $ol_enable_meta = no -a \
2469 $ol_enable_monitor = no -a \
2470 $ol_enable_null = no -a \
2471 $ol_enable_passwd = no -a \
2472 $ol_enable_perl = no -a \
2473 $ol_enable_relay = no -a \
2474 $ol_enable_shell = no -a \
2475 $ol_enable_sql = no ; then
2477 if test $ol_enable_slapd = yes ; then
2478 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2480 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2486 ol_with_ldbm_type=no
2488 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2489 ol_with_ldbm_api=berkeley
2493 if test $ol_with_ldbm_api = gdbm -a \
2494 $ol_with_ldbm_type = btree ; then
2495 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2497 if test $ol_with_ldbm_api = mdbm -a \
2498 $ol_with_ldbm_type = btree ; then
2499 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2501 if test $ol_with_ldbm_api = ndbm -a \
2502 $ol_with_ldbm_type = btree ; then
2503 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2506 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2507 if test $ol_with_ldbm_api = auto ; then
2508 ol_with_ldbm_api=berkeley
2509 elif test $ol_with_ldbm_api != berkeley ; then
2510 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2513 elif test $ol_enable_bdb = auto ; then
2514 if test $ol_with_ldbm_api != berkeley \
2515 -o $ol_with_ldbm_api != auto ; then
2516 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2522 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2523 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2526 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2527 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2530 if test $ol_enable_slurpd = yes ; then
2531 if test $ol_with_threads = no ; then
2532 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2536 if test $ol_enable_lmpasswd = yes ; then
2537 if test $ol_with_tls = no ; then
2538 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2542 if test $ol_enable_kbind = yes ; then
2543 if test $ol_with_kerberos = no ; then
2544 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2545 elif test $ol_with_kerberos = auto ; then
2546 ol_with_kerberos=yes
2549 elif test $ol_enable_kbind = no ; then
2550 if test $ol_with_kerberos = auto ; then
2552 elif test $ol_with_kerberos != no ; then
2553 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2558 if test $ol_enable_spasswd = yes ; then
2559 if test $ol_with_cyrus_sasl = no ; then
2560 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2562 ol_with_cyrus_sasl=yes
2565 echo "$ac_t""done" 1>&6
2604 SLAPD_DYNAMIC_OVERLAYS=
2606 SLAPD_MODULES_LDFLAGS=
2607 SLAPD_MODULES_CPPFLAGS=
2609 SLAPD_STATIC_BACKENDS=
2610 SLAPD_DYNAMIC_BACKENDS=
2633 # Find a good install program. We prefer a C program (faster),
2634 # so one script is as good as another. But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2643 # ./install, which can be erroneously created by make from ./install.sh.
2644 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2645 echo "configure:2646: checking for a BSD compatible install" >&5
2646 if test -z "$INSTALL"; then
2647 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2651 for ac_dir in $PATH; do
2652 # Account for people who put trailing slashes in PATH elements.
2654 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2656 # OSF1 and SCO ODT 3.0 have their own names for install.
2657 # Don't use installbsd from OSF since it installs stuff as root
2659 for ac_prog in ginstall scoinst install; do
2660 if test -f $ac_dir/$ac_prog; then
2661 if test $ac_prog = install &&
2662 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2663 # AIX install. It has an incompatible calling convention.
2665 elif test $ac_prog = install &&
2666 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2667 # program-specific install script used by HP pwplus--don't use.
2670 ac_cv_path_install="$ac_dir/$ac_prog -c"
2681 if test "${ac_cv_path_install+set}" = set; then
2682 INSTALL="$ac_cv_path_install"
2684 # As a last resort, use the slow shell script. We don't cache a
2685 # path for INSTALL within a source directory, because that will
2686 # break other packages using the cache if that directory is
2687 # removed, or if the path is relative.
2688 INSTALL="$ac_install_sh"
2691 echo "$ac_t""$INSTALL" 1>&6
2693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2694 # It thinks the first close brace ends the variable substitution.
2695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2702 cat >> confdefs.h <<\EOF
2703 #define HAVE_MKVERSION 1
2711 *-*-aix*) if test -z "$CC" ; then
2712 case "$ol_with_threads" in
2713 auto | yes | posix) ol_aix_threads=yes ;;
2719 if test $ol_aix_threads = yes ; then
2720 if test -z "${CC}" ; then
2721 for ac_prog in cc_r xlc_r cc
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy $ac_prog; ac_word=$2
2725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_word" >&5
2727 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2735 for ac_dir in $ac_dummy; do
2736 test -z "$ac_dir" && ac_dir=.
2737 if test -f $ac_dir/$ac_word; then
2738 ac_cv_prog_CC="$ac_prog"
2746 if test -n "$CC"; then
2747 echo "$ac_t""$CC" 1>&6
2749 echo "$ac_t""no" 1>&6
2752 test -n "$CC" && break
2756 if test "$CC" = cc ; then
2757 if test $ol_with_threads != auto ; then
2758 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2760 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2766 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2767 ol_with_threads=posix
2768 ol_cv_pthread_create=yes
2772 if test -z "${CC}"; then
2773 for ac_prog in cc gcc
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2778 echo "configure:2779: checking for $ac_word" >&5
2779 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2787 for ac_dir in $ac_dummy; do
2788 test -z "$ac_dir" && ac_dir=.
2789 if test -f $ac_dir/$ac_word; then
2790 ac_cv_prog_CC="$ac_prog"
2798 if test -n "$CC"; then
2799 echo "$ac_t""$CC" 1>&6
2801 echo "$ac_t""no" 1>&6
2804 test -n "$CC" && break
2806 test -n "$CC" || CC="missing"
2809 if test "${CC}" = "missing" ; then
2810 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2814 if test -z "${AR}"; then
2815 for ac_prog in ar gar
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_word" >&5
2821 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 if test -n "$AR"; then
2825 ac_cv_prog_AR="$AR" # Let the user override the test.
2827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2829 for ac_dir in $ac_dummy; do
2830 test -z "$ac_dir" && ac_dir=.
2831 if test -f $ac_dir/$ac_word; then
2832 ac_cv_prog_AR="$ac_prog"
2840 if test -n "$AR"; then
2841 echo "$ac_t""$AR" 1>&6
2843 echo "$ac_t""no" 1>&6
2846 test -n "$AR" && break
2848 test -n "$AR" || AR="missing"
2851 if test "${AR}" = "missing" ; then
2852 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2858 # Find the correct PATH separator. Usually this is `:', but
2859 # DJGPP uses `;' like DOS.
2860 if test "X${PATH_SEPARATOR+set}" != Xset; then
2861 UNAME=${UNAME-`uname 2>/dev/null`}
2863 *-DOS) lt_cv_sys_path_separator=';' ;;
2864 *) lt_cv_sys_path_separator=':' ;;
2866 PATH_SEPARATOR=$lt_cv_sys_path_separator
2869 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2870 echo "configure:2871: checking for Cygwin environment" >&5
2871 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 cat > conftest.$ac_ext <<EOF
2875 #line 2876 "configure"
2876 #include "confdefs.h"
2881 #define __CYGWIN__ __CYGWIN32__
2886 if { (eval echo configure:2887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2898 echo "$ac_t""$ac_cv_cygwin" 1>&6
2900 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2901 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2902 echo "configure:2903: checking for mingw32 environment" >&5
2903 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2914 if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2926 echo "$ac_t""$ac_cv_mingw32" 1>&6
2928 test "$ac_cv_mingw32" = yes && MINGW32=yes
2929 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
2930 echo "configure:2931: checking for EMX OS/2 environment" >&5
2931 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2942 if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2954 echo "$ac_t""$ac_cv_emxos2" 1>&6
2956 test "$ac_cv_emxos2" = yes && EMXOS2=yes
2957 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2958 echo "configure:2959: checking how to run the C preprocessor" >&5
2959 # On Suns, sometimes $CPP names a directory.
2960 if test -n "$CPP" && test -d "$CPP"; then
2963 if test -z "$CPP"; then
2964 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 # This must be in double quotes, not single quotes, because CPP may get
2968 # substituted into the Makefile and "${CC-cc}" will confuse make.
2970 # On the NeXT, cc -E runs the code through the compiler's parser,
2971 # not just through cpp.
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2979 { (eval echo configure:2980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2981 if test -z "$ac_err"; then
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2988 CPP="${CC-cc} -E -traditional-cpp"
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2996 { (eval echo configure:2997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2998 if test -z "$ac_err"; then
3002 echo "configure: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3005 CPP="${CC-cc} -nologo -E"
3006 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3013 { (eval echo configure:3014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3015 if test -z "$ac_err"; then
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3029 ac_cv_prog_CPP="$CPP"
3031 CPP="$ac_cv_prog_CPP"
3033 ac_cv_prog_CPP="$CPP"
3035 echo "$ac_t""$CPP" 1>&6
3037 # Check whether --enable-fast-install or --disable-fast-install was given.
3038 if test "${enable_fast_install+set}" = set; then
3039 enableval="$enable_fast_install"
3040 p=${PACKAGE-default}
3042 yes) enable_fast_install=yes ;;
3043 no) enable_fast_install=no ;;
3045 enable_fast_install=no
3046 # Look at the argument we got. We use all the common list separators.
3047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3048 for pkg in $enableval; do
3049 if test "X$pkg" = "X$p"; then
3050 enable_fast_install=yes
3057 enable_fast_install=yes
3060 # Extract the first word of "gcc", so it can be a program name with args.
3061 set dummy gcc; ac_word=$2
3062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_word" >&5
3064 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3072 for ac_dir in $ac_dummy; do
3073 test -z "$ac_dir" && ac_dir=.
3074 if test -f $ac_dir/$ac_word; then
3083 if test -n "$CC"; then
3084 echo "$ac_t""$CC" 1>&6
3086 echo "$ac_t""no" 1>&6
3089 if test -z "$CC"; then
3090 # Extract the first word of "cc", so it can be a program name with args.
3091 set dummy cc; ac_word=$2
3092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_word" >&5
3094 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3103 for ac_dir in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir=.
3105 if test -f $ac_dir/$ac_word; then
3106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3107 ac_prog_rejected=yes
3115 if test $ac_prog_rejected = yes; then
3116 # We found a bogon in the path, so make sure we never use it.
3117 set dummy $ac_cv_prog_CC
3119 if test $# -gt 0; then
3120 # We chose a different compiler from the bogus one.
3121 # However, it has the same basename, so the bogon will be chosen
3122 # first if we set CC to just the basename; use the full file name.
3124 set dummy "$ac_dir/$ac_word" "$@"
3132 if test -n "$CC"; then
3133 echo "$ac_t""$CC" 1>&6
3135 echo "$ac_t""no" 1>&6
3138 if test -z "$CC"; then
3139 case "`uname -s`" in
3140 *win32* | *WIN32* | *CYGWIN*)
3141 # Extract the first word of "cl", so it can be a program name with args.
3142 set dummy cl; ac_word=$2
3143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_word" >&5
3145 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3153 for ac_dir in $ac_dummy; do
3154 test -z "$ac_dir" && ac_dir=.
3155 if test -f $ac_dir/$ac_word; then
3164 if test -n "$CC"; then
3165 echo "$ac_t""$CC" 1>&6
3167 echo "$ac_t""no" 1>&6
3172 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3175 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3176 echo "configure:3177: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3183 cross_compiling=$ac_cv_prog_cc_cross
3185 cat > conftest.$ac_ext << EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3192 if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3193 ac_cv_prog_cc_works=yes
3194 # If we can't run a trivial program, we are probably using a cross compiler.
3195 if (./conftest; exit) 2>/dev/null; then
3196 ac_cv_prog_cc_cross=no
3198 ac_cv_prog_cc_cross=yes
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3203 ac_cv_prog_cc_works=no
3207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3211 cross_compiling=$ac_cv_prog_cc_cross
3213 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3214 if test $ac_cv_prog_cc_works = no; then
3215 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3217 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3218 echo "configure:3219: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3219 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3220 cross_compiling=$ac_cv_prog_cc_cross
3222 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3223 echo "configure:3224: checking whether we are using GNU C" >&5
3224 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 cat > conftest.c <<EOF
3232 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3239 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3241 if test $ac_cv_prog_gcc = yes; then
3247 ac_test_CFLAGS="${CFLAGS+set}"
3248 ac_save_CFLAGS="$CFLAGS"
3250 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3251 echo "configure:3252: checking whether ${CC-cc} accepts -g" >&5
3252 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 echo 'void f(){}' > conftest.c
3256 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3265 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3266 if test "$ac_test_CFLAGS" = set; then
3267 CFLAGS="$ac_save_CFLAGS"
3268 elif test $ac_cv_prog_cc_g = yes; then
3269 if test "$GCC" = yes; then
3275 if test "$GCC" = yes; then
3282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3283 if test "${with_gnu_ld+set}" = set; then
3284 withval="$with_gnu_ld"
3285 test "$withval" = no || with_gnu_ld=yes
3291 if test "$GCC" = yes; then
3292 # Check if gcc -print-prog-name=ld gives a path.
3293 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3294 echo "configure:3295: checking for ld used by GCC" >&5
3297 # gcc leaves a trailing carriage return which upsets mingw
3298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3303 # Accept absolute paths.
3304 [\\/]* | [A-Za-z]:[\\/]*)
3305 re_direlt='/[^/][^/]*/\.\./'
3306 # Canonicalize the path of ld
3307 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3309 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3311 test -z "$LD" && LD="$ac_prog"
3314 # If it fails, then pretend we aren't using GCC.
3318 # If it is relative, then search for the first ld in PATH.
3322 elif test "$with_gnu_ld" = yes; then
3323 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3324 echo "configure:3325: checking for GNU ld" >&5
3326 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3327 echo "configure:3328: checking for non-GNU ld" >&5
3329 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 if test -z "$LD"; then
3333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3334 for ac_dir in $PATH; do
3335 test -z "$ac_dir" && ac_dir=.
3336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3337 lt_cv_path_LD="$ac_dir/$ac_prog"
3338 # Check to see if the program is GNU ld. I'd rather use --version,
3339 # but apparently some GNU ld's only accept -v.
3340 # Break only if it was the GNU/non-GNU ld that we prefer.
3341 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3342 test "$with_gnu_ld" != no && break
3344 test "$with_gnu_ld" != yes && break
3350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3355 if test -n "$LD"; then
3356 echo "$ac_t""$LD" 1>&6
3358 echo "$ac_t""no" 1>&6
3360 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3361 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3362 echo "configure:3363: checking if the linker ($LD) is GNU ld" >&5
3363 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3367 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3368 lt_cv_prog_gnu_ld=yes
3370 lt_cv_prog_gnu_ld=no
3374 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3375 with_gnu_ld=$lt_cv_prog_gnu_ld
3378 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3379 echo "configure:3380: checking for $LD option to reload object files" >&5
3380 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 lt_cv_ld_reload_flag='-r'
3386 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3387 reload_flag=$lt_cv_ld_reload_flag
3388 test -n "$reload_flag" && reload_flag=" $reload_flag"
3390 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3391 echo "configure:3392: checking for BSD-compatible nm" >&5
3392 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 if test -n "$NM"; then
3396 # Let the user override the test.
3399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3400 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3401 test -z "$ac_dir" && ac_dir=.
3402 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3403 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3404 # Check to see if the nm accepts a BSD-compat flag.
3405 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3406 # nm: unknown option "B" ignored
3407 # Tru64's nm complains that /dev/null is an invalid object file
3408 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3409 lt_cv_path_NM="$tmp_nm -B"
3411 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3412 lt_cv_path_NM="$tmp_nm -p"
3415 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3416 continue # so that we can try to find one that supports BSD flags
3421 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3426 echo "$ac_t""$NM" 1>&6
3428 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3429 echo "configure:3430: checking for a sed that does not truncate output" >&5
3430 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 # Loop through the user's path and test for sed and gsed.
3434 # Then use that list of sed's as ones to test for truncation.
3435 as_executable_p="test -f"
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_prog in sed gsed; do
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3444 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3450 # Create a temporary directory, and hook for its removal unless debugging.
3453 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3454 trap '{ (exit 1); exit 1; }' 1 2 13 15
3457 # Create a (secure) tmp directory for tmp files.
3460 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3461 test -n "$tmp" && test -d "$tmp"
3464 tmp=$TMPDIR/sed$$-$RANDOM
3465 (umask 077 && mkdir $tmp)
3468 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3469 { (exit 1); exit 1; }
3473 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3474 # along with /bin/sed that truncates output.
3475 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3476 test ! -f ${_sed} && break
3477 cat /dev/null > "$tmp/sed.in"
3479 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3480 # Check for GNU sed and select it if it is found.
3481 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3482 lt_cv_path_SED=${_sed}
3486 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3487 mv "$tmp/sed.tmp" "$tmp/sed.in"
3488 cp "$tmp/sed.in" "$tmp/sed.nl"
3489 echo >>"$tmp/sed.nl"
3490 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3491 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3492 # 40000 chars as input seems more than enough
3493 test $_count -gt 10 && break
3494 _count=`expr $_count + 1`
3495 if test $_count -gt $_max; then
3497 lt_cv_path_SED=$_sed
3505 if test "X$SED" != "X"; then
3510 echo "$ac_t""$SED" 1>&6
3512 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3513 echo "configure:3514: checking whether ln -s works" >&5
3514 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3518 if ln -s X conftestdata 2>/dev/null
3521 ac_cv_prog_LN_S="ln -s"
3526 LN_S="$ac_cv_prog_LN_S"
3527 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3528 echo "$ac_t""yes" 1>&6
3530 echo "$ac_t""no" 1>&6
3533 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3534 echo "configure:3535: checking how to recognise dependent libraries" >&5
3535 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 lt_cv_file_magic_cmd='$MAGIC_CMD'
3539 lt_cv_file_magic_test_file=
3540 lt_cv_deplibs_check_method='unknown'
3541 # Need to set the preceding variable on all platforms that support
3542 # interlibrary dependencies.
3543 # 'none' -- dependencies not supported.
3544 # `unknown' -- same as none, but documents that we really don't know.
3545 # 'pass_all' -- all dependencies passed with no checks.
3546 # 'test_compile' -- check by making test program.
3547 # 'file_magic [[regex]]' -- check by looking for files in library path
3548 # which responds to the $file_magic_cmd with a given egrep regex.
3549 # If you have `file' or equivalent on your system and you're not sure
3550 # whether `pass_all' will *always* work, you probably want this one.
3554 lt_cv_deplibs_check_method=pass_all
3558 lt_cv_deplibs_check_method=pass_all
3562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3563 lt_cv_file_magic_cmd='/usr/bin/file -L'
3564 lt_cv_file_magic_test_file=/shlib/libc.so
3567 cygwin* | mingw* | pw32*)
3568 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3569 lt_cv_file_magic_cmd='$OBJDUMP -f'
3572 darwin* | rhapsody*)
3573 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3574 lt_cv_file_magic_cmd='/usr/bin/file -L'
3576 rhapsody* | darwin1.[012])
3577 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3580 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3586 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3589 # Not sure whether the presence of OpenBSD here was a mistake.
3590 # Let's accept both of them until this is cleared up.
3591 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3592 lt_cv_file_magic_cmd=/usr/bin/file
3593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3597 lt_cv_deplibs_check_method=pass_all
3602 lt_cv_deplibs_check_method=pass_all
3606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3607 lt_cv_file_magic_cmd=/usr/bin/file
3608 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3611 irix5* | irix6* | nonstopux*)
3613 irix5* | nonstopux*)
3614 # this will be overridden with pass_all, but let us keep it just in case
3615 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3619 *-32|*"-32 ") libmagic=32-bit;;
3620 *-n32|*"-n32 ") libmagic=N32;;
3621 *-64|*"-64 ") libmagic=64-bit;;
3622 *) libmagic=never-match;;
3624 # this will be overridden with pass_all, but let us keep it just in case
3625 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3628 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3629 lt_cv_deplibs_check_method=pass_all
3632 # This must be Linux ELF.
3635 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3636 lt_cv_deplibs_check_method=pass_all ;;
3638 # glibc up to 2.1.1 does not perform some relocations on ARM
3639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3641 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3645 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3646 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3648 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3654 lt_cv_file_magic_cmd=/usr/bin/file
3655 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3659 lt_cv_file_magic_cmd=/usr/bin/file
3660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3664 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3669 lt_cv_deplibs_check_method=pass_all
3672 osf3* | osf4* | osf5*)
3673 # this will be overridden with pass_all, but let us keep it just in case
3674 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3675 lt_cv_file_magic_test_file=/shlib/libc.so
3676 lt_cv_deplibs_check_method=pass_all
3680 lt_cv_deplibs_check_method=pass_all
3684 lt_cv_deplibs_check_method=pass_all
3685 lt_cv_file_magic_test_file=/lib/libc.so
3688 sysv5uw[78]* | sysv4*uw2*)
3689 lt_cv_deplibs_check_method=pass_all
3692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3693 case $host_vendor in
3695 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]'
3696 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3699 lt_cv_deplibs_check_method=pass_all
3702 lt_cv_file_magic_cmd='/bin/file'
3703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3706 lt_cv_file_magic_cmd='/bin/file'
3707 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3708 lt_cv_file_magic_test_file=/lib/libc.so
3711 lt_cv_deplibs_check_method=pass_all
3719 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3720 file_magic_cmd=$lt_cv_file_magic_cmd
3721 deplibs_check_method=$lt_cv_deplibs_check_method
3723 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3724 echo "configure:3725: checking for object suffix" >&5
3725 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3729 echo 'int i = 1;' > conftest.$ac_ext
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3731 for ac_file in conftest.*; do
3734 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3738 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3743 echo "$ac_t""$ac_cv_objext" 1>&6
3744 OBJEXT=$ac_cv_objext
3745 ac_objext=$ac_cv_objext
3750 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3751 echo "configure:3752: checking for executable suffix" >&5
3752 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3759 echo 'int main () { return 0; }' > conftest.$ac_ext
3761 if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3762 for file in conftest.*; do
3764 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3765 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3769 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3772 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3777 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3778 echo "$ac_t""${ac_cv_exeext}" 1>&6
3781 if test $host != $build; then
3782 ac_tool_prefix=${host_alias}-
3790 # Check for command to grab the raw symbol name followed by C symbol from nm.
3791 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3792 echo "configure:3793: checking command to parse $NM output" >&5
3793 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3797 # These are sane defaults that work on at least a few old systems.
3798 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3800 # Character class describing NM global symbol codes.
3801 symcode='[BCDEGRST]'
3803 # Regexp to match symbols that can be accessed directly from C.
3804 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3806 # Transform the above into a raw symbol and a C symbol.
3807 symxfrm='\1 \2\3 \3'
3809 # Transform an extracted symbol line into a proper C declaration
3810 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3812 # Transform an extracted symbol line into symbol name and symbol address
3813 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3815 # Define system-specific variables.
3820 cygwin* | mingw* | pw32*)
3821 symcode='[ABCDGISTW]'
3823 hpux*) # Its linker distinguishes data from code symbols
3824 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3825 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3828 symcode='[BCDEGRST]'
3831 symcode='[BCDEGQRST]'
3841 # Handle CRLF in mingw tool chain
3845 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3849 # If we're using GNU nm, then use its standard symbol codes.
3850 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3851 symcode='[ABCDGISTW]'
3854 # Try without a prefix undercore, then with it.
3855 for ac_symprfx in "" "_"; do
3857 # Write the raw and C identifiers.
3858 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3860 # Check to see that the pipe works correctly.
3863 cat > conftest.$ac_ext <<EOF
3868 void nm_test_func(){}
3872 int main(){nm_test_var='a';nm_test_func();return(0);}
3875 if { (eval echo configure:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3876 # Now try to grab the symbols.
3878 if { (eval echo configure:3879: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
3879 # Try sorting and uniquifying the output.
3880 if sort "$nlist" | uniq > "$nlist"T; then
3881 mv -f "$nlist"T "$nlist"
3886 # Make sure that we snagged all the symbols we need.
3887 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3888 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3889 cat <<EOF > conftest.$ac_ext
3895 # Now generate the symbol file.
3896 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3898 cat <<EOF >> conftest.$ac_ext
3899 #if defined (__STDC__) && __STDC__
3900 # define lt_ptr void *
3902 # define lt_ptr char *
3906 /* The mapping between symbol names and symbols. */
3911 lt_preloaded_symbols[] =
3914 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3915 cat <<\EOF >> conftest.$ac_ext
3923 # Now try linking the two files.
3924 mv conftest.$ac_objext conftstm.$ac_objext
3926 save_CFLAGS="$CFLAGS"
3927 LIBS="conftstm.$ac_objext"
3928 CFLAGS="$CFLAGS$no_builtin_flag"
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3933 CFLAGS="$save_CFLAGS"
3935 echo "cannot find nm_test_func in $nlist" >&5
3938 echo "cannot find nm_test_var in $nlist" >&5
3941 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3944 echo "$progname: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3947 rm -f conftest* conftst*
3949 # Do not use the global_symbol_pipe unless it works.
3950 if test "$pipe_works" = yes; then
3953 lt_cv_sys_global_symbol_pipe=
3959 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3960 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3961 global_symbol_to_cdecl=
3962 global_symbol_to_c_name_address=
3964 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3965 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3967 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3969 echo "$ac_t""failed" 1>&6
3971 echo "$ac_t""ok" 1>&6
3974 for ac_hdr in dlfcn.h
3976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3978 echo "configure:3979: checking for $ac_hdr" >&5
3979 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3988 { (eval echo configure:3989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3990 if test -z "$ac_err"; then
3992 eval "ac_cv_header_$ac_safe=yes"
3995 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3998 eval "ac_cv_header_$ac_safe=no"
4002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4003 echo "$ac_t""yes" 1>&6
4004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4005 cat >> confdefs.h <<EOF
4006 #define $ac_tr_hdr 1
4010 echo "$ac_t""no" 1>&6
4019 # Only perform the check for file, if the check method requires it
4020 case $deplibs_check_method in
4022 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4023 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4024 echo "configure:4025: checking for ${ac_tool_prefix}file" >&5
4025 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4030 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4033 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4036 ac_save_MAGIC_CMD="$MAGIC_CMD"
4037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4038 ac_dummy="/usr/bin:$PATH"
4039 for ac_dir in $ac_dummy; do
4040 test -z "$ac_dir" && ac_dir=.
4041 if test -f $ac_dir/${ac_tool_prefix}file; then
4042 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4043 if test -n "$file_magic_test_file"; then
4044 case $deplibs_check_method in
4046 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4049 egrep "$file_magic_regex" > /dev/null; then
4054 *** Warning: the command libtool uses to detect shared libraries,
4055 *** $file_magic_cmd, produces output that libtool cannot recognize.
4056 *** The result is that libtool may fail to recognize shared libraries
4057 *** as such. This will affect the creation of libtool libraries that
4058 *** depend on shared libraries, but programs linked with such libtool
4059 *** libraries will work regardless of this problem. Nevertheless, you
4060 *** may want to report the problem to your system manager and/or to
4061 *** bug-libtool@gnu.org
4071 MAGIC_CMD="$ac_save_MAGIC_CMD"
4076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4077 if test -n "$MAGIC_CMD"; then
4078 echo "$ac_t""$MAGIC_CMD" 1>&6
4080 echo "$ac_t""no" 1>&6
4083 if test -z "$lt_cv_path_MAGIC_CMD"; then
4084 if test -n "$ac_tool_prefix"; then
4085 echo $ac_n "checking for file""... $ac_c" 1>&6
4086 echo "configure:4087: checking for file" >&5
4087 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4092 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4098 ac_save_MAGIC_CMD="$MAGIC_CMD"
4099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4100 ac_dummy="/usr/bin:$PATH"
4101 for ac_dir in $ac_dummy; do
4102 test -z "$ac_dir" && ac_dir=.
4103 if test -f $ac_dir/file; then
4104 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4105 if test -n "$file_magic_test_file"; then
4106 case $deplibs_check_method in
4108 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4110 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4111 egrep "$file_magic_regex" > /dev/null; then
4116 *** Warning: the command libtool uses to detect shared libraries,
4117 *** $file_magic_cmd, produces output that libtool cannot recognize.
4118 *** The result is that libtool may fail to recognize shared libraries
4119 *** as such. This will affect the creation of libtool libraries that
4120 *** depend on shared libraries, but programs linked with such libtool
4121 *** libraries will work regardless of this problem. Nevertheless, you
4122 *** may want to report the problem to your system manager and/or to
4123 *** bug-libtool@gnu.org
4133 MAGIC_CMD="$ac_save_MAGIC_CMD"
4138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4139 if test -n "$MAGIC_CMD"; then
4140 echo "$ac_t""$MAGIC_CMD" 1>&6
4142 echo "$ac_t""no" 1>&6
4154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4157 echo "configure:4158: checking for $ac_word" >&5
4158 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 if test -n "$RANLIB"; then
4162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4166 for ac_dir in $ac_dummy; do
4167 test -z "$ac_dir" && ac_dir=.
4168 if test -f $ac_dir/$ac_word; then
4169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4176 RANLIB="$ac_cv_prog_RANLIB"
4177 if test -n "$RANLIB"; then
4178 echo "$ac_t""$RANLIB" 1>&6
4180 echo "$ac_t""no" 1>&6
4184 if test -z "$ac_cv_prog_RANLIB"; then
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "ranlib", so it can be a program name with args.
4187 set dummy ranlib; ac_word=$2
4188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4189 echo "configure:4190: checking for $ac_word" >&5
4190 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4193 if test -n "$RANLIB"; then
4194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4198 for ac_dir in $ac_dummy; do
4199 test -z "$ac_dir" && ac_dir=.
4200 if test -f $ac_dir/$ac_word; then
4201 ac_cv_prog_RANLIB="ranlib"
4206 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4209 RANLIB="$ac_cv_prog_RANLIB"
4210 if test -n "$RANLIB"; then
4211 echo "$ac_t""$RANLIB" 1>&6
4213 echo "$ac_t""no" 1>&6
4221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4222 set dummy ${ac_tool_prefix}strip; ac_word=$2
4223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4224 echo "configure:4225: checking for $ac_word" >&5
4225 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 if test -n "$STRIP"; then
4229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4233 for ac_dir in $ac_dummy; do
4234 test -z "$ac_dir" && ac_dir=.
4235 if test -f $ac_dir/$ac_word; then
4236 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4243 STRIP="$ac_cv_prog_STRIP"
4244 if test -n "$STRIP"; then
4245 echo "$ac_t""$STRIP" 1>&6
4247 echo "$ac_t""no" 1>&6
4251 if test -z "$ac_cv_prog_STRIP"; then
4252 if test -n "$ac_tool_prefix"; then
4253 # Extract the first word of "strip", so it can be a program name with args.
4254 set dummy strip; ac_word=$2
4255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_word" >&5
4257 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 if test -n "$STRIP"; then
4261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4265 for ac_dir in $ac_dummy; do
4266 test -z "$ac_dir" && ac_dir=.
4267 if test -f $ac_dir/$ac_word; then
4268 ac_cv_prog_STRIP="strip"
4273 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4276 STRIP="$ac_cv_prog_STRIP"
4277 if test -n "$STRIP"; then
4278 echo "$ac_t""$STRIP" 1>&6
4280 echo "$ac_t""no" 1>&6
4290 enable_win32_dll=yes
4292 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4293 if test "${enable_libtool_lock+set}" = set; then
4294 enableval="$enable_libtool_lock"
4298 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4300 # Some flags need to be propagated to the compiler or linker for good
4304 # Find out which ABI we are using.
4305 echo '#line 4306 "configure"' > conftest.$ac_ext
4306 if { (eval echo configure:4307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4307 case `/usr/bin/file conftest.$ac_objext` in
4323 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4324 SAVE_CFLAGS="$CFLAGS"
4325 CFLAGS="$CFLAGS -belf"
4326 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4327 echo "configure:4328: checking whether the C compiler needs -belf" >&5
4328 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4337 cross_compiling=$ac_cv_prog_cc_cross
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4349 lt_cv_cc_needs_belf=yes
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 lt_cv_cc_needs_belf=no
4358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4362 cross_compiling=$ac_cv_prog_cc_cross
4366 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4367 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4369 CFLAGS="$SAVE_CFLAGS"
4373 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4374 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4375 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_word" >&5
4378 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 if test -n "$DLLTOOL"; then
4382 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4386 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if test -f $ac_dir/$ac_word; then
4389 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4396 DLLTOOL="$ac_cv_prog_DLLTOOL"
4397 if test -n "$DLLTOOL"; then
4398 echo "$ac_t""$DLLTOOL" 1>&6
4400 echo "$ac_t""no" 1>&6
4404 if test -z "$ac_cv_prog_DLLTOOL"; then
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "dlltool", so it can be a program name with args.
4407 set dummy dlltool; ac_word=$2
4408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4409 echo "configure:4410: checking for $ac_word" >&5
4410 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 if test -n "$DLLTOOL"; then
4414 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4418 for ac_dir in $ac_dummy; do
4419 test -z "$ac_dir" && ac_dir=.
4420 if test -f $ac_dir/$ac_word; then
4421 ac_cv_prog_DLLTOOL="dlltool"
4426 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4429 DLLTOOL="$ac_cv_prog_DLLTOOL"
4430 if test -n "$DLLTOOL"; then
4431 echo "$ac_t""$DLLTOOL" 1>&6
4433 echo "$ac_t""no" 1>&6
4441 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4442 set dummy ${ac_tool_prefix}as; ac_word=$2
4443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_word" >&5
4445 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 if test -n "$AS"; then
4449 ac_cv_prog_AS="$AS" # Let the user override the test.
4451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4453 for ac_dir in $ac_dummy; do
4454 test -z "$ac_dir" && ac_dir=.
4455 if test -f $ac_dir/$ac_word; then
4456 ac_cv_prog_AS="${ac_tool_prefix}as"
4464 if test -n "$AS"; then
4465 echo "$ac_t""$AS" 1>&6
4467 echo "$ac_t""no" 1>&6
4471 if test -z "$ac_cv_prog_AS"; then
4472 if test -n "$ac_tool_prefix"; then
4473 # Extract the first word of "as", so it can be a program name with args.
4474 set dummy as; ac_word=$2
4475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4476 echo "configure:4477: checking for $ac_word" >&5
4477 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 if test -n "$AS"; then
4481 ac_cv_prog_AS="$AS" # Let the user override the test.
4483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4485 for ac_dir in $ac_dummy; do
4486 test -z "$ac_dir" && ac_dir=.
4487 if test -f $ac_dir/$ac_word; then
4493 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4497 if test -n "$AS"; then
4498 echo "$ac_t""$AS" 1>&6
4500 echo "$ac_t""no" 1>&6
4508 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4509 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4511 echo "configure:4512: checking for $ac_word" >&5
4512 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 if test -n "$OBJDUMP"; then
4516 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4520 for ac_dir in $ac_dummy; do
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f $ac_dir/$ac_word; then
4523 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4530 OBJDUMP="$ac_cv_prog_OBJDUMP"
4531 if test -n "$OBJDUMP"; then
4532 echo "$ac_t""$OBJDUMP" 1>&6
4534 echo "$ac_t""no" 1>&6
4538 if test -z "$ac_cv_prog_OBJDUMP"; then
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "objdump", so it can be a program name with args.
4541 set dummy objdump; ac_word=$2
4542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_word" >&5
4544 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 if test -n "$OBJDUMP"; then
4548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4552 for ac_dir in $ac_dummy; do
4553 test -z "$ac_dir" && ac_dir=.
4554 if test -f $ac_dir/$ac_word; then
4555 ac_cv_prog_OBJDUMP="objdump"
4560 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4563 OBJDUMP="$ac_cv_prog_OBJDUMP"
4564 if test -n "$OBJDUMP"; then
4565 echo "$ac_t""$OBJDUMP" 1>&6
4567 echo "$ac_t""no" 1>&6
4576 # recent cygwin and mingw systems supply a stub DllMain which the user
4577 # can override, but on older systems we have to supply one
4578 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4579 echo "configure:4580: checking if libtool should supply DllMain function" >&5
4580 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4588 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4594 lt_cv_need_dllmain=no
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 lt_cv_need_dllmain=yes
4604 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4607 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4608 # old mingw systems require "-dll" to link a DLL, while more recent ones
4610 SAVE_CFLAGS="$CFLAGS"
4611 CFLAGS="$CFLAGS -mdll"
4612 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4613 echo "configure:4614: checking how to link DLLs" >&5
4614 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4627 lt_cv_cc_dll_switch=-mdll
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4632 lt_cv_cc_dll_switch=-dll
4637 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4638 CFLAGS="$SAVE_CFLAGS" ;;
4639 *-*-cygwin* | *-*-pw32*)
4640 # cygwin systems need to pass --dll to the linker, and not link
4641 # crt.o which will require a WinMain@16 definition.
4642 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4648 # Sed substitution that helps us do robust quoting. It backslashifies
4649 # metacharacters that are still active within double-quoted strings.
4650 Xsed='sed -e s/^X//'
4651 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4653 # Same as above, but do not quote variable references.
4654 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4656 # Sed substitution to delay expansion of an escaped shell variable in a
4657 # double_quote_subst'ed string.
4658 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4664 default_ofile=libtool
4665 can_build_shared=yes
4667 # All known linkers require a `.a' archive for static linking (except M$VC,
4668 # which needs '.lib').
4670 ltmain="$ac_aux_dir/ltmain.sh"
4671 ofile="$default_ofile"
4672 with_gnu_ld="$lt_cv_prog_gnu_ld"
4673 need_locks="$enable_libtool_lock"
4676 old_CFLAGS="$CFLAGS"
4678 # Set sane defaults for various variables
4679 test -z "$AR" && AR=ar
4680 test -z "$AR_FLAGS" && AR_FLAGS=cru
4681 test -z "$AS" && AS=as
4682 test -z "$CC" && CC=cc
4683 test -z "$DLLTOOL" && DLLTOOL=dlltool
4684 test -z "$LD" && LD=ld
4685 test -z "$LN_S" && LN_S="ln -s"
4686 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4687 test -z "$NM" && NM=nm
4688 test -z "$OBJDUMP" && OBJDUMP=objdump
4689 test -z "$RANLIB" && RANLIB=:
4690 test -z "$STRIP" && STRIP=:
4691 test -z "$ac_objext" && ac_objext=o
4693 if test x"$host" != x"$build"; then
4694 ac_tool_prefix=${host_alias}-
4699 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4702 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4707 # AIX sometimes has problems with the GCC collect2 program. For some
4708 # reason, if we set the COLLECT_NAMES environment variable, the problems
4709 # vanish in a puff of smoke.
4710 if test "X${COLLECT_NAMES+set}" != Xset; then
4712 export COLLECT_NAMES
4717 # Determine commands to create old-style static archives.
4718 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4719 old_postinstall_cmds='chmod 644 $oldlib'
4720 old_postuninstall_cmds=
4722 if test -n "$RANLIB"; then
4725 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4728 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4731 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4734 # Allow CC to be a program name with arguments.
4738 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4739 echo "configure:4740: checking for objdir" >&5
4740 rm -f .libs 2>/dev/null
4741 mkdir .libs 2>/dev/null
4742 if test -d .libs; then
4745 # MS-DOS does not allow filenames that begin with a dot.
4748 rmdir .libs 2>/dev/null
4749 echo "$ac_t""$objdir" 1>&6
4752 # Check whether --with-pic or --without-pic was given.
4753 if test "${with_pic+set}" = set; then
4760 test -z "$pic_mode" && pic_mode=default
4762 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4763 # in isolation, and that seeing it set (from the cache) indicates that
4764 # the associated values are set (in the cache) correctly too.
4765 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4766 echo "configure:4767: checking for $compiler option to produce PIC" >&5
4767 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4771 lt_cv_prog_cc_shlib=
4773 lt_cv_prog_cc_static=
4774 lt_cv_prog_cc_no_builtin=
4775 lt_cv_prog_cc_can_build_shared=$can_build_shared
4777 if test "$GCC" = yes; then
4778 lt_cv_prog_cc_wl='-Wl,'
4779 lt_cv_prog_cc_static='-static'
4783 # Below there is a dirty hack to force normal static linking with -ldl
4784 # The problem is because libdl dynamically linked with both libc and
4785 # libC (AIX C++ library), which obviously doesn't included in libraries
4786 # list by gcc. This cause undefined symbols with -static flags.
4787 # This hack allows C programs to be linked with "-static -ldl", but
4788 # not sure about C++ programs.
4789 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4792 # FIXME: we need at least 68020 code to build shared libraries, but
4793 # adding the `-m68020' flag to GCC prevents building anything better,
4795 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4797 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4798 # PIC is the default for these OSes.
4800 darwin* | rhapsody*)
4801 # PIC is the default on this platform
4802 # Common symbols not allowed in MH_DYLIB files
4803 lt_cv_prog_cc_pic='-fno-common'
4805 cygwin* | mingw* | pw32* | os2*)
4806 # This hack is so that the source file can tell whether it is being
4807 # built for inclusion in a dll (and should export symbols for example).
4808 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4811 if test -d /usr/nec; then
4812 lt_cv_prog_cc_pic=-Kconform_pic
4816 lt_cv_prog_cc_pic='-fPIC'
4820 # PORTME Check for PIC flags for the system compiler.
4822 aix3* | aix4* | aix5*)
4823 lt_cv_prog_cc_wl='-Wl,'
4824 # All AIX code is PIC.
4825 if test "$host_cpu" = ia64; then
4826 # AIX 5 now supports IA64 processor
4827 lt_cv_prog_cc_static='-Bstatic'
4829 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4833 hpux9* | hpux10* | hpux11*)
4834 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4835 lt_cv_prog_cc_wl='-Wl,'
4836 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4837 lt_cv_prog_cc_pic='+Z'
4840 irix5* | irix6* | nonstopux*)
4841 lt_cv_prog_cc_wl='-Wl,'
4842 lt_cv_prog_cc_static='-non_shared'
4843 # PIC (with -KPIC) is the default.
4846 cygwin* | mingw* | pw32* | os2*)
4847 # This hack is so that the source file can tell whether it is being
4848 # built for inclusion in a dll (and should export symbols for example).
4849 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4853 lt_cv_prog_cc_pic='-KPIC'
4854 lt_cv_prog_cc_static='-Bstatic'
4858 # XPLINK code is PIC by default
4861 osf3* | osf4* | osf5*)
4862 # All OSF/1 code is PIC.
4863 lt_cv_prog_cc_wl='-Wl,'
4864 lt_cv_prog_cc_static='-non_shared'
4868 lt_cv_prog_cc_pic='-Kpic'
4869 lt_cv_prog_cc_static='-dn'
4870 lt_cv_prog_cc_shlib='-belf'
4874 lt_cv_prog_cc_pic='-KPIC'
4875 lt_cv_prog_cc_static='-Bstatic'
4876 lt_cv_prog_cc_wl='-Wl,'
4880 lt_cv_prog_cc_pic='-PIC'
4881 lt_cv_prog_cc_static='-Bstatic'
4882 lt_cv_prog_cc_wl='-Qoption ld '
4885 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4886 lt_cv_prog_cc_pic='-KPIC'
4887 lt_cv_prog_cc_static='-Bstatic'
4888 lt_cv_prog_cc_wl='-Wl,'
4892 lt_cv_prog_cc_pic='-pic'
4893 lt_cv_prog_cc_static='-Bstatic'
4897 if test -d /usr/nec ;then
4898 lt_cv_prog_cc_pic='-Kconform_pic'
4899 lt_cv_prog_cc_static='-Bstatic'
4904 lt_cv_prog_cc_can_build_shared=no
4911 if test -z "$lt_cv_prog_cc_pic"; then
4912 echo "$ac_t""none" 1>&6
4914 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
4916 # Check to make sure the pic_flag actually works.
4917 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
4918 echo "configure:4919: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4919 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
4922 save_CFLAGS="$CFLAGS"
4923 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4932 if { (eval echo configure:4933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4935 hpux9* | hpux10* | hpux11*)
4936 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4937 # they create non-PIC objects. So, if there were any warnings, we
4938 # assume that PIC is not supported.
4939 if test -s conftest.err; then
4940 lt_cv_prog_cc_pic_works=no
4942 lt_cv_prog_cc_pic_works=yes
4946 lt_cv_prog_cc_pic_works=yes
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 lt_cv_prog_cc_pic_works=no
4958 CFLAGS="$save_CFLAGS"
4963 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4965 lt_cv_prog_cc_can_build_shared=no
4967 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4970 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
4973 # Check for any special shared library compilation flags.
4974 if test -n "$lt_cv_prog_cc_shlib"; then
4975 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
4976 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4978 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
4979 lt_cv_prog_cc_can_build_shared=no
4983 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
4984 echo "configure:4985: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4985 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 lt_cv_prog_cc_static_works=no
4989 save_LDFLAGS="$LDFLAGS"
4990 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4991 cat > conftest.$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4999 if { (eval echo configure:5000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5001 lt_cv_prog_cc_static_works=yes
5003 echo "configure: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5007 LDFLAGS="$save_LDFLAGS"
5012 # Belt *and* braces to stop my trousers falling down:
5013 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5014 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5016 pic_flag="$lt_cv_prog_cc_pic"
5017 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5018 wl="$lt_cv_prog_cc_wl"
5019 link_static_flag="$lt_cv_prog_cc_static"
5020 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5021 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5024 # Check to see if options -o and -c are simultaneously supported by compiler
5025 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5026 echo "configure:5027: checking if $compiler supports -c -o file.$ac_objext" >&5
5027 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5031 $rm -r conftest 2>/dev/null
5034 echo "int some_variable = 0;" > conftest.$ac_ext
5036 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5037 # that will create temporary files in the current directory regardless of
5038 # the output directory. Thus, making CWD read-only will cause this test
5039 # to fail, enabling locking or at least warning the user not to do parallel
5042 save_CFLAGS="$CFLAGS"
5043 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5045 if { (eval echo configure:5046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5046 # The compiler can only warn and ignore the option if not recognized
5047 # So say no if there are warnings
5048 if test -s out/conftest.err; then
5049 lt_cv_compiler_c_o=no
5051 lt_cv_compiler_c_o=yes
5054 # Append any errors to the config.log.
5055 cat out/conftest.err 1>&5
5056 lt_cv_compiler_c_o=no
5058 CFLAGS="$save_CFLAGS"
5064 $rm -r conftest 2>/dev/null
5068 compiler_c_o=$lt_cv_compiler_c_o
5069 echo "$ac_t""$compiler_c_o" 1>&6
5071 if test x"$compiler_c_o" = x"yes"; then
5072 # Check to see if we can write to a .lo
5073 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5074 echo "configure:5075: checking if $compiler supports -c -o file.lo" >&5
5075 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5079 lt_cv_compiler_o_lo=no
5080 save_CFLAGS="$CFLAGS"
5081 CFLAGS="$CFLAGS -c -o conftest.lo"
5082 save_objext="$ac_objext"
5084 cat > conftest.$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5089 int some_variable = 0;
5092 if { (eval echo configure:5093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5094 # The compiler can only warn and ignore the option if not recognized
5095 # So say no if there are warnings
5096 if test -s conftest.err; then
5097 lt_cv_compiler_o_lo=no
5099 lt_cv_compiler_o_lo=yes
5103 echo "configure: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5107 ac_objext="$save_objext"
5108 CFLAGS="$save_CFLAGS"
5112 compiler_o_lo=$lt_cv_compiler_o_lo
5113 echo "$ac_t""$compiler_o_lo" 1>&6
5118 # Check to see if we can do hard links to lock some files if needed
5119 hard_links="nottested"
5120 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5121 # do not overwrite the value of need_locks provided by the user
5122 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5123 echo "configure:5124: checking if we can lock with hard links" >&5
5126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5128 ln conftest.a conftest.b 2>&5 || hard_links=no
5129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5130 echo "$ac_t""$hard_links" 1>&6
5131 if test "$hard_links" = no; then
5132 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5139 if test "$GCC" = yes; then
5140 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5141 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5142 echo "configure:5143: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5143 echo "int some_variable = 0;" > conftest.$ac_ext
5144 save_CFLAGS="$CFLAGS"
5145 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5146 compiler_rtti_exceptions=no
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5152 int some_variable = 0;
5155 if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 # The compiler can only warn and ignore the option if not recognized
5158 # So say no if there are warnings
5159 if test -s conftest.err; then
5160 compiler_rtti_exceptions=no
5162 compiler_rtti_exceptions=yes
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5170 CFLAGS="$save_CFLAGS"
5171 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5173 if test "$compiler_rtti_exceptions" = "yes"; then
5174 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5176 no_builtin_flag=' -fno-builtin'
5180 # See if the linker supports building shared libraries.
5181 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5182 echo "configure:5183: checking whether the linker ($LD) supports shared libraries" >&5
5184 allow_undefined_flag=
5186 need_lib_prefix=unknown
5187 need_version=unknown
5188 # when you set need_version to no, make sure it does not cause -set_version
5189 # flags to be left without arguments
5191 archive_expsym_cmds=
5192 old_archive_from_new_cmds=
5193 old_archive_from_expsyms_cmds=
5194 export_dynamic_flag_spec=
5195 whole_archive_flag_spec=
5196 thread_safe_flag_spec=
5197 hardcode_into_libs=no
5198 hardcode_libdir_flag_spec=
5199 hardcode_libdir_separator=
5202 hardcode_shlibpath_var=unsupported
5204 link_all_deplibs=unknown
5205 always_export_symbols=no
5206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5207 # include_expsyms should be a list of space-separated symbols to be *always*
5208 # included in the symbol list
5210 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5211 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5212 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5213 # as well as any symbol that contains `d'.
5214 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5215 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5216 # platforms (ab)use it in PIC code, but their linkers get confused if
5217 # the symbol is explicitly referenced. Since portable code cannot
5218 # rely on this symbol name, it's probably fine to never include it in
5219 # preloaded symbol tables.
5220 extract_expsyms_cmds=
5223 cygwin* | mingw* | pw32*)
5224 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5225 # When not using gcc, we currently assume that we are using
5226 # Microsoft Visual C++.
5227 if test "$GCC" != yes; then
5237 if test "$with_gnu_ld" = yes; then
5238 # If archive_cmds runs LD, not CC, wlarc should be empty
5241 # See if GNU ld supports shared libraries.
5243 aix3* | aix4* | aix5*)
5244 # On AIX, the GNU linker is very broken
5245 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5249 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5250 *** to be unable to reliably create shared libraries on AIX.
5251 *** Therefore, libtool is disabling shared libraries support. If you
5252 *** really care for shared libraries, you may want to modify your PATH
5253 *** so that a non-GNU linker is found, and then restart.
5259 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)'
5260 hardcode_libdir_flag_spec='-L$libdir'
5261 hardcode_minus_L=yes
5263 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5264 # that the semantics of dynamic libraries on AmigaOS, at least up
5265 # to version 4, is to share data among multiple programs linked
5266 # with the same dynamic library. Since this doesn't match the
5267 # behavior of shared libraries on other platforms, we can use
5273 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5274 allow_undefined_flag=unsupported
5275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5276 # support --undefined. This deserves some investigation. FIXME
5277 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5283 cygwin* | mingw* | pw32*)
5284 # hardcode_libdir_flag_spec is actually meaningless, as there is
5285 # no search path for DLLs.
5286 hardcode_libdir_flag_spec='-L$libdir'
5287 allow_undefined_flag=unsupported
5288 always_export_symbols=yes
5290 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5291 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5292 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5293 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5294 else $CC -o impgen impgen.c ; fi)~
5295 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5297 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5299 # cygwin and mingw dlls have different entry points and sets of symbols
5301 # FIXME: what about values for MSVC?
5302 dll_entry=__cygwin_dll_entry@12
5303 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5307 dll_entry=_DllMainCRTStartup@12
5308 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5312 # mingw and cygwin differ, and it's simplest to just exclude the union
5313 # of the two symbol sets.
5314 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5316 # recent cygwin and mingw systems supply a stub DllMain which the user
5317 # can override, but on older systems we have to supply one (in ltdll.c)
5318 if test "x$lt_cv_need_dllmain" = "xyes"; then
5319 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5320 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5321 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5327 # Extract the symbol export list from an `--export-all' def file,
5328 # then regenerate the def file from the symbol export list, so that
5329 # the compiled dll only exports the symbol export list.
5330 # Be careful not to strip the DATA tag left be newer dlltools.
5331 export_symbols_cmds="$ltdll_cmds"'
5332 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5333 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5335 # If the export-symbols file already is a .def file (1st line
5336 # is EXPORTS), use it as is.
5337 # If DATA tags from a recent dlltool are present, honour them!
5338 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5339 cp $export_symbols $output_objdir/$soname-def;
5341 echo EXPORTS > $output_objdir/$soname-def;
5343 cat $export_symbols | while read symbol; do
5346 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5347 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5348 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5350 _lt_hint=`expr 1 + \$_lt_hint`;
5354 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5355 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5356 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5357 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5358 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5362 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5363 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5366 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5367 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5372 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5376 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5377 *** create shared libraries on Solaris systems. Therefore, libtool
5378 *** is disabling shared libraries support. We urge you to upgrade GNU
5379 *** binutils to release 2.9.1 or newer. Another option is to modify
5380 *** your PATH or compiler configuration so that the native linker is
5381 *** used, and then restart.
5384 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5386 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5393 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5396 hardcode_shlibpath_var=no
5400 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5409 if test "$ld_shlibs" = yes; then
5410 runpath_var=LD_RUN_PATH
5411 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5412 export_dynamic_flag_spec='${wl}--export-dynamic'
5414 cygwin* | mingw* | pw32*)
5415 # dlltool doesn't understand --whole-archive et. al.
5416 whole_archive_flag_spec=
5419 # ancient GNU ld didn't support --whole-archive et. al.
5420 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5421 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5423 whole_archive_flag_spec=
5429 # PORTME fill in a description of your system's linker (not GNU ld)
5432 allow_undefined_flag=unsupported
5433 always_export_symbols=yes
5434 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'
5435 # Note: this linker hardcodes the directories in LIBPATH if there
5436 # are no directories specified by -L.
5437 hardcode_minus_L=yes
5438 if test "$GCC" = yes && test -z "$link_static_flag"; then
5439 # Neither direct hardcoding nor static linking is supported with a
5441 hardcode_direct=unsupported
5446 if test "$host_cpu" = ia64; then
5447 # On IA64, the linker does run time linking by default, so we don't
5448 # have to do anything special.
5449 aix_use_runtimelinking=no
5450 exp_sym_flag='-Bexport'
5453 aix_use_runtimelinking=no
5455 # Test if we are trying to use run time linking or normal
5456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5457 # need to do runtime linking.
5458 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5459 for ld_flag in $LDFLAGS; do
5462 aix_use_runtimelinking=yes
5469 exp_sym_flag='-bexport'
5470 no_entry_flag='-bnoentry'
5473 # When large executables or shared objects are built, AIX ld can
5474 # have problems creating the table of contents. If linking a library
5475 # or program results in "error TOC overflow" add -mminimal-toc to
5476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5481 hardcode_libdir_separator=':'
5482 if test "$GCC" = yes; then
5483 case $host_os in aix4.[012]|aix4.[012].*)
5484 collect2name=`${CC} -print-prog-name=collect2`
5485 if test -f "$collect2name" && \
5486 strings "$collect2name" | grep resolve_lib_name >/dev/null
5488 # We have reworked collect2
5491 # We have old collect2
5492 hardcode_direct=unsupported
5493 # It fails to find uninstalled libraries when the uninstalled
5494 # path is not listed in the libpath. Setting hardcode_minus_L
5495 # to unsupported forces relinking
5496 hardcode_minus_L=yes
5497 hardcode_libdir_flag_spec='-L$libdir'
5498 hardcode_libdir_separator=
5502 shared_flag='-shared'
5505 if test "$host_cpu" = ia64; then
5506 shared_flag='${wl}-G'
5508 if test "$aix_use_runtimelinking" = yes; then
5509 shared_flag='${wl}-G'
5511 shared_flag='${wl}-bM:SRE'
5516 # It seems that -bexpall can do strange things, so it is better to
5517 # generate a list of symbols to export.
5518 always_export_symbols=yes
5519 if test "$aix_use_runtimelinking" = yes; then
5520 # Warning - without using the other runtime loading flags (-brtl),
5521 # -berok will link without error, but may produce a broken library.
5522 allow_undefined_flag='-berok'
5523 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5524 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"
5526 if test "$host_cpu" = ia64; then
5527 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5528 allow_undefined_flag="-z nodefs"
5529 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5531 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5532 # Warning - without using the other run time loading flags,
5533 # -berok will link without error, but may produce a broken library.
5534 allow_undefined_flag='${wl}-berok'
5535 # This is a bit strange, but is similar to how AIX traditionally builds
5536 # it's shared libraries.
5537 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5543 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)'
5544 hardcode_libdir_flag_spec='-L$libdir'
5545 hardcode_minus_L=yes
5546 # see comment about different semantics on the GNU ld section
5550 cygwin* | mingw* | pw32*)
5551 # When not using gcc, we currently assume that we are using
5552 # Microsoft Visual C++.
5553 # hardcode_libdir_flag_spec is actually meaningless, as there is
5554 # no search path for DLLs.
5555 hardcode_libdir_flag_spec=' '
5556 allow_undefined_flag=unsupported
5557 # Tell ltmain to make .lib files, not .a files.
5559 # FIXME: Setting linknames here is a bad hack.
5560 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5561 # The linker will automatically build a .lib file if we build a DLL.
5562 old_archive_from_new_cmds='true'
5563 # FIXME: Should let the user specify the lib program.
5564 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5565 fix_srcfile_path='`cygpath -w "$srcfile"`'
5568 darwin* | rhapsody*)
5570 rhapsody* | darwin1.[012])
5571 allow_undefined_flag='-undefined suppress'
5574 allow_undefined_flag='-flat_namespace -undefined suppress'
5577 # FIXME: Relying on posixy $() will cause problems for
5578 # cross-compilation, but unfortunately the echo tests do not
5579 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5580 # `"' quotes if we put them in here... so don't!
5581 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5582 # We need to add '_' to the symbols in $export_symbols first
5583 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5585 hardcode_shlibpath_var=no
5586 whole_archive_flag_spec='-all_load $convenience'
5593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5594 # support. Future versions do this automatically, but an explicit c++rt0.o
5595 # does not break anything, and helps significantly (at the cost of a little
5598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5599 hardcode_libdir_flag_spec='-R$libdir'
5601 hardcode_shlibpath_var=no
5604 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5608 hardcode_minus_L=yes
5609 hardcode_shlibpath_var=no
5612 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5614 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5615 hardcode_libdir_flag_spec='-R$libdir'
5617 hardcode_shlibpath_var=no
5620 hpux9* | hpux10* | hpux11*)
5622 hpux9*) 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' ;;
5623 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5625 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5626 hardcode_libdir_separator=:
5628 hardcode_minus_L=yes # Not in the search PATH, but as the default
5629 # location of the library.
5630 export_dynamic_flag_spec='${wl}-E'
5633 irix5* | irix6* | nonstopux*)
5634 if test "$GCC" = yes; then
5635 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'
5636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5638 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'
5639 hardcode_libdir_flag_spec='-rpath $libdir'
5641 hardcode_libdir_separator=:
5642 link_all_deplibs=yes
5646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5649 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5651 hardcode_libdir_flag_spec='-R$libdir'
5653 hardcode_shlibpath_var=no
5657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5660 hardcode_libdir_separator=:
5661 hardcode_shlibpath_var=no
5666 hardcode_shlibpath_var=no
5667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5670 export_dynamic_flag_spec='${wl}-E'
5673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5675 hardcode_libdir_flag_spec='-R$libdir'
5678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5686 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5687 cp \$linknames \$output_objdir && linknames=''"
5688 export_dynamic_flag_spec="-Wl,DLL"
5692 hardcode_libdir_flag_spec='-L$libdir'
5693 hardcode_minus_L=yes
5694 allow_undefined_flag=unsupported
5695 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'
5696 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5700 if test "$GCC" = yes; then
5701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5702 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'
5704 allow_undefined_flag=' -expect_unresolved \*'
5705 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'
5707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5708 hardcode_libdir_separator=:
5711 osf4* | osf5*) # as osf3* with the addition of -msym flag
5712 if test "$GCC" = yes; then
5713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5714 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'
5715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5717 allow_undefined_flag=' -expect_unresolved \*'
5718 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'
5719 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5720 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5722 #Both c and cxx compiler support -rpath directly
5723 hardcode_libdir_flag_spec='-rpath $libdir'
5725 hardcode_libdir_separator=:
5729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5730 hardcode_shlibpath_var=no
5731 runpath_var=LD_RUN_PATH
5732 hardcode_runpath_var=yes
5733 export_dynamic_flag_spec='${wl}-Bexport'
5737 # gcc --version < 3.0 without binutils cannot create self contained
5738 # shared libraries reliably, requiring libgcc.a to resolve some of
5739 # the object symbols generated in some cases. Libraries that use
5740 # assert need libgcc.a to resolve __eprintf, for example. Linking
5741 # a copy of libgcc.a into every shared library to guarantee resolving
5742 # such symbols causes other problems: According to Tim Van Holder
5743 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5744 # (to the application) exception stack for one thing.
5745 no_undefined_flag=' -z defs'
5746 if test "$GCC" = yes; then
5747 case `$CC --version 2>/dev/null` in
5751 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5752 *** create self contained shared libraries on Solaris systems, without
5753 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5754 *** -no-undefined support, which will at least allow you to build shared
5755 *** libraries. However, you may find that when you link such libraries
5756 *** into an application without using GCC, you have to manually add
5757 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5758 *** upgrade to a newer version of GCC. Another option is to rebuild your
5759 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5766 # $CC -shared without GNU ld will not create a library from C++
5767 # object files and a static libstdc++, better avoid it by now
5768 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5769 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5770 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5771 hardcode_libdir_flag_spec='-R$libdir'
5772 hardcode_shlibpath_var=no
5774 solaris2.[0-5] | solaris2.[0-5].*) ;;
5775 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5776 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5778 link_all_deplibs=yes
5782 if test "x$host_vendor" = xsequent; then
5783 # Use $CC to link under sequent, because it throws in some extra .o
5784 # files that make .init and .fini sections work.
5785 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5787 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5789 hardcode_libdir_flag_spec='-L$libdir'
5791 hardcode_minus_L=yes
5792 hardcode_shlibpath_var=no
5796 case $host_vendor in
5798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5799 hardcode_direct=yes # is this really true???
5802 ## LD is ld it makes a PLAMLIB
5803 ## CC just makes a GrossModule.
5804 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5805 reload_cmds='$CC -r -o $output$reload_objs'
5809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5810 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5813 runpath_var='LD_RUN_PATH'
5814 hardcode_shlibpath_var=no
5818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5819 hardcode_shlibpath_var=no
5820 export_dynamic_flag_spec='-Bexport'
5824 no_undefined_flag=' -z text'
5825 # $CC -shared without GNU ld will not create a library from C++
5826 # object files and a static libstdc++, better avoid it by now
5827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5828 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5830 hardcode_libdir_flag_spec=
5831 hardcode_shlibpath_var=no
5832 runpath_var='LD_RUN_PATH'
5836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5837 hardcode_libdir_flag_spec='-L$libdir'
5838 hardcode_shlibpath_var=no
5842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5843 hardcode_libdir_flag_spec='-L$libdir'
5844 hardcode_shlibpath_var=no
5848 if test -d /usr/nec; then
5849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5850 hardcode_shlibpath_var=no
5851 runpath_var=LD_RUN_PATH
5852 hardcode_runpath_var=yes
5858 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5861 hardcode_shlibpath_var=no
5862 hardcode_runpath_var=yes
5863 runpath_var=LD_RUN_PATH
5866 sysv5uw7* | unixware7*)
5867 no_undefined_flag='${wl}-z ${wl}text'
5868 if test "$GCC" = yes; then
5869 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5871 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5873 runpath_var='LD_RUN_PATH'
5874 hardcode_shlibpath_var=no
5882 echo "$ac_t""$ld_shlibs" 1>&6
5883 test "$ld_shlibs" = no && can_build_shared=no
5885 # Check hardcoding attributes.
5886 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5887 echo "configure:5888: checking how to hardcode library paths into programs" >&5
5889 if test -n "$hardcode_libdir_flag_spec" || \
5890 test -n "$runpath_var"; then
5892 # We can hardcode non-existant directories.
5893 if test "$hardcode_direct" != no &&
5894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5895 # have to relink, otherwise we might link with an installed library
5896 # when we should be linking with a yet-to-be-installed one
5897 ## test "$hardcode_shlibpath_var" != no &&
5898 test "$hardcode_minus_L" != no; then
5899 # Linking always hardcodes the temporary library directory.
5900 hardcode_action=relink
5902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5903 hardcode_action=immediate
5906 # We cannot hardcode anything, or else we can only hardcode existing
5908 hardcode_action=unsupported
5910 echo "$ac_t""$hardcode_action" 1>&6
5914 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5915 echo "configure:5916: checking whether stripping libraries is possible" >&5
5916 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5917 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5918 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5919 echo "$ac_t""yes" 1>&6
5921 echo "$ac_t""no" 1>&6
5924 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5925 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5927 # PORTME Fill in your ld.so characteristics
5928 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
5929 echo "configure:5930: checking dynamic linker characteristics" >&5
5931 libname_spec='lib$name'
5938 shlibpath_overrides_runpath=unknown
5940 dynamic_linker="$host_os ld.so"
5941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5947 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5948 shlibpath_var=LIBPATH
5950 # AIX has no versioning support, so we append a major version to the name.
5951 soname_spec='${libname}${release}.so$major'
5958 hardcode_into_libs=yes
5959 if test "$host_cpu" = ia64; then
5960 # AIX 5 supports IA64
5961 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5962 shlibpath_var=LD_LIBRARY_PATH
5964 # With GCC up to 2.95.x, collect2 would create an import file
5965 # for dependence libraries. The import file would start with
5966 # the line `#! .'. This would cause the generated library to
5967 # depend on `.', always an invalid library. This was fixed in
5968 # development snapshots of GCC prior to 3.0.
5970 aix4 | aix4.[01] | aix4.[01].*)
5971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5973 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5980 # AIX (on Power*) has no versioning support, so currently we can
5981 # not hardcode correct soname into executable. Probably we can
5982 # add versioning support to collect2, so additional links can
5983 # be useful in future.
5984 if test "$aix_use_runtimelinking" = yes; then
5985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5986 # instead of lib<name>.a to let people know that these are not
5987 # typical AIX shared libraries.
5988 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5990 # We preserve .a as extension for shared libraries through AIX4.2
5991 # and later when we are not doing run time linking.
5992 library_names_spec='${libname}${release}.a $libname.a'
5993 soname_spec='${libname}${release}.so$major'
5995 shlibpath_var=LIBPATH
5997 hardcode_into_libs=yes
6001 library_names_spec='$libname.ixlibrary $libname.a'
6002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6003 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'
6007 library_names_spec='${libname}.so'
6008 dynamic_linker="$host_os ld.so"
6009 shlibpath_var=LIBRARY_PATH
6015 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6016 soname_spec='${libname}${release}.so$major'
6017 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6018 shlibpath_var=LD_LIBRARY_PATH
6019 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6020 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6021 export_dynamic_flag_spec=-rdynamic
6022 # the default ld.so.conf also contains /usr/contrib/lib and
6023 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6024 # libtool to hard-code these into programs
6027 cygwin* | mingw* | pw32*)
6028 version_type=windows
6031 case $GCC,$host_os in
6033 library_names_spec='$libname.dll.a'
6034 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6035 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6036 dldir=$destdir/`dirname \$dlpath`~
6037 test -d \$dldir || mkdir -p \$dldir~
6038 $install_prog .libs/$dlname \$dldir/$dlname'
6039 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6040 dlpath=$dir/\$dldll~
6044 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6051 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6054 dynamic_linker='Win32 ld.exe'
6055 # FIXME: first we should search . and the directory the executable is in
6059 darwin* | rhapsody*)
6060 dynamic_linker="$host_os dyld"
6064 # FIXME: Relying on posixy $() will cause problems for
6065 # cross-compilation, but unfortunately the echo tests do not
6066 # yet detect zsh echo's removal of \ escapes.
6067 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6068 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6069 shlibpath_overrides_runpath=yes
6070 shlibpath_var=DYLD_LIBRARY_PATH
6078 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6079 version_type=freebsd-$objformat
6080 case $version_type in
6082 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6087 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6091 shlibpath_var=LD_LIBRARY_PATH
6094 shlibpath_overrides_runpath=yes
6097 shlibpath_overrides_runpath=no
6098 hardcode_into_libs=yes
6107 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6108 soname_spec='${libname}${release}.so$major'
6109 shlibpath_var=LD_LIBRARY_PATH
6110 hardcode_into_libs=yes
6113 hpux9* | hpux10* | hpux11*)
6114 # Give a soname corresponding to the major version so that dld.sl refuses to
6115 # link against other versions.
6116 dynamic_linker="$host_os dld.sl"
6120 shlibpath_var=SHLIB_PATH
6121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6122 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6123 soname_spec='${libname}${release}.sl$major'
6124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6125 postinstall_cmds='chmod 555 $lib'
6128 irix5* | irix6* | nonstopux*)
6130 nonstopux*) version_type=nonstopux ;;
6131 *) version_type=irix ;;
6135 soname_spec='${libname}${release}.so$major'
6136 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6138 irix5* | nonstopux*)
6142 case $LD in # libtool.m4 will add one of these switches to LD
6143 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6144 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6145 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6146 *) libsuff= shlibsuff= libmagic=never-match;;
6150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6151 shlibpath_overrides_runpath=no
6152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6156 # No shared lib support for Linux oldld, aout, or coff.
6157 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6161 # This must be Linux ELF.
6166 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6167 soname_spec='${libname}${release}.so$major'
6168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6169 shlibpath_var=LD_LIBRARY_PATH
6170 shlibpath_overrides_runpath=no
6171 # This implies no fast_install, which is unacceptable.
6172 # Some rework will be needed to allow for fast_install
6173 # before this can be enabled.
6174 hardcode_into_libs=yes
6176 # We used to test for /lib/ld.so.1 and disable shared libraries on
6177 # powerpc, because MkLinux only supported shared libraries with the
6178 # GNU dynamic linker. Since this was broken with cross compilers,
6179 # most powerpc-linux boxes support dynamic linking these days and
6180 # people can always --disable-shared, the test was removed, and we
6181 # assume the GNU/Linux dynamic linker is in use.
6182 dynamic_linker='GNU/Linux ld.so'
6189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6190 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6192 dynamic_linker='NetBSD (a.out) ld.so'
6194 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6195 soname_spec='${libname}${release}.so$major'
6196 dynamic_linker='NetBSD ld.elf_so'
6198 shlibpath_var=LD_LIBRARY_PATH
6199 shlibpath_overrides_runpath=yes
6200 hardcode_into_libs=yes
6205 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6206 shlibpath_var=LD_LIBRARY_PATH
6207 shlibpath_overrides_runpath=yes
6214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6216 openbsd2.[89] | openbsd2.[89].*)
6217 shlibpath_overrides_runpath=no
6220 shlibpath_overrides_runpath=yes
6224 shlibpath_overrides_runpath=yes
6226 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6228 shlibpath_var=LD_LIBRARY_PATH
6234 shlibpath_overrides_runpath=yes
6235 shlibpath_var=LIBPATH
6236 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6237 # the library's exports are in libname.x; this is the file that must
6238 # actually be linked with to use a DLL.
6239 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6243 libname_spec='$name'
6245 library_names_spec='$libname.dll $libname.a'
6246 dynamic_linker='OS/2 ld.exe'
6247 shlibpath_var=LIBPATH
6250 osf3* | osf4* | osf5*)
6253 soname_spec='${libname}${release}.so$major'
6254 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6255 shlibpath_var=LD_LIBRARY_PATH
6256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6258 hardcode_into_libs=yes
6263 soname_spec='${libname}${release}.so$major'
6264 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6265 shlibpath_var=LD_LIBRARY_PATH
6272 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6273 soname_spec='${libname}${release}.so$major'
6274 shlibpath_var=LD_LIBRARY_PATH
6275 shlibpath_overrides_runpath=yes
6276 hardcode_into_libs=yes
6277 # ldd complains unless libraries are executable
6278 postinstall_cmds='chmod +x $lib'
6283 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6285 shlibpath_var=LD_LIBRARY_PATH
6286 shlibpath_overrides_runpath=yes
6287 if test "$with_gnu_ld" = yes; then
6293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6295 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6296 soname_spec='${libname}${release}.so$major'
6297 shlibpath_var=LD_LIBRARY_PATH
6298 case $host_vendor in
6300 shlibpath_overrides_runpath=no
6302 export_dynamic_flag_spec='${wl}-Blargedynsym'
6303 runpath_var=LD_RUN_PATH
6311 shlibpath_overrides_runpath=no
6312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6319 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6320 soname_spec='${libname}${release}.so$major'
6321 shlibpath_var=LD_LIBRARY_PATH
6328 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6329 soname_spec='${libname}${release}.so$major'
6330 shlibpath_var=LD_LIBRARY_PATH
6334 if test -d /usr/nec ;then
6336 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6337 soname_spec='$libname.so.$major'
6338 shlibpath_var=LD_LIBRARY_PATH
6346 echo "$ac_t""$dynamic_linker" 1>&6
6347 test "$dynamic_linker" = no && can_build_shared=no
6349 # Report the final consequences.
6350 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6351 echo "configure:6352: checking if libtool supports shared libraries" >&5
6352 echo "$ac_t""$can_build_shared" 1>&6
6354 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6355 echo "configure:6356: checking whether to build shared libraries" >&5
6356 test "$can_build_shared" = "no" && enable_shared=no
6358 # On AIX, shared libraries and static libraries use the same namespace, and
6359 # are all built from PIC.
6362 test "$enable_shared" = yes && enable_static=no
6363 if test -n "$RANLIB"; then
6364 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6365 postinstall_cmds='$RANLIB $lib'
6370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6371 test "$enable_shared" = yes && enable_static=no
6375 echo "$ac_t""$enable_shared" 1>&6
6377 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6378 echo "configure:6379: checking whether to build static libraries" >&5
6379 # Make sure either enable_shared or enable_static is yes.
6380 test "$enable_shared" = yes || enable_static=yes
6381 echo "$ac_t""$enable_static" 1>&6
6383 if test "$hardcode_action" = relink; then
6384 # Fast installation is not supported
6385 enable_fast_install=no
6386 elif test "$shlibpath_overrides_runpath" = yes ||
6387 test "$enable_shared" = no; then
6388 # Fast installation is not necessary
6389 enable_fast_install=needless
6392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6393 if test "$GCC" = yes; then
6394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6397 if test "x$enable_dlopen" != xyes; then
6398 enable_dlopen=unknown
6399 enable_dlopen_self=unknown
6400 enable_dlopen_self_static=unknown
6407 lt_cv_dlopen="load_add_on"
6409 lt_cv_dlopen_self=yes
6412 cygwin* | mingw* | pw32*)
6413 lt_cv_dlopen="LoadLibrary"
6418 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6419 echo "configure:6420: checking for dllload" >&5
6420 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* System header to define __stub macros and hopefully few prototypes,
6427 which can conflict with char dllload(); below. */
6429 /* Override any gcc2 internal prototype to avoid an error. */
6430 /* We use char because int might match the return type of a gcc2
6431 builtin and then its argument prototype would still apply. */
6437 /* The GNU C library defines this for functions which it implements
6438 to always fail with ENOSYS. Some functions are actually named
6439 something starting with __ and the normal name is an alias. */
6440 #if defined (__stub_dllload) || defined (__stub___dllload)
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6450 eval "ac_cv_func_dllload=yes"
6452 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6455 eval "ac_cv_func_dllload=no"
6460 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 lt_cv_dlopen="dllload"
6464 echo "$ac_t""no" 1>&6
6465 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6466 echo "configure:6467: checking for shl_load" >&5
6467 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char shl_load(); below. */
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6484 /* The GNU C library defines this for functions which it implements
6485 to always fail with ENOSYS. Some functions are actually named
6486 something starting with __ and the normal name is an alias. */
6487 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6497 eval "ac_cv_func_shl_load=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 eval "ac_cv_func_shl_load=no"
6507 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6508 echo "$ac_t""yes" 1>&6
6509 lt_cv_dlopen="shl_load"
6511 echo "$ac_t""no" 1>&6
6512 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6513 echo "configure:6514: checking for shl_load in -ldld" >&5
6514 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6515 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6518 ac_save_LIBS="$LIBS"
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6523 /* Override any gcc2 internal prototype to avoid an error. */
6524 /* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6534 eval "ac_cv_lib_$ac_lib_var=yes"
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6539 eval "ac_cv_lib_$ac_lib_var=no"
6542 LIBS="$ac_save_LIBS"
6545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6547 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6549 echo "$ac_t""no" 1>&6
6550 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6551 echo "configure:6552: checking for dlopen" >&5
6552 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 /* System header to define __stub macros and hopefully few prototypes,
6559 which can conflict with char dlopen(); below. */
6561 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6569 /* The GNU C library defines this for functions which it implements
6570 to always fail with ENOSYS. Some functions are actually named
6571 something starting with __ and the normal name is an alias. */
6572 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6580 if { (eval echo configure:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6582 eval "ac_cv_func_dlopen=yes"
6584 echo "configure: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6587 eval "ac_cv_func_dlopen=no"
6592 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6593 echo "$ac_t""yes" 1>&6
6594 lt_cv_dlopen="dlopen"
6596 echo "$ac_t""no" 1>&6
6597 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6598 echo "configure:6599: checking for dlopen in -ldl" >&5
6599 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6600 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6603 ac_save_LIBS="$LIBS"
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 /* Override any gcc2 internal prototype to avoid an error. */
6609 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619 eval "ac_cv_lib_$ac_lib_var=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 eval "ac_cv_lib_$ac_lib_var=no"
6627 LIBS="$ac_save_LIBS"
6630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6631 echo "$ac_t""yes" 1>&6
6632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6634 echo "$ac_t""no" 1>&6
6635 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6636 echo "configure:6637: checking for dlopen in -lsvld" >&5
6637 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6638 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 ac_save_LIBS="$LIBS"
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6657 eval "ac_cv_lib_$ac_lib_var=yes"
6659 echo "configure: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6662 eval "ac_cv_lib_$ac_lib_var=no"
6665 LIBS="$ac_save_LIBS"
6668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6669 echo "$ac_t""yes" 1>&6
6670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6672 echo "$ac_t""no" 1>&6
6673 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6674 echo "configure:6675: checking for dld_link in -ldld" >&5
6675 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6676 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6677 echo $ac_n "(cached) $ac_c" 1>&6
6679 ac_save_LIBS="$LIBS"
6681 cat > conftest.$ac_ext <<EOF
6682 #line 6683 "configure"
6683 #include "confdefs.h"
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 /* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 eval "ac_cv_lib_$ac_lib_var=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 eval "ac_cv_lib_$ac_lib_var=no"
6703 LIBS="$ac_save_LIBS"
6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6710 echo "$ac_t""no" 1>&6
6734 if test "x$lt_cv_dlopen" != xno; then
6740 case $lt_cv_dlopen in
6742 save_CPPFLAGS="$CPPFLAGS"
6743 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6745 save_LDFLAGS="$LDFLAGS"
6746 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6749 LIBS="$lt_cv_dlopen_libs $LIBS"
6751 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6752 echo "configure:6753: checking whether a program can dlopen itself" >&5
6753 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6756 if test "$cross_compiling" = yes; then :
6757 lt_cv_dlopen_self=cross
6759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6760 lt_status=$lt_dlunknown
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6772 # define LT_DLGLOBAL RTLD_GLOBAL
6775 # define LT_DLGLOBAL DL_GLOBAL
6777 # define LT_DLGLOBAL 0
6781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6782 find out it does not work in some platform. */
6783 #ifndef LT_DLLAZY_OR_NOW
6785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6788 # define LT_DLLAZY_OR_NOW DL_LAZY
6791 # define LT_DLLAZY_OR_NOW RTLD_NOW
6794 # define LT_DLLAZY_OR_NOW DL_NOW
6796 # define LT_DLLAZY_OR_NOW 0
6804 extern "C" void exit (int);
6807 void fnord() { int i=42;}
6810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6811 int status = $lt_dlunknown;
6815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6816 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6817 /* dlclose (self); */
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6824 (./conftest; exit; ) 2>/dev/null
6827 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6828 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6829 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6832 # compilation failed
6833 lt_cv_dlopen_self=no
6841 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6843 if test "x$lt_cv_dlopen_self" = xyes; then
6844 LDFLAGS="$LDFLAGS $link_static_flag"
6845 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6846 echo "configure:6847: checking whether a statically linked program can dlopen itself" >&5
6847 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6850 if test "$cross_compiling" = yes; then :
6851 lt_cv_dlopen_self_static=cross
6853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6854 lt_status=$lt_dlunknown
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6866 # define LT_DLGLOBAL RTLD_GLOBAL
6869 # define LT_DLGLOBAL DL_GLOBAL
6871 # define LT_DLGLOBAL 0
6875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6876 find out it does not work in some platform. */
6877 #ifndef LT_DLLAZY_OR_NOW
6879 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6882 # define LT_DLLAZY_OR_NOW DL_LAZY
6885 # define LT_DLLAZY_OR_NOW RTLD_NOW
6888 # define LT_DLLAZY_OR_NOW DL_NOW
6890 # define LT_DLLAZY_OR_NOW 0
6898 extern "C" void exit (int);
6901 void fnord() { int i=42;}
6904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6905 int status = $lt_dlunknown;
6909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6910 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6911 /* dlclose (self); */
6917 if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6918 (./conftest; exit; ) 2>/dev/null
6921 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6922 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6923 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6926 # compilation failed
6927 lt_cv_dlopen_self_static=no
6935 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6938 CPPFLAGS="$save_CPPFLAGS"
6939 LDFLAGS="$save_LDFLAGS"
6944 case $lt_cv_dlopen_self in
6945 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6946 *) enable_dlopen_self=unknown ;;
6949 case $lt_cv_dlopen_self_static in
6950 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6951 *) enable_dlopen_self_static=unknown ;;
6956 if test "$enable_shared" = yes && test "$GCC" = yes; then
6957 case $archive_cmds in
6959 # FIXME: we may have to deal with multi-command sequences.
6962 # Test whether the compiler implicitly links with -lc since on some
6963 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6964 # to ld, don't add -lc before -lgcc.
6965 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
6966 echo "configure:6967: checking whether -lc should be explicitly linked in" >&5
6967 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6971 echo 'static int dummy;' > conftest.$ac_ext
6973 if { (eval echo configure:6974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6976 libobjs=conftest.$ac_objext
6978 wl=$lt_cv_prog_cc_wl
6984 save_allow_undefined_flag=$allow_undefined_flag
6985 allow_undefined_flag=
6986 if { (eval echo configure:6987: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
6988 lt_cv_archive_cmds_need_lc=no
6990 lt_cv_archive_cmds_need_lc=yes
6992 allow_undefined_flag=$save_allow_undefined_flag
6994 cat conftest.err 1>&5
6998 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7002 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7004 # The second clause should only fire when bootstrapping the
7005 # libtool distribution, otherwise you forgot to ship ltmain.sh
7006 # with your package, and you will get complaints that there are
7007 # no rules to generate ltmain.sh.
7008 if test -f "$ltmain"; then
7011 # If there is no Makefile yet, we rely on a make rule to execute
7012 # `config.status --recheck' to rerun these tests and create the
7013 # libtool script then.
7014 test -f Makefile && make "$ltmain"
7017 if test -f "$ltmain"; then
7018 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7021 echo creating $ofile
7023 # Now quote all the things that may contain metacharacters while being
7024 # careful not to overquote the AC_SUBSTed values. We take copies of the
7025 # variables and quote the copies for generation of the libtool script.
7026 for var in echo old_CC old_CFLAGS SED \
7027 AR AR_FLAGS CC LD LN_S NM SHELL \
7028 reload_flag reload_cmds wl \
7029 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7030 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7031 library_names_spec soname_spec \
7032 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7033 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7034 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7035 old_striplib striplib file_magic_cmd export_symbols_cmds \
7036 deplibs_check_method allow_undefined_flag no_undefined_flag \
7037 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7038 global_symbol_to_c_name_address \
7039 hardcode_libdir_flag_spec hardcode_libdir_separator \
7040 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7041 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7044 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7045 old_postinstall_cmds | old_postuninstall_cmds | \
7046 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7047 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7048 postinstall_cmds | postuninstall_cmds | \
7049 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7050 # Double-quote double-evaled strings.
7051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7059 cat <<__EOF__ > "${ofile}T"
7062 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7063 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7064 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7066 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7067 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7069 # This program is free software; you can redistribute it and/or modify
7070 # it under the terms of the GNU General Public License as published by
7071 # the Free Software Foundation; either version 2 of the License, or
7072 # (at your option) any later version.
7074 # This program is distributed in the hope that it will be useful, but
7075 # WITHOUT ANY WARRANTY; without even the implied warranty of
7076 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7077 # General Public License for more details.
7079 # You should have received a copy of the GNU General Public License
7080 # along with this program; if not, write to the Free Software
7081 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7083 # As a special exception to the GNU General Public License, if you
7084 # distribute this file as part of a program that contains a
7085 # configuration script generated by Autoconf, you may include it under
7086 # the same distribution terms that you use for the rest of that program.
7088 # A sed that does not truncate output.
7091 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7092 Xsed="${SED} -e s/^X//"
7094 # The HP-UX ksh and POSIX shell print the target directory to stdout
7096 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7098 # ### BEGIN LIBTOOL CONFIG
7100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7102 # Shell to use when invoking shell scripts.
7105 # Whether or not to build shared libraries.
7106 build_libtool_libs=$enable_shared
7108 # Whether or not to build static libraries.
7109 build_old_libs=$enable_static
7111 # Whether or not to add -lc for building shared libraries.
7112 build_libtool_need_lc=$need_lc
7114 # Whether or not to optimize for fast installation.
7115 fast_install=$enable_fast_install
7118 host_alias=$host_alias
7121 # An echo program that does not interpret backslashes.
7126 AR_FLAGS=$lt_AR_FLAGS
7128 # The default C compiler.
7131 # Is the compiler the GNU C compiler?
7134 # The linker used to build libraries.
7137 # Whether we need hard or soft links.
7140 # A BSD-compatible nm program.
7143 # A symbol stripping program
7146 # Used to examine libraries when file_magic_cmd begins "file"
7147 MAGIC_CMD=$MAGIC_CMD
7149 # Used on cygwin: DLL creation program.
7152 # Used on cygwin: object dumper.
7155 # Used on cygwin: assembler.
7158 # The name of the directory that contains temporary libtool files.
7161 # How to create reloadable object files.
7162 reload_flag=$lt_reload_flag
7163 reload_cmds=$lt_reload_cmds
7165 # How to pass a linker flag through the compiler.
7168 # Object file suffix (normally "o").
7171 # Old archive suffix (normally "a").
7174 # Executable file suffix (normally "").
7177 # Additional compiler flags for building library objects.
7178 pic_flag=$lt_pic_flag
7181 # Does compiler simultaneously support -c and -o options?
7182 compiler_c_o=$lt_compiler_c_o
7184 # Can we write directly to a .lo ?
7185 compiler_o_lo=$lt_compiler_o_lo
7187 # Must we lock files when doing compilation ?
7188 need_locks=$lt_need_locks
7190 # Do we need the lib prefix for modules?
7191 need_lib_prefix=$need_lib_prefix
7193 # Do we need a version for libraries?
7194 need_version=$need_version
7196 # Whether dlopen is supported.
7197 dlopen_support=$enable_dlopen
7199 # Whether dlopen of programs is supported.
7200 dlopen_self=$enable_dlopen_self
7202 # Whether dlopen of statically linked programs is supported.
7203 dlopen_self_static=$enable_dlopen_self_static
7205 # Compiler flag to prevent dynamic linking.
7206 link_static_flag=$lt_link_static_flag
7208 # Compiler flag to turn off builtin functions.
7209 no_builtin_flag=$lt_no_builtin_flag
7211 # Compiler flag to allow reflexive dlopens.
7212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7214 # Compiler flag to generate shared objects directly from archives.
7215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7217 # Compiler flag to generate thread-safe objects.
7218 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7220 # Library versioning type.
7221 version_type=$version_type
7223 # Format of library name prefix.
7224 libname_spec=$lt_libname_spec
7226 # List of archive names. First name is the real one, the rest are links.
7227 # The last name is the one that the linker finds with -lNAME.
7228 library_names_spec=$lt_library_names_spec
7230 # The coded name of the library, if different from the real name.
7231 soname_spec=$lt_soname_spec
7233 # Commands used to build and install an old-style archive.
7235 old_archive_cmds=$lt_old_archive_cmds
7236 old_postinstall_cmds=$lt_old_postinstall_cmds
7237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7239 # Create an old-style archive from a shared archive.
7240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7242 # Create a temporary old-style archive to link instead of a shared archive.
7243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7245 # Commands used to build and install a shared archive.
7246 archive_cmds=$lt_archive_cmds
7247 archive_expsym_cmds=$lt_archive_expsym_cmds
7248 postinstall_cmds=$lt_postinstall_cmds
7249 postuninstall_cmds=$lt_postuninstall_cmds
7251 # Commands to strip libraries.
7252 old_striplib=$lt_old_striplib
7253 striplib=$lt_striplib
7255 # Method to check whether dependent libraries are shared objects.
7256 deplibs_check_method=$lt_deplibs_check_method
7258 # Command to use when deplibs_check_method == file_magic.
7259 file_magic_cmd=$lt_file_magic_cmd
7261 # Flag that allows shared libraries with undefined symbols to be built.
7262 allow_undefined_flag=$lt_allow_undefined_flag
7264 # Flag that forces no undefined symbols.
7265 no_undefined_flag=$lt_no_undefined_flag
7267 # Commands used to finish a libtool library installation in a directory.
7268 finish_cmds=$lt_finish_cmds
7270 # Same as above, but a single script fragment to be evaled but not shown.
7271 finish_eval=$lt_finish_eval
7273 # Take the output of nm and produce a listing of raw symbols and C names.
7274 global_symbol_pipe=$lt_global_symbol_pipe
7276 # Transform the output of nm in a proper C declaration
7277 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7279 # Transform the output of nm in a C name address pair
7280 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7282 # This is the shared library runtime path variable.
7283 runpath_var=$runpath_var
7285 # This is the shared library path variable.
7286 shlibpath_var=$shlibpath_var
7288 # Is shlibpath searched before the hard-coded library search path?
7289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7291 # How to hardcode a shared library path into an executable.
7292 hardcode_action=$hardcode_action
7294 # Whether we should hardcode library paths into libraries.
7295 hardcode_into_libs=$hardcode_into_libs
7297 # Flag to hardcode \$libdir into a binary during linking.
7298 # This must work even if \$libdir does not exist.
7299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7301 # Whether we need a single -rpath flag with a separated argument.
7302 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7304 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7306 hardcode_direct=$hardcode_direct
7308 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7310 hardcode_minus_L=$hardcode_minus_L
7312 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7313 # the resulting binary.
7314 hardcode_shlibpath_var=$hardcode_shlibpath_var
7316 # Variables whose values should be saved in libtool wrapper scripts and
7317 # restored at relink time.
7318 variables_saved_for_relink="$variables_saved_for_relink"
7320 # Whether libtool must link a program against all its dependency libraries.
7321 link_all_deplibs=$link_all_deplibs
7323 # Compile-time system search path for libraries
7324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7326 # Run-time system search path for libraries
7327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7329 # Fix the shell variable \$srcfile for the compiler.
7330 fix_srcfile_path="$fix_srcfile_path"
7332 # Set to yes if exported symbols are required.
7333 always_export_symbols=$always_export_symbols
7335 # The commands to list exported symbols.
7336 export_symbols_cmds=$lt_export_symbols_cmds
7338 # The commands to extract the exported symbol list from a shared archive.
7339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7341 # Symbols that should not be listed in the preloaded symbols.
7342 exclude_expsyms=$lt_exclude_expsyms
7344 # Symbols that must always be exported.
7345 include_expsyms=$lt_include_expsyms
7347 # ### END LIBTOOL CONFIG
7353 cat <<\EOF >> "${ofile}T"
7355 # AIX sometimes has problems with the GCC collect2 program. For some
7356 # reason, if we set the COLLECT_NAMES environment variable, the problems
7357 # vanish in a puff of smoke.
7358 if test "X${COLLECT_NAMES+set}" != Xset; then
7360 export COLLECT_NAMES
7367 cygwin* | mingw* | pw32* | os2*)
7368 cat <<'EOF' >> "${ofile}T"
7369 # This is a source program that is used to create dlls on Windows
7370 # Don't remove nor modify the starting and closing comments
7371 # /* ltdll.c starts here */
7372 # #define WIN32_LEAN_AND_MEAN
7373 # #include <windows.h>
7374 # #undef WIN32_LEAN_AND_MEAN
7375 # #include <stdio.h>
7377 # #ifndef __CYGWIN__
7378 # # ifdef __CYGWIN32__
7379 # # define __CYGWIN__ __CYGWIN32__
7383 # #ifdef __cplusplus
7386 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7387 # #ifdef __cplusplus
7392 # #include <cygwin/cygwin_dll.h>
7393 # DECLARE_CYGWIN_DLL( DllMain );
7395 # HINSTANCE __hDllInstance_base;
7398 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7400 # __hDllInstance_base = hInst;
7403 # /* ltdll.c ends here */
7404 # This is a source program that is used to create import libraries
7405 # on Windows for dlls which lack them. Don't remove nor modify the
7406 # starting and closing comments
7407 # /* impgen.c starts here */
7408 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7410 # This file is part of GNU libtool.
7412 # This program is free software; you can redistribute it and/or modify
7413 # it under the terms of the GNU General Public License as published by
7414 # the Free Software Foundation; either version 2 of the License, or
7415 # (at your option) any later version.
7417 # This program is distributed in the hope that it will be useful,
7418 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7419 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7420 # GNU General Public License for more details.
7422 # You should have received a copy of the GNU General Public License
7423 # along with this program; if not, write to the Free Software
7424 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7427 # #include <stdio.h> /* for printf() */
7428 # #include <unistd.h> /* for open(), lseek(), read() */
7429 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7430 # #include <string.h> /* for strdup() */
7432 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7434 # #define O_BINARY 0
7437 # static unsigned int
7438 # pe_get16 (fd, offset)
7442 # unsigned char b[2];
7443 # lseek (fd, offset, SEEK_SET);
7445 # return b[0] + (b[1]<<8);
7448 # static unsigned int
7449 # pe_get32 (fd, offset)
7453 # unsigned char b[4];
7454 # lseek (fd, offset, SEEK_SET);
7456 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7459 # static unsigned int
7463 # unsigned char *b = ptr;
7464 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7473 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7474 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7475 # unsigned long name_rvas, nexp;
7476 # unsigned char *expdata, *erva;
7477 # char *filename, *dll_name;
7479 # filename = argv[1];
7481 # dll = open(filename, O_RDONLY|O_BINARY);
7485 # dll_name = filename;
7487 # for (i=0; filename[i]; i++)
7488 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7489 # dll_name = filename + i +1;
7491 # pe_header_offset = pe_get32 (dll, 0x3c);
7492 # opthdr_ofs = pe_header_offset + 4 + 20;
7493 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7495 # if (num_entries < 1) /* no exports */
7498 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7499 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7500 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7501 # secptr = (pe_header_offset + 4 + 20 +
7502 # pe_get16 (dll, pe_header_offset + 4 + 16));
7505 # for (i = 0; i < nsections; i++)
7508 # unsigned long secptr1 = secptr + 40 * i;
7509 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7510 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7511 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7512 # lseek(dll, secptr1, SEEK_SET);
7513 # read(dll, sname, 8);
7514 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7516 # expptr = fptr + (export_rva - vaddr);
7517 # if (export_rva + export_size > vaddr + vsize)
7518 # export_size = vsize - (export_rva - vaddr);
7523 # expdata = (unsigned char*)malloc(export_size);
7524 # lseek (dll, expptr, SEEK_SET);
7525 # read (dll, expdata, export_size);
7526 # erva = expdata - export_rva;
7528 # nexp = pe_as32 (expdata+24);
7529 # name_rvas = pe_as32 (expdata+32);
7531 # printf ("EXPORTS\n");
7532 # for (i = 0; i<nexp; i++)
7534 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7535 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7540 # /* impgen.c ends here */
7546 # We use sed instead of cat because bash on DJGPP gets confused if
7547 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7548 # text mode, it properly converts lines to CR/LF. This bash problem
7549 # is reportedly fixed, but why not run on old versions too?
7550 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7552 mv -f "${ofile}T" "$ofile" || \
7553 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7561 # This can be used to rebuild libtool when needed
7562 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7564 # Always use our own libtool.
7565 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7567 # Prevent multiple expansion
7571 # test for ln hardlink support
7572 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7573 echo "configure:7574: checking whether ln works" >&5
7574 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 rm -f conftest.src conftest.dst
7578 echo "conftest" > conftest.src
7579 if ln conftest.src conftest.dst 2>/dev/null
7581 ol_cv_prog_LN_H="ln"
7583 ol_cv_prog_LN_H="cp"
7585 rm -f conftest.src conftest.dst
7588 LN_H="$ol_cv_prog_LN_H"
7589 if test "$ol_cv_prog_LN_H" = "ln"; then
7590 echo "$ac_t""yes" 1>&6
7592 echo "$ac_t""no" 1>&6
7595 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7596 echo "configure:7597: checking whether ln -s works" >&5
7597 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7601 if ln -s X conftestdata 2>/dev/null
7604 ac_cv_prog_LN_S="ln -s"
7609 LN_S="$ac_cv_prog_LN_S"
7610 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7611 echo "$ac_t""yes" 1>&6
7613 echo "$ac_t""no" 1>&6
7618 if test $ol_enable_perl != no ; then
7619 # Extract the first word of "perl", so it can be a program name with args.
7620 set dummy perl; ac_word=$2
7621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7622 echo "configure:7623: checking for $ac_word" >&5
7623 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7628 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7631 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7636 for ac_dir in $ac_dummy; do
7637 test -z "$ac_dir" && ac_dir=.
7638 if test -f $ac_dir/$ac_word; then
7639 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7644 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7648 PERLBIN="$ac_cv_path_PERLBIN"
7649 if test -n "$PERLBIN"; then
7650 echo "$ac_t""$PERLBIN" 1>&6
7652 echo "$ac_t""no" 1>&6
7656 if test "no$PERLBIN" = "no" ; then
7657 if test $ol_enable_perl = yes ; then
7658 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7662 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7663 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7665 if test x"$ol_enable_perl" = "xyes" ; then
7666 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7668 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7674 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7675 echo "configure:7676: checking how to run the C preprocessor" >&5
7676 # On Suns, sometimes $CPP names a directory.
7677 if test -n "$CPP" && test -d "$CPP"; then
7680 if test -z "$CPP"; then
7681 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7684 # This must be in double quotes, not single quotes, because CPP may get
7685 # substituted into the Makefile and "${CC-cc}" will confuse make.
7687 # On the NeXT, cc -E runs the code through the compiler's parser,
7688 # not just through cpp.
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7696 { (eval echo configure:7697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7698 if test -z "$ac_err"; then
7702 echo "configure: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7705 CPP="${CC-cc} -E -traditional-cpp"
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7713 { (eval echo configure:7714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7715 if test -z "$ac_err"; then
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7722 CPP="${CC-cc} -nologo -E"
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7730 { (eval echo configure:7731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7732 if test -z "$ac_err"; then
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7746 ac_cv_prog_CPP="$CPP"
7748 CPP="$ac_cv_prog_CPP"
7750 ac_cv_prog_CPP="$CPP"
7752 echo "$ac_t""$CPP" 1>&6
7756 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7757 echo "configure:7758: checking for Cygwin environment" >&5
7758 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7759 echo $ac_n "(cached) $ac_c" 1>&6
7761 cat > conftest.$ac_ext <<EOF
7762 #line 7763 "configure"
7763 #include "confdefs.h"
7768 #define __CYGWIN__ __CYGWIN32__
7773 if { (eval echo configure:7774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7785 echo "$ac_t""$ac_cv_cygwin" 1>&6
7787 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7788 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7789 echo "configure:7790: checking for mingw32 environment" >&5
7790 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7801 if { (eval echo configure:7802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7813 echo "$ac_t""$ac_cv_mingw32" 1>&6
7815 test "$ac_cv_mingw32" = yes && MINGW32=yes
7819 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7820 echo "configure:7821: checking for executable suffix" >&5
7821 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7824 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7828 echo 'int main () { return 0; }' > conftest.$ac_ext
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7831 for file in conftest.*; do
7833 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7834 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7838 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7841 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7846 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7847 echo "$ac_t""${ac_cv_exeext}" 1>&6
7850 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7851 echo "configure:7852: checking for object suffix" >&5
7852 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7856 echo 'int i = 1;' > conftest.$ac_ext
7857 if { (eval echo configure:7858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7858 for ac_file in conftest.*; do
7861 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7865 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7870 echo "$ac_t""$ac_cv_objext" 1>&6
7871 OBJEXT=$ac_cv_objext
7872 ac_objext=$ac_cv_objext
7875 cat >> confdefs.h <<EOF
7876 #define EXEEXT "${EXEEXT}"
7880 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7881 echo "configure:7882: checking for be_app in -lbe" >&5
7882 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7883 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7884 echo $ac_n "(cached) $ac_c" 1>&6
7886 ac_save_LIBS="$LIBS"
7887 LIBS="-lbe -lroot -lnet $LIBS"
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7891 /* Override any gcc2 internal prototype to avoid an error. */
7892 /* We use char because int might match the return type of a gcc2
7893 builtin and then its argument prototype would still apply. */
7900 if { (eval echo configure:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7902 eval "ac_cv_lib_$ac_lib_var=yes"
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7907 eval "ac_cv_lib_$ac_lib_var=no"
7910 LIBS="$ac_save_LIBS"
7913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7914 echo "$ac_t""yes" 1>&6
7915 LIBS="$LIBS -lbe -lroot -lnet"
7917 echo "$ac_t""no" 1>&6
7925 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7926 echo "configure:7927: checking for ${CC-cc} option to accept ANSI C" >&5
7927 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7930 am_cv_prog_cc_stdc=no
7932 # Don't try gcc -ansi; that turns off useful extensions and
7933 # breaks some systems' header files.
7934 # AIX -qlanglvl=ansi
7935 # Ultrix and OSF/1 -std1
7936 # HP-UX 10.20 and later -Ae
7937 # HP-UX older versions -Aa -D_HPUX_SOURCE
7938 # SVR4 -Xc -D__EXTENSIONS__
7939 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7941 CC="$ac_save_CC $ac_arg"
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7947 #include <sys/types.h>
7948 #include <sys/stat.h>
7949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7950 struct buf { int x; };
7951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7952 static char *e (p, i)
7958 static char *f (char * (*g) (char **, int), char **p, ...)
7963 s = g (p, va_arg (v,int));
7967 int test (int i, double x);
7968 struct s1 {int (*f) (int a);};
7969 struct s2 {int (*f) (double a);};
7970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7980 if { (eval echo configure:7981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7982 am_cv_prog_cc_stdc="$ac_arg"; break
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7993 if test -z "$am_cv_prog_cc_stdc"; then
7994 echo "$ac_t""none needed" 1>&6
7996 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
7998 case "x$am_cv_prog_cc_stdc" in
8000 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8003 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8004 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8007 # test for make depend flag
8010 if test -z "${MKDEP}"; then
8012 if test -z "${MKDEP_FLAGS}"; then
8013 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8014 echo "configure:8015: checking for ${OL_MKDEP} depend flag" >&5
8015 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8020 for flag in "-M" "-xM"; do
8021 cat > conftest.c <<EOF
8024 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8025 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8027 if test ! -f conftest."${ac_object}" ; then
8029 OL_MKDEP_FLAGS="$flag"
8038 echo "$ac_t""$ol_cv_mkdep" 1>&6
8041 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8046 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8051 if test "${ol_cv_mkdep}" = no ; then
8052 # this will soon become an error
8053 echo "configure: warning: do not know how to generate dependencies" 1>&2
8056 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8057 echo "configure:8058: checking for afopen in -ls" >&5
8058 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8059 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8060 echo $ac_n "(cached) $ac_c" 1>&6
8062 ac_save_LIBS="$LIBS"
8064 cat > conftest.$ac_ext <<EOF
8065 #line 8066 "configure"
8066 #include "confdefs.h"
8067 /* Override any gcc2 internal prototype to avoid an error. */
8068 /* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8076 if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8078 eval "ac_cv_lib_$ac_lib_var=yes"
8080 echo "configure: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8083 eval "ac_cv_lib_$ac_lib_var=no"
8086 LIBS="$ac_save_LIBS"
8089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8090 echo "$ac_t""yes" 1>&6
8093 cat >> confdefs.h <<\EOF
8094 #define HAVE_AIX_SECURITY 1
8099 echo "$ac_t""no" 1>&6
8105 ac_cv_func_getopt=no
8106 cat >> confdefs.h <<\EOF
8107 #define BOTH_STRINGS_H 1
8114 if test $ol_enable_modules != no ; then
8115 for ac_hdr in ltdl.h
8117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8119 echo "configure:8120: checking for $ac_hdr" >&5
8120 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8129 { (eval echo configure:8130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8131 if test -z "$ac_err"; then
8133 eval "ac_cv_header_$ac_safe=yes"
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8139 eval "ac_cv_header_$ac_safe=no"
8143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8144 echo "$ac_t""yes" 1>&6
8145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8146 cat >> confdefs.h <<EOF
8147 #define $ac_tr_hdr 1
8151 echo "$ac_t""no" 1>&6
8156 if test $ac_cv_header_ltdl_h = no ; then
8157 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8160 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8161 echo "configure:8162: checking for lt_dlinit in -lltdl" >&5
8162 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8166 ac_save_LIBS="$LIBS"
8168 cat > conftest.$ac_ext <<EOF
8169 #line 8170 "configure"
8170 #include "confdefs.h"
8171 /* Override any gcc2 internal prototype to avoid an error. */
8172 /* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8180 if { (eval echo configure:8181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8182 eval "ac_cv_lib_$ac_lib_var=yes"
8184 echo "configure: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8187 eval "ac_cv_lib_$ac_lib_var=no"
8190 LIBS="$ac_save_LIBS"
8193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8194 echo "$ac_t""yes" 1>&6
8197 cat >> confdefs.h <<\EOF
8198 #define HAVE_LIBLTDL 1
8203 echo "$ac_t""no" 1>&6
8207 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8208 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8213 for i in $Backends; do
8214 eval "ol_tmp=\$ol_enable_$i"
8215 if test $ol_tmp = mod ; then
8216 echo "configure: warning: building static $i backend" 1>&2
8217 eval "ol_enable_$i=yes"
8220 for i in $Overlays; do
8221 eval "ol_tmp=\$ol_enable_$i"
8222 if test $ol_tmp = mod ; then
8223 echo "configure: warning: building static $i overlay" 1>&2
8224 eval "ol_enable_$i=yes"
8230 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8231 echo "configure:8232: checking for EBCDIC" >&5
8232 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8233 echo $ac_n "(cached) $ac_c" 1>&6
8236 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8241 #include <__ASCII__/generate_error.h>
8245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8246 { (eval echo configure:8247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8248 if test -z "$ac_err"; then
8250 ol_cv_cpp_ebcdic=yes
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8261 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8262 if test $ol_cv_cpp_ebcdic = yes ; then
8263 cat >> confdefs.h <<\EOF
8264 #define HAVE_EBCDIC 1
8269 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8270 echo "configure:8271: checking for ANSI C header files" >&5
8271 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8283 { (eval echo configure:8284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8285 if test -z "$ac_err"; then
8287 ol_cv_header_stdc=yes
8290 echo "configure: failed program was:" >&5
8291 cat conftest.$ac_ext >&5
8293 ol_cv_header_stdc=no
8297 if test $ol_cv_header_stdc = yes; then
8298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8305 egrep "memchr" >/dev/null 2>&1; then
8309 ol_cv_header_stdc=no
8315 if test $ol_cv_header_stdc = yes; then
8316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8323 egrep "free" >/dev/null 2>&1; then
8327 ol_cv_header_stdc=no
8333 if test $ol_cv_header_stdc = yes; then
8334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8335 if test "$cross_compiling" = yes; then
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8346 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8347 || ('j' <= (c) && (c) <= 'r') \
8348 || ('s' <= (c) && (c) <= 'z'))
8349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8352 int main () { int i; for (i = 0; i < 256; i++)
8353 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8357 if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8361 echo "configure: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8364 ol_cv_header_stdc=no
8372 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8373 if test $ol_cv_header_stdc = yes; then
8374 cat >> confdefs.h <<\EOF
8375 #define STDC_HEADERS 1
8379 ac_cv_header_stdc=disable
8382 if test $ol_cv_header_stdc != yes; then
8383 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8387 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8390 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8391 echo "configure:8392: checking for $ac_hdr that defines DIR" >&5
8392 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 #include <sys/types.h>
8404 if { (eval echo configure:8405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8406 eval "ac_cv_header_dirent_$ac_safe=yes"
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8411 eval "ac_cv_header_dirent_$ac_safe=no"
8415 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8416 echo "$ac_t""yes" 1>&6
8417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8418 cat >> confdefs.h <<EOF
8419 #define $ac_tr_hdr 1
8421 ac_header_dirent=$ac_hdr; break
8423 echo "$ac_t""no" 1>&6
8426 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8427 if test $ac_header_dirent = dirent.h; then
8428 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8429 echo "configure:8430: checking for opendir in -ldir" >&5
8430 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8431 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8434 ac_save_LIBS="$LIBS"
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8450 eval "ac_cv_lib_$ac_lib_var=yes"
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8455 eval "ac_cv_lib_$ac_lib_var=no"
8458 LIBS="$ac_save_LIBS"
8461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8462 echo "$ac_t""yes" 1>&6
8465 echo "$ac_t""no" 1>&6
8469 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8470 echo "configure:8471: checking for opendir in -lx" >&5
8471 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8472 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 ac_save_LIBS="$LIBS"
8477 cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 /* Override any gcc2 internal prototype to avoid an error. */
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8491 eval "ac_cv_lib_$ac_lib_var=yes"
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8496 eval "ac_cv_lib_$ac_lib_var=no"
8499 LIBS="$ac_save_LIBS"
8502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8503 echo "$ac_t""yes" 1>&6
8506 echo "$ac_t""no" 1>&6
8511 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8512 echo "configure:8513: checking for sys/wait.h that is POSIX.1 compatible" >&5
8513 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8516 cat > conftest.$ac_ext <<EOF
8517 #line 8518 "configure"
8518 #include "confdefs.h"
8519 #include <sys/types.h>
8520 #include <sys/wait.h>
8522 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8525 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8530 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8533 if { (eval echo configure:8534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8535 ac_cv_header_sys_wait_h=yes
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8540 ac_cv_header_sys_wait_h=no
8545 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8546 if test $ac_cv_header_sys_wait_h = yes; then
8547 cat >> confdefs.h <<\EOF
8548 #define HAVE_SYS_WAIT_H 1
8553 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8554 echo "configure:8555: checking POSIX termios" >&5
8555 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8558 cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8561 #include <sys/types.h>
8563 #include <termios.h>
8565 /* SunOS 4.0.3 has termios.h but not the library calls. */
8569 if { (eval echo configure:8570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8571 am_cv_sys_posix_termios=yes
8573 echo "configure: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8576 am_cv_sys_posix_termios=no
8581 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8584 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8585 echo "configure:8586: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8586 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8589 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8591 gwinsz_in_termios_h=no
8592 if test $am_cv_sys_posix_termios = yes; then
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 #include <sys/types.h>
8597 # include <termios.h>
8603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8604 egrep "yes" >/dev/null 2>&1; then
8606 gwinsz_in_termios_h=yes
8612 if test $gwinsz_in_termios_h = no; then
8613 cat > conftest.$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8616 #include <sys/types.h>
8617 # include <sys/ioctl.h>
8623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8624 egrep "yes" >/dev/null 2>&1; then
8626 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8634 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8635 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8636 cat >> confdefs.h <<\EOF
8637 #define GWINSZ_IN_SYS_IOCTL 1
8642 if test $am_cv_sys_posix_termios = yes ; then
8643 cat >> confdefs.h <<\EOF
8644 #define HAVE_POSIX_TERMIOS 1
8700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8702 echo "configure:8703: checking for $ac_hdr" >&5
8703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8706 cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8712 { (eval echo configure:8713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8714 if test -z "$ac_err"; then
8716 eval "ac_cv_header_$ac_safe=yes"
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8722 eval "ac_cv_header_$ac_safe=no"
8726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8729 cat >> confdefs.h <<EOF
8730 #define $ac_tr_hdr 1
8734 echo "$ac_t""no" 1>&6
8741 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8742 echo "configure:8743: checking for sigset in -lV3" >&5
8743 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8744 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8747 ac_save_LIBS="$LIBS"
8749 cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752 /* Override any gcc2 internal prototype to avoid an error. */
8753 /* We use char because int might match the return type of a gcc2
8754 builtin and then its argument prototype would still apply. */
8761 if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8763 eval "ac_cv_lib_$ac_lib_var=yes"
8765 echo "configure: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8768 eval "ac_cv_lib_$ac_lib_var=no"
8771 LIBS="$ac_save_LIBS"
8774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8775 echo "$ac_t""yes" 1>&6
8776 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8778 cat >> confdefs.h <<EOF
8779 #define $ac_tr_lib 1
8785 echo "$ac_t""no" 1>&6
8789 if test "$ac_cv_header_winsock_h" = yes; then
8790 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8791 echo "configure:8792: checking for winsock" >&5
8792 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8793 echo $ac_n "(cached) $ac_c" 1>&6
8796 for curlib in ws2_32 wsock32; do
8797 LIBS="$LIBS -l$curlib"
8798 cat > conftest.$ac_ext <<EOF
8799 #line 8800 "configure"
8800 #include "confdefs.h"
8801 #include <winsock.h>
8806 select(0,NULL,NULL,NULL,NULL);
8808 gethostname(NULL,0);
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8823 if test $ol_cv_winsock = yes; then
8824 cat >> confdefs.h <<\EOF
8825 #define HAVE_WINSOCK 1
8828 ac_cv_func_socket=yes
8829 ac_cv_func_select=yes
8830 ac_cv_func_closesocket=yes
8831 ac_cv_func_gethostname=yes
8832 if test $curlib = ws2_32; then
8833 ol_cv_winsock=winsock2
8834 cat >> confdefs.h <<\EOF
8835 #define HAVE_WINSOCK2 1
8845 echo "$ac_t""$ol_cv_winsock" 1>&6
8849 echo $ac_n "checking for socket""... $ac_c" 1>&6
8850 echo "configure:8851: checking for socket" >&5
8851 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8854 cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8857 /* System header to define __stub macros and hopefully few prototypes,
8858 which can conflict with char socket(); below. */
8860 /* Override any gcc2 internal prototype to avoid an error. */
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8868 /* The GNU C library defines this for functions which it implements
8869 to always fail with ENOSYS. Some functions are actually named
8870 something starting with __ and the normal name is an alias. */
8871 #if defined (__stub_socket) || defined (__stub___socket)
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 eval "ac_cv_func_socket=yes"
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8886 eval "ac_cv_func_socket=no"
8891 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8892 echo "$ac_t""yes" 1>&6
8895 echo "$ac_t""no" 1>&6
8897 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8898 echo "configure:8899: checking for main in -lsocket" >&5
8899 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8900 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8901 echo $ac_n "(cached) $ac_c" 1>&6
8903 ac_save_LIBS="$LIBS"
8904 LIBS="-lsocket $LIBS"
8905 cat > conftest.$ac_ext <<EOF
8906 #line 8907 "configure"
8907 #include "confdefs.h"
8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8915 eval "ac_cv_lib_$ac_lib_var=yes"
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8920 eval "ac_cv_lib_$ac_lib_var=no"
8923 LIBS="$ac_save_LIBS"
8926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8927 echo "$ac_t""yes" 1>&6
8928 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8929 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8930 cat >> confdefs.h <<EOF
8931 #define $ac_tr_lib 1
8934 LIBS="-lsocket $LIBS"
8937 echo "$ac_t""no" 1>&6
8940 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
8941 echo "configure:8942: checking for main in -lnet" >&5
8942 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
8943 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8946 ac_save_LIBS="$LIBS"
8948 cat > conftest.$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8956 if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8958 eval "ac_cv_lib_$ac_lib_var=yes"
8960 echo "configure: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8963 eval "ac_cv_lib_$ac_lib_var=no"
8966 LIBS="$ac_save_LIBS"
8969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8970 echo "$ac_t""yes" 1>&6
8971 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8972 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8973 cat >> confdefs.h <<EOF
8974 #define $ac_tr_lib 1
8980 echo "$ac_t""no" 1>&6
8983 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
8984 echo "configure:8985: checking for main in -lnsl_s" >&5
8985 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
8986 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8989 ac_save_LIBS="$LIBS"
8990 LIBS="-lnsl_s $LIBS"
8991 cat > conftest.$ac_ext <<EOF
8992 #line 8993 "configure"
8993 #include "confdefs.h"
8999 if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9001 eval "ac_cv_lib_$ac_lib_var=yes"
9003 echo "configure: failed program was:" >&5
9004 cat conftest.$ac_ext >&5
9006 eval "ac_cv_lib_$ac_lib_var=no"
9009 LIBS="$ac_save_LIBS"
9012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9013 echo "$ac_t""yes" 1>&6
9014 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9016 cat >> confdefs.h <<EOF
9017 #define $ac_tr_lib 1
9020 LIBS="-lnsl_s $LIBS"
9023 echo "$ac_t""no" 1>&6
9026 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9027 echo "configure:9028: checking for main in -lnsl" >&5
9028 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9029 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9030 echo $ac_n "(cached) $ac_c" 1>&6
9032 ac_save_LIBS="$LIBS"
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9042 if { (eval echo configure:9043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9044 eval "ac_cv_lib_$ac_lib_var=yes"
9046 echo "configure: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9049 eval "ac_cv_lib_$ac_lib_var=no"
9052 LIBS="$ac_save_LIBS"
9055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9056 echo "$ac_t""yes" 1>&6
9057 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9059 cat >> confdefs.h <<EOF
9060 #define $ac_tr_lib 1
9066 echo "$ac_t""no" 1>&6
9069 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9070 echo "configure:9071: checking for socket in -linet" >&5
9071 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9072 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9075 ac_save_LIBS="$LIBS"
9077 cat > conftest.$ac_ext <<EOF
9078 #line 9079 "configure"
9079 #include "confdefs.h"
9080 /* Override any gcc2 internal prototype to avoid an error. */
9081 /* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9089 if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9091 eval "ac_cv_lib_$ac_lib_var=yes"
9093 echo "configure: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9096 eval "ac_cv_lib_$ac_lib_var=no"
9099 LIBS="$ac_save_LIBS"
9102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9104 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9105 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9106 cat >> confdefs.h <<EOF
9107 #define $ac_tr_lib 1
9113 echo "$ac_t""no" 1>&6
9116 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9117 echo "configure:9118: checking for main in -lgen" >&5
9118 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9122 ac_save_LIBS="$LIBS"
9124 cat > conftest.$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9132 if { (eval echo configure:9133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134 eval "ac_cv_lib_$ac_lib_var=yes"
9136 echo "configure: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9139 eval "ac_cv_lib_$ac_lib_var=no"
9142 LIBS="$ac_save_LIBS"
9145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9146 echo "$ac_t""yes" 1>&6
9147 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9149 cat >> confdefs.h <<EOF
9150 #define $ac_tr_lib 1
9156 echo "$ac_t""no" 1>&6
9163 echo $ac_n "checking for select""... $ac_c" 1>&6
9164 echo "configure:9165: checking for select" >&5
9165 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 /* System header to define __stub macros and hopefully few prototypes,
9172 which can conflict with char select(); below. */
9174 /* Override any gcc2 internal prototype to avoid an error. */
9175 /* We use char because int might match the return type of a gcc2
9176 builtin and then its argument prototype would still apply. */
9182 /* The GNU C library defines this for functions which it implements
9183 to always fail with ENOSYS. Some functions are actually named
9184 something starting with __ and the normal name is an alias. */
9185 #if defined (__stub_select) || defined (__stub___select)
9193 if { (eval echo configure:9194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9195 eval "ac_cv_func_select=yes"
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 eval "ac_cv_func_select=no"
9205 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9206 echo "$ac_t""yes" 1>&6
9209 echo "$ac_t""no" 1>&6
9210 { echo "configure: error: select() required." 1>&2; exit 1; }
9214 if test "${ac_cv_header_winsock_h}" != yes; then
9215 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9216 echo "configure:9217: checking types of arguments for select()" >&5
9217 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9218 echo $ac_n "(cached) $ac_c" 1>&6
9220 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9221 echo $ac_n "(cached) $ac_c" 1>&6
9223 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9224 echo $ac_n "(cached) $ac_c" 1>&6
9226 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9227 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9228 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9229 cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure"
9231 #include "confdefs.h"
9232 #ifdef HAVE_SYS_TYPES_H
9233 #include <sys/types.h>
9235 #ifdef HAVE_SYS_TIME_H
9236 #include <sys/time.h>
9238 #ifdef HAVE_SYS_SELECT_H
9239 #include <sys/select.h>
9241 #ifdef HAVE_SYS_SOCKET_H
9242 #include <sys/socket.h>
9244 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
9249 if { (eval echo configure:9250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9251 ac_not_found=no ; break 3
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9268 if test "$ac_not_found" = yes; then
9269 ac_cv_func_select_arg1=int
9270 ac_cv_func_select_arg234='int *'
9271 ac_cv_func_select_arg5='struct timeval *'
9273 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9274 cat >> confdefs.h <<EOF
9275 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9278 cat >> confdefs.h <<EOF
9279 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9282 cat >> confdefs.h <<EOF
9283 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9290 for ac_hdr in regex.h
9292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9294 echo "configure:9295: checking for $ac_hdr" >&5
9295 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
9298 cat > conftest.$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9304 { (eval echo configure:9305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9306 if test -z "$ac_err"; then
9308 eval "ac_cv_header_$ac_safe=yes"
9311 echo "configure: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9314 eval "ac_cv_header_$ac_safe=no"
9318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9319 echo "$ac_t""yes" 1>&6
9320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9321 cat >> confdefs.h <<EOF
9322 #define $ac_tr_hdr 1
9326 echo "$ac_t""no" 1>&6
9330 if test "$ac_cv_header_regex_h" != yes ; then
9331 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9334 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9335 echo "configure:9336: checking for library containing regfree" >&5
9336 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9339 ac_func_search_save_LIBS="$LIBS"
9340 ac_cv_search_regfree="no"
9341 cat > conftest.$ac_ext <<EOF
9342 #line 9343 "configure"
9343 #include "confdefs.h"
9344 /* Override any gcc2 internal prototype to avoid an error. */
9345 /* We use char because int might match the return type of a gcc2
9346 builtin and then its argument prototype would still apply. */
9353 if { (eval echo configure:9354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9355 ac_cv_search_regfree="none required"
9357 echo "configure: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9361 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 ac_cv_search_regfree="-l$ac_lib"
9380 echo "configure: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9385 LIBS="$ac_func_search_save_LIBS"
9388 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9389 if test "$ac_cv_search_regfree" != "no"; then
9390 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9393 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9397 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9398 echo "configure:9399: checking for compatible POSIX regex" >&5
9399 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9400 echo $ac_n "(cached) $ac_c" 1>&6
9403 if test "$cross_compiling" = yes; then
9404 ol_cv_c_posix_regex=cross
9406 cat > conftest.$ac_ext <<EOF
9407 #line 9408 "configure"
9408 #include "confdefs.h"
9410 #include <sys/types.h>
9412 static char *pattern, *string;
9420 if(regcomp(&re, pattern, 0)) {
9424 string = "ALL MATCH";
9426 rc = regexec(&re, string, 0, (void*)0, 0);
9433 if { (eval echo configure:9434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9435 ol_cv_c_posix_regex=yes
9437 echo "configure: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9440 ol_cv_c_posix_regex=no
9447 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9449 if test "$ol_cv_c_posix_regex" = no ; then
9450 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9455 for ac_hdr in sys/uuid.h
9457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9459 echo "configure:9460: checking for $ac_hdr" >&5
9460 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
9463 cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9469 { (eval echo configure:9470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9471 if test -z "$ac_err"; then
9473 eval "ac_cv_header_$ac_safe=yes"
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9479 eval "ac_cv_header_$ac_safe=no"
9483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9484 echo "$ac_t""yes" 1>&6
9485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9486 cat >> confdefs.h <<EOF
9487 #define $ac_tr_hdr 1
9491 echo "$ac_t""no" 1>&6
9495 if test $ac_cv_header_sys_uuid_h = yes ; then
9498 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9499 echo "configure:9500: checking for library containing uuid_to_str" >&5
9500 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9503 ac_func_search_save_LIBS="$LIBS"
9504 ac_cv_search_uuid_to_str="no"
9505 cat > conftest.$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9508 /* Override any gcc2 internal prototype to avoid an error. */
9509 /* We use char because int might match the return type of a gcc2
9510 builtin and then its argument prototype would still apply. */
9517 if { (eval echo configure:9518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9519 ac_cv_search_uuid_to_str="none required"
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9525 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9527 cat > conftest.$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9530 /* Override any gcc2 internal prototype to avoid an error. */
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9539 if { (eval echo configure:9540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9541 ac_cv_search_uuid_to_str="-l$ac_lib"
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9549 LIBS="$ac_func_search_save_LIBS"
9552 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9553 if test "$ac_cv_search_uuid_to_str" != "no"; then
9554 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9561 if test have_uuid = yes ; then
9562 cat >> confdefs.h <<\EOF
9563 #define HAVE_UUID_TO_STR 1
9567 test "$ac_cv_search_uuid_to_str" = "none required" || \
9568 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9572 if test $have_uuid = no ; then
9573 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9574 echo "configure:9575: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9576 LIBS="$LIBS -lrpcrt4"
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9581 int __stdcall UuidCreate(void *);
9582 int __stdcall UuidToStringA(void *,void **);
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9595 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9601 if test $need_rpcrt = yes; then
9602 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9605 echo "$ac_t""$need_rpcrt" 1>&6
9609 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9610 echo "configure:9611: checking for res_query" >&5
9611 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9612 echo $ac_n "(cached) $ac_c" 1>&6
9614 cat > conftest.$ac_ext <<EOF
9615 #line 9616 "configure"
9616 #include "confdefs.h"
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char res_query(); below. */
9620 /* Override any gcc2 internal prototype to avoid an error. */
9621 /* We use char because int might match the return type of a gcc2
9622 builtin and then its argument prototype would still apply. */
9628 /* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
9631 #if defined (__stub_res_query) || defined (__stub___res_query)
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9641 eval "ac_cv_func_res_query=yes"
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9646 eval "ac_cv_func_res_query=no"
9651 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9652 echo "$ac_t""yes" 1>&6
9655 echo "$ac_t""no" 1>&6
9658 if test $ac_cv_func_res_query = no ; then
9659 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9660 echo "configure:9661: checking for __res_query" >&5
9661 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 /* System header to define __stub macros and hopefully few prototypes,
9668 which can conflict with char __res_query(); below. */
9670 /* Override any gcc2 internal prototype to avoid an error. */
9671 /* We use char because int might match the return type of a gcc2
9672 builtin and then its argument prototype would still apply. */
9678 /* The GNU C library defines this for functions which it implements
9679 to always fail with ENOSYS. Some functions are actually named
9680 something starting with __ and the normal name is an alias. */
9681 #if defined (__stub___res_query) || defined (__stub_____res_query)
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9691 eval "ac_cv_func___res_query=yes"
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9696 eval "ac_cv_func___res_query=no"
9701 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9702 echo "$ac_t""yes" 1>&6
9705 echo "$ac_t""no" 1>&6
9708 ac_cv_func_res_query=$ac_cv_func___res_query
9711 if test $ac_cv_func_res_query = no ; then
9712 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9713 echo "configure:9714: checking for res_query in -lbind" >&5
9714 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9715 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9716 echo $ac_n "(cached) $ac_c" 1>&6
9718 ac_save_LIBS="$LIBS"
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 /* Override any gcc2 internal prototype to avoid an error. */
9724 /* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9734 eval "ac_cv_lib_$ac_lib_var=yes"
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 eval "ac_cv_lib_$ac_lib_var=no"
9742 LIBS="$ac_save_LIBS"
9745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9746 echo "$ac_t""yes" 1>&6
9747 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9748 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9749 cat >> confdefs.h <<EOF
9750 #define $ac_tr_lib 1
9756 echo "$ac_t""no" 1>&6
9759 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9762 if test $ac_cv_func_res_query = no ; then
9763 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9764 echo "configure:9765: checking for __res_query in -lbind" >&5
9765 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9766 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9767 echo $ac_n "(cached) $ac_c" 1>&6
9769 ac_save_LIBS="$LIBS"
9771 cat > conftest.$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9774 /* Override any gcc2 internal prototype to avoid an error. */
9775 /* We use char because int might match the return type of a gcc2
9776 builtin and then its argument prototype would still apply. */
9783 if { (eval echo configure:9784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9785 eval "ac_cv_lib_$ac_lib_var=yes"
9787 echo "configure: failed program was:" >&5
9788 cat conftest.$ac_ext >&5
9790 eval "ac_cv_lib_$ac_lib_var=no"
9793 LIBS="$ac_save_LIBS"
9796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9797 echo "$ac_t""yes" 1>&6
9798 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9800 cat >> confdefs.h <<EOF
9801 #define $ac_tr_lib 1
9807 echo "$ac_t""no" 1>&6
9810 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9813 if test $ac_cv_func_res_query = no ; then
9814 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9815 echo "configure:9816: checking for res_query in -lresolv" >&5
9816 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9817 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9818 echo $ac_n "(cached) $ac_c" 1>&6
9820 ac_save_LIBS="$LIBS"
9821 LIBS="-lresolv $LIBS"
9822 cat > conftest.$ac_ext <<EOF
9823 #line 9824 "configure"
9824 #include "confdefs.h"
9825 /* Override any gcc2 internal prototype to avoid an error. */
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9834 if { (eval echo configure:9835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9836 eval "ac_cv_lib_$ac_lib_var=yes"
9838 echo "configure: failed program was:" >&5
9839 cat conftest.$ac_ext >&5
9841 eval "ac_cv_lib_$ac_lib_var=no"
9844 LIBS="$ac_save_LIBS"
9847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9848 echo "$ac_t""yes" 1>&6
9849 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9851 cat >> confdefs.h <<EOF
9852 #define $ac_tr_lib 1
9855 LIBS="-lresolv $LIBS"
9858 echo "$ac_t""no" 1>&6
9861 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9864 if test $ac_cv_func_res_query = no ; then
9865 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9866 echo "configure:9867: checking for __res_query in -lresolv" >&5
9867 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9868 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9869 echo $ac_n "(cached) $ac_c" 1>&6
9871 ac_save_LIBS="$LIBS"
9872 LIBS="-lresolv $LIBS"
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9875 "configure"
9875 #include "confdefs.h"
9876 /* Override any gcc2 internal prototype to avoid an error. */
9877 /* We use char because int might match the return type of a gcc2
9878 builtin and then its argument prototype would still apply. */
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9887 eval "ac_cv_lib_$ac_lib_var=yes"
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9892 eval "ac_cv_lib_$ac_lib_var=no"
9895 LIBS="$ac_save_LIBS"
9898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9899 echo "$ac_t""yes" 1>&6
9900 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9902 cat >> confdefs.h <<EOF
9903 #define $ac_tr_lib 1
9906 LIBS="-lresolv $LIBS"
9909 echo "$ac_t""no" 1>&6
9912 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
9915 if test "$ac_cv_func_res_query" = yes ; then
9916 cat >> confdefs.h <<\EOF
9917 #define HAVE_RES_QUERY 1
9921 if test $ol_enable_dnssrv != no ; then
9926 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
9927 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
9930 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
9932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9933 echo "configure:9934: checking for $ac_func" >&5
9934 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 /* System header to define __stub macros and hopefully few prototypes,
9941 which can conflict with char $ac_func(); below. */
9943 /* Override any gcc2 internal prototype to avoid an error. */
9944 /* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9962 if { (eval echo configure:9963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9964 eval "ac_cv_func_$ac_func=yes"
9966 echo "configure: failed program was:" >&5
9967 cat conftest.$ac_ext >&5
9969 eval "ac_cv_func_$ac_func=no"
9974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9975 echo "$ac_t""yes" 1>&6
9976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9977 cat >> confdefs.h <<EOF
9978 #define $ac_tr_func 1
9982 echo "$ac_t""no" 1>&6
9988 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
9989 if test $ol_enable_ipv6 = yes ; then
9990 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
9992 elif test $ol_enable_ipv6 != no ; then
9993 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
9994 echo "configure:9995: checking INET6_ADDRSTRLEN" >&5
9995 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
9996 echo $ac_n "(cached) $ac_c" 1>&6
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10003 # include <netinet/in.h>
10004 # ifdef INET6_ADDRSTRLEN
10005 __has_inet6_addrstrlen__;
10009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10010 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10012 ol_cv_inet6_addrstrlen=yes
10015 ol_cv_inet6_addrstrlen=no
10021 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10024 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10025 echo "configure:10026: checking struct sockaddr_storage" >&5
10026 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10027 echo $ac_n "(cached) $ac_c" 1>&6
10030 cat > conftest.$ac_ext <<EOF
10031 #line 10032 "configure"
10032 #include "confdefs.h"
10034 #include <sys/types.h>
10035 #include <sys/socket.h>
10039 struct sockaddr_storage ss;
10043 if { (eval echo configure:10044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10045 ol_cv_struct_sockaddr_storage=yes
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10050 ol_cv_struct_sockaddr_storage=no
10055 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10057 if test $ol_cv_inet6_addrstrlen = yes \
10058 -a $ol_cv_struct_sockaddr_storage = yes ; then
10060 elif test $ol_enable_ipv6 = yes \
10061 -a $ol_cv_inet6_addrstrlen = no ; then
10062 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10063 elif test $ol_enable_ipv6 = yes \
10064 -a $ol_cv_struct_sockaddr_storage = no ; then
10065 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10069 if test $ol_enable_local != no ; then
10070 for ac_hdr in sys/un.h
10072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10074 echo "configure:10075: checking for $ac_hdr" >&5
10075 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10076 echo $ac_n "(cached) $ac_c" 1>&6
10078 cat > conftest.$ac_ext <<EOF
10079 #line 10080 "configure"
10080 #include "confdefs.h"
10083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10084 { (eval echo configure:10085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10086 if test -z "$ac_err"; then
10088 eval "ac_cv_header_$ac_safe=yes"
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10094 eval "ac_cv_header_$ac_safe=no"
10098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10099 echo "$ac_t""yes" 1>&6
10100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10101 cat >> confdefs.h <<EOF
10102 #define $ac_tr_hdr 1
10106 echo "$ac_t""no" 1>&6
10111 if test $ol_enable_local = auto ; then
10112 ol_enable_local=$ac_cv_header_sys_un_h
10113 elif test $ac_cv_header_sys_un_h = no ; then
10114 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10122 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10123 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10124 -o $ol_with_kerberos = k425 ; then
10126 for ac_hdr in krb5.h
10128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10130 echo "configure:10131: checking for $ac_hdr" >&5
10131 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10140 { (eval echo configure:10141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10142 if test -z "$ac_err"; then
10144 eval "ac_cv_header_$ac_safe=yes"
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10150 eval "ac_cv_header_$ac_safe=no"
10154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10155 echo "$ac_t""yes" 1>&6
10156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10157 cat >> confdefs.h <<EOF
10158 #define $ac_tr_hdr 1
10162 echo "$ac_t""no" 1>&6
10167 if test $ac_cv_header_krb5_h = yes ; then
10168 for ac_hdr in heim_err.h
10170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10172 echo "configure:10173: checking for $ac_hdr" >&5
10173 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10176 cat > conftest.$ac_ext <<EOF
10177 #line 10178 "configure"
10178 #include "confdefs.h"
10181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10182 { (eval echo configure:10183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10184 if test -z "$ac_err"; then
10186 eval "ac_cv_header_$ac_safe=yes"
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10192 eval "ac_cv_header_$ac_safe=no"
10196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10197 echo "$ac_t""yes" 1>&6
10198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10199 cat >> confdefs.h <<EOF
10200 #define $ac_tr_hdr 1
10204 echo "$ac_t""no" 1>&6
10208 if test $ac_cv_header_heim_err_h = yes ; then
10214 if test $krb5_impl = mit; then
10215 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10216 echo "configure:10217: checking for main in -lk5crypto" >&5
10217 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10218 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10221 ac_save_LIBS="$LIBS"
10222 LIBS="-lk5crypto $LIBS"
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10231 if { (eval echo configure:10232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10233 eval "ac_cv_lib_$ac_lib_var=yes"
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10238 eval "ac_cv_lib_$ac_lib_var=no"
10241 LIBS="$ac_save_LIBS"
10244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10245 echo "$ac_t""yes" 1>&6
10246 krb5crypto=k5crypto
10248 echo "$ac_t""no" 1>&6
10253 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10254 echo "configure:10255: checking for main in -lkrb5" >&5
10255 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10256 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
10259 ac_save_LIBS="$LIBS"
10260 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10269 if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10271 eval "ac_cv_lib_$ac_lib_var=yes"
10273 echo "configure: failed program was:" >&5
10274 cat conftest.$ac_ext >&5
10276 eval "ac_cv_lib_$ac_lib_var=no"
10279 LIBS="$ac_save_LIBS"
10282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10283 echo "$ac_t""yes" 1>&6
10285 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10287 echo "$ac_t""no" 1>&6
10292 elif test $krb5_impl = heimdal; then
10293 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10294 echo "configure:10295: checking for main in -ldes" >&5
10295 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10297 echo $ac_n "(cached) $ac_c" 1>&6
10299 ac_save_LIBS="$LIBS"
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10311 eval "ac_cv_lib_$ac_lib_var=yes"
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10316 eval "ac_cv_lib_$ac_lib_var=no"
10319 LIBS="$ac_save_LIBS"
10322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10323 echo "$ac_t""yes" 1>&6
10326 echo "$ac_t""no" 1>&6
10331 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10332 echo "configure:10333: checking for main in -lkrb5" >&5
10333 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10334 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10337 ac_save_LIBS="$LIBS"
10338 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10347 if { (eval echo configure:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10349 eval "ac_cv_lib_$ac_lib_var=yes"
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10354 eval "ac_cv_lib_$ac_lib_var=no"
10357 LIBS="$ac_save_LIBS"
10360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10363 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10365 echo "$ac_t""no" 1>&6
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_HEIMDAL_KERBEROS 1
10377 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10380 if test $have_krb5 = yes ; then
10383 cat >> confdefs.h <<\EOF
10384 #define HAVE_KRB5 1
10388 if test $ol_with_kerberos = k5only ; then
10389 ol_with_kerberos=found
10392 elif test $ol_with_kerberos != auto ; then
10393 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10399 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10400 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10402 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10406 echo "configure:10407: checking for $ac_hdr" >&5
10407 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10408 echo $ac_n "(cached) $ac_c" 1>&6
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10416 { (eval echo configure:10417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10418 if test -z "$ac_err"; then
10420 eval "ac_cv_header_$ac_safe=yes"
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10426 eval "ac_cv_header_$ac_safe=no"
10430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10431 echo "$ac_t""yes" 1>&6
10432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10433 cat >> confdefs.h <<EOF
10434 #define $ac_tr_hdr 1
10438 echo "$ac_t""no" 1>&6
10443 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10444 if test $krb5_impl = mit; then
10445 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10446 echo "configure:10447: checking for main in -lkrb4" >&5
10447 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10448 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10451 ac_save_LIBS="$LIBS"
10452 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10461 if { (eval echo configure:10462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10463 eval "ac_cv_lib_$ac_lib_var=yes"
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10468 eval "ac_cv_lib_$ac_lib_var=no"
10471 LIBS="$ac_save_LIBS"
10474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10475 echo "$ac_t""yes" 1>&6
10477 KRB4_LIBS="-lkrb4 -ldes425"
10479 echo "$ac_t""no" 1>&6
10484 elif test $krb5_impl = heimdal; then
10485 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10486 echo "configure:10487: checking for main in -lkrb4" >&5
10487 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10488 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10489 echo $ac_n "(cached) $ac_c" 1>&6
10491 ac_save_LIBS="$LIBS"
10492 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10503 eval "ac_cv_lib_$ac_lib_var=yes"
10505 echo "configure: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10508 eval "ac_cv_lib_$ac_lib_var=no"
10511 LIBS="$ac_save_LIBS"
10514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10515 echo "$ac_t""yes" 1>&6
10519 echo "$ac_t""no" 1>&6
10526 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10529 if test $have_k425 = yes ; then
10530 ol_with_kerberos=found
10533 cat >> confdefs.h <<\EOF
10534 #define HAVE_KRB425 1
10537 cat >> confdefs.h <<\EOF
10538 #define HAVE_KRB4 1
10542 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10543 echo "configure:10544: checking for des_debug in Kerberos libraries" >&5
10544 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10549 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10554 #include <kerberosIV/krb.h>
10555 #include <kerberosIV/des.h>
10556 extern int des_debug;
10564 if { (eval echo configure:10565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10566 ol_cv_var_des_debug=yes
10568 echo "configure: failed program was:" >&5
10569 cat conftest.$ac_ext >&5
10571 ol_cv_var_des_debug=no
10578 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10580 if test $ol_cv_var_des_debug = yes ; then
10581 cat >> confdefs.h <<\EOF
10582 #define HAVE_DES_DEBUG 1
10592 if test $ol_link_krb5 = yes ; then
10593 ol_with_kerberos=found
10596 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10597 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10599 for ac_hdr in krb.h des.h krb-archaeology.h
10601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10603 echo "configure:10604: checking for $ac_hdr" >&5
10604 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10605 echo $ac_n "(cached) $ac_c" 1>&6
10607 cat > conftest.$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10613 { (eval echo configure:10614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10615 if test -z "$ac_err"; then
10617 eval "ac_cv_header_$ac_safe=yes"
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10623 eval "ac_cv_header_$ac_safe=no"
10627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10628 echo "$ac_t""yes" 1>&6
10629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10630 cat >> confdefs.h <<EOF
10631 #define $ac_tr_hdr 1
10635 echo "$ac_t""no" 1>&6
10640 if test $ac_cv_header_krb_h = yes ; then
10641 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10642 echo "configure:10643: checking for main in -lkrb" >&5
10643 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10647 ac_save_LIBS="$LIBS"
10648 LIBS="-lkrb -ldes $LIBS"
10649 cat > conftest.$ac_ext <<EOF
10650 #line 10651 "configure"
10651 #include "confdefs.h"
10657 if { (eval echo configure:10658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10659 eval "ac_cv_lib_$ac_lib_var=yes"
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10664 eval "ac_cv_lib_$ac_lib_var=no"
10667 LIBS="$ac_save_LIBS"
10670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10671 echo "$ac_t""yes" 1>&6
10674 echo "$ac_t""no" 1>&6
10679 if test $have_k4 = yes ; then
10680 ol_with_kerberos=found
10683 cat >> confdefs.h <<\EOF
10684 #define HAVE_KRB4 1
10688 KRB4_LIBS="-lkrb -ldes"
10690 if test $ac_cv_header_krb_archaeology_h = yes ; then
10691 cat >> confdefs.h <<\EOF
10692 #define HAVE_KTH_KERBEROS 1
10700 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10703 elif test $ol_enable_kbind = yes ; then
10704 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10707 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10708 cat >> confdefs.h <<\EOF
10709 #define HAVE_KERBEROS 1
10713 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10714 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10718 if test $ol_with_tls != no ; then
10719 for ac_hdr in openssl/ssl.h ssl.h
10721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10723 echo "configure:10724: checking for $ac_hdr" >&5
10724 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10727 cat > conftest.$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10733 { (eval echo configure:10734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10735 if test -z "$ac_err"; then
10737 eval "ac_cv_header_$ac_safe=yes"
10740 echo "configure: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10743 eval "ac_cv_header_$ac_safe=no"
10747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10748 echo "$ac_t""yes" 1>&6
10749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10750 cat >> confdefs.h <<EOF
10751 #define $ac_tr_hdr 1
10755 echo "$ac_t""no" 1>&6
10760 if test $ac_cv_header_openssl_ssl_h = yes \
10761 -o $ac_cv_header_ssl_h = yes ; then
10762 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10763 echo "configure:10764: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10764 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10765 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10766 echo $ac_n "(cached) $ac_c" 1>&6
10768 ac_save_LIBS="$LIBS"
10769 LIBS="-lssl -lcrypto $LIBS"
10770 cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773 /* Override any gcc2 internal prototype to avoid an error. */
10774 /* We use char because int might match the return type of a gcc2
10775 builtin and then its argument prototype would still apply. */
10776 char SSLeay_add_ssl_algorithms();
10779 SSLeay_add_ssl_algorithms()
10782 if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10784 eval "ac_cv_lib_$ac_lib_var=yes"
10786 echo "configure: failed program was:" >&5
10787 cat conftest.$ac_ext >&5
10789 eval "ac_cv_lib_$ac_lib_var=no"
10792 LIBS="$ac_save_LIBS"
10795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10796 echo "$ac_t""yes" 1>&6
10800 echo "$ac_t""no" 1>&6
10805 if test $have_ssleay = no ; then
10806 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10807 echo "configure:10808: checking for SSL_library_init in -lssl" >&5
10808 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10809 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10810 echo $ac_n "(cached) $ac_c" 1>&6
10812 ac_save_LIBS="$LIBS"
10813 LIBS="-lssl -lcrypto $LIBS"
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10817 /* Override any gcc2 internal prototype to avoid an error. */
10818 /* We use char because int might match the return type of a gcc2
10819 builtin and then its argument prototype would still apply. */
10820 char SSL_library_init();
10826 if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10828 eval "ac_cv_lib_$ac_lib_var=yes"
10830 echo "configure: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10833 eval "ac_cv_lib_$ac_lib_var=no"
10836 LIBS="$ac_save_LIBS"
10839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10840 echo "$ac_t""yes" 1>&6
10844 echo "$ac_t""no" 1>&6
10850 if test $have_ssleay = no ; then
10851 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10852 echo "configure:10853: checking for ssl3_accept in -lssl" >&5
10853 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10857 ac_save_LIBS="$LIBS"
10858 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10859 cat > conftest.$ac_ext <<EOF
10860 #line 10861 "configure"
10861 #include "confdefs.h"
10862 /* Override any gcc2 internal prototype to avoid an error. */
10863 /* We use char because int might match the return type of a gcc2
10864 builtin and then its argument prototype would still apply. */
10865 char ssl3_accept();
10871 if { (eval echo configure:10872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10873 eval "ac_cv_lib_$ac_lib_var=yes"
10875 echo "configure: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10878 eval "ac_cv_lib_$ac_lib_var=no"
10881 LIBS="$ac_save_LIBS"
10884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10885 echo "$ac_t""yes" 1>&6
10889 echo "$ac_t""no" 1>&6
10895 if test $have_ssleay = yes ; then
10899 cat >> confdefs.h <<\EOF
10900 #define HAVE_SSLEAY 1
10904 if test $need_rsaref = yes; then
10905 cat >> confdefs.h <<\EOF
10906 #define HAVE_RSAREF 1
10910 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10912 TLS_LIBS="-lssl -lcrypto"
10918 echo "configure: warning: TLS data protection not supported!" 1>&2
10922 if test $ol_link_tls = yes ; then
10923 cat >> confdefs.h <<\EOF
10929 elif test $ol_with_tls = auto ; then
10930 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10931 echo "configure: warning: TLS data protection not supported!" 1>&2
10933 elif test $ol_with_tls != no ; then
10934 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10937 if test $ol_enable_lmpasswd != no; then
10938 if test $ol_link_tls != yes ; then
10939 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10942 cat >> confdefs.h <<\EOF
10943 #define SLAPD_LMHASH 1
10950 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10951 -o $ol_with_threads = nt ; then
10954 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
10955 echo "configure:10956: checking for _beginthread" >&5
10956 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
10957 echo $ac_n "(cached) $ac_c" 1>&6
10959 cat > conftest.$ac_ext <<EOF
10960 #line 10961 "configure"
10961 #include "confdefs.h"
10962 /* System header to define __stub macros and hopefully few prototypes,
10963 which can conflict with char _beginthread(); below. */
10964 #include <assert.h>
10965 /* Override any gcc2 internal prototype to avoid an error. */
10966 /* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10968 char _beginthread();
10973 /* The GNU C library defines this for functions which it implements
10974 to always fail with ENOSYS. Some functions are actually named
10975 something starting with __ and the normal name is an alias. */
10976 #if defined (__stub__beginthread) || defined (__stub____beginthread)
10984 if { (eval echo configure:10985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10986 eval "ac_cv_func__beginthread=yes"
10988 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10991 eval "ac_cv_func__beginthread=no"
10996 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
10997 echo "$ac_t""yes" 1>&6
11000 echo "$ac_t""no" 1>&6
11004 if test $ac_cv_func__beginthread = yes ; then
11005 cat >> confdefs.h <<\EOF
11006 #define HAVE_NT_THREADS 1
11009 ol_cv_nt_threads=yes
11013 if test "$ol_cv_nt_threads" = yes ; then
11015 ol_with_threads=found
11016 ol_with_yielding_select=yes
11018 cat >> confdefs.h <<\EOF
11019 #define HAVE_NT_SERVICE_MANAGER 1
11022 cat >> confdefs.h <<\EOF
11023 #define HAVE_NT_EVENT_LOG 1
11028 if test $ol_with_threads = nt ; then
11029 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11033 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11034 -o $ol_with_threads = posix ; then
11036 for ac_hdr in pthread.h
11038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11040 echo "configure:11041: checking for $ac_hdr" >&5
11041 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11042 echo $ac_n "(cached) $ac_c" 1>&6
11044 cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11050 { (eval echo configure:11051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11052 if test -z "$ac_err"; then
11054 eval "ac_cv_header_$ac_safe=yes"
11057 echo "configure: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11060 eval "ac_cv_header_$ac_safe=no"
11064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11065 echo "$ac_t""yes" 1>&6
11066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11067 cat >> confdefs.h <<EOF
11068 #define $ac_tr_hdr 1
11072 echo "$ac_t""no" 1>&6
11077 if test $ac_cv_header_pthread_h = yes ; then
11078 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11079 echo "configure:11080: checking POSIX thread version" >&5
11080 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11084 cat > conftest.$ac_ext <<EOF
11085 #line 11086 "configure"
11086 #include "confdefs.h"
11088 # include <pthread.h>
11092 int i = PTHREAD_CREATE_JOINABLE;
11096 if { (eval echo configure:11097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11099 cat > conftest.$ac_ext <<EOF
11100 #line 11101 "configure"
11101 #include "confdefs.h"
11102 #include <pthread.h>
11104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11105 egrep "pthread_detach" >/dev/null 2>&1; then
11107 ol_cv_pthread_version=10
11110 ol_cv_pthread_version=8
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11119 cat > conftest.$ac_ext <<EOF
11120 #line 11121 "configure"
11121 #include "confdefs.h"
11123 # include <pthread.h>
11124 # ifdef PTHREAD_CREATE_UNDETACHED
11129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11130 egrep "draft7" >/dev/null 2>&1; then
11132 ol_cv_pthread_version=7
11136 cat > conftest.$ac_ext <<EOF
11137 #line 11138 "configure"
11138 #include "confdefs.h"
11139 #include <pthread.h>
11141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11142 egrep "pthread_attr_init" >/dev/null 2>&1; then
11144 ol_cv_pthread_version=6
11148 cat > conftest.$ac_ext <<EOF
11149 #line 11150 "configure"
11150 #include "confdefs.h"
11152 # include <pthread.h>
11153 #ifdef PTHREAD_MUTEX_INITIALIZER
11158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11159 egrep "draft5" >/dev/null 2>&1; then
11161 ol_cv_pthread_version=5
11164 ol_cv_pthread_version=4
11179 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11182 if test $ol_cv_pthread_version != 0 ; then
11183 cat >> confdefs.h <<EOF
11184 #define HAVE_PTHREADS $ol_cv_pthread_version
11188 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11191 # consider threads found
11192 ol_with_threads=found
11195 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11196 echo "configure:11197: checking for LinuxThreads pthread.h" >&5
11197 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11198 echo $ac_n "(cached) $ac_c" 1>&6
11200 cat > conftest.$ac_ext <<EOF
11201 #line 11202 "configure"
11202 #include "confdefs.h"
11203 #include <pthread.h>
11205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11206 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11208 ol_cv_header_linux_threads=yes
11211 ol_cv_header_linux_threads=no
11218 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11219 if test $ol_cv_header_linux_threads = yes; then
11220 cat >> confdefs.h <<\EOF
11221 #define HAVE_LINUX_THREADS 1
11227 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11228 echo "configure:11229: checking for GNU Pth pthread.h" >&5
11229 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11230 echo $ac_n "(cached) $ac_c" 1>&6
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11235 #include <pthread.h>
11236 #ifdef _POSIX_THREAD_IS_GNU_PTH
11241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11242 egrep "__gnu_pth__" >/dev/null 2>&1; then
11244 ol_cv_header_gnu_pth_pthread_h=yes
11247 ol_cv_header_gnu_pth_pthread_h=no
11254 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11257 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11258 for ac_hdr in sched.h
11260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11262 echo "configure:11263: checking for $ac_hdr" >&5
11263 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11272 { (eval echo configure:11273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11274 if test -z "$ac_err"; then
11276 eval "ac_cv_header_$ac_safe=yes"
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11282 eval "ac_cv_header_$ac_safe=no"
11286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11287 echo "$ac_t""yes" 1>&6
11288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11289 cat >> confdefs.h <<EOF
11290 #define $ac_tr_hdr 1
11294 echo "$ac_t""no" 1>&6
11301 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11302 echo "configure:11303: checking for pthread_create in default libraries" >&5
11303 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11307 if test "$cross_compiling" = yes; then
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11311 /* pthread test headers */
11312 #include <pthread.h>
11313 #if HAVE_PTHREADS < 7
11317 #define NULL (void*)0
11320 static void *task(p)
11323 return (void *) (p == NULL);
11328 /* pthread test function */
11329 #ifndef PTHREAD_CREATE_DETACHED
11330 #define PTHREAD_CREATE_DETACHED 1
11334 int detach = PTHREAD_CREATE_DETACHED;
11336 #if HAVE_PTHREADS > 4
11337 /* Final pthreads */
11338 pthread_attr_t attr;
11340 status = pthread_attr_init(&attr);
11341 if( status ) return status;
11343 #if HAVE_PTHREADS < 7
11344 status = pthread_attr_setdetachstate(&attr, &detach);
11345 if( status < 0 ) status = errno;
11347 status = pthread_attr_setdetachstate(&attr, detach);
11349 if( status ) return status;
11350 status = pthread_create( &t, &attr, task, NULL );
11351 #if HAVE_PTHREADS < 7
11352 if( status < 0 ) status = errno;
11354 if( status ) return status;
11356 /* Draft 4 pthreads */
11357 status = pthread_create( &t, pthread_attr_default, task, NULL );
11358 if( status ) return errno;
11360 /* give thread a chance to complete */
11361 /* it should remain joinable and hence detachable */
11364 status = pthread_detach( &t );
11365 if( status ) return errno;
11368 #ifdef HAVE_LINUX_THREADS
11369 pthread_kill_other_threads_np();
11376 if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11378 ol_cv_pthread_create=yes
11380 echo "configure: failed program was:" >&5
11381 cat conftest.$ac_ext >&5
11383 ol_cv_pthread_create=no
11387 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11390 /* pthread test headers */
11391 #include <pthread.h>
11392 #if HAVE_PTHREADS < 7
11396 #define NULL (void*)0
11399 static void *task(p)
11402 return (void *) (p == NULL);
11406 int main(argc, argv)
11411 /* pthread test function */
11412 #ifndef PTHREAD_CREATE_DETACHED
11413 #define PTHREAD_CREATE_DETACHED 1
11417 int detach = PTHREAD_CREATE_DETACHED;
11419 #if HAVE_PTHREADS > 4
11420 /* Final pthreads */
11421 pthread_attr_t attr;
11423 status = pthread_attr_init(&attr);
11424 if( status ) return status;
11426 #if HAVE_PTHREADS < 7
11427 status = pthread_attr_setdetachstate(&attr, &detach);
11428 if( status < 0 ) status = errno;
11430 status = pthread_attr_setdetachstate(&attr, detach);
11432 if( status ) return status;
11433 status = pthread_create( &t, &attr, task, NULL );
11434 #if HAVE_PTHREADS < 7
11435 if( status < 0 ) status = errno;
11437 if( status ) return status;
11439 /* Draft 4 pthreads */
11440 status = pthread_create( &t, pthread_attr_default, task, NULL );
11441 if( status ) return errno;
11443 /* give thread a chance to complete */
11444 /* it should remain joinable and hence detachable */
11447 status = pthread_detach( &t );
11448 if( status ) return errno;
11451 #ifdef HAVE_LINUX_THREADS
11452 pthread_kill_other_threads_np();
11460 if { (eval echo configure:11461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11462 ol_cv_pthread_create=yes
11464 echo "configure: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11467 ol_cv_pthread_create=no
11474 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11476 if test $ol_cv_pthread_create != no ; then
11477 ol_link_threads=posix
11478 ol_link_pthreads=""
11481 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11482 if test "$ol_link_threads" = no ; then
11484 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11485 echo "configure:11486: checking for pthread link with -kthread" >&5
11486 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
11492 LIBS="-kthread $LIBS"
11494 if test "$cross_compiling" = yes; then
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498 /* pthread test headers */
11499 #include <pthread.h>
11500 #if HAVE_PTHREADS < 7
11504 #define NULL (void*)0
11507 static void *task(p)
11510 return (void *) (p == NULL);
11515 /* pthread test function */
11516 #ifndef PTHREAD_CREATE_DETACHED
11517 #define PTHREAD_CREATE_DETACHED 1
11521 int detach = PTHREAD_CREATE_DETACHED;
11523 #if HAVE_PTHREADS > 4
11524 /* Final pthreads */
11525 pthread_attr_t attr;
11527 status = pthread_attr_init(&attr);
11528 if( status ) return status;
11530 #if HAVE_PTHREADS < 7
11531 status = pthread_attr_setdetachstate(&attr, &detach);
11532 if( status < 0 ) status = errno;
11534 status = pthread_attr_setdetachstate(&attr, detach);
11536 if( status ) return status;
11537 status = pthread_create( &t, &attr, task, NULL );
11538 #if HAVE_PTHREADS < 7
11539 if( status < 0 ) status = errno;
11541 if( status ) return status;
11543 /* Draft 4 pthreads */
11544 status = pthread_create( &t, pthread_attr_default, task, NULL );
11545 if( status ) return errno;
11547 /* give thread a chance to complete */
11548 /* it should remain joinable and hence detachable */
11551 status = pthread_detach( &t );
11552 if( status ) return errno;
11555 #ifdef HAVE_LINUX_THREADS
11556 pthread_kill_other_threads_np();
11563 if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11565 ol_cv_pthread_kthread=yes
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11570 ol_cv_pthread_kthread=no
11574 cat > conftest.$ac_ext <<EOF
11575 #line 11576 "configure"
11576 #include "confdefs.h"
11577 /* pthread test headers */
11578 #include <pthread.h>
11579 #if HAVE_PTHREADS < 7
11583 #define NULL (void*)0
11586 static void *task(p)
11589 return (void *) (p == NULL);
11593 int main(argc, argv)
11598 /* pthread test function */
11599 #ifndef PTHREAD_CREATE_DETACHED
11600 #define PTHREAD_CREATE_DETACHED 1
11604 int detach = PTHREAD_CREATE_DETACHED;
11606 #if HAVE_PTHREADS > 4
11607 /* Final pthreads */
11608 pthread_attr_t attr;
11610 status = pthread_attr_init(&attr);
11611 if( status ) return status;
11613 #if HAVE_PTHREADS < 7
11614 status = pthread_attr_setdetachstate(&attr, &detach);
11615 if( status < 0 ) status = errno;
11617 status = pthread_attr_setdetachstate(&attr, detach);
11619 if( status ) return status;
11620 status = pthread_create( &t, &attr, task, NULL );
11621 #if HAVE_PTHREADS < 7
11622 if( status < 0 ) status = errno;
11624 if( status ) return status;
11626 /* Draft 4 pthreads */
11627 status = pthread_create( &t, pthread_attr_default, task, NULL );
11628 if( status ) return errno;
11630 /* give thread a chance to complete */
11631 /* it should remain joinable and hence detachable */
11634 status = pthread_detach( &t );
11635 if( status ) return errno;
11638 #ifdef HAVE_LINUX_THREADS
11639 pthread_kill_other_threads_np();
11647 if { (eval echo configure:11648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11649 ol_cv_pthread_kthread=yes
11651 echo "configure: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11654 ol_cv_pthread_kthread=no
11665 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11667 if test $ol_cv_pthread_kthread = yes ; then
11668 ol_link_pthreads="-kthread"
11669 ol_link_threads=posix
11673 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11674 if test "$ol_link_threads" = no ; then
11676 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11677 echo "configure:11678: checking for pthread link with -pthread" >&5
11678 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11684 LIBS="-pthread $LIBS"
11686 if test "$cross_compiling" = yes; then
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 /* pthread test headers */
11691 #include <pthread.h>
11692 #if HAVE_PTHREADS < 7
11696 #define NULL (void*)0
11699 static void *task(p)
11702 return (void *) (p == NULL);
11707 /* pthread test function */
11708 #ifndef PTHREAD_CREATE_DETACHED
11709 #define PTHREAD_CREATE_DETACHED 1
11713 int detach = PTHREAD_CREATE_DETACHED;
11715 #if HAVE_PTHREADS > 4
11716 /* Final pthreads */
11717 pthread_attr_t attr;
11719 status = pthread_attr_init(&attr);
11720 if( status ) return status;
11722 #if HAVE_PTHREADS < 7
11723 status = pthread_attr_setdetachstate(&attr, &detach);
11724 if( status < 0 ) status = errno;
11726 status = pthread_attr_setdetachstate(&attr, detach);
11728 if( status ) return status;
11729 status = pthread_create( &t, &attr, task, NULL );
11730 #if HAVE_PTHREADS < 7
11731 if( status < 0 ) status = errno;
11733 if( status ) return status;
11735 /* Draft 4 pthreads */
11736 status = pthread_create( &t, pthread_attr_default, task, NULL );
11737 if( status ) return errno;
11739 /* give thread a chance to complete */
11740 /* it should remain joinable and hence detachable */
11743 status = pthread_detach( &t );
11744 if( status ) return errno;
11747 #ifdef HAVE_LINUX_THREADS
11748 pthread_kill_other_threads_np();
11755 if { (eval echo configure:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11757 ol_cv_pthread_pthread=yes
11759 echo "configure: failed program was:" >&5
11760 cat conftest.$ac_ext >&5
11762 ol_cv_pthread_pthread=no
11766 cat > conftest.$ac_ext <<EOF
11767 #line 11768 "configure"
11768 #include "confdefs.h"
11769 /* pthread test headers */
11770 #include <pthread.h>
11771 #if HAVE_PTHREADS < 7
11775 #define NULL (void*)0
11778 static void *task(p)
11781 return (void *) (p == NULL);
11785 int main(argc, argv)
11790 /* pthread test function */
11791 #ifndef PTHREAD_CREATE_DETACHED
11792 #define PTHREAD_CREATE_DETACHED 1
11796 int detach = PTHREAD_CREATE_DETACHED;
11798 #if HAVE_PTHREADS > 4
11799 /* Final pthreads */
11800 pthread_attr_t attr;
11802 status = pthread_attr_init(&attr);
11803 if( status ) return status;
11805 #if HAVE_PTHREADS < 7
11806 status = pthread_attr_setdetachstate(&attr, &detach);
11807 if( status < 0 ) status = errno;
11809 status = pthread_attr_setdetachstate(&attr, detach);
11811 if( status ) return status;
11812 status = pthread_create( &t, &attr, task, NULL );
11813 #if HAVE_PTHREADS < 7
11814 if( status < 0 ) status = errno;
11816 if( status ) return status;
11818 /* Draft 4 pthreads */
11819 status = pthread_create( &t, pthread_attr_default, task, NULL );
11820 if( status ) return errno;
11822 /* give thread a chance to complete */
11823 /* it should remain joinable and hence detachable */
11826 status = pthread_detach( &t );
11827 if( status ) return errno;
11830 #ifdef HAVE_LINUX_THREADS
11831 pthread_kill_other_threads_np();
11839 if { (eval echo configure:11840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11841 ol_cv_pthread_pthread=yes
11843 echo "configure: failed program was:" >&5
11844 cat conftest.$ac_ext >&5
11846 ol_cv_pthread_pthread=no
11857 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
11859 if test $ol_cv_pthread_pthread = yes ; then
11860 ol_link_pthreads="-pthread"
11861 ol_link_threads=posix
11865 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11866 if test "$ol_link_threads" = no ; then
11868 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
11869 echo "configure:11870: checking for pthread link with -pthreads" >&5
11870 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11876 LIBS="-pthreads $LIBS"
11878 if test "$cross_compiling" = yes; then
11879 cat > conftest.$ac_ext <<EOF
11880 #line 11881 "configure"
11881 #include "confdefs.h"
11882 /* pthread test headers */
11883 #include <pthread.h>
11884 #if HAVE_PTHREADS < 7
11888 #define NULL (void*)0
11891 static void *task(p)
11894 return (void *) (p == NULL);
11899 /* pthread test function */
11900 #ifndef PTHREAD_CREATE_DETACHED
11901 #define PTHREAD_CREATE_DETACHED 1
11905 int detach = PTHREAD_CREATE_DETACHED;
11907 #if HAVE_PTHREADS > 4
11908 /* Final pthreads */
11909 pthread_attr_t attr;
11911 status = pthread_attr_init(&attr);
11912 if( status ) return status;
11914 #if HAVE_PTHREADS < 7
11915 status = pthread_attr_setdetachstate(&attr, &detach);
11916 if( status < 0 ) status = errno;
11918 status = pthread_attr_setdetachstate(&attr, detach);
11920 if( status ) return status;
11921 status = pthread_create( &t, &attr, task, NULL );
11922 #if HAVE_PTHREADS < 7
11923 if( status < 0 ) status = errno;
11925 if( status ) return status;
11927 /* Draft 4 pthreads */
11928 status = pthread_create( &t, pthread_attr_default, task, NULL );
11929 if( status ) return errno;
11931 /* give thread a chance to complete */
11932 /* it should remain joinable and hence detachable */
11935 status = pthread_detach( &t );
11936 if( status ) return errno;
11939 #ifdef HAVE_LINUX_THREADS
11940 pthread_kill_other_threads_np();
11947 if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11949 ol_cv_pthread_pthreads=yes
11951 echo "configure: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11954 ol_cv_pthread_pthreads=no
11958 cat > conftest.$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961 /* pthread test headers */
11962 #include <pthread.h>
11963 #if HAVE_PTHREADS < 7
11967 #define NULL (void*)0
11970 static void *task(p)
11973 return (void *) (p == NULL);
11977 int main(argc, argv)
11982 /* pthread test function */
11983 #ifndef PTHREAD_CREATE_DETACHED
11984 #define PTHREAD_CREATE_DETACHED 1
11988 int detach = PTHREAD_CREATE_DETACHED;
11990 #if HAVE_PTHREADS > 4
11991 /* Final pthreads */
11992 pthread_attr_t attr;
11994 status = pthread_attr_init(&attr);
11995 if( status ) return status;
11997 #if HAVE_PTHREADS < 7
11998 status = pthread_attr_setdetachstate(&attr, &detach);
11999 if( status < 0 ) status = errno;
12001 status = pthread_attr_setdetachstate(&attr, detach);
12003 if( status ) return status;
12004 status = pthread_create( &t, &attr, task, NULL );
12005 #if HAVE_PTHREADS < 7
12006 if( status < 0 ) status = errno;
12008 if( status ) return status;
12010 /* Draft 4 pthreads */
12011 status = pthread_create( &t, pthread_attr_default, task, NULL );
12012 if( status ) return errno;
12014 /* give thread a chance to complete */
12015 /* it should remain joinable and hence detachable */
12018 status = pthread_detach( &t );
12019 if( status ) return errno;
12022 #ifdef HAVE_LINUX_THREADS
12023 pthread_kill_other_threads_np();
12031 if { (eval echo configure:12032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12033 ol_cv_pthread_pthreads=yes
12035 echo "configure: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12038 ol_cv_pthread_pthreads=no
12049 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12051 if test $ol_cv_pthread_pthreads = yes ; then
12052 ol_link_pthreads="-pthreads"
12053 ol_link_threads=posix
12057 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12058 if test "$ol_link_threads" = no ; then
12060 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12061 echo "configure:12062: checking for pthread link with -mthreads" >&5
12062 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12063 echo $ac_n "(cached) $ac_c" 1>&6
12068 LIBS="-mthreads $LIBS"
12070 if test "$cross_compiling" = yes; then
12071 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure"
12073 #include "confdefs.h"
12074 /* pthread test headers */
12075 #include <pthread.h>
12076 #if HAVE_PTHREADS < 7
12080 #define NULL (void*)0
12083 static void *task(p)
12086 return (void *) (p == NULL);
12091 /* pthread test function */
12092 #ifndef PTHREAD_CREATE_DETACHED
12093 #define PTHREAD_CREATE_DETACHED 1
12097 int detach = PTHREAD_CREATE_DETACHED;
12099 #if HAVE_PTHREADS > 4
12100 /* Final pthreads */
12101 pthread_attr_t attr;
12103 status = pthread_attr_init(&attr);
12104 if( status ) return status;
12106 #if HAVE_PTHREADS < 7
12107 status = pthread_attr_setdetachstate(&attr, &detach);
12108 if( status < 0 ) status = errno;
12110 status = pthread_attr_setdetachstate(&attr, detach);
12112 if( status ) return status;
12113 status = pthread_create( &t, &attr, task, NULL );
12114 #if HAVE_PTHREADS < 7
12115 if( status < 0 ) status = errno;
12117 if( status ) return status;
12119 /* Draft 4 pthreads */
12120 status = pthread_create( &t, pthread_attr_default, task, NULL );
12121 if( status ) return errno;
12123 /* give thread a chance to complete */
12124 /* it should remain joinable and hence detachable */
12127 status = pthread_detach( &t );
12128 if( status ) return errno;
12131 #ifdef HAVE_LINUX_THREADS
12132 pthread_kill_other_threads_np();
12139 if { (eval echo configure:12140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12141 ol_cv_pthread_mthreads=yes
12143 echo "configure: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12146 ol_cv_pthread_mthreads=no
12150 cat > conftest.$ac_ext <<EOF
12151 #line 12152 "configure"
12152 #include "confdefs.h"
12153 /* pthread test headers */
12154 #include <pthread.h>
12155 #if HAVE_PTHREADS < 7
12159 #define NULL (void*)0
12162 static void *task(p)
12165 return (void *) (p == NULL);
12169 int main(argc, argv)
12174 /* pthread test function */
12175 #ifndef PTHREAD_CREATE_DETACHED
12176 #define PTHREAD_CREATE_DETACHED 1
12180 int detach = PTHREAD_CREATE_DETACHED;
12182 #if HAVE_PTHREADS > 4
12183 /* Final pthreads */
12184 pthread_attr_t attr;
12186 status = pthread_attr_init(&attr);
12187 if( status ) return status;
12189 #if HAVE_PTHREADS < 7
12190 status = pthread_attr_setdetachstate(&attr, &detach);
12191 if( status < 0 ) status = errno;
12193 status = pthread_attr_setdetachstate(&attr, detach);
12195 if( status ) return status;
12196 status = pthread_create( &t, &attr, task, NULL );
12197 #if HAVE_PTHREADS < 7
12198 if( status < 0 ) status = errno;
12200 if( status ) return status;
12202 /* Draft 4 pthreads */
12203 status = pthread_create( &t, pthread_attr_default, task, NULL );
12204 if( status ) return errno;
12206 /* give thread a chance to complete */
12207 /* it should remain joinable and hence detachable */
12210 status = pthread_detach( &t );
12211 if( status ) return errno;
12214 #ifdef HAVE_LINUX_THREADS
12215 pthread_kill_other_threads_np();
12223 if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12225 ol_cv_pthread_mthreads=yes
12227 echo "configure: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12230 ol_cv_pthread_mthreads=no
12241 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12243 if test $ol_cv_pthread_mthreads = yes ; then
12244 ol_link_pthreads="-mthreads"
12245 ol_link_threads=posix
12249 # Pthread try link: -thread (ol_cv_pthread_thread)
12250 if test "$ol_link_threads" = no ; then
12252 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12253 echo "configure:12254: checking for pthread link with -thread" >&5
12254 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12260 LIBS="-thread $LIBS"
12262 if test "$cross_compiling" = yes; then
12263 cat > conftest.$ac_ext <<EOF
12264 #line 12265 "configure"
12265 #include "confdefs.h"
12266 /* pthread test headers */
12267 #include <pthread.h>
12268 #if HAVE_PTHREADS < 7
12272 #define NULL (void*)0
12275 static void *task(p)
12278 return (void *) (p == NULL);
12283 /* pthread test function */
12284 #ifndef PTHREAD_CREATE_DETACHED
12285 #define PTHREAD_CREATE_DETACHED 1
12289 int detach = PTHREAD_CREATE_DETACHED;
12291 #if HAVE_PTHREADS > 4
12292 /* Final pthreads */
12293 pthread_attr_t attr;
12295 status = pthread_attr_init(&attr);
12296 if( status ) return status;
12298 #if HAVE_PTHREADS < 7
12299 status = pthread_attr_setdetachstate(&attr, &detach);
12300 if( status < 0 ) status = errno;
12302 status = pthread_attr_setdetachstate(&attr, detach);
12304 if( status ) return status;
12305 status = pthread_create( &t, &attr, task, NULL );
12306 #if HAVE_PTHREADS < 7
12307 if( status < 0 ) status = errno;
12309 if( status ) return status;
12311 /* Draft 4 pthreads */
12312 status = pthread_create( &t, pthread_attr_default, task, NULL );
12313 if( status ) return errno;
12315 /* give thread a chance to complete */
12316 /* it should remain joinable and hence detachable */
12319 status = pthread_detach( &t );
12320 if( status ) return errno;
12323 #ifdef HAVE_LINUX_THREADS
12324 pthread_kill_other_threads_np();
12331 if { (eval echo configure:12332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12333 ol_cv_pthread_thread=yes
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12338 ol_cv_pthread_thread=no
12342 cat > conftest.$ac_ext <<EOF
12343 #line 12344 "configure"
12344 #include "confdefs.h"
12345 /* pthread test headers */
12346 #include <pthread.h>
12347 #if HAVE_PTHREADS < 7
12351 #define NULL (void*)0
12354 static void *task(p)
12357 return (void *) (p == NULL);
12361 int main(argc, argv)
12366 /* pthread test function */
12367 #ifndef PTHREAD_CREATE_DETACHED
12368 #define PTHREAD_CREATE_DETACHED 1
12372 int detach = PTHREAD_CREATE_DETACHED;
12374 #if HAVE_PTHREADS > 4
12375 /* Final pthreads */
12376 pthread_attr_t attr;
12378 status = pthread_attr_init(&attr);
12379 if( status ) return status;
12381 #if HAVE_PTHREADS < 7
12382 status = pthread_attr_setdetachstate(&attr, &detach);
12383 if( status < 0 ) status = errno;
12385 status = pthread_attr_setdetachstate(&attr, detach);
12387 if( status ) return status;
12388 status = pthread_create( &t, &attr, task, NULL );
12389 #if HAVE_PTHREADS < 7
12390 if( status < 0 ) status = errno;
12392 if( status ) return status;
12394 /* Draft 4 pthreads */
12395 status = pthread_create( &t, pthread_attr_default, task, NULL );
12396 if( status ) return errno;
12398 /* give thread a chance to complete */
12399 /* it should remain joinable and hence detachable */
12402 status = pthread_detach( &t );
12403 if( status ) return errno;
12406 #ifdef HAVE_LINUX_THREADS
12407 pthread_kill_other_threads_np();
12415 if { (eval echo configure:12416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12417 ol_cv_pthread_thread=yes
12419 echo "configure: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12422 ol_cv_pthread_thread=no
12433 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12435 if test $ol_cv_pthread_thread = yes ; then
12436 ol_link_pthreads="-thread"
12437 ol_link_threads=posix
12442 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12443 if test "$ol_link_threads" = no ; then
12444 # try -lpthread -lmach -lexc -lc_r
12445 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12446 echo "configure:12447: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12447 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12448 echo $ac_n "(cached) $ac_c" 1>&6
12453 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12455 if test "$cross_compiling" = yes; then
12456 cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure"
12458 #include "confdefs.h"
12459 /* pthread test headers */
12460 #include <pthread.h>
12461 #if HAVE_PTHREADS < 7
12465 #define NULL (void*)0
12468 static void *task(p)
12471 return (void *) (p == NULL);
12476 /* pthread test function */
12477 #ifndef PTHREAD_CREATE_DETACHED
12478 #define PTHREAD_CREATE_DETACHED 1
12482 int detach = PTHREAD_CREATE_DETACHED;
12484 #if HAVE_PTHREADS > 4
12485 /* Final pthreads */
12486 pthread_attr_t attr;
12488 status = pthread_attr_init(&attr);
12489 if( status ) return status;
12491 #if HAVE_PTHREADS < 7
12492 status = pthread_attr_setdetachstate(&attr, &detach);
12493 if( status < 0 ) status = errno;
12495 status = pthread_attr_setdetachstate(&attr, detach);
12497 if( status ) return status;
12498 status = pthread_create( &t, &attr, task, NULL );
12499 #if HAVE_PTHREADS < 7
12500 if( status < 0 ) status = errno;
12502 if( status ) return status;
12504 /* Draft 4 pthreads */
12505 status = pthread_create( &t, pthread_attr_default, task, NULL );
12506 if( status ) return errno;
12508 /* give thread a chance to complete */
12509 /* it should remain joinable and hence detachable */
12512 status = pthread_detach( &t );
12513 if( status ) return errno;
12516 #ifdef HAVE_LINUX_THREADS
12517 pthread_kill_other_threads_np();
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12526 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12531 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12535 cat > conftest.$ac_ext <<EOF
12536 #line 12537 "configure"
12537 #include "confdefs.h"
12538 /* pthread test headers */
12539 #include <pthread.h>
12540 #if HAVE_PTHREADS < 7
12544 #define NULL (void*)0
12547 static void *task(p)
12550 return (void *) (p == NULL);
12554 int main(argc, argv)
12559 /* pthread test function */
12560 #ifndef PTHREAD_CREATE_DETACHED
12561 #define PTHREAD_CREATE_DETACHED 1
12565 int detach = PTHREAD_CREATE_DETACHED;
12567 #if HAVE_PTHREADS > 4
12568 /* Final pthreads */
12569 pthread_attr_t attr;
12571 status = pthread_attr_init(&attr);
12572 if( status ) return status;
12574 #if HAVE_PTHREADS < 7
12575 status = pthread_attr_setdetachstate(&attr, &detach);
12576 if( status < 0 ) status = errno;
12578 status = pthread_attr_setdetachstate(&attr, detach);
12580 if( status ) return status;
12581 status = pthread_create( &t, &attr, task, NULL );
12582 #if HAVE_PTHREADS < 7
12583 if( status < 0 ) status = errno;
12585 if( status ) return status;
12587 /* Draft 4 pthreads */
12588 status = pthread_create( &t, pthread_attr_default, task, NULL );
12589 if( status ) return errno;
12591 /* give thread a chance to complete */
12592 /* it should remain joinable and hence detachable */
12595 status = pthread_detach( &t );
12596 if( status ) return errno;
12599 #ifdef HAVE_LINUX_THREADS
12600 pthread_kill_other_threads_np();
12608 if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12610 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12615 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12626 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12628 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12629 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12630 ol_link_threads=posix
12634 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12635 if test "$ol_link_threads" = no ; then
12636 # try -lpthread -lmach -lexc
12637 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12638 echo "configure:12639: checking for pthread link with -lpthread -lmach -lexc" >&5
12639 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12640 echo $ac_n "(cached) $ac_c" 1>&6
12645 LIBS="-lpthread -lmach -lexc $LIBS"
12647 if test "$cross_compiling" = yes; then
12648 cat > conftest.$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12651 /* pthread test headers */
12652 #include <pthread.h>
12653 #if HAVE_PTHREADS < 7
12657 #define NULL (void*)0
12660 static void *task(p)
12663 return (void *) (p == NULL);
12668 /* pthread test function */
12669 #ifndef PTHREAD_CREATE_DETACHED
12670 #define PTHREAD_CREATE_DETACHED 1
12674 int detach = PTHREAD_CREATE_DETACHED;
12676 #if HAVE_PTHREADS > 4
12677 /* Final pthreads */
12678 pthread_attr_t attr;
12680 status = pthread_attr_init(&attr);
12681 if( status ) return status;
12683 #if HAVE_PTHREADS < 7
12684 status = pthread_attr_setdetachstate(&attr, &detach);
12685 if( status < 0 ) status = errno;
12687 status = pthread_attr_setdetachstate(&attr, detach);
12689 if( status ) return status;
12690 status = pthread_create( &t, &attr, task, NULL );
12691 #if HAVE_PTHREADS < 7
12692 if( status < 0 ) status = errno;
12694 if( status ) return status;
12696 /* Draft 4 pthreads */
12697 status = pthread_create( &t, pthread_attr_default, task, NULL );
12698 if( status ) return errno;
12700 /* give thread a chance to complete */
12701 /* it should remain joinable and hence detachable */
12704 status = pthread_detach( &t );
12705 if( status ) return errno;
12708 #ifdef HAVE_LINUX_THREADS
12709 pthread_kill_other_threads_np();
12716 if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12718 ol_cv_pthread_lpthread_lmach_lexc=yes
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 ol_cv_pthread_lpthread_lmach_lexc=no
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 /* pthread test headers */
12731 #include <pthread.h>
12732 #if HAVE_PTHREADS < 7
12736 #define NULL (void*)0
12739 static void *task(p)
12742 return (void *) (p == NULL);
12746 int main(argc, argv)
12751 /* pthread test function */
12752 #ifndef PTHREAD_CREATE_DETACHED
12753 #define PTHREAD_CREATE_DETACHED 1
12757 int detach = PTHREAD_CREATE_DETACHED;
12759 #if HAVE_PTHREADS > 4
12760 /* Final pthreads */
12761 pthread_attr_t attr;
12763 status = pthread_attr_init(&attr);
12764 if( status ) return status;
12766 #if HAVE_PTHREADS < 7
12767 status = pthread_attr_setdetachstate(&attr, &detach);
12768 if( status < 0 ) status = errno;
12770 status = pthread_attr_setdetachstate(&attr, detach);
12772 if( status ) return status;
12773 status = pthread_create( &t, &attr, task, NULL );
12774 #if HAVE_PTHREADS < 7
12775 if( status < 0 ) status = errno;
12777 if( status ) return status;
12779 /* Draft 4 pthreads */
12780 status = pthread_create( &t, pthread_attr_default, task, NULL );
12781 if( status ) return errno;
12783 /* give thread a chance to complete */
12784 /* it should remain joinable and hence detachable */
12787 status = pthread_detach( &t );
12788 if( status ) return errno;
12791 #ifdef HAVE_LINUX_THREADS
12792 pthread_kill_other_threads_np();
12800 if { (eval echo configure:12801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12802 ol_cv_pthread_lpthread_lmach_lexc=yes
12804 echo "configure: failed program was:" >&5
12805 cat conftest.$ac_ext >&5
12807 ol_cv_pthread_lpthread_lmach_lexc=no
12818 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12820 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12821 ol_link_pthreads="-lpthread -lmach -lexc"
12822 ol_link_threads=posix
12827 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12828 if test "$ol_link_threads" = no ; then
12829 # try -lpthread -Wl,-woff,85
12830 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12831 echo "configure:12832: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12832 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12833 echo $ac_n "(cached) $ac_c" 1>&6
12838 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12840 if test "$cross_compiling" = yes; then
12841 cat > conftest.$ac_ext <<EOF
12842 #line 12843 "configure"
12843 #include "confdefs.h"
12844 /* pthread test headers */
12845 #include <pthread.h>
12846 #if HAVE_PTHREADS < 7
12850 #define NULL (void*)0
12853 static void *task(p)
12856 return (void *) (p == NULL);
12861 /* pthread test function */
12862 #ifndef PTHREAD_CREATE_DETACHED
12863 #define PTHREAD_CREATE_DETACHED 1
12867 int detach = PTHREAD_CREATE_DETACHED;
12869 #if HAVE_PTHREADS > 4
12870 /* Final pthreads */
12871 pthread_attr_t attr;
12873 status = pthread_attr_init(&attr);
12874 if( status ) return status;
12876 #if HAVE_PTHREADS < 7
12877 status = pthread_attr_setdetachstate(&attr, &detach);
12878 if( status < 0 ) status = errno;
12880 status = pthread_attr_setdetachstate(&attr, detach);
12882 if( status ) return status;
12883 status = pthread_create( &t, &attr, task, NULL );
12884 #if HAVE_PTHREADS < 7
12885 if( status < 0 ) status = errno;
12887 if( status ) return status;
12889 /* Draft 4 pthreads */
12890 status = pthread_create( &t, pthread_attr_default, task, NULL );
12891 if( status ) return errno;
12893 /* give thread a chance to complete */
12894 /* it should remain joinable and hence detachable */
12897 status = pthread_detach( &t );
12898 if( status ) return errno;
12901 #ifdef HAVE_LINUX_THREADS
12902 pthread_kill_other_threads_np();
12909 if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12911 ol_cv_pthread_lib_lpthread_woff=yes
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12916 ol_cv_pthread_lib_lpthread_woff=no
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12923 /* pthread test headers */
12924 #include <pthread.h>
12925 #if HAVE_PTHREADS < 7
12929 #define NULL (void*)0
12932 static void *task(p)
12935 return (void *) (p == NULL);
12939 int main(argc, argv)
12944 /* pthread test function */
12945 #ifndef PTHREAD_CREATE_DETACHED
12946 #define PTHREAD_CREATE_DETACHED 1
12950 int detach = PTHREAD_CREATE_DETACHED;
12952 #if HAVE_PTHREADS > 4
12953 /* Final pthreads */
12954 pthread_attr_t attr;
12956 status = pthread_attr_init(&attr);
12957 if( status ) return status;
12959 #if HAVE_PTHREADS < 7
12960 status = pthread_attr_setdetachstate(&attr, &detach);
12961 if( status < 0 ) status = errno;
12963 status = pthread_attr_setdetachstate(&attr, detach);
12965 if( status ) return status;
12966 status = pthread_create( &t, &attr, task, NULL );
12967 #if HAVE_PTHREADS < 7
12968 if( status < 0 ) status = errno;
12970 if( status ) return status;
12972 /* Draft 4 pthreads */
12973 status = pthread_create( &t, pthread_attr_default, task, NULL );
12974 if( status ) return errno;
12976 /* give thread a chance to complete */
12977 /* it should remain joinable and hence detachable */
12980 status = pthread_detach( &t );
12981 if( status ) return errno;
12984 #ifdef HAVE_LINUX_THREADS
12985 pthread_kill_other_threads_np();
12993 if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12995 ol_cv_pthread_lib_lpthread_woff=yes
12997 echo "configure: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
13000 ol_cv_pthread_lib_lpthread_woff=no
13011 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13013 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13014 ol_link_pthreads="-lpthread -Wl,-woff,85"
13015 ol_link_threads=posix
13020 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13021 if test "$ol_link_threads" = no ; then
13023 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13024 echo "configure:13025: checking for pthread link with -lpthread" >&5
13025 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13026 echo $ac_n "(cached) $ac_c" 1>&6
13031 LIBS="-lpthread $LIBS"
13033 if test "$cross_compiling" = yes; then
13034 cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure"
13036 #include "confdefs.h"
13037 /* pthread test headers */
13038 #include <pthread.h>
13039 #if HAVE_PTHREADS < 7
13043 #define NULL (void*)0
13046 static void *task(p)
13049 return (void *) (p == NULL);
13054 /* pthread test function */
13055 #ifndef PTHREAD_CREATE_DETACHED
13056 #define PTHREAD_CREATE_DETACHED 1
13060 int detach = PTHREAD_CREATE_DETACHED;
13062 #if HAVE_PTHREADS > 4
13063 /* Final pthreads */
13064 pthread_attr_t attr;
13066 status = pthread_attr_init(&attr);
13067 if( status ) return status;
13069 #if HAVE_PTHREADS < 7
13070 status = pthread_attr_setdetachstate(&attr, &detach);
13071 if( status < 0 ) status = errno;
13073 status = pthread_attr_setdetachstate(&attr, detach);
13075 if( status ) return status;
13076 status = pthread_create( &t, &attr, task, NULL );
13077 #if HAVE_PTHREADS < 7
13078 if( status < 0 ) status = errno;
13080 if( status ) return status;
13082 /* Draft 4 pthreads */
13083 status = pthread_create( &t, pthread_attr_default, task, NULL );
13084 if( status ) return errno;
13086 /* give thread a chance to complete */
13087 /* it should remain joinable and hence detachable */
13090 status = pthread_detach( &t );
13091 if( status ) return errno;
13094 #ifdef HAVE_LINUX_THREADS
13095 pthread_kill_other_threads_np();
13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13104 ol_cv_pthread_lpthread=yes
13106 echo "configure: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13109 ol_cv_pthread_lpthread=no
13113 cat > conftest.$ac_ext <<EOF
13114 #line 13115 "configure"
13115 #include "confdefs.h"
13116 /* pthread test headers */
13117 #include <pthread.h>
13118 #if HAVE_PTHREADS < 7
13122 #define NULL (void*)0
13125 static void *task(p)
13128 return (void *) (p == NULL);
13132 int main(argc, argv)
13137 /* pthread test function */
13138 #ifndef PTHREAD_CREATE_DETACHED
13139 #define PTHREAD_CREATE_DETACHED 1
13143 int detach = PTHREAD_CREATE_DETACHED;
13145 #if HAVE_PTHREADS > 4
13146 /* Final pthreads */
13147 pthread_attr_t attr;
13149 status = pthread_attr_init(&attr);
13150 if( status ) return status;
13152 #if HAVE_PTHREADS < 7
13153 status = pthread_attr_setdetachstate(&attr, &detach);
13154 if( status < 0 ) status = errno;
13156 status = pthread_attr_setdetachstate(&attr, detach);
13158 if( status ) return status;
13159 status = pthread_create( &t, &attr, task, NULL );
13160 #if HAVE_PTHREADS < 7
13161 if( status < 0 ) status = errno;
13163 if( status ) return status;
13165 /* Draft 4 pthreads */
13166 status = pthread_create( &t, pthread_attr_default, task, NULL );
13167 if( status ) return errno;
13169 /* give thread a chance to complete */
13170 /* it should remain joinable and hence detachable */
13173 status = pthread_detach( &t );
13174 if( status ) return errno;
13177 #ifdef HAVE_LINUX_THREADS
13178 pthread_kill_other_threads_np();
13186 if { (eval echo configure:13187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13188 ol_cv_pthread_lpthread=yes
13190 echo "configure: failed program was:" >&5
13191 cat conftest.$ac_ext >&5
13193 ol_cv_pthread_lpthread=no
13204 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13206 if test $ol_cv_pthread_lpthread = yes ; then
13207 ol_link_pthreads="-lpthread"
13208 ol_link_threads=posix
13212 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13213 if test "$ol_link_threads" = no ; then
13215 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13216 echo "configure:13217: checking for pthread link with -lc_r" >&5
13217 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13218 echo $ac_n "(cached) $ac_c" 1>&6
13225 if test "$cross_compiling" = yes; then
13226 cat > conftest.$ac_ext <<EOF
13227 #line 13228 "configure"
13228 #include "confdefs.h"
13229 /* pthread test headers */
13230 #include <pthread.h>
13231 #if HAVE_PTHREADS < 7
13235 #define NULL (void*)0
13238 static void *task(p)
13241 return (void *) (p == NULL);
13246 /* pthread test function */
13247 #ifndef PTHREAD_CREATE_DETACHED
13248 #define PTHREAD_CREATE_DETACHED 1
13252 int detach = PTHREAD_CREATE_DETACHED;
13254 #if HAVE_PTHREADS > 4
13255 /* Final pthreads */
13256 pthread_attr_t attr;
13258 status = pthread_attr_init(&attr);
13259 if( status ) return status;
13261 #if HAVE_PTHREADS < 7
13262 status = pthread_attr_setdetachstate(&attr, &detach);
13263 if( status < 0 ) status = errno;
13265 status = pthread_attr_setdetachstate(&attr, detach);
13267 if( status ) return status;
13268 status = pthread_create( &t, &attr, task, NULL );
13269 #if HAVE_PTHREADS < 7
13270 if( status < 0 ) status = errno;
13272 if( status ) return status;
13274 /* Draft 4 pthreads */
13275 status = pthread_create( &t, pthread_attr_default, task, NULL );
13276 if( status ) return errno;
13278 /* give thread a chance to complete */
13279 /* it should remain joinable and hence detachable */
13282 status = pthread_detach( &t );
13283 if( status ) return errno;
13286 #ifdef HAVE_LINUX_THREADS
13287 pthread_kill_other_threads_np();
13294 if { (eval echo configure:13295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13296 ol_cv_pthread_lc_r=yes
13298 echo "configure: failed program was:" >&5
13299 cat conftest.$ac_ext >&5
13301 ol_cv_pthread_lc_r=no
13305 cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure"
13307 #include "confdefs.h"
13308 /* pthread test headers */
13309 #include <pthread.h>
13310 #if HAVE_PTHREADS < 7
13314 #define NULL (void*)0
13317 static void *task(p)
13320 return (void *) (p == NULL);
13324 int main(argc, argv)
13329 /* pthread test function */
13330 #ifndef PTHREAD_CREATE_DETACHED
13331 #define PTHREAD_CREATE_DETACHED 1
13335 int detach = PTHREAD_CREATE_DETACHED;
13337 #if HAVE_PTHREADS > 4
13338 /* Final pthreads */
13339 pthread_attr_t attr;
13341 status = pthread_attr_init(&attr);
13342 if( status ) return status;
13344 #if HAVE_PTHREADS < 7
13345 status = pthread_attr_setdetachstate(&attr, &detach);
13346 if( status < 0 ) status = errno;
13348 status = pthread_attr_setdetachstate(&attr, detach);
13350 if( status ) return status;
13351 status = pthread_create( &t, &attr, task, NULL );
13352 #if HAVE_PTHREADS < 7
13353 if( status < 0 ) status = errno;
13355 if( status ) return status;
13357 /* Draft 4 pthreads */
13358 status = pthread_create( &t, pthread_attr_default, task, NULL );
13359 if( status ) return errno;
13361 /* give thread a chance to complete */
13362 /* it should remain joinable and hence detachable */
13365 status = pthread_detach( &t );
13366 if( status ) return errno;
13369 #ifdef HAVE_LINUX_THREADS
13370 pthread_kill_other_threads_np();
13378 if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13380 ol_cv_pthread_lc_r=yes
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13385 ol_cv_pthread_lc_r=no
13396 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13398 if test $ol_cv_pthread_lc_r = yes ; then
13399 ol_link_pthreads="-lc_r"
13400 ol_link_threads=posix
13405 # Pthread try link: -threads (ol_cv_pthread_threads)
13406 if test "$ol_link_threads" = no ; then
13408 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13409 echo "configure:13410: checking for pthread link with -threads" >&5
13410 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13411 echo $ac_n "(cached) $ac_c" 1>&6
13416 LIBS="-threads $LIBS"
13418 if test "$cross_compiling" = yes; then
13419 cat > conftest.$ac_ext <<EOF
13420 #line 13421 "configure"
13421 #include "confdefs.h"
13422 /* pthread test headers */
13423 #include <pthread.h>
13424 #if HAVE_PTHREADS < 7
13428 #define NULL (void*)0
13431 static void *task(p)
13434 return (void *) (p == NULL);
13439 /* pthread test function */
13440 #ifndef PTHREAD_CREATE_DETACHED
13441 #define PTHREAD_CREATE_DETACHED 1
13445 int detach = PTHREAD_CREATE_DETACHED;
13447 #if HAVE_PTHREADS > 4
13448 /* Final pthreads */
13449 pthread_attr_t attr;
13451 status = pthread_attr_init(&attr);
13452 if( status ) return status;
13454 #if HAVE_PTHREADS < 7
13455 status = pthread_attr_setdetachstate(&attr, &detach);
13456 if( status < 0 ) status = errno;
13458 status = pthread_attr_setdetachstate(&attr, detach);
13460 if( status ) return status;
13461 status = pthread_create( &t, &attr, task, NULL );
13462 #if HAVE_PTHREADS < 7
13463 if( status < 0 ) status = errno;
13465 if( status ) return status;
13467 /* Draft 4 pthreads */
13468 status = pthread_create( &t, pthread_attr_default, task, NULL );
13469 if( status ) return errno;
13471 /* give thread a chance to complete */
13472 /* it should remain joinable and hence detachable */
13475 status = pthread_detach( &t );
13476 if( status ) return errno;
13479 #ifdef HAVE_LINUX_THREADS
13480 pthread_kill_other_threads_np();
13487 if { (eval echo configure:13488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13489 ol_cv_pthread_threads=yes
13491 echo "configure: failed program was:" >&5
13492 cat conftest.$ac_ext >&5
13494 ol_cv_pthread_threads=no
13498 cat > conftest.$ac_ext <<EOF
13499 #line 13500 "configure"
13500 #include "confdefs.h"
13501 /* pthread test headers */
13502 #include <pthread.h>
13503 #if HAVE_PTHREADS < 7
13507 #define NULL (void*)0
13510 static void *task(p)
13513 return (void *) (p == NULL);
13517 int main(argc, argv)
13522 /* pthread test function */
13523 #ifndef PTHREAD_CREATE_DETACHED
13524 #define PTHREAD_CREATE_DETACHED 1
13528 int detach = PTHREAD_CREATE_DETACHED;
13530 #if HAVE_PTHREADS > 4
13531 /* Final pthreads */
13532 pthread_attr_t attr;
13534 status = pthread_attr_init(&attr);
13535 if( status ) return status;
13537 #if HAVE_PTHREADS < 7
13538 status = pthread_attr_setdetachstate(&attr, &detach);
13539 if( status < 0 ) status = errno;
13541 status = pthread_attr_setdetachstate(&attr, detach);
13543 if( status ) return status;
13544 status = pthread_create( &t, &attr, task, NULL );
13545 #if HAVE_PTHREADS < 7
13546 if( status < 0 ) status = errno;
13548 if( status ) return status;
13550 /* Draft 4 pthreads */
13551 status = pthread_create( &t, pthread_attr_default, task, NULL );
13552 if( status ) return errno;
13554 /* give thread a chance to complete */
13555 /* it should remain joinable and hence detachable */
13558 status = pthread_detach( &t );
13559 if( status ) return errno;
13562 #ifdef HAVE_LINUX_THREADS
13563 pthread_kill_other_threads_np();
13571 if { (eval echo configure:13572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13573 ol_cv_pthread_threads=yes
13575 echo "configure: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13578 ol_cv_pthread_threads=no
13589 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13591 if test $ol_cv_pthread_threads = yes ; then
13592 ol_link_pthreads="-threads"
13593 ol_link_threads=posix
13598 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13599 if test "$ol_link_threads" = no ; then
13600 # try -lpthreads -lmach -lexc -lc_r
13601 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13602 echo "configure:13603: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13603 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13604 echo $ac_n "(cached) $ac_c" 1>&6
13609 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13611 if test "$cross_compiling" = yes; then
13612 cat > conftest.$ac_ext <<EOF
13613 #line 13614 "configure"
13614 #include "confdefs.h"
13615 /* pthread test headers */
13616 #include <pthread.h>
13617 #if HAVE_PTHREADS < 7
13621 #define NULL (void*)0
13624 static void *task(p)
13627 return (void *) (p == NULL);
13632 /* pthread test function */
13633 #ifndef PTHREAD_CREATE_DETACHED
13634 #define PTHREAD_CREATE_DETACHED 1
13638 int detach = PTHREAD_CREATE_DETACHED;
13640 #if HAVE_PTHREADS > 4
13641 /* Final pthreads */
13642 pthread_attr_t attr;
13644 status = pthread_attr_init(&attr);
13645 if( status ) return status;
13647 #if HAVE_PTHREADS < 7
13648 status = pthread_attr_setdetachstate(&attr, &detach);
13649 if( status < 0 ) status = errno;
13651 status = pthread_attr_setdetachstate(&attr, detach);
13653 if( status ) return status;
13654 status = pthread_create( &t, &attr, task, NULL );
13655 #if HAVE_PTHREADS < 7
13656 if( status < 0 ) status = errno;
13658 if( status ) return status;
13660 /* Draft 4 pthreads */
13661 status = pthread_create( &t, pthread_attr_default, task, NULL );
13662 if( status ) return errno;
13664 /* give thread a chance to complete */
13665 /* it should remain joinable and hence detachable */
13668 status = pthread_detach( &t );
13669 if( status ) return errno;
13672 #ifdef HAVE_LINUX_THREADS
13673 pthread_kill_other_threads_np();
13680 if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13682 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13684 echo "configure: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13687 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13691 cat > conftest.$ac_ext <<EOF
13692 #line 13693 "configure"
13693 #include "confdefs.h"
13694 /* pthread test headers */
13695 #include <pthread.h>
13696 #if HAVE_PTHREADS < 7
13700 #define NULL (void*)0
13703 static void *task(p)
13706 return (void *) (p == NULL);
13710 int main(argc, argv)
13715 /* pthread test function */
13716 #ifndef PTHREAD_CREATE_DETACHED
13717 #define PTHREAD_CREATE_DETACHED 1
13721 int detach = PTHREAD_CREATE_DETACHED;
13723 #if HAVE_PTHREADS > 4
13724 /* Final pthreads */
13725 pthread_attr_t attr;
13727 status = pthread_attr_init(&attr);
13728 if( status ) return status;
13730 #if HAVE_PTHREADS < 7
13731 status = pthread_attr_setdetachstate(&attr, &detach);
13732 if( status < 0 ) status = errno;
13734 status = pthread_attr_setdetachstate(&attr, detach);
13736 if( status ) return status;
13737 status = pthread_create( &t, &attr, task, NULL );
13738 #if HAVE_PTHREADS < 7
13739 if( status < 0 ) status = errno;
13741 if( status ) return status;
13743 /* Draft 4 pthreads */
13744 status = pthread_create( &t, pthread_attr_default, task, NULL );
13745 if( status ) return errno;
13747 /* give thread a chance to complete */
13748 /* it should remain joinable and hence detachable */
13751 status = pthread_detach( &t );
13752 if( status ) return errno;
13755 #ifdef HAVE_LINUX_THREADS
13756 pthread_kill_other_threads_np();
13764 if { (eval echo configure:13765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13766 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13768 echo "configure: failed program was:" >&5
13769 cat conftest.$ac_ext >&5
13771 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13782 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13784 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13785 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13786 ol_link_threads=posix
13790 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13791 if test "$ol_link_threads" = no ; then
13792 # try -lpthreads -lmach -lexc
13793 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13794 echo "configure:13795: checking for pthread link with -lpthreads -lmach -lexc" >&5
13795 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13796 echo $ac_n "(cached) $ac_c" 1>&6
13801 LIBS="-lpthreads -lmach -lexc $LIBS"
13803 if test "$cross_compiling" = yes; then
13804 cat > conftest.$ac_ext <<EOF
13805 #line 13806 "configure"
13806 #include "confdefs.h"
13807 /* pthread test headers */
13808 #include <pthread.h>
13809 #if HAVE_PTHREADS < 7
13813 #define NULL (void*)0
13816 static void *task(p)
13819 return (void *) (p == NULL);
13824 /* pthread test function */
13825 #ifndef PTHREAD_CREATE_DETACHED
13826 #define PTHREAD_CREATE_DETACHED 1
13830 int detach = PTHREAD_CREATE_DETACHED;
13832 #if HAVE_PTHREADS > 4
13833 /* Final pthreads */
13834 pthread_attr_t attr;
13836 status = pthread_attr_init(&attr);
13837 if( status ) return status;
13839 #if HAVE_PTHREADS < 7
13840 status = pthread_attr_setdetachstate(&attr, &detach);
13841 if( status < 0 ) status = errno;
13843 status = pthread_attr_setdetachstate(&attr, detach);
13845 if( status ) return status;
13846 status = pthread_create( &t, &attr, task, NULL );
13847 #if HAVE_PTHREADS < 7
13848 if( status < 0 ) status = errno;
13850 if( status ) return status;
13852 /* Draft 4 pthreads */
13853 status = pthread_create( &t, pthread_attr_default, task, NULL );
13854 if( status ) return errno;
13856 /* give thread a chance to complete */
13857 /* it should remain joinable and hence detachable */
13860 status = pthread_detach( &t );
13861 if( status ) return errno;
13864 #ifdef HAVE_LINUX_THREADS
13865 pthread_kill_other_threads_np();
13872 if { (eval echo configure:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13874 ol_cv_pthread_lpthreads_lmach_lexc=yes
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13879 ol_cv_pthread_lpthreads_lmach_lexc=no
13883 cat > conftest.$ac_ext <<EOF
13884 #line 13885 "configure"
13885 #include "confdefs.h"
13886 /* pthread test headers */
13887 #include <pthread.h>
13888 #if HAVE_PTHREADS < 7
13892 #define NULL (void*)0
13895 static void *task(p)
13898 return (void *) (p == NULL);
13902 int main(argc, argv)
13907 /* pthread test function */
13908 #ifndef PTHREAD_CREATE_DETACHED
13909 #define PTHREAD_CREATE_DETACHED 1
13913 int detach = PTHREAD_CREATE_DETACHED;
13915 #if HAVE_PTHREADS > 4
13916 /* Final pthreads */
13917 pthread_attr_t attr;
13919 status = pthread_attr_init(&attr);
13920 if( status ) return status;
13922 #if HAVE_PTHREADS < 7
13923 status = pthread_attr_setdetachstate(&attr, &detach);
13924 if( status < 0 ) status = errno;
13926 status = pthread_attr_setdetachstate(&attr, detach);
13928 if( status ) return status;
13929 status = pthread_create( &t, &attr, task, NULL );
13930 #if HAVE_PTHREADS < 7
13931 if( status < 0 ) status = errno;
13933 if( status ) return status;
13935 /* Draft 4 pthreads */
13936 status = pthread_create( &t, pthread_attr_default, task, NULL );
13937 if( status ) return errno;
13939 /* give thread a chance to complete */
13940 /* it should remain joinable and hence detachable */
13943 status = pthread_detach( &t );
13944 if( status ) return errno;
13947 #ifdef HAVE_LINUX_THREADS
13948 pthread_kill_other_threads_np();
13956 if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13958 ol_cv_pthread_lpthreads_lmach_lexc=yes
13960 echo "configure: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13963 ol_cv_pthread_lpthreads_lmach_lexc=no
13974 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
13976 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13977 ol_link_pthreads="-lpthreads -lmach -lexc"
13978 ol_link_threads=posix
13982 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13983 if test "$ol_link_threads" = no ; then
13984 # try -lpthreads -lexc
13985 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
13986 echo "configure:13987: checking for pthread link with -lpthreads -lexc" >&5
13987 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
13988 echo $ac_n "(cached) $ac_c" 1>&6
13993 LIBS="-lpthreads -lexc $LIBS"
13995 if test "$cross_compiling" = yes; then
13996 cat > conftest.$ac_ext <<EOF
13997 #line 13998 "configure"
13998 #include "confdefs.h"
13999 /* pthread test headers */
14000 #include <pthread.h>
14001 #if HAVE_PTHREADS < 7
14005 #define NULL (void*)0
14008 static void *task(p)
14011 return (void *) (p == NULL);
14016 /* pthread test function */
14017 #ifndef PTHREAD_CREATE_DETACHED
14018 #define PTHREAD_CREATE_DETACHED 1
14022 int detach = PTHREAD_CREATE_DETACHED;
14024 #if HAVE_PTHREADS > 4
14025 /* Final pthreads */
14026 pthread_attr_t attr;
14028 status = pthread_attr_init(&attr);
14029 if( status ) return status;
14031 #if HAVE_PTHREADS < 7
14032 status = pthread_attr_setdetachstate(&attr, &detach);
14033 if( status < 0 ) status = errno;
14035 status = pthread_attr_setdetachstate(&attr, detach);
14037 if( status ) return status;
14038 status = pthread_create( &t, &attr, task, NULL );
14039 #if HAVE_PTHREADS < 7
14040 if( status < 0 ) status = errno;
14042 if( status ) return status;
14044 /* Draft 4 pthreads */
14045 status = pthread_create( &t, pthread_attr_default, task, NULL );
14046 if( status ) return errno;
14048 /* give thread a chance to complete */
14049 /* it should remain joinable and hence detachable */
14052 status = pthread_detach( &t );
14053 if( status ) return errno;
14056 #ifdef HAVE_LINUX_THREADS
14057 pthread_kill_other_threads_np();
14064 if { (eval echo configure:14065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14066 ol_cv_pthread_lpthreads_lexc=yes
14068 echo "configure: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14071 ol_cv_pthread_lpthreads_lexc=no
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14078 /* pthread test headers */
14079 #include <pthread.h>
14080 #if HAVE_PTHREADS < 7
14084 #define NULL (void*)0
14087 static void *task(p)
14090 return (void *) (p == NULL);
14094 int main(argc, argv)
14099 /* pthread test function */
14100 #ifndef PTHREAD_CREATE_DETACHED
14101 #define PTHREAD_CREATE_DETACHED 1
14105 int detach = PTHREAD_CREATE_DETACHED;
14107 #if HAVE_PTHREADS > 4
14108 /* Final pthreads */
14109 pthread_attr_t attr;
14111 status = pthread_attr_init(&attr);
14112 if( status ) return status;
14114 #if HAVE_PTHREADS < 7
14115 status = pthread_attr_setdetachstate(&attr, &detach);
14116 if( status < 0 ) status = errno;
14118 status = pthread_attr_setdetachstate(&attr, detach);
14120 if( status ) return status;
14121 status = pthread_create( &t, &attr, task, NULL );
14122 #if HAVE_PTHREADS < 7
14123 if( status < 0 ) status = errno;
14125 if( status ) return status;
14127 /* Draft 4 pthreads */
14128 status = pthread_create( &t, pthread_attr_default, task, NULL );
14129 if( status ) return errno;
14131 /* give thread a chance to complete */
14132 /* it should remain joinable and hence detachable */
14135 status = pthread_detach( &t );
14136 if( status ) return errno;
14139 #ifdef HAVE_LINUX_THREADS
14140 pthread_kill_other_threads_np();
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14150 ol_cv_pthread_lpthreads_lexc=yes
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14155 ol_cv_pthread_lpthreads_lexc=no
14166 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14168 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14169 ol_link_pthreads="-lpthreads -lexc"
14170 ol_link_threads=posix
14175 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14176 if test "$ol_link_threads" = no ; then
14178 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14179 echo "configure:14180: checking for pthread link with -lpthreads" >&5
14180 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14181 echo $ac_n "(cached) $ac_c" 1>&6
14186 LIBS="-lpthreads $LIBS"
14188 if test "$cross_compiling" = yes; then
14189 cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 /* pthread test headers */
14193 #include <pthread.h>
14194 #if HAVE_PTHREADS < 7
14198 #define NULL (void*)0
14201 static void *task(p)
14204 return (void *) (p == NULL);
14209 /* pthread test function */
14210 #ifndef PTHREAD_CREATE_DETACHED
14211 #define PTHREAD_CREATE_DETACHED 1
14215 int detach = PTHREAD_CREATE_DETACHED;
14217 #if HAVE_PTHREADS > 4
14218 /* Final pthreads */
14219 pthread_attr_t attr;
14221 status = pthread_attr_init(&attr);
14222 if( status ) return status;
14224 #if HAVE_PTHREADS < 7
14225 status = pthread_attr_setdetachstate(&attr, &detach);
14226 if( status < 0 ) status = errno;
14228 status = pthread_attr_setdetachstate(&attr, detach);
14230 if( status ) return status;
14231 status = pthread_create( &t, &attr, task, NULL );
14232 #if HAVE_PTHREADS < 7
14233 if( status < 0 ) status = errno;
14235 if( status ) return status;
14237 /* Draft 4 pthreads */
14238 status = pthread_create( &t, pthread_attr_default, task, NULL );
14239 if( status ) return errno;
14241 /* give thread a chance to complete */
14242 /* it should remain joinable and hence detachable */
14245 status = pthread_detach( &t );
14246 if( status ) return errno;
14249 #ifdef HAVE_LINUX_THREADS
14250 pthread_kill_other_threads_np();
14257 if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14259 ol_cv_pthread_lib_lpthreads=yes
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14264 ol_cv_pthread_lib_lpthreads=no
14268 cat > conftest.$ac_ext <<EOF
14269 #line 14270 "configure"
14270 #include "confdefs.h"
14271 /* pthread test headers */
14272 #include <pthread.h>
14273 #if HAVE_PTHREADS < 7
14277 #define NULL (void*)0
14280 static void *task(p)
14283 return (void *) (p == NULL);
14287 int main(argc, argv)
14292 /* pthread test function */
14293 #ifndef PTHREAD_CREATE_DETACHED
14294 #define PTHREAD_CREATE_DETACHED 1
14298 int detach = PTHREAD_CREATE_DETACHED;
14300 #if HAVE_PTHREADS > 4
14301 /* Final pthreads */
14302 pthread_attr_t attr;
14304 status = pthread_attr_init(&attr);
14305 if( status ) return status;
14307 #if HAVE_PTHREADS < 7
14308 status = pthread_attr_setdetachstate(&attr, &detach);
14309 if( status < 0 ) status = errno;
14311 status = pthread_attr_setdetachstate(&attr, detach);
14313 if( status ) return status;
14314 status = pthread_create( &t, &attr, task, NULL );
14315 #if HAVE_PTHREADS < 7
14316 if( status < 0 ) status = errno;
14318 if( status ) return status;
14320 /* Draft 4 pthreads */
14321 status = pthread_create( &t, pthread_attr_default, task, NULL );
14322 if( status ) return errno;
14324 /* give thread a chance to complete */
14325 /* it should remain joinable and hence detachable */
14328 status = pthread_detach( &t );
14329 if( status ) return errno;
14332 #ifdef HAVE_LINUX_THREADS
14333 pthread_kill_other_threads_np();
14341 if { (eval echo configure:14342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14343 ol_cv_pthread_lib_lpthreads=yes
14345 echo "configure: failed program was:" >&5
14346 cat conftest.$ac_ext >&5
14348 ol_cv_pthread_lib_lpthreads=no
14359 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14361 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14362 ol_link_pthreads="-lpthreads"
14363 ol_link_threads=posix
14368 if test $ol_link_threads != no ; then
14369 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14371 save_CPPFLAGS="$CPPFLAGS"
14373 LIBS="$LTHREAD_LIBS $LIBS"
14375 for ac_func in sched_yield pthread_yield thr_yield
14377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14378 echo "configure:14379: checking for $ac_func" >&5
14379 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14380 echo $ac_n "(cached) $ac_c" 1>&6
14382 cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14385 /* System header to define __stub macros and hopefully few prototypes,
14386 which can conflict with char $ac_func(); below. */
14387 #include <assert.h>
14388 /* Override any gcc2 internal prototype to avoid an error. */
14389 /* We use char because int might match the return type of a gcc2
14390 builtin and then its argument prototype would still apply. */
14396 /* The GNU C library defines this for functions which it implements
14397 to always fail with ENOSYS. Some functions are actually named
14398 something starting with __ and the normal name is an alias. */
14399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14409 eval "ac_cv_func_$ac_func=yes"
14411 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14414 eval "ac_cv_func_$ac_func=no"
14419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14420 echo "$ac_t""yes" 1>&6
14421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14422 cat >> confdefs.h <<EOF
14423 #define $ac_tr_func 1
14427 echo "$ac_t""no" 1>&6
14432 if test $ac_cv_func_sched_yield = no -a \
14433 $ac_cv_func_pthread_yield = no -a \
14434 $ac_cv_func_thr_yield = no ; then
14435 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14436 echo "configure:14437: checking for sched_yield in -lrt" >&5
14437 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14438 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14439 echo $ac_n "(cached) $ac_c" 1>&6
14441 ac_save_LIBS="$LIBS"
14443 cat > conftest.$ac_ext <<EOF
14444 #line 14445 "configure"
14445 #include "confdefs.h"
14446 /* Override any gcc2 internal prototype to avoid an error. */
14447 /* We use char because int might match the return type of a gcc2
14448 builtin and then its argument prototype would still apply. */
14449 char sched_yield();
14455 if { (eval echo configure:14456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14457 eval "ac_cv_lib_$ac_lib_var=yes"
14459 echo "configure: failed program was:" >&5
14460 cat conftest.$ac_ext >&5
14462 eval "ac_cv_lib_$ac_lib_var=no"
14465 LIBS="$ac_save_LIBS"
14468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14469 echo "$ac_t""yes" 1>&6
14470 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14471 cat >> confdefs.h <<\EOF
14472 #define HAVE_SCHED_YIELD 1
14475 ac_cv_func_sched_yield=yes
14477 echo "$ac_t""no" 1>&6
14478 ac_cv_func_sched_yield=no
14482 if test $ac_cv_func_sched_yield = no -a \
14483 $ac_cv_func_pthread_yield = no -a \
14484 "$ac_cv_func_thr_yield" = no ; then
14485 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14488 for ac_func in pthread_kill pthread_rwlock_destroy
14490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14491 echo "configure:14492: checking for $ac_func" >&5
14492 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14493 echo $ac_n "(cached) $ac_c" 1>&6
14495 cat > conftest.$ac_ext <<EOF
14496 #line 14497 "configure"
14497 #include "confdefs.h"
14498 /* System header to define __stub macros and hopefully few prototypes,
14499 which can conflict with char $ac_func(); below. */
14500 #include <assert.h>
14501 /* Override any gcc2 internal prototype to avoid an error. */
14502 /* We use char because int might match the return type of a gcc2
14503 builtin and then its argument prototype would still apply. */
14509 /* The GNU C library defines this for functions which it implements
14510 to always fail with ENOSYS. Some functions are actually named
14511 something starting with __ and the normal name is an alias. */
14512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14520 if { (eval echo configure:14521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14522 eval "ac_cv_func_$ac_func=yes"
14524 echo "configure: failed program was:" >&5
14525 cat conftest.$ac_ext >&5
14527 eval "ac_cv_func_$ac_func=no"
14532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14533 echo "$ac_t""yes" 1>&6
14534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14535 cat >> confdefs.h <<EOF
14536 #define $ac_tr_func 1
14540 echo "$ac_t""no" 1>&6
14545 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14546 echo "configure:14547: checking for pthread_detach with <pthread.h>" >&5
14547 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14548 echo $ac_n "(cached) $ac_c" 1>&6
14551 cat > conftest.$ac_ext <<EOF
14552 #line 14553 "configure"
14553 #include "confdefs.h"
14555 #include <pthread.h>
14557 #define NULL (void*)0
14561 pthread_detach(NULL);
14564 if { (eval echo configure:14565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14566 ol_cv_func_pthread_detach=yes
14568 echo "configure: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14571 ol_cv_func_pthread_detach=no
14577 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14579 if test $ol_cv_func_pthread_detach = no ; then
14580 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14583 cat >> confdefs.h <<\EOF
14584 #define HAVE_PTHREAD_DETACH 1
14589 pthread_setconcurrency \
14590 pthread_getconcurrency \
14591 thr_setconcurrency \
14592 thr_getconcurrency \
14595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14596 echo "configure:14597: checking for $ac_func" >&5
14597 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
14600 cat > conftest.$ac_ext <<EOF
14601 #line 14602 "configure"
14602 #include "confdefs.h"
14603 /* System header to define __stub macros and hopefully few prototypes,
14604 which can conflict with char $ac_func(); below. */
14605 #include <assert.h>
14606 /* Override any gcc2 internal prototype to avoid an error. */
14607 /* We use char because int might match the return type of a gcc2
14608 builtin and then its argument prototype would still apply. */
14614 /* The GNU C library defines this for functions which it implements
14615 to always fail with ENOSYS. Some functions are actually named
14616 something starting with __ and the normal name is an alias. */
14617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14625 if { (eval echo configure:14626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14627 eval "ac_cv_func_$ac_func=yes"
14629 echo "configure: failed program was:" >&5
14630 cat conftest.$ac_ext >&5
14632 eval "ac_cv_func_$ac_func=no"
14637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14638 echo "$ac_t""yes" 1>&6
14639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14640 cat >> confdefs.h <<EOF
14641 #define $ac_tr_func 1
14645 echo "$ac_t""no" 1>&6
14651 for ac_func in pthread_kill_other_threads_np
14653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14654 echo "configure:14655: checking for $ac_func" >&5
14655 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14656 echo $ac_n "(cached) $ac_c" 1>&6
14658 cat > conftest.$ac_ext <<EOF
14659 #line 14660 "configure"
14660 #include "confdefs.h"
14661 /* System header to define __stub macros and hopefully few prototypes,
14662 which can conflict with char $ac_func(); below. */
14663 #include <assert.h>
14664 /* Override any gcc2 internal prototype to avoid an error. */
14665 /* We use char because int might match the return type of a gcc2
14666 builtin and then its argument prototype would still apply. */
14672 /* The GNU C library defines this for functions which it implements
14673 to always fail with ENOSYS. Some functions are actually named
14674 something starting with __ and the normal name is an alias. */
14675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14683 if { (eval echo configure:14684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14685 eval "ac_cv_func_$ac_func=yes"
14687 echo "configure: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14690 eval "ac_cv_func_$ac_func=no"
14695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14696 echo "$ac_t""yes" 1>&6
14697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14698 cat >> confdefs.h <<EOF
14699 #define $ac_tr_func 1
14703 echo "$ac_t""no" 1>&6
14707 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14708 echo "configure:14709: checking for LinuxThreads implementation" >&5
14709 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14710 echo $ac_n "(cached) $ac_c" 1>&6
14712 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14715 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14720 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14721 echo "configure:14722: checking for LinuxThreads consistency" >&5
14722 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14723 echo $ac_n "(cached) $ac_c" 1>&6
14726 if test $ol_cv_header_linux_threads = yes -a \
14727 $ol_cv_sys_linux_threads = yes; then
14728 ol_cv_linux_threads=yes
14729 elif test $ol_cv_header_linux_threads = no -a \
14730 $ol_cv_sys_linux_threads = no; then
14731 ol_cv_linux_threads=no
14733 ol_cv_linux_threads=error
14738 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14741 if test $ol_cv_linux_threads = error; then
14742 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14745 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14746 echo "configure:14747: checking if pthread_create() works" >&5
14747 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14748 echo $ac_n "(cached) $ac_c" 1>&6
14751 if test "$cross_compiling" = yes; then
14752 ol_cv_pthread_create_works=yes
14754 cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 /* pthread test headers */
14758 #include <pthread.h>
14759 #if HAVE_PTHREADS < 7
14763 #define NULL (void*)0
14766 static void *task(p)
14769 return (void *) (p == NULL);
14773 int main(argc, argv)
14778 /* pthread test function */
14779 #ifndef PTHREAD_CREATE_DETACHED
14780 #define PTHREAD_CREATE_DETACHED 1
14784 int detach = PTHREAD_CREATE_DETACHED;
14786 #if HAVE_PTHREADS > 4
14787 /* Final pthreads */
14788 pthread_attr_t attr;
14790 status = pthread_attr_init(&attr);
14791 if( status ) return status;
14793 #if HAVE_PTHREADS < 7
14794 status = pthread_attr_setdetachstate(&attr, &detach);
14795 if( status < 0 ) status = errno;
14797 status = pthread_attr_setdetachstate(&attr, detach);
14799 if( status ) return status;
14800 status = pthread_create( &t, &attr, task, NULL );
14801 #if HAVE_PTHREADS < 7
14802 if( status < 0 ) status = errno;
14804 if( status ) return status;
14806 /* Draft 4 pthreads */
14807 status = pthread_create( &t, pthread_attr_default, task, NULL );
14808 if( status ) return errno;
14810 /* give thread a chance to complete */
14811 /* it should remain joinable and hence detachable */
14814 status = pthread_detach( &t );
14815 if( status ) return errno;
14818 #ifdef HAVE_LINUX_THREADS
14819 pthread_kill_other_threads_np();
14827 if { (eval echo configure:14828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14829 ol_cv_pthread_create_works=yes
14831 echo "configure: failed program was:" >&5
14832 cat conftest.$ac_ext >&5
14834 ol_cv_pthread_create_works=no
14841 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14843 if test $ol_cv_pthread_create_works = no ; then
14844 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
14847 if test $ol_with_yielding_select = auto ; then
14848 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
14849 echo "configure:14850: checking if select yields when using pthreads" >&5
14850 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
14851 echo $ac_n "(cached) $ac_c" 1>&6
14854 if test "$cross_compiling" = yes; then
14855 ol_cv_pthread_select_yields=cross
14857 cat > conftest.$ac_ext <<EOF
14858 #line 14859 "configure"
14859 #include "confdefs.h"
14861 #include <sys/types.h>
14862 #include <sys/time.h>
14863 #include <unistd.h>
14864 #include <pthread.h>
14866 #define NULL (void*) 0
14869 static int fildes[2];
14871 static void *task(p)
14883 FD_SET(fildes[0], &rfds);
14885 /* we're not interested in any fds */
14886 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14893 exit(0); /* if we exit here, the select blocked the whole process */
14896 int main(argc, argv)
14902 /* create a pipe to select */
14903 if(pipe(&fildes[0])) {
14908 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14909 (void) pthread_setconcurrency(2);
14911 #ifdef HAVE_THR_SETCONCURRENCY
14912 /* Set Solaris LWP concurrency to 2 */
14913 thr_setconcurrency(2);
14917 #if HAVE_PTHREADS < 6
14918 pthread_create(&t, pthread_attr_default, task, NULL);
14920 pthread_create(&t, NULL, task, NULL);
14923 /* make sure task runs first */
14926 #elif defined( HAVE_SCHED_YIELD )
14928 #elif defined( HAVE_PTHREAD_YIELD )
14935 if { (eval echo configure:14936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14937 ol_cv_pthread_select_yields=no
14939 echo "configure: failed program was:" >&5
14940 cat conftest.$ac_ext >&5
14942 ol_cv_pthread_select_yields=yes
14949 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
14951 if test $ol_cv_pthread_select_yields = cross ; then
14952 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
14955 if test $ol_cv_pthread_select_yields = yes ; then
14956 ol_with_yielding_select=yes
14960 CPPFLAGS="$save_CPPFLAGS"
14963 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
14967 if test $ol_with_threads = posix ; then
14968 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
14972 if test $ol_with_threads = auto -o $ol_with_threads = yes \
14973 -o $ol_with_threads = mach ; then
14975 for ac_hdr in mach/cthreads.h cthreads.h
14977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14979 echo "configure:14980: checking for $ac_hdr" >&5
14980 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14981 echo $ac_n "(cached) $ac_c" 1>&6
14983 cat > conftest.$ac_ext <<EOF
14984 #line 14985 "configure"
14985 #include "confdefs.h"
14988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14989 { (eval echo configure:14990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14991 if test -z "$ac_err"; then
14993 eval "ac_cv_header_$ac_safe=yes"
14996 echo "configure: failed program was:" >&5
14997 cat conftest.$ac_ext >&5
14999 eval "ac_cv_header_$ac_safe=no"
15003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15004 echo "$ac_t""yes" 1>&6
15005 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15006 cat >> confdefs.h <<EOF
15007 #define $ac_tr_hdr 1
15011 echo "$ac_t""no" 1>&6
15015 if test $ac_cv_header_mach_cthreads_h = yes ; then
15016 ol_with_threads=found
15018 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15019 echo "configure:15020: checking for cthread_fork" >&5
15020 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15021 echo $ac_n "(cached) $ac_c" 1>&6
15023 cat > conftest.$ac_ext <<EOF
15024 #line 15025 "configure"
15025 #include "confdefs.h"
15026 /* System header to define __stub macros and hopefully few prototypes,
15027 which can conflict with char cthread_fork(); below. */
15028 #include <assert.h>
15029 /* Override any gcc2 internal prototype to avoid an error. */
15030 /* We use char because int might match the return type of a gcc2
15031 builtin and then its argument prototype would still apply. */
15032 char cthread_fork();
15037 /* The GNU C library defines this for functions which it implements
15038 to always fail with ENOSYS. Some functions are actually named
15039 something starting with __ and the normal name is an alias. */
15040 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15048 if { (eval echo configure:15049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15050 eval "ac_cv_func_cthread_fork=yes"
15052 echo "configure: failed program was:" >&5
15053 cat conftest.$ac_ext >&5
15055 eval "ac_cv_func_cthread_fork=no"
15060 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15061 echo "$ac_t""yes" 1>&6
15062 ol_link_threads=yes
15064 echo "$ac_t""no" 1>&6
15068 if test $ol_link_threads = no ; then
15069 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15070 echo "configure:15071: checking for cthread_fork with -all_load" >&5
15071 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15072 echo $ac_n "(cached) $ac_c" 1>&6
15076 LIBS="-all_load $LIBS"
15077 cat > conftest.$ac_ext <<EOF
15078 #line 15079 "configure"
15079 #include "confdefs.h"
15080 #include <mach/cthreads.h>
15083 cthread_fork((void *)0, (void *)0);
15087 if { (eval echo configure:15088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15089 ol_cv_cthread_all_load=yes
15091 echo "configure: failed program was:" >&5
15092 cat conftest.$ac_ext >&5
15094 ol_cv_cthread_all_load=no
15101 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15103 if test $ol_cv_cthread_all_load = yes ; then
15104 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15105 ol_link_threads=mach
15106 ol_with_threads=found
15110 elif test $ac_cv_header_cthreads_h = yes ; then
15112 ol_with_threads=found
15115 LIBS="$LIBS -lthreads"
15116 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15117 echo "configure:15118: checking for cthread_fork" >&5
15118 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15119 echo $ac_n "(cached) $ac_c" 1>&6
15121 cat > conftest.$ac_ext <<EOF
15122 #line 15123 "configure"
15123 #include "confdefs.h"
15124 /* System header to define __stub macros and hopefully few prototypes,
15125 which can conflict with char cthread_fork(); below. */
15126 #include <assert.h>
15127 /* Override any gcc2 internal prototype to avoid an error. */
15128 /* We use char because int might match the return type of a gcc2
15129 builtin and then its argument prototype would still apply. */
15130 char cthread_fork();
15135 /* The GNU C library defines this for functions which it implements
15136 to always fail with ENOSYS. Some functions are actually named
15137 something starting with __ and the normal name is an alias. */
15138 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15146 if { (eval echo configure:15147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15148 eval "ac_cv_func_cthread_fork=yes"
15150 echo "configure: failed program was:" >&5
15151 cat conftest.$ac_ext >&5
15153 eval "ac_cv_func_cthread_fork=no"
15158 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15159 echo "$ac_t""yes" 1>&6
15160 ol_link_threads=yes
15162 echo "$ac_t""no" 1>&6
15167 if test $ol_link_threads = yes ; then
15168 LTHREAD_LIBS="-lthreads"
15169 ol_link_threads=mach
15170 ol_with_threads=found
15172 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15175 elif test $ol_with_threads = mach ; then
15176 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15179 if test $ol_link_threads = mach ; then
15180 cat >> confdefs.h <<\EOF
15181 #define HAVE_MACH_CTHREADS 1
15184 elif test $ol_with_threads = found ; then
15185 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15189 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15190 -o $ol_with_threads = pth ; then
15192 for ac_hdr in pth.h
15194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15196 echo "configure:15197: checking for $ac_hdr" >&5
15197 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15198 echo $ac_n "(cached) $ac_c" 1>&6
15200 cat > conftest.$ac_ext <<EOF
15201 #line 15202 "configure"
15202 #include "confdefs.h"
15205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15206 { (eval echo configure:15207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15208 if test -z "$ac_err"; then
15210 eval "ac_cv_header_$ac_safe=yes"
15213 echo "configure: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
15216 eval "ac_cv_header_$ac_safe=no"
15220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15221 echo "$ac_t""yes" 1>&6
15222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15223 cat >> confdefs.h <<EOF
15224 #define $ac_tr_hdr 1
15228 echo "$ac_t""no" 1>&6
15233 if test $ac_cv_header_pth_h = yes ; then
15234 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15235 echo "configure:15236: checking for pth_version in -lpth" >&5
15236 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15237 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15238 echo $ac_n "(cached) $ac_c" 1>&6
15240 ac_save_LIBS="$LIBS"
15242 cat > conftest.$ac_ext <<EOF
15243 #line 15244 "configure"
15244 #include "confdefs.h"
15245 /* Override any gcc2 internal prototype to avoid an error. */
15246 /* We use char because int might match the return type of a gcc2
15247 builtin and then its argument prototype would still apply. */
15248 char pth_version();
15254 if { (eval echo configure:15255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15256 eval "ac_cv_lib_$ac_lib_var=yes"
15258 echo "configure: failed program was:" >&5
15259 cat conftest.$ac_ext >&5
15261 eval "ac_cv_lib_$ac_lib_var=no"
15264 LIBS="$ac_save_LIBS"
15267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15268 echo "$ac_t""yes" 1>&6
15271 echo "$ac_t""no" 1>&6
15276 if test $have_pth = yes ; then
15277 cat >> confdefs.h <<\EOF
15278 #define HAVE_GNU_PTH 1
15281 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15282 ol_link_threads=pth
15283 ol_with_threads=found
15285 if test $ol_with_yielding_select = auto ; then
15286 ol_with_yielding_select=yes
15292 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15293 -o $ol_with_threads = lwp ; then
15295 for ac_hdr in thread.h synch.h
15297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15299 echo "configure:15300: checking for $ac_hdr" >&5
15300 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15301 echo $ac_n "(cached) $ac_c" 1>&6
15303 cat > conftest.$ac_ext <<EOF
15304 #line 15305 "configure"
15305 #include "confdefs.h"
15308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15309 { (eval echo configure:15310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15311 if test -z "$ac_err"; then
15313 eval "ac_cv_header_$ac_safe=yes"
15316 echo "configure: failed program was:" >&5
15317 cat conftest.$ac_ext >&5
15319 eval "ac_cv_header_$ac_safe=no"
15323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15324 echo "$ac_t""yes" 1>&6
15325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15326 cat >> confdefs.h <<EOF
15327 #define $ac_tr_hdr 1
15331 echo "$ac_t""no" 1>&6
15335 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15336 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15337 echo "configure:15338: checking for thr_create in -lthread" >&5
15338 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15339 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15340 echo $ac_n "(cached) $ac_c" 1>&6
15342 ac_save_LIBS="$LIBS"
15343 LIBS="-lthread $LIBS"
15344 cat > conftest.$ac_ext <<EOF
15345 #line 15346 "configure"
15346 #include "confdefs.h"
15347 /* Override any gcc2 internal prototype to avoid an error. */
15348 /* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15356 if { (eval echo configure:15357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15358 eval "ac_cv_lib_$ac_lib_var=yes"
15360 echo "configure: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15363 eval "ac_cv_lib_$ac_lib_var=no"
15366 LIBS="$ac_save_LIBS"
15369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15370 echo "$ac_t""yes" 1>&6
15373 echo "$ac_t""no" 1>&6
15378 if test $have_thr = yes ; then
15379 cat >> confdefs.h <<\EOF
15383 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15384 ol_link_threads=thr
15386 if test $ol_with_yielding_select = auto ; then
15387 ol_with_yielding_select=yes
15391 thr_setconcurrency \
15392 thr_getconcurrency \
15395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15396 echo "configure:15397: checking for $ac_func" >&5
15397 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15398 echo $ac_n "(cached) $ac_c" 1>&6
15400 cat > conftest.$ac_ext <<EOF
15401 #line 15402 "configure"
15402 #include "confdefs.h"
15403 /* System header to define __stub macros and hopefully few prototypes,
15404 which can conflict with char $ac_func(); below. */
15405 #include <assert.h>
15406 /* Override any gcc2 internal prototype to avoid an error. */
15407 /* We use char because int might match the return type of a gcc2
15408 builtin and then its argument prototype would still apply. */
15414 /* The GNU C library defines this for functions which it implements
15415 to always fail with ENOSYS. Some functions are actually named
15416 something starting with __ and the normal name is an alias. */
15417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15425 if { (eval echo configure:15426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15427 eval "ac_cv_func_$ac_func=yes"
15429 echo "configure: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15432 eval "ac_cv_func_$ac_func=no"
15437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15438 echo "$ac_t""yes" 1>&6
15439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15440 cat >> confdefs.h <<EOF
15441 #define $ac_tr_func 1
15445 echo "$ac_t""no" 1>&6
15452 for ac_hdr in lwp/lwp.h
15454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15456 echo "configure:15457: checking for $ac_hdr" >&5
15457 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15458 echo $ac_n "(cached) $ac_c" 1>&6
15460 cat > conftest.$ac_ext <<EOF
15461 #line 15462 "configure"
15462 #include "confdefs.h"
15465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15466 { (eval echo configure:15467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15468 if test -z "$ac_err"; then
15470 eval "ac_cv_header_$ac_safe=yes"
15473 echo "configure: failed program was:" >&5
15474 cat conftest.$ac_ext >&5
15476 eval "ac_cv_header_$ac_safe=no"
15480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15481 echo "$ac_t""yes" 1>&6
15482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15483 cat >> confdefs.h <<EOF
15484 #define $ac_tr_hdr 1
15488 echo "$ac_t""no" 1>&6
15492 if test $ac_cv_header_lwp_lwp_h = yes ; then
15493 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15494 echo "configure:15495: checking for lwp_create in -llwp" >&5
15495 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15496 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15497 echo $ac_n "(cached) $ac_c" 1>&6
15499 ac_save_LIBS="$LIBS"
15501 cat > conftest.$ac_ext <<EOF
15502 #line 15503 "configure"
15503 #include "confdefs.h"
15504 /* Override any gcc2 internal prototype to avoid an error. */
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15513 if { (eval echo configure:15514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15515 eval "ac_cv_lib_$ac_lib_var=yes"
15517 echo "configure: failed program was:" >&5
15518 cat conftest.$ac_ext >&5
15520 eval "ac_cv_lib_$ac_lib_var=no"
15523 LIBS="$ac_save_LIBS"
15526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15527 echo "$ac_t""yes" 1>&6
15530 echo "$ac_t""no" 1>&6
15535 if test $have_lwp = yes ; then
15536 cat >> confdefs.h <<\EOF
15540 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15541 ol_link_threads=lwp
15543 if test $ol_with_yielding_select = auto ; then
15544 ol_with_yielding_select=no
15550 if test $ol_with_yielding_select = yes ; then
15551 cat >> confdefs.h <<\EOF
15552 #define HAVE_YIELDING_SELECT 1
15557 if test $ol_with_threads = manual ; then
15558 ol_link_threads=yes
15560 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15562 for ac_hdr in pthread.h sched.h
15564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15566 echo "configure:15567: checking for $ac_hdr" >&5
15567 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15568 echo $ac_n "(cached) $ac_c" 1>&6
15570 cat > conftest.$ac_ext <<EOF
15571 #line 15572 "configure"
15572 #include "confdefs.h"
15575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15576 { (eval echo configure:15577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15578 if test -z "$ac_err"; then
15580 eval "ac_cv_header_$ac_safe=yes"
15583 echo "configure: failed program was:" >&5
15584 cat conftest.$ac_ext >&5
15586 eval "ac_cv_header_$ac_safe=no"
15590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15591 echo "$ac_t""yes" 1>&6
15592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15593 cat >> confdefs.h <<EOF
15594 #define $ac_tr_hdr 1
15598 echo "$ac_t""no" 1>&6
15602 for ac_func in sched_yield pthread_yield
15604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15605 echo "configure:15606: checking for $ac_func" >&5
15606 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15607 echo $ac_n "(cached) $ac_c" 1>&6
15609 cat > conftest.$ac_ext <<EOF
15610 #line 15611 "configure"
15611 #include "confdefs.h"
15612 /* System header to define __stub macros and hopefully few prototypes,
15613 which can conflict with char $ac_func(); below. */
15614 #include <assert.h>
15615 /* Override any gcc2 internal prototype to avoid an error. */
15616 /* We use char because int might match the return type of a gcc2
15617 builtin and then its argument prototype would still apply. */
15623 /* The GNU C library defines this for functions which it implements
15624 to always fail with ENOSYS. Some functions are actually named
15625 something starting with __ and the normal name is an alias. */
15626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15634 if { (eval echo configure:15635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15636 eval "ac_cv_func_$ac_func=yes"
15638 echo "configure: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15641 eval "ac_cv_func_$ac_func=no"
15646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15647 echo "$ac_t""yes" 1>&6
15648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15649 cat >> confdefs.h <<EOF
15650 #define $ac_tr_func 1
15654 echo "$ac_t""no" 1>&6
15659 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15660 echo "configure:15661: checking for LinuxThreads pthread.h" >&5
15661 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15662 echo $ac_n "(cached) $ac_c" 1>&6
15664 cat > conftest.$ac_ext <<EOF
15665 #line 15666 "configure"
15666 #include "confdefs.h"
15667 #include <pthread.h>
15669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15670 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15672 ol_cv_header_linux_threads=yes
15675 ol_cv_header_linux_threads=no
15682 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15683 if test $ol_cv_header_linux_threads = yes; then
15684 cat >> confdefs.h <<\EOF
15685 #define HAVE_LINUX_THREADS 1
15691 for ac_hdr in mach/cthreads.h
15693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15695 echo "configure:15696: checking for $ac_hdr" >&5
15696 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15705 { (eval echo configure:15706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15707 if test -z "$ac_err"; then
15709 eval "ac_cv_header_$ac_safe=yes"
15712 echo "configure: failed program was:" >&5
15713 cat conftest.$ac_ext >&5
15715 eval "ac_cv_header_$ac_safe=no"
15719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15720 echo "$ac_t""yes" 1>&6
15721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15722 cat >> confdefs.h <<EOF
15723 #define $ac_tr_hdr 1
15727 echo "$ac_t""no" 1>&6
15731 for ac_hdr in lwp/lwp.h
15733 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15735 echo "configure:15736: checking for $ac_hdr" >&5
15736 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15737 echo $ac_n "(cached) $ac_c" 1>&6
15739 cat > conftest.$ac_ext <<EOF
15740 #line 15741 "configure"
15741 #include "confdefs.h"
15744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15745 { (eval echo configure:15746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15747 if test -z "$ac_err"; then
15749 eval "ac_cv_header_$ac_safe=yes"
15752 echo "configure: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15755 eval "ac_cv_header_$ac_safe=no"
15759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15760 echo "$ac_t""yes" 1>&6
15761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15762 cat >> confdefs.h <<EOF
15763 #define $ac_tr_hdr 1
15767 echo "$ac_t""no" 1>&6
15771 for ac_hdr in thread.h synch.h
15773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15775 echo "configure:15776: checking for $ac_hdr" >&5
15776 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15777 echo $ac_n "(cached) $ac_c" 1>&6
15779 cat > conftest.$ac_ext <<EOF
15780 #line 15781 "configure"
15781 #include "confdefs.h"
15784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15785 { (eval echo configure:15786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15787 if test -z "$ac_err"; then
15789 eval "ac_cv_header_$ac_safe=yes"
15792 echo "configure: failed program was:" >&5
15793 cat conftest.$ac_ext >&5
15795 eval "ac_cv_header_$ac_safe=no"
15799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15800 echo "$ac_t""yes" 1>&6
15801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15802 cat >> confdefs.h <<EOF
15803 #define $ac_tr_hdr 1
15807 echo "$ac_t""no" 1>&6
15813 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15814 cat >> confdefs.h <<\EOF
15815 #define REENTRANT 1
15818 cat >> confdefs.h <<\EOF
15819 #define _REENTRANT 1
15822 cat >> confdefs.h <<\EOF
15823 #define THREAD_SAFE 1
15826 cat >> confdefs.h <<\EOF
15827 #define _THREAD_SAFE 1
15830 cat >> confdefs.h <<\EOF
15831 #define THREADSAFE 1
15834 cat >> confdefs.h <<\EOF
15835 #define _THREADSAFE 1
15838 cat >> confdefs.h <<\EOF
15839 #define _SGI_MP_SOURCE 1
15843 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15844 echo "configure:15845: checking for thread specific errno" >&5
15845 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15846 echo $ac_n "(cached) $ac_c" 1>&6
15849 cat > conftest.$ac_ext <<EOF
15850 #line 15851 "configure"
15851 #include "confdefs.h"
15857 if { (eval echo configure:15858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15859 ol_cv_errno_thread_specific=yes
15861 echo "configure: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15864 ol_cv_errno_thread_specific=no
15870 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
15872 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
15873 echo "configure:15874: checking for thread specific h_errno" >&5
15874 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
15875 echo $ac_n "(cached) $ac_c" 1>&6
15878 cat > conftest.$ac_ext <<EOF
15879 #line 15880 "configure"
15880 #include "confdefs.h"
15886 if { (eval echo configure:15887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15888 ol_cv_h_errno_thread_specific=yes
15890 echo "configure: failed program was:" >&5
15891 cat conftest.$ac_ext >&5
15893 ol_cv_h_errno_thread_specific=no
15899 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
15901 if test $ol_cv_errno_thread_specific != yes \
15902 -o $ol_cv_h_errno_thread_specific != yes ; then
15903 LIBS="$LTHREAD_LIBS $LIBS"
15909 if test $ol_link_threads = no ; then
15910 if test $ol_with_threads = yes ; then
15911 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
15914 if test $ol_with_threads = auto ; then
15915 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
15919 cat >> confdefs.h <<\EOF
15920 #define NO_THREADS 1
15926 if test $ol_link_threads != no ; then
15927 cat >> confdefs.h <<\EOF
15928 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
15935 gethostbyname_r gethostbyaddr_r \
15938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15939 echo "configure:15940: checking for $ac_func" >&5
15940 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15941 echo $ac_n "(cached) $ac_c" 1>&6
15943 cat > conftest.$ac_ext <<EOF
15944 #line 15945 "configure"
15945 #include "confdefs.h"
15946 /* System header to define __stub macros and hopefully few prototypes,
15947 which can conflict with char $ac_func(); below. */
15948 #include <assert.h>
15949 /* Override any gcc2 internal prototype to avoid an error. */
15950 /* We use char because int might match the return type of a gcc2
15951 builtin and then its argument prototype would still apply. */
15957 /* The GNU C library defines this for functions which it implements
15958 to always fail with ENOSYS. Some functions are actually named
15959 something starting with __ and the normal name is an alias. */
15960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15968 if { (eval echo configure:15969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15970 eval "ac_cv_func_$ac_func=yes"
15972 echo "configure: failed program was:" >&5
15973 cat conftest.$ac_ext >&5
15975 eval "ac_cv_func_$ac_func=no"
15980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15981 echo "$ac_t""yes" 1>&6
15982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15983 cat >> confdefs.h <<EOF
15984 #define $ac_tr_func 1
15988 echo "$ac_t""no" 1>&6
15993 if test "$ac_cv_func_ctime_r" = no ; then
15994 ol_cv_func_ctime_r_nargs=0
15996 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
15997 echo "configure:15998: checking number of arguments of ctime_r" >&5
15998 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
15999 echo $ac_n "(cached) $ac_c" 1>&6
16001 cat > conftest.$ac_ext <<EOF
16002 #line 16003 "configure"
16003 #include "confdefs.h"
16006 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16009 if { (eval echo configure:16010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16011 ol_cv_func_ctime_r_nargs3=yes
16013 echo "configure: failed program was:" >&5
16014 cat conftest.$ac_ext >&5
16016 ol_cv_func_ctime_r_nargs3=no
16020 cat > conftest.$ac_ext <<EOF
16021 #line 16022 "configure"
16022 #include "confdefs.h"
16025 time_t ti; char *buffer; ctime_r(&ti,buffer);
16028 if { (eval echo configure:16029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16030 ol_cv_func_ctime_r_nargs2=yes
16032 echo "configure: failed program was:" >&5
16033 cat conftest.$ac_ext >&5
16035 ol_cv_func_ctime_r_nargs2=no
16039 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16040 $ol_cv_func_ctime_r_nargs2 = no ; then
16042 ol_cv_func_ctime_r_nargs=3
16044 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16045 $ol_cv_func_ctime_r_nargs2 = yes ; then
16047 ol_cv_func_ctime_r_nargs=2
16050 ol_cv_func_ctime_r_nargs=0
16055 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16057 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16058 cat >> confdefs.h <<EOF
16059 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16066 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16067 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16068 echo "configure:16069: checking number of arguments of gethostbyname_r" >&5
16069 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16070 echo $ac_n "(cached) $ac_c" 1>&6
16072 cat > conftest.$ac_ext <<EOF
16073 #line 16074 "configure"
16074 #include "confdefs.h"
16075 #include <sys/types.h>
16076 #include <sys/socket.h>
16077 #include <netinet/in.h>
16079 #define BUFSIZE (sizeof(struct hostent)+10)
16081 struct hostent hent; char buffer[BUFSIZE];
16082 int bufsize=BUFSIZE;int h_errno;
16083 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16084 buffer, bufsize, &h_errno);
16087 if { (eval echo configure:16088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16089 ol_cv_func_gethostbyname_r_nargs5=yes
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16094 ol_cv_func_gethostbyname_r_nargs5=no
16098 cat > conftest.$ac_ext <<EOF
16099 #line 16100 "configure"
16100 #include "confdefs.h"
16101 #include <sys/types.h>
16102 #include <sys/socket.h>
16103 #include <netinet/in.h>
16105 #define BUFSIZE (sizeof(struct hostent)+10)
16107 struct hostent hent;struct hostent *rhent;
16108 char buffer[BUFSIZE];
16109 int bufsize=BUFSIZE;int h_errno;
16110 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16114 if { (eval echo configure:16115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16116 ol_cv_func_gethostbyname_r_nargs6=yes
16118 echo "configure: failed program was:" >&5
16119 cat conftest.$ac_ext >&5
16121 ol_cv_func_gethostbyname_r_nargs6=no
16125 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16126 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16128 ol_cv_func_gethostbyname_r_nargs=5
16130 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16131 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16133 ol_cv_func_gethostbyname_r_nargs=6
16136 ol_cv_func_gethostbyname_r_nargs=0
16141 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16142 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16143 cat >> confdefs.h <<EOF
16144 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16150 ol_cv_func_gethostbyname_r_nargs=0
16153 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16154 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16155 echo "configure:16156: checking number of arguments of gethostbyaddr_r" >&5
16156 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16157 echo $ac_n "(cached) $ac_c" 1>&6
16159 cat > conftest.$ac_ext <<EOF
16160 #line 16161 "configure"
16161 #include "confdefs.h"
16162 #include <sys/types.h>
16163 #include <sys/socket.h>
16164 #include <netinet/in.h>
16166 #define BUFSIZE (sizeof(struct hostent)+10)
16168 struct hostent hent; char buffer[BUFSIZE];
16169 struct in_addr add;
16170 size_t alen=sizeof(struct in_addr);
16171 int bufsize=BUFSIZE;int h_errno;
16172 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16173 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16176 if { (eval echo configure:16177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16178 ol_cv_func_gethostbyaddr_r_nargs7=yes
16180 echo "configure: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16183 ol_cv_func_gethostbyaddr_r_nargs7=no
16187 cat > conftest.$ac_ext <<EOF
16188 #line 16189 "configure"
16189 #include "confdefs.h"
16190 #include <sys/types.h>
16191 #include <sys/socket.h>
16192 #include <netinet/in.h>
16194 #define BUFSIZE (sizeof(struct hostent)+10)
16196 struct hostent hent;
16197 struct hostent *rhent; char buffer[BUFSIZE];
16198 struct in_addr add;
16199 size_t alen=sizeof(struct in_addr);
16200 int bufsize=BUFSIZE;int h_errno;
16201 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16202 alen, AF_INET, &hent, buffer, bufsize,
16206 if { (eval echo configure:16207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16208 ol_cv_func_gethostbyaddr_r_nargs8=yes
16210 echo "configure: failed program was:" >&5
16211 cat conftest.$ac_ext >&5
16213 ol_cv_func_gethostbyaddr_r_nargs8=no
16217 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16218 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16220 ol_cv_func_gethostbyaddr_r_nargs=7
16222 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16223 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16225 ol_cv_func_gethostbyaddr_r_nargs=8
16228 ol_cv_func_gethostbyaddr_r_nargs=0
16233 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16234 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16235 cat >> confdefs.h <<EOF
16236 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16242 ol_cv_func_gethostbyaddr_r_nargs=0
16247 if test $ol_with_ldbm_api = auto \
16248 -o $ol_with_ldbm_api = berkeley \
16249 -o $ol_with_ldbm_api = bcompat ; then
16251 if test $ol_with_ldbm_api = bcompat; then \
16252 for ac_hdr in db_185.h db.h
16254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16256 echo "configure:16257: checking for $ac_hdr" >&5
16257 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16258 echo $ac_n "(cached) $ac_c" 1>&6
16260 cat > conftest.$ac_ext <<EOF
16261 #line 16262 "configure"
16262 #include "confdefs.h"
16265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16266 { (eval echo configure:16267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16268 if test -z "$ac_err"; then
16270 eval "ac_cv_header_$ac_safe=yes"
16273 echo "configure: failed program was:" >&5
16274 cat conftest.$ac_ext >&5
16276 eval "ac_cv_header_$ac_safe=no"
16280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16281 echo "$ac_t""yes" 1>&6
16282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16283 cat >> confdefs.h <<EOF
16284 #define $ac_tr_hdr 1
16288 echo "$ac_t""no" 1>&6
16292 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16293 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16294 echo "configure:16295: checking if Berkeley DB header compatibility" >&5
16295 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16296 echo $ac_n "(cached) $ac_c" 1>&6
16299 cat > conftest.$ac_ext <<EOF
16300 #line 16301 "configure"
16301 #include "confdefs.h"
16304 # include <db_185.h>
16309 /* this check could be improved */
16310 #ifndef DB_VERSION_MAJOR
16311 # define DB_VERSION_MAJOR 1
16314 #if DB_VERSION_MAJOR == 1
16319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16320 egrep "__db_version_1" >/dev/null 2>&1; then
16322 ol_cv_header_db1=yes
16325 ol_cv_header_db1=no
16331 echo "$ac_t""$ol_cv_header_db1" 1>&6
16333 if test $ol_cv_header_db1 = yes ; then
16335 if test $ol_cv_lib_db = no ; then
16336 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16337 echo "configure:16338: checking for Berkeley DB link (default)" >&5
16338 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16339 echo $ac_n "(cached) $ac_c" 1>&6
16344 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16346 cat > conftest.$ac_ext <<EOF
16347 #line 16348 "configure"
16348 #include "confdefs.h"
16350 #ifdef HAVE_DB_185_H
16351 # include <db_185.h>
16356 #ifndef DB_VERSION_MAJOR
16357 # define DB_VERSION_MAJOR 1
16361 #define NULL ((void*)0)
16366 #if DB_VERSION_MAJOR > 1
16369 int major, minor, patch;
16371 version = db_version( &major, &minor, &patch );
16373 if( major != DB_VERSION_MAJOR ||
16374 minor < DB_VERSION_MINOR )
16376 printf("Berkeley DB version mismatch\n"
16377 "\texpected: %s\n\tgot: %s\n",
16378 DB_VERSION_STRING, version);
16384 #if DB_VERSION_MAJOR > 2
16385 db_env_create( NULL, 0 );
16386 #elif DB_VERSION_MAJOR > 1
16387 db_appexit( NULL );
16389 (void) dbopen( NULL, 0, 0, 0, NULL);
16394 if { (eval echo configure:16395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16398 echo "configure: failed program was:" >&5
16399 cat conftest.$ac_ext >&5
16409 echo "$ac_t""$ol_cv_db_none" 1>&6
16411 if test $ol_cv_db_none = yes ; then
16416 if test $ol_cv_lib_db = no ; then
16417 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16418 echo "configure:16419: checking for Berkeley DB link (-ldb42)" >&5
16419 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
16425 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16427 cat > conftest.$ac_ext <<EOF
16428 #line 16429 "configure"
16429 #include "confdefs.h"
16431 #ifdef HAVE_DB_185_H
16432 # include <db_185.h>
16437 #ifndef DB_VERSION_MAJOR
16438 # define DB_VERSION_MAJOR 1
16442 #define NULL ((void*)0)
16447 #if DB_VERSION_MAJOR > 1
16450 int major, minor, patch;
16452 version = db_version( &major, &minor, &patch );
16454 if( major != DB_VERSION_MAJOR ||
16455 minor < DB_VERSION_MINOR )
16457 printf("Berkeley DB version mismatch\n"
16458 "\texpected: %s\n\tgot: %s\n",
16459 DB_VERSION_STRING, version);
16465 #if DB_VERSION_MAJOR > 2
16466 db_env_create( NULL, 0 );
16467 #elif DB_VERSION_MAJOR > 1
16468 db_appexit( NULL );
16470 (void) dbopen( NULL, 0, 0, 0, NULL);
16475 if { (eval echo configure:16476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16479 echo "configure: failed program was:" >&5
16480 cat conftest.$ac_ext >&5
16490 echo "$ac_t""$ol_cv_db_db42" 1>&6
16492 if test $ol_cv_db_db42 = yes ; then
16493 ol_cv_lib_db=-ldb42
16497 if test $ol_cv_lib_db = no ; then
16498 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16499 echo "configure:16500: checking for Berkeley DB link (-ldb-42)" >&5
16500 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16501 echo $ac_n "(cached) $ac_c" 1>&6
16506 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16508 cat > conftest.$ac_ext <<EOF
16509 #line 16510 "configure"
16510 #include "confdefs.h"
16512 #ifdef HAVE_DB_185_H
16513 # include <db_185.h>
16518 #ifndef DB_VERSION_MAJOR
16519 # define DB_VERSION_MAJOR 1
16523 #define NULL ((void*)0)
16528 #if DB_VERSION_MAJOR > 1
16531 int major, minor, patch;
16533 version = db_version( &major, &minor, &patch );
16535 if( major != DB_VERSION_MAJOR ||
16536 minor < DB_VERSION_MINOR )
16538 printf("Berkeley DB version mismatch\n"
16539 "\texpected: %s\n\tgot: %s\n",
16540 DB_VERSION_STRING, version);
16546 #if DB_VERSION_MAJOR > 2
16547 db_env_create( NULL, 0 );
16548 #elif DB_VERSION_MAJOR > 1
16549 db_appexit( NULL );
16551 (void) dbopen( NULL, 0, 0, 0, NULL);
16556 if { (eval echo configure:16557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16560 echo "configure: failed program was:" >&5
16561 cat conftest.$ac_ext >&5
16571 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16573 if test $ol_cv_db_db_42 = yes ; then
16574 ol_cv_lib_db=-ldb-42
16578 if test $ol_cv_lib_db = no ; then
16579 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16580 echo "configure:16581: checking for Berkeley DB link (-ldb-4.2)" >&5
16581 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16582 echo $ac_n "(cached) $ac_c" 1>&6
16587 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16589 cat > conftest.$ac_ext <<EOF
16590 #line 16591 "configure"
16591 #include "confdefs.h"
16593 #ifdef HAVE_DB_185_H
16594 # include <db_185.h>
16599 #ifndef DB_VERSION_MAJOR
16600 # define DB_VERSION_MAJOR 1
16604 #define NULL ((void*)0)
16609 #if DB_VERSION_MAJOR > 1
16612 int major, minor, patch;
16614 version = db_version( &major, &minor, &patch );
16616 if( major != DB_VERSION_MAJOR ||
16617 minor < DB_VERSION_MINOR )
16619 printf("Berkeley DB version mismatch\n"
16620 "\texpected: %s\n\tgot: %s\n",
16621 DB_VERSION_STRING, version);
16627 #if DB_VERSION_MAJOR > 2
16628 db_env_create( NULL, 0 );
16629 #elif DB_VERSION_MAJOR > 1
16630 db_appexit( NULL );
16632 (void) dbopen( NULL, 0, 0, 0, NULL);
16637 if { (eval echo configure:16638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16639 ol_cv_db_db_4_dot_2=yes
16641 echo "configure: failed program was:" >&5
16642 cat conftest.$ac_ext >&5
16644 ol_cv_db_db_4_dot_2=no
16652 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16654 if test $ol_cv_db_db_4_dot_2 = yes ; then
16655 ol_cv_lib_db=-ldb-4.2
16659 if test $ol_cv_lib_db = no ; then
16660 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16661 echo "configure:16662: checking for Berkeley DB link (-ldb-4-2)" >&5
16662 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16663 echo $ac_n "(cached) $ac_c" 1>&6
16668 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16670 cat > conftest.$ac_ext <<EOF
16671 #line 16672 "configure"
16672 #include "confdefs.h"
16674 #ifdef HAVE_DB_185_H
16675 # include <db_185.h>
16680 #ifndef DB_VERSION_MAJOR
16681 # define DB_VERSION_MAJOR 1
16685 #define NULL ((void*)0)
16690 #if DB_VERSION_MAJOR > 1
16693 int major, minor, patch;
16695 version = db_version( &major, &minor, &patch );
16697 if( major != DB_VERSION_MAJOR ||
16698 minor < DB_VERSION_MINOR )
16700 printf("Berkeley DB version mismatch\n"
16701 "\texpected: %s\n\tgot: %s\n",
16702 DB_VERSION_STRING, version);
16708 #if DB_VERSION_MAJOR > 2
16709 db_env_create( NULL, 0 );
16710 #elif DB_VERSION_MAJOR > 1
16711 db_appexit( NULL );
16713 (void) dbopen( NULL, 0, 0, 0, NULL);
16718 if { (eval echo configure:16719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16720 ol_cv_db_db_4_2=yes
16722 echo "configure: failed program was:" >&5
16723 cat conftest.$ac_ext >&5
16733 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
16735 if test $ol_cv_db_db_4_2 = yes ; then
16736 ol_cv_lib_db=-ldb-4-2
16740 if test $ol_cv_lib_db = no ; then
16741 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16742 echo "configure:16743: checking for Berkeley DB link (-ldb-4)" >&5
16743 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16744 echo $ac_n "(cached) $ac_c" 1>&6
16749 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16751 cat > conftest.$ac_ext <<EOF
16752 #line 16753 "configure"
16753 #include "confdefs.h"
16755 #ifdef HAVE_DB_185_H
16756 # include <db_185.h>
16761 #ifndef DB_VERSION_MAJOR
16762 # define DB_VERSION_MAJOR 1
16766 #define NULL ((void*)0)
16771 #if DB_VERSION_MAJOR > 1
16774 int major, minor, patch;
16776 version = db_version( &major, &minor, &patch );
16778 if( major != DB_VERSION_MAJOR ||
16779 minor < DB_VERSION_MINOR )
16781 printf("Berkeley DB version mismatch\n"
16782 "\texpected: %s\n\tgot: %s\n",
16783 DB_VERSION_STRING, version);
16789 #if DB_VERSION_MAJOR > 2
16790 db_env_create( NULL, 0 );
16791 #elif DB_VERSION_MAJOR > 1
16792 db_appexit( NULL );
16794 (void) dbopen( NULL, 0, 0, 0, NULL);
16799 if { (eval echo configure:16800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16803 echo "configure: failed program was:" >&5
16804 cat conftest.$ac_ext >&5
16814 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16816 if test $ol_cv_db_db_4 = yes ; then
16817 ol_cv_lib_db=-ldb-4
16821 if test $ol_cv_lib_db = no ; then
16822 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16823 echo "configure:16824: checking for Berkeley DB link (-ldb4)" >&5
16824 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16825 echo $ac_n "(cached) $ac_c" 1>&6
16830 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16832 cat > conftest.$ac_ext <<EOF
16833 #line 16834 "configure"
16834 #include "confdefs.h"
16836 #ifdef HAVE_DB_185_H
16837 # include <db_185.h>
16842 #ifndef DB_VERSION_MAJOR
16843 # define DB_VERSION_MAJOR 1
16847 #define NULL ((void*)0)
16852 #if DB_VERSION_MAJOR > 1
16855 int major, minor, patch;
16857 version = db_version( &major, &minor, &patch );
16859 if( major != DB_VERSION_MAJOR ||
16860 minor < DB_VERSION_MINOR )
16862 printf("Berkeley DB version mismatch\n"
16863 "\texpected: %s\n\tgot: %s\n",
16864 DB_VERSION_STRING, version);
16870 #if DB_VERSION_MAJOR > 2
16871 db_env_create( NULL, 0 );
16872 #elif DB_VERSION_MAJOR > 1
16873 db_appexit( NULL );
16875 (void) dbopen( NULL, 0, 0, 0, NULL);
16880 if { (eval echo configure:16881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16884 echo "configure: failed program was:" >&5
16885 cat conftest.$ac_ext >&5
16895 echo "$ac_t""$ol_cv_db_db4" 1>&6
16897 if test $ol_cv_db_db4 = yes ; then
16902 if test $ol_cv_lib_db = no ; then
16903 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16904 echo "configure:16905: checking for Berkeley DB link (-ldb)" >&5
16905 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16906 echo $ac_n "(cached) $ac_c" 1>&6
16911 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16913 cat > conftest.$ac_ext <<EOF
16914 #line 16915 "configure"
16915 #include "confdefs.h"
16917 #ifdef HAVE_DB_185_H
16918 # include <db_185.h>
16923 #ifndef DB_VERSION_MAJOR
16924 # define DB_VERSION_MAJOR 1
16928 #define NULL ((void*)0)
16933 #if DB_VERSION_MAJOR > 1
16936 int major, minor, patch;
16938 version = db_version( &major, &minor, &patch );
16940 if( major != DB_VERSION_MAJOR ||
16941 minor < DB_VERSION_MINOR )
16943 printf("Berkeley DB version mismatch\n"
16944 "\texpected: %s\n\tgot: %s\n",
16945 DB_VERSION_STRING, version);
16951 #if DB_VERSION_MAJOR > 2
16952 db_env_create( NULL, 0 );
16953 #elif DB_VERSION_MAJOR > 1
16954 db_appexit( NULL );
16956 (void) dbopen( NULL, 0, 0, 0, NULL);
16961 if { (eval echo configure:16962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16965 echo "configure: failed program was:" >&5
16966 cat conftest.$ac_ext >&5
16976 echo "$ac_t""$ol_cv_db_db" 1>&6
16978 if test $ol_cv_db_db = yes ; then
16983 if test $ol_cv_lib_db = no ; then
16984 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16985 echo "configure:16986: checking for Berkeley DB link (-ldb41)" >&5
16986 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16987 echo $ac_n "(cached) $ac_c" 1>&6
16992 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16994 cat > conftest.$ac_ext <<EOF
16995 #line 16996 "configure"
16996 #include "confdefs.h"
16998 #ifdef HAVE_DB_185_H
16999 # include <db_185.h>
17004 #ifndef DB_VERSION_MAJOR
17005 # define DB_VERSION_MAJOR 1
17009 #define NULL ((void*)0)
17014 #if DB_VERSION_MAJOR > 1
17017 int major, minor, patch;
17019 version = db_version( &major, &minor, &patch );
17021 if( major != DB_VERSION_MAJOR ||
17022 minor < DB_VERSION_MINOR )
17024 printf("Berkeley DB version mismatch\n"
17025 "\texpected: %s\n\tgot: %s\n",
17026 DB_VERSION_STRING, version);
17032 #if DB_VERSION_MAJOR > 2
17033 db_env_create( NULL, 0 );
17034 #elif DB_VERSION_MAJOR > 1
17035 db_appexit( NULL );
17037 (void) dbopen( NULL, 0, 0, 0, NULL);
17042 if { (eval echo configure:17043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17046 echo "configure: failed program was:" >&5
17047 cat conftest.$ac_ext >&5
17057 echo "$ac_t""$ol_cv_db_db41" 1>&6
17059 if test $ol_cv_db_db41 = yes ; then
17060 ol_cv_lib_db=-ldb41
17064 if test $ol_cv_lib_db = no ; then
17065 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17066 echo "configure:17067: checking for Berkeley DB link (-ldb-41)" >&5
17067 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17068 echo $ac_n "(cached) $ac_c" 1>&6
17073 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17075 cat > conftest.$ac_ext <<EOF
17076 #line 17077 "configure"
17077 #include "confdefs.h"
17079 #ifdef HAVE_DB_185_H
17080 # include <db_185.h>
17085 #ifndef DB_VERSION_MAJOR
17086 # define DB_VERSION_MAJOR 1
17090 #define NULL ((void*)0)
17095 #if DB_VERSION_MAJOR > 1
17098 int major, minor, patch;
17100 version = db_version( &major, &minor, &patch );
17102 if( major != DB_VERSION_MAJOR ||
17103 minor < DB_VERSION_MINOR )
17105 printf("Berkeley DB version mismatch\n"
17106 "\texpected: %s\n\tgot: %s\n",
17107 DB_VERSION_STRING, version);
17113 #if DB_VERSION_MAJOR > 2
17114 db_env_create( NULL, 0 );
17115 #elif DB_VERSION_MAJOR > 1
17116 db_appexit( NULL );
17118 (void) dbopen( NULL, 0, 0, 0, NULL);
17123 if { (eval echo configure:17124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17127 echo "configure: failed program was:" >&5
17128 cat conftest.$ac_ext >&5
17138 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17140 if test $ol_cv_db_db_41 = yes ; then
17141 ol_cv_lib_db=-ldb-41
17145 if test $ol_cv_lib_db = no ; then
17146 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17147 echo "configure:17148: checking for Berkeley DB link (-ldb-4.1)" >&5
17148 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17149 echo $ac_n "(cached) $ac_c" 1>&6
17154 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17156 cat > conftest.$ac_ext <<EOF
17157 #line 17158 "configure"
17158 #include "confdefs.h"
17160 #ifdef HAVE_DB_185_H
17161 # include <db_185.h>
17166 #ifndef DB_VERSION_MAJOR
17167 # define DB_VERSION_MAJOR 1
17171 #define NULL ((void*)0)
17176 #if DB_VERSION_MAJOR > 1
17179 int major, minor, patch;
17181 version = db_version( &major, &minor, &patch );
17183 if( major != DB_VERSION_MAJOR ||
17184 minor < DB_VERSION_MINOR )
17186 printf("Berkeley DB version mismatch\n"
17187 "\texpected: %s\n\tgot: %s\n",
17188 DB_VERSION_STRING, version);
17194 #if DB_VERSION_MAJOR > 2
17195 db_env_create( NULL, 0 );
17196 #elif DB_VERSION_MAJOR > 1
17197 db_appexit( NULL );
17199 (void) dbopen( NULL, 0, 0, 0, NULL);
17204 if { (eval echo configure:17205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17206 ol_cv_db_db_4_dot_1=yes
17208 echo "configure: failed program was:" >&5
17209 cat conftest.$ac_ext >&5
17211 ol_cv_db_db_4_dot_1=no
17219 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17221 if test $ol_cv_db_db_4_dot_1 = yes ; then
17222 ol_cv_lib_db=-ldb-4.1
17226 if test $ol_cv_lib_db = no ; then
17227 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17228 echo "configure:17229: checking for Berkeley DB link (-ldb-4-1)" >&5
17229 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17230 echo $ac_n "(cached) $ac_c" 1>&6
17235 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17237 cat > conftest.$ac_ext <<EOF
17238 #line 17239 "configure"
17239 #include "confdefs.h"
17241 #ifdef HAVE_DB_185_H
17242 # include <db_185.h>
17247 #ifndef DB_VERSION_MAJOR
17248 # define DB_VERSION_MAJOR 1
17252 #define NULL ((void*)0)
17257 #if DB_VERSION_MAJOR > 1
17260 int major, minor, patch;
17262 version = db_version( &major, &minor, &patch );
17264 if( major != DB_VERSION_MAJOR ||
17265 minor < DB_VERSION_MINOR )
17267 printf("Berkeley DB version mismatch\n"
17268 "\texpected: %s\n\tgot: %s\n",
17269 DB_VERSION_STRING, version);
17275 #if DB_VERSION_MAJOR > 2
17276 db_env_create( NULL, 0 );
17277 #elif DB_VERSION_MAJOR > 1
17278 db_appexit( NULL );
17280 (void) dbopen( NULL, 0, 0, 0, NULL);
17285 if { (eval echo configure:17286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17287 ol_cv_db_db_4_1=yes
17289 echo "configure: failed program was:" >&5
17290 cat conftest.$ac_ext >&5
17300 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17302 if test $ol_cv_db_db_4_1 = yes ; then
17303 ol_cv_lib_db=-ldb-4-1
17307 if test $ol_cv_lib_db = no ; then
17308 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17309 echo "configure:17310: checking for Berkeley DB link (-ldb3)" >&5
17310 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17311 echo $ac_n "(cached) $ac_c" 1>&6
17316 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17318 cat > conftest.$ac_ext <<EOF
17319 #line 17320 "configure"
17320 #include "confdefs.h"
17322 #ifdef HAVE_DB_185_H
17323 # include <db_185.h>
17328 #ifndef DB_VERSION_MAJOR
17329 # define DB_VERSION_MAJOR 1
17333 #define NULL ((void*)0)
17338 #if DB_VERSION_MAJOR > 1
17341 int major, minor, patch;
17343 version = db_version( &major, &minor, &patch );
17345 if( major != DB_VERSION_MAJOR ||
17346 minor < DB_VERSION_MINOR )
17348 printf("Berkeley DB version mismatch\n"
17349 "\texpected: %s\n\tgot: %s\n",
17350 DB_VERSION_STRING, version);
17356 #if DB_VERSION_MAJOR > 2
17357 db_env_create( NULL, 0 );
17358 #elif DB_VERSION_MAJOR > 1
17359 db_appexit( NULL );
17361 (void) dbopen( NULL, 0, 0, 0, NULL);
17366 if { (eval echo configure:17367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17370 echo "configure: failed program was:" >&5
17371 cat conftest.$ac_ext >&5
17381 echo "$ac_t""$ol_cv_db_db3" 1>&6
17383 if test $ol_cv_db_db3 = yes ; then
17388 if test $ol_cv_lib_db = no ; then
17389 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17390 echo "configure:17391: checking for Berkeley DB link (-ldb-3)" >&5
17391 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17392 echo $ac_n "(cached) $ac_c" 1>&6
17397 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17399 cat > conftest.$ac_ext <<EOF
17400 #line 17401 "configure"
17401 #include "confdefs.h"
17403 #ifdef HAVE_DB_185_H
17404 # include <db_185.h>
17409 #ifndef DB_VERSION_MAJOR
17410 # define DB_VERSION_MAJOR 1
17414 #define NULL ((void*)0)
17419 #if DB_VERSION_MAJOR > 1
17422 int major, minor, patch;
17424 version = db_version( &major, &minor, &patch );
17426 if( major != DB_VERSION_MAJOR ||
17427 minor < DB_VERSION_MINOR )
17429 printf("Berkeley DB version mismatch\n"
17430 "\texpected: %s\n\tgot: %s\n",
17431 DB_VERSION_STRING, version);
17437 #if DB_VERSION_MAJOR > 2
17438 db_env_create( NULL, 0 );
17439 #elif DB_VERSION_MAJOR > 1
17440 db_appexit( NULL );
17442 (void) dbopen( NULL, 0, 0, 0, NULL);
17447 if { (eval echo configure:17448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17451 echo "configure: failed program was:" >&5
17452 cat conftest.$ac_ext >&5
17462 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17464 if test $ol_cv_db_db_3 = yes ; then
17465 ol_cv_lib_db=-ldb-3
17469 if test $ol_cv_lib_db = no ; then
17470 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17471 echo "configure:17472: checking for Berkeley DB link (-ldb2)" >&5
17472 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17473 echo $ac_n "(cached) $ac_c" 1>&6
17478 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17480 cat > conftest.$ac_ext <<EOF
17481 #line 17482 "configure"
17482 #include "confdefs.h"
17484 #ifdef HAVE_DB_185_H
17485 # include <db_185.h>
17490 #ifndef DB_VERSION_MAJOR
17491 # define DB_VERSION_MAJOR 1
17495 #define NULL ((void*)0)
17500 #if DB_VERSION_MAJOR > 1
17503 int major, minor, patch;
17505 version = db_version( &major, &minor, &patch );
17507 if( major != DB_VERSION_MAJOR ||
17508 minor < DB_VERSION_MINOR )
17510 printf("Berkeley DB version mismatch\n"
17511 "\texpected: %s\n\tgot: %s\n",
17512 DB_VERSION_STRING, version);
17518 #if DB_VERSION_MAJOR > 2
17519 db_env_create( NULL, 0 );
17520 #elif DB_VERSION_MAJOR > 1
17521 db_appexit( NULL );
17523 (void) dbopen( NULL, 0, 0, 0, NULL);
17528 if { (eval echo configure:17529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17532 echo "configure: failed program was:" >&5
17533 cat conftest.$ac_ext >&5
17543 echo "$ac_t""$ol_cv_db_db2" 1>&6
17545 if test $ol_cv_db_db2 = yes ; then
17550 if test $ol_cv_lib_db = no ; then
17551 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17552 echo "configure:17553: checking for Berkeley DB link (-ldb-2)" >&5
17553 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17554 echo $ac_n "(cached) $ac_c" 1>&6
17559 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17561 cat > conftest.$ac_ext <<EOF
17562 #line 17563 "configure"
17563 #include "confdefs.h"
17565 #ifdef HAVE_DB_185_H
17566 # include <db_185.h>
17571 #ifndef DB_VERSION_MAJOR
17572 # define DB_VERSION_MAJOR 1
17576 #define NULL ((void*)0)
17581 #if DB_VERSION_MAJOR > 1
17584 int major, minor, patch;
17586 version = db_version( &major, &minor, &patch );
17588 if( major != DB_VERSION_MAJOR ||
17589 minor < DB_VERSION_MINOR )
17591 printf("Berkeley DB version mismatch\n"
17592 "\texpected: %s\n\tgot: %s\n",
17593 DB_VERSION_STRING, version);
17599 #if DB_VERSION_MAJOR > 2
17600 db_env_create( NULL, 0 );
17601 #elif DB_VERSION_MAJOR > 1
17602 db_appexit( NULL );
17604 (void) dbopen( NULL, 0, 0, 0, NULL);
17609 if { (eval echo configure:17610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17613 echo "configure: failed program was:" >&5
17614 cat conftest.$ac_ext >&5
17624 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17626 if test $ol_cv_db_db_2 = yes ; then
17627 ol_cv_lib_db=-ldb-2
17631 if test $ol_cv_lib_db = no ; then
17632 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17633 echo "configure:17634: checking for Berkeley DB link (-ldb1)" >&5
17634 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17635 echo $ac_n "(cached) $ac_c" 1>&6
17640 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17642 cat > conftest.$ac_ext <<EOF
17643 #line 17644 "configure"
17644 #include "confdefs.h"
17646 #ifdef HAVE_DB_185_H
17647 # include <db_185.h>
17652 #ifndef DB_VERSION_MAJOR
17653 # define DB_VERSION_MAJOR 1
17657 #define NULL ((void*)0)
17662 #if DB_VERSION_MAJOR > 1
17665 int major, minor, patch;
17667 version = db_version( &major, &minor, &patch );
17669 if( major != DB_VERSION_MAJOR ||
17670 minor < DB_VERSION_MINOR )
17672 printf("Berkeley DB version mismatch\n"
17673 "\texpected: %s\n\tgot: %s\n",
17674 DB_VERSION_STRING, version);
17680 #if DB_VERSION_MAJOR > 2
17681 db_env_create( NULL, 0 );
17682 #elif DB_VERSION_MAJOR > 1
17683 db_appexit( NULL );
17685 (void) dbopen( NULL, 0, 0, 0, NULL);
17690 if { (eval echo configure:17691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17694 echo "configure: failed program was:" >&5
17695 cat conftest.$ac_ext >&5
17705 echo "$ac_t""$ol_cv_db_db1" 1>&6
17707 if test $ol_cv_db_db1 = yes ; then
17712 if test $ol_cv_lib_db = no ; then
17713 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17714 echo "configure:17715: checking for Berkeley DB link (-ldb-1)" >&5
17715 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17716 echo $ac_n "(cached) $ac_c" 1>&6
17721 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17723 cat > conftest.$ac_ext <<EOF
17724 #line 17725 "configure"
17725 #include "confdefs.h"
17727 #ifdef HAVE_DB_185_H
17728 # include <db_185.h>
17733 #ifndef DB_VERSION_MAJOR
17734 # define DB_VERSION_MAJOR 1
17738 #define NULL ((void*)0)
17743 #if DB_VERSION_MAJOR > 1
17746 int major, minor, patch;
17748 version = db_version( &major, &minor, &patch );
17750 if( major != DB_VERSION_MAJOR ||
17751 minor < DB_VERSION_MINOR )
17753 printf("Berkeley DB version mismatch\n"
17754 "\texpected: %s\n\tgot: %s\n",
17755 DB_VERSION_STRING, version);
17761 #if DB_VERSION_MAJOR > 2
17762 db_env_create( NULL, 0 );
17763 #elif DB_VERSION_MAJOR > 1
17764 db_appexit( NULL );
17766 (void) dbopen( NULL, 0, 0, 0, NULL);
17771 if { (eval echo configure:17772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17775 echo "configure: failed program was:" >&5
17776 cat conftest.$ac_ext >&5
17786 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17788 if test $ol_cv_db_db_1 = yes ; then
17789 ol_cv_lib_db=-ldb-1
17794 if test "$ol_cv_lib_db" != no ; then
17795 ol_cv_berkeley_db=yes
17801 ol_cv_berkeley_db=no
17804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17806 echo "configure:17807: checking for $ac_hdr" >&5
17807 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17808 echo $ac_n "(cached) $ac_c" 1>&6
17810 cat > conftest.$ac_ext <<EOF
17811 #line 17812 "configure"
17812 #include "confdefs.h"
17815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17816 { (eval echo configure:17817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17818 if test -z "$ac_err"; then
17820 eval "ac_cv_header_$ac_safe=yes"
17823 echo "configure: failed program was:" >&5
17824 cat conftest.$ac_ext >&5
17826 eval "ac_cv_header_$ac_safe=no"
17830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17831 echo "$ac_t""yes" 1>&6
17832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17833 cat >> confdefs.h <<EOF
17834 #define $ac_tr_hdr 1
17838 echo "$ac_t""no" 1>&6
17842 if test $ac_cv_header_db_h = yes; then
17844 if test $ol_cv_lib_db = no ; then
17845 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17846 echo "configure:17847: checking for Berkeley DB link (default)" >&5
17847 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17848 echo $ac_n "(cached) $ac_c" 1>&6
17853 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17855 cat > conftest.$ac_ext <<EOF
17856 #line 17857 "configure"
17857 #include "confdefs.h"
17859 #ifdef HAVE_DB_185_H
17860 # include <db_185.h>
17865 #ifndef DB_VERSION_MAJOR
17866 # define DB_VERSION_MAJOR 1
17870 #define NULL ((void*)0)
17875 #if DB_VERSION_MAJOR > 1
17878 int major, minor, patch;
17880 version = db_version( &major, &minor, &patch );
17882 if( major != DB_VERSION_MAJOR ||
17883 minor < DB_VERSION_MINOR )
17885 printf("Berkeley DB version mismatch\n"
17886 "\texpected: %s\n\tgot: %s\n",
17887 DB_VERSION_STRING, version);
17893 #if DB_VERSION_MAJOR > 2
17894 db_env_create( NULL, 0 );
17895 #elif DB_VERSION_MAJOR > 1
17896 db_appexit( NULL );
17898 (void) dbopen( NULL, 0, 0, 0, NULL);
17903 if { (eval echo configure:17904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17907 echo "configure: failed program was:" >&5
17908 cat conftest.$ac_ext >&5
17918 echo "$ac_t""$ol_cv_db_none" 1>&6
17920 if test $ol_cv_db_none = yes ; then
17925 if test $ol_cv_lib_db = no ; then
17926 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17927 echo "configure:17928: checking for Berkeley DB link (-ldb42)" >&5
17928 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17929 echo $ac_n "(cached) $ac_c" 1>&6
17934 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17936 cat > conftest.$ac_ext <<EOF
17937 #line 17938 "configure"
17938 #include "confdefs.h"
17940 #ifdef HAVE_DB_185_H
17941 # include <db_185.h>
17946 #ifndef DB_VERSION_MAJOR
17947 # define DB_VERSION_MAJOR 1
17951 #define NULL ((void*)0)
17956 #if DB_VERSION_MAJOR > 1
17959 int major, minor, patch;
17961 version = db_version( &major, &minor, &patch );
17963 if( major != DB_VERSION_MAJOR ||
17964 minor < DB_VERSION_MINOR )
17966 printf("Berkeley DB version mismatch\n"
17967 "\texpected: %s\n\tgot: %s\n",
17968 DB_VERSION_STRING, version);
17974 #if DB_VERSION_MAJOR > 2
17975 db_env_create( NULL, 0 );
17976 #elif DB_VERSION_MAJOR > 1
17977 db_appexit( NULL );
17979 (void) dbopen( NULL, 0, 0, 0, NULL);
17984 if { (eval echo configure:17985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17988 echo "configure: failed program was:" >&5
17989 cat conftest.$ac_ext >&5
17999 echo "$ac_t""$ol_cv_db_db42" 1>&6
18001 if test $ol_cv_db_db42 = yes ; then
18002 ol_cv_lib_db=-ldb42
18006 if test $ol_cv_lib_db = no ; then
18007 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18008 echo "configure:18009: checking for Berkeley DB link (-ldb-42)" >&5
18009 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18010 echo $ac_n "(cached) $ac_c" 1>&6
18015 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18017 cat > conftest.$ac_ext <<EOF
18018 #line 18019 "configure"
18019 #include "confdefs.h"
18021 #ifdef HAVE_DB_185_H
18022 # include <db_185.h>
18027 #ifndef DB_VERSION_MAJOR
18028 # define DB_VERSION_MAJOR 1
18032 #define NULL ((void*)0)
18037 #if DB_VERSION_MAJOR > 1
18040 int major, minor, patch;
18042 version = db_version( &major, &minor, &patch );
18044 if( major != DB_VERSION_MAJOR ||
18045 minor < DB_VERSION_MINOR )
18047 printf("Berkeley DB version mismatch\n"
18048 "\texpected: %s\n\tgot: %s\n",
18049 DB_VERSION_STRING, version);
18055 #if DB_VERSION_MAJOR > 2
18056 db_env_create( NULL, 0 );
18057 #elif DB_VERSION_MAJOR > 1
18058 db_appexit( NULL );
18060 (void) dbopen( NULL, 0, 0, 0, NULL);
18065 if { (eval echo configure:18066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18069 echo "configure: failed program was:" >&5
18070 cat conftest.$ac_ext >&5
18080 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18082 if test $ol_cv_db_db_42 = yes ; then
18083 ol_cv_lib_db=-ldb-42
18087 if test $ol_cv_lib_db = no ; then
18088 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18089 echo "configure:18090: checking for Berkeley DB link (-ldb-4.2)" >&5
18090 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18091 echo $ac_n "(cached) $ac_c" 1>&6
18096 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18098 cat > conftest.$ac_ext <<EOF
18099 #line 18100 "configure"
18100 #include "confdefs.h"
18102 #ifdef HAVE_DB_185_H
18103 # include <db_185.h>
18108 #ifndef DB_VERSION_MAJOR
18109 # define DB_VERSION_MAJOR 1
18113 #define NULL ((void*)0)
18118 #if DB_VERSION_MAJOR > 1
18121 int major, minor, patch;
18123 version = db_version( &major, &minor, &patch );
18125 if( major != DB_VERSION_MAJOR ||
18126 minor < DB_VERSION_MINOR )
18128 printf("Berkeley DB version mismatch\n"
18129 "\texpected: %s\n\tgot: %s\n",
18130 DB_VERSION_STRING, version);
18136 #if DB_VERSION_MAJOR > 2
18137 db_env_create( NULL, 0 );
18138 #elif DB_VERSION_MAJOR > 1
18139 db_appexit( NULL );
18141 (void) dbopen( NULL, 0, 0, 0, NULL);
18146 if { (eval echo configure:18147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18148 ol_cv_db_db_4_dot_2=yes
18150 echo "configure: failed program was:" >&5
18151 cat conftest.$ac_ext >&5
18153 ol_cv_db_db_4_dot_2=no
18161 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18163 if test $ol_cv_db_db_4_dot_2 = yes ; then
18164 ol_cv_lib_db=-ldb-4.2
18168 if test $ol_cv_lib_db = no ; then
18169 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18170 echo "configure:18171: checking for Berkeley DB link (-ldb-4-2)" >&5
18171 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18172 echo $ac_n "(cached) $ac_c" 1>&6
18177 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18179 cat > conftest.$ac_ext <<EOF
18180 #line 18181 "configure"
18181 #include "confdefs.h"
18183 #ifdef HAVE_DB_185_H
18184 # include <db_185.h>
18189 #ifndef DB_VERSION_MAJOR
18190 # define DB_VERSION_MAJOR 1
18194 #define NULL ((void*)0)
18199 #if DB_VERSION_MAJOR > 1
18202 int major, minor, patch;
18204 version = db_version( &major, &minor, &patch );
18206 if( major != DB_VERSION_MAJOR ||
18207 minor < DB_VERSION_MINOR )
18209 printf("Berkeley DB version mismatch\n"
18210 "\texpected: %s\n\tgot: %s\n",
18211 DB_VERSION_STRING, version);
18217 #if DB_VERSION_MAJOR > 2
18218 db_env_create( NULL, 0 );
18219 #elif DB_VERSION_MAJOR > 1
18220 db_appexit( NULL );
18222 (void) dbopen( NULL, 0, 0, 0, NULL);
18227 if { (eval echo configure:18228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18229 ol_cv_db_db_4_2=yes
18231 echo "configure: failed program was:" >&5
18232 cat conftest.$ac_ext >&5
18242 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18244 if test $ol_cv_db_db_4_2 = yes ; then
18245 ol_cv_lib_db=-ldb-4-2
18249 if test $ol_cv_lib_db = no ; then
18250 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18251 echo "configure:18252: checking for Berkeley DB link (-ldb-4)" >&5
18252 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18253 echo $ac_n "(cached) $ac_c" 1>&6
18258 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18260 cat > conftest.$ac_ext <<EOF
18261 #line 18262 "configure"
18262 #include "confdefs.h"
18264 #ifdef HAVE_DB_185_H
18265 # include <db_185.h>
18270 #ifndef DB_VERSION_MAJOR
18271 # define DB_VERSION_MAJOR 1
18275 #define NULL ((void*)0)
18280 #if DB_VERSION_MAJOR > 1
18283 int major, minor, patch;
18285 version = db_version( &major, &minor, &patch );
18287 if( major != DB_VERSION_MAJOR ||
18288 minor < DB_VERSION_MINOR )
18290 printf("Berkeley DB version mismatch\n"
18291 "\texpected: %s\n\tgot: %s\n",
18292 DB_VERSION_STRING, version);
18298 #if DB_VERSION_MAJOR > 2
18299 db_env_create( NULL, 0 );
18300 #elif DB_VERSION_MAJOR > 1
18301 db_appexit( NULL );
18303 (void) dbopen( NULL, 0, 0, 0, NULL);
18308 if { (eval echo configure:18309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18312 echo "configure: failed program was:" >&5
18313 cat conftest.$ac_ext >&5
18323 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18325 if test $ol_cv_db_db_4 = yes ; then
18326 ol_cv_lib_db=-ldb-4
18330 if test $ol_cv_lib_db = no ; then
18331 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18332 echo "configure:18333: checking for Berkeley DB link (-ldb4)" >&5
18333 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18334 echo $ac_n "(cached) $ac_c" 1>&6
18339 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18341 cat > conftest.$ac_ext <<EOF
18342 #line 18343 "configure"
18343 #include "confdefs.h"
18345 #ifdef HAVE_DB_185_H
18346 # include <db_185.h>
18351 #ifndef DB_VERSION_MAJOR
18352 # define DB_VERSION_MAJOR 1
18356 #define NULL ((void*)0)
18361 #if DB_VERSION_MAJOR > 1
18364 int major, minor, patch;
18366 version = db_version( &major, &minor, &patch );
18368 if( major != DB_VERSION_MAJOR ||
18369 minor < DB_VERSION_MINOR )
18371 printf("Berkeley DB version mismatch\n"
18372 "\texpected: %s\n\tgot: %s\n",
18373 DB_VERSION_STRING, version);
18379 #if DB_VERSION_MAJOR > 2
18380 db_env_create( NULL, 0 );
18381 #elif DB_VERSION_MAJOR > 1
18382 db_appexit( NULL );
18384 (void) dbopen( NULL, 0, 0, 0, NULL);
18389 if { (eval echo configure:18390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18393 echo "configure: failed program was:" >&5
18394 cat conftest.$ac_ext >&5
18404 echo "$ac_t""$ol_cv_db_db4" 1>&6
18406 if test $ol_cv_db_db4 = yes ; then
18411 if test $ol_cv_lib_db = no ; then
18412 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18413 echo "configure:18414: checking for Berkeley DB link (-ldb)" >&5
18414 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18415 echo $ac_n "(cached) $ac_c" 1>&6
18420 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18422 cat > conftest.$ac_ext <<EOF
18423 #line 18424 "configure"
18424 #include "confdefs.h"
18426 #ifdef HAVE_DB_185_H
18427 # include <db_185.h>
18432 #ifndef DB_VERSION_MAJOR
18433 # define DB_VERSION_MAJOR 1
18437 #define NULL ((void*)0)
18442 #if DB_VERSION_MAJOR > 1
18445 int major, minor, patch;
18447 version = db_version( &major, &minor, &patch );
18449 if( major != DB_VERSION_MAJOR ||
18450 minor < DB_VERSION_MINOR )
18452 printf("Berkeley DB version mismatch\n"
18453 "\texpected: %s\n\tgot: %s\n",
18454 DB_VERSION_STRING, version);
18460 #if DB_VERSION_MAJOR > 2
18461 db_env_create( NULL, 0 );
18462 #elif DB_VERSION_MAJOR > 1
18463 db_appexit( NULL );
18465 (void) dbopen( NULL, 0, 0, 0, NULL);
18470 if { (eval echo configure:18471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18474 echo "configure: failed program was:" >&5
18475 cat conftest.$ac_ext >&5
18485 echo "$ac_t""$ol_cv_db_db" 1>&6
18487 if test $ol_cv_db_db = yes ; then
18492 if test $ol_cv_lib_db = no ; then
18493 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18494 echo "configure:18495: checking for Berkeley DB link (-ldb41)" >&5
18495 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18496 echo $ac_n "(cached) $ac_c" 1>&6
18501 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18503 cat > conftest.$ac_ext <<EOF
18504 #line 18505 "configure"
18505 #include "confdefs.h"
18507 #ifdef HAVE_DB_185_H
18508 # include <db_185.h>
18513 #ifndef DB_VERSION_MAJOR
18514 # define DB_VERSION_MAJOR 1
18518 #define NULL ((void*)0)
18523 #if DB_VERSION_MAJOR > 1
18526 int major, minor, patch;
18528 version = db_version( &major, &minor, &patch );
18530 if( major != DB_VERSION_MAJOR ||
18531 minor < DB_VERSION_MINOR )
18533 printf("Berkeley DB version mismatch\n"
18534 "\texpected: %s\n\tgot: %s\n",
18535 DB_VERSION_STRING, version);
18541 #if DB_VERSION_MAJOR > 2
18542 db_env_create( NULL, 0 );
18543 #elif DB_VERSION_MAJOR > 1
18544 db_appexit( NULL );
18546 (void) dbopen( NULL, 0, 0, 0, NULL);
18551 if { (eval echo configure:18552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18555 echo "configure: failed program was:" >&5
18556 cat conftest.$ac_ext >&5
18566 echo "$ac_t""$ol_cv_db_db41" 1>&6
18568 if test $ol_cv_db_db41 = yes ; then
18569 ol_cv_lib_db=-ldb41
18573 if test $ol_cv_lib_db = no ; then
18574 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18575 echo "configure:18576: checking for Berkeley DB link (-ldb-41)" >&5
18576 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18577 echo $ac_n "(cached) $ac_c" 1>&6
18582 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18584 cat > conftest.$ac_ext <<EOF
18585 #line 18586 "configure"
18586 #include "confdefs.h"
18588 #ifdef HAVE_DB_185_H
18589 # include <db_185.h>
18594 #ifndef DB_VERSION_MAJOR
18595 # define DB_VERSION_MAJOR 1
18599 #define NULL ((void*)0)
18604 #if DB_VERSION_MAJOR > 1
18607 int major, minor, patch;
18609 version = db_version( &major, &minor, &patch );
18611 if( major != DB_VERSION_MAJOR ||
18612 minor < DB_VERSION_MINOR )
18614 printf("Berkeley DB version mismatch\n"
18615 "\texpected: %s\n\tgot: %s\n",
18616 DB_VERSION_STRING, version);
18622 #if DB_VERSION_MAJOR > 2
18623 db_env_create( NULL, 0 );
18624 #elif DB_VERSION_MAJOR > 1
18625 db_appexit( NULL );
18627 (void) dbopen( NULL, 0, 0, 0, NULL);
18632 if { (eval echo configure:18633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18636 echo "configure: failed program was:" >&5
18637 cat conftest.$ac_ext >&5
18647 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18649 if test $ol_cv_db_db_41 = yes ; then
18650 ol_cv_lib_db=-ldb-41
18654 if test $ol_cv_lib_db = no ; then
18655 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18656 echo "configure:18657: checking for Berkeley DB link (-ldb-4.1)" >&5
18657 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18658 echo $ac_n "(cached) $ac_c" 1>&6
18663 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18665 cat > conftest.$ac_ext <<EOF
18666 #line 18667 "configure"
18667 #include "confdefs.h"
18669 #ifdef HAVE_DB_185_H
18670 # include <db_185.h>
18675 #ifndef DB_VERSION_MAJOR
18676 # define DB_VERSION_MAJOR 1
18680 #define NULL ((void*)0)
18685 #if DB_VERSION_MAJOR > 1
18688 int major, minor, patch;
18690 version = db_version( &major, &minor, &patch );
18692 if( major != DB_VERSION_MAJOR ||
18693 minor < DB_VERSION_MINOR )
18695 printf("Berkeley DB version mismatch\n"
18696 "\texpected: %s\n\tgot: %s\n",
18697 DB_VERSION_STRING, version);
18703 #if DB_VERSION_MAJOR > 2
18704 db_env_create( NULL, 0 );
18705 #elif DB_VERSION_MAJOR > 1
18706 db_appexit( NULL );
18708 (void) dbopen( NULL, 0, 0, 0, NULL);
18713 if { (eval echo configure:18714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18715 ol_cv_db_db_4_dot_1=yes
18717 echo "configure: failed program was:" >&5
18718 cat conftest.$ac_ext >&5
18720 ol_cv_db_db_4_dot_1=no
18728 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18730 if test $ol_cv_db_db_4_dot_1 = yes ; then
18731 ol_cv_lib_db=-ldb-4.1
18735 if test $ol_cv_lib_db = no ; then
18736 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18737 echo "configure:18738: checking for Berkeley DB link (-ldb-4-1)" >&5
18738 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18739 echo $ac_n "(cached) $ac_c" 1>&6
18744 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18746 cat > conftest.$ac_ext <<EOF
18747 #line 18748 "configure"
18748 #include "confdefs.h"
18750 #ifdef HAVE_DB_185_H
18751 # include <db_185.h>
18756 #ifndef DB_VERSION_MAJOR
18757 # define DB_VERSION_MAJOR 1
18761 #define NULL ((void*)0)
18766 #if DB_VERSION_MAJOR > 1
18769 int major, minor, patch;
18771 version = db_version( &major, &minor, &patch );
18773 if( major != DB_VERSION_MAJOR ||
18774 minor < DB_VERSION_MINOR )
18776 printf("Berkeley DB version mismatch\n"
18777 "\texpected: %s\n\tgot: %s\n",
18778 DB_VERSION_STRING, version);
18784 #if DB_VERSION_MAJOR > 2
18785 db_env_create( NULL, 0 );
18786 #elif DB_VERSION_MAJOR > 1
18787 db_appexit( NULL );
18789 (void) dbopen( NULL, 0, 0, 0, NULL);
18794 if { (eval echo configure:18795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18796 ol_cv_db_db_4_1=yes
18798 echo "configure: failed program was:" >&5
18799 cat conftest.$ac_ext >&5
18809 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18811 if test $ol_cv_db_db_4_1 = yes ; then
18812 ol_cv_lib_db=-ldb-4-1
18816 if test $ol_cv_lib_db = no ; then
18817 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18818 echo "configure:18819: checking for Berkeley DB link (-ldb3)" >&5
18819 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18820 echo $ac_n "(cached) $ac_c" 1>&6
18825 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18827 cat > conftest.$ac_ext <<EOF
18828 #line 18829 "configure"
18829 #include "confdefs.h"
18831 #ifdef HAVE_DB_185_H
18832 # include <db_185.h>
18837 #ifndef DB_VERSION_MAJOR
18838 # define DB_VERSION_MAJOR 1
18842 #define NULL ((void*)0)
18847 #if DB_VERSION_MAJOR > 1
18850 int major, minor, patch;
18852 version = db_version( &major, &minor, &patch );
18854 if( major != DB_VERSION_MAJOR ||
18855 minor < DB_VERSION_MINOR )
18857 printf("Berkeley DB version mismatch\n"
18858 "\texpected: %s\n\tgot: %s\n",
18859 DB_VERSION_STRING, version);
18865 #if DB_VERSION_MAJOR > 2
18866 db_env_create( NULL, 0 );
18867 #elif DB_VERSION_MAJOR > 1
18868 db_appexit( NULL );
18870 (void) dbopen( NULL, 0, 0, 0, NULL);
18875 if { (eval echo configure:18876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18879 echo "configure: failed program was:" >&5
18880 cat conftest.$ac_ext >&5
18890 echo "$ac_t""$ol_cv_db_db3" 1>&6
18892 if test $ol_cv_db_db3 = yes ; then
18897 if test $ol_cv_lib_db = no ; then
18898 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18899 echo "configure:18900: checking for Berkeley DB link (-ldb-3)" >&5
18900 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18901 echo $ac_n "(cached) $ac_c" 1>&6
18906 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18908 cat > conftest.$ac_ext <<EOF
18909 #line 18910 "configure"
18910 #include "confdefs.h"
18912 #ifdef HAVE_DB_185_H
18913 # include <db_185.h>
18918 #ifndef DB_VERSION_MAJOR
18919 # define DB_VERSION_MAJOR 1
18923 #define NULL ((void*)0)
18928 #if DB_VERSION_MAJOR > 1
18931 int major, minor, patch;
18933 version = db_version( &major, &minor, &patch );
18935 if( major != DB_VERSION_MAJOR ||
18936 minor < DB_VERSION_MINOR )
18938 printf("Berkeley DB version mismatch\n"
18939 "\texpected: %s\n\tgot: %s\n",
18940 DB_VERSION_STRING, version);
18946 #if DB_VERSION_MAJOR > 2
18947 db_env_create( NULL, 0 );
18948 #elif DB_VERSION_MAJOR > 1
18949 db_appexit( NULL );
18951 (void) dbopen( NULL, 0, 0, 0, NULL);
18956 if { (eval echo configure:18957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18960 echo "configure: failed program was:" >&5
18961 cat conftest.$ac_ext >&5
18971 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18973 if test $ol_cv_db_db_3 = yes ; then
18974 ol_cv_lib_db=-ldb-3
18978 if test $ol_cv_lib_db = no ; then
18979 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18980 echo "configure:18981: checking for Berkeley DB link (-ldb2)" >&5
18981 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18982 echo $ac_n "(cached) $ac_c" 1>&6
18987 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18989 cat > conftest.$ac_ext <<EOF
18990 #line 18991 "configure"
18991 #include "confdefs.h"
18993 #ifdef HAVE_DB_185_H
18994 # include <db_185.h>
18999 #ifndef DB_VERSION_MAJOR
19000 # define DB_VERSION_MAJOR 1
19004 #define NULL ((void*)0)
19009 #if DB_VERSION_MAJOR > 1
19012 int major, minor, patch;
19014 version = db_version( &major, &minor, &patch );
19016 if( major != DB_VERSION_MAJOR ||
19017 minor < DB_VERSION_MINOR )
19019 printf("Berkeley DB version mismatch\n"
19020 "\texpected: %s\n\tgot: %s\n",
19021 DB_VERSION_STRING, version);
19027 #if DB_VERSION_MAJOR > 2
19028 db_env_create( NULL, 0 );
19029 #elif DB_VERSION_MAJOR > 1
19030 db_appexit( NULL );
19032 (void) dbopen( NULL, 0, 0, 0, NULL);
19037 if { (eval echo configure:19038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19041 echo "configure: failed program was:" >&5
19042 cat conftest.$ac_ext >&5
19052 echo "$ac_t""$ol_cv_db_db2" 1>&6
19054 if test $ol_cv_db_db2 = yes ; then
19059 if test $ol_cv_lib_db = no ; then
19060 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19061 echo "configure:19062: checking for Berkeley DB link (-ldb-2)" >&5
19062 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19063 echo $ac_n "(cached) $ac_c" 1>&6
19068 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19070 cat > conftest.$ac_ext <<EOF
19071 #line 19072 "configure"
19072 #include "confdefs.h"
19074 #ifdef HAVE_DB_185_H
19075 # include <db_185.h>
19080 #ifndef DB_VERSION_MAJOR
19081 # define DB_VERSION_MAJOR 1
19085 #define NULL ((void*)0)
19090 #if DB_VERSION_MAJOR > 1
19093 int major, minor, patch;
19095 version = db_version( &major, &minor, &patch );
19097 if( major != DB_VERSION_MAJOR ||
19098 minor < DB_VERSION_MINOR )
19100 printf("Berkeley DB version mismatch\n"
19101 "\texpected: %s\n\tgot: %s\n",
19102 DB_VERSION_STRING, version);
19108 #if DB_VERSION_MAJOR > 2
19109 db_env_create( NULL, 0 );
19110 #elif DB_VERSION_MAJOR > 1
19111 db_appexit( NULL );
19113 (void) dbopen( NULL, 0, 0, 0, NULL);
19118 if { (eval echo configure:19119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19122 echo "configure: failed program was:" >&5
19123 cat conftest.$ac_ext >&5
19133 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19135 if test $ol_cv_db_db_2 = yes ; then
19136 ol_cv_lib_db=-ldb-2
19140 if test $ol_cv_lib_db = no ; then
19141 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19142 echo "configure:19143: checking for Berkeley DB link (-ldb1)" >&5
19143 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19144 echo $ac_n "(cached) $ac_c" 1>&6
19149 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19151 cat > conftest.$ac_ext <<EOF
19152 #line 19153 "configure"
19153 #include "confdefs.h"
19155 #ifdef HAVE_DB_185_H
19156 # include <db_185.h>
19161 #ifndef DB_VERSION_MAJOR
19162 # define DB_VERSION_MAJOR 1
19166 #define NULL ((void*)0)
19171 #if DB_VERSION_MAJOR > 1
19174 int major, minor, patch;
19176 version = db_version( &major, &minor, &patch );
19178 if( major != DB_VERSION_MAJOR ||
19179 minor < DB_VERSION_MINOR )
19181 printf("Berkeley DB version mismatch\n"
19182 "\texpected: %s\n\tgot: %s\n",
19183 DB_VERSION_STRING, version);
19189 #if DB_VERSION_MAJOR > 2
19190 db_env_create( NULL, 0 );
19191 #elif DB_VERSION_MAJOR > 1
19192 db_appexit( NULL );
19194 (void) dbopen( NULL, 0, 0, 0, NULL);
19199 if { (eval echo configure:19200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19203 echo "configure: failed program was:" >&5
19204 cat conftest.$ac_ext >&5
19214 echo "$ac_t""$ol_cv_db_db1" 1>&6
19216 if test $ol_cv_db_db1 = yes ; then
19221 if test $ol_cv_lib_db = no ; then
19222 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19223 echo "configure:19224: checking for Berkeley DB link (-ldb-1)" >&5
19224 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19225 echo $ac_n "(cached) $ac_c" 1>&6
19230 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19232 cat > conftest.$ac_ext <<EOF
19233 #line 19234 "configure"
19234 #include "confdefs.h"
19236 #ifdef HAVE_DB_185_H
19237 # include <db_185.h>
19242 #ifndef DB_VERSION_MAJOR
19243 # define DB_VERSION_MAJOR 1
19247 #define NULL ((void*)0)
19252 #if DB_VERSION_MAJOR > 1
19255 int major, minor, patch;
19257 version = db_version( &major, &minor, &patch );
19259 if( major != DB_VERSION_MAJOR ||
19260 minor < DB_VERSION_MINOR )
19262 printf("Berkeley DB version mismatch\n"
19263 "\texpected: %s\n\tgot: %s\n",
19264 DB_VERSION_STRING, version);
19270 #if DB_VERSION_MAJOR > 2
19271 db_env_create( NULL, 0 );
19272 #elif DB_VERSION_MAJOR > 1
19273 db_appexit( NULL );
19275 (void) dbopen( NULL, 0, 0, 0, NULL);
19280 if { (eval echo configure:19281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19284 echo "configure: failed program was:" >&5
19285 cat conftest.$ac_ext >&5
19295 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19297 if test $ol_cv_db_db_1 = yes ; then
19298 ol_cv_lib_db=-ldb-1
19303 if test "$ol_cv_lib_db" != no ; then
19304 ol_cv_berkeley_db=yes
19305 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19306 echo "configure:19307: checking for Berkeley DB thread support" >&5
19307 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19308 echo $ac_n "(cached) $ac_c" 1>&6
19312 LIBS="$LTHREAD_LIBS $LIBS"
19313 if test $ol_cv_lib_db != yes ; then
19314 LIBS="$ol_cv_lib_db $LIBS"
19317 if test "$cross_compiling" = yes; then
19318 ol_cv_berkeley_db_thread=cross
19320 cat > conftest.$ac_ext <<EOF
19321 #line 19322 "configure"
19322 #include "confdefs.h"
19324 #ifdef HAVE_DB_185_H
19330 #define NULL ((void *)0)
19335 u_int32_t flags = DB_CREATE |
19341 #if DB_VERSION_MAJOR > 2
19342 DB_ENV *env = NULL;
19344 rc = db_env_create( &env, 0 );
19346 flags |= DB_INIT_MPOOL;
19347 #ifdef DB_MPOOL_PRIVATE
19348 flags |= DB_MPOOL_PRIVATE;
19352 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19356 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19357 rc = env->open( env, NULL, flags, 0 );
19359 rc = env->open( env, NULL, NULL, flags, 0 );
19363 rc = env->close( env, 0 );
19367 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19373 memset( &env, '\0', sizeof(env) );
19375 rc = db_appinit( NULL, NULL, &env, flags );
19378 db_appexit( &env );
19381 unlink("__db_mpool.share");
19382 unlink("__db_lock.share");
19388 if { (eval echo configure:19389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19390 ol_cv_berkeley_db_thread=yes
19392 echo "configure: failed program was:" >&5
19393 cat conftest.$ac_ext >&5
19395 ol_cv_berkeley_db_thread=no
19405 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19407 if test $ol_cv_berkeley_db_thread != no ; then
19408 cat >> confdefs.h <<\EOF
19409 #define HAVE_BERKELEY_DB_THREAD 1
19419 if test $ol_cv_berkeley_db != no ; then
19420 cat >> confdefs.h <<\EOF
19421 #define HAVE_BERKELEY_DB 1
19425 ol_link_ldbm=berkeley
19426 ol_with_ldbm_api=berkeley
19428 if test $ol_with_ldbm_type = hash ; then
19429 cat >> confdefs.h <<\EOF
19430 #define LDBM_USE_DBHASH 1
19434 cat >> confdefs.h <<\EOF
19435 #define LDBM_USE_DBBTREE 1
19440 if test $ol_cv_lib_db != yes ; then
19441 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19446 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19447 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19448 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19449 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19450 echo "configure:19451: checking Berkeley DB version for BDB backend" >&5
19451 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19452 echo $ac_n "(cached) $ac_c" 1>&6
19455 cat > conftest.$ac_ext <<EOF
19456 #line 19457 "configure"
19457 #include "confdefs.h"
19461 /* this check could be improved */
19462 #ifndef DB_VERSION_MAJOR
19463 # define DB_VERSION_MAJOR 1
19465 #ifndef DB_VERSION_MINOR
19466 # define DB_VERSION_MINOR 0
19469 /* require 4.2 or later */
19470 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19471 __db_version_compat
19475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19476 egrep "__db_version_compat" >/dev/null 2>&1; then
19478 ol_cv_bdb_compat=yes
19481 ol_cv_bdb_compat=no
19487 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19490 if test $ol_cv_bdb_compat = yes ; then
19492 elif test $ol_enable_bdb = yes ; then
19493 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19498 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19499 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19502 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19503 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19504 ol_with_ldbm_api=none
19507 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19508 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19509 echo "configure:19510: checking for MDBM library" >&5
19510 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19511 echo $ac_n "(cached) $ac_c" 1>&6
19514 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19515 echo "configure:19516: checking for mdbm_set_chain" >&5
19516 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19517 echo $ac_n "(cached) $ac_c" 1>&6
19519 cat > conftest.$ac_ext <<EOF
19520 #line 19521 "configure"
19521 #include "confdefs.h"
19522 /* System header to define __stub macros and hopefully few prototypes,
19523 which can conflict with char mdbm_set_chain(); below. */
19524 #include <assert.h>
19525 /* Override any gcc2 internal prototype to avoid an error. */
19526 /* We use char because int might match the return type of a gcc2
19527 builtin and then its argument prototype would still apply. */
19528 char mdbm_set_chain();
19533 /* The GNU C library defines this for functions which it implements
19534 to always fail with ENOSYS. Some functions are actually named
19535 something starting with __ and the normal name is an alias. */
19536 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19539 f = mdbm_set_chain;
19544 if { (eval echo configure:19545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19546 eval "ac_cv_func_mdbm_set_chain=yes"
19548 echo "configure: failed program was:" >&5
19549 cat conftest.$ac_ext >&5
19551 eval "ac_cv_func_mdbm_set_chain=no"
19556 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19557 echo "$ac_t""yes" 1>&6
19560 echo "$ac_t""no" 1>&6
19562 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19563 echo "configure:19564: checking for mdbm_set_chain in -lmdbm" >&5
19564 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19565 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19566 echo $ac_n "(cached) $ac_c" 1>&6
19568 ac_save_LIBS="$LIBS"
19569 LIBS="-lmdbm $LIBS"
19570 cat > conftest.$ac_ext <<EOF
19571 #line 19572 "configure"
19572 #include "confdefs.h"
19573 /* Override any gcc2 internal prototype to avoid an error. */
19574 /* We use char because int might match the return type of a gcc2
19575 builtin and then its argument prototype would still apply. */
19576 char mdbm_set_chain();
19582 if { (eval echo configure:19583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19584 eval "ac_cv_lib_$ac_lib_var=yes"
19586 echo "configure: failed program was:" >&5
19587 cat conftest.$ac_ext >&5
19589 eval "ac_cv_lib_$ac_lib_var=no"
19592 LIBS="$ac_save_LIBS"
19595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19596 echo "$ac_t""yes" 1>&6
19597 ol_cv_lib_mdbm=-lmdbm
19599 echo "$ac_t""no" 1>&6
19610 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19613 for ac_hdr in mdbm.h
19615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19617 echo "configure:19618: checking for $ac_hdr" >&5
19618 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19619 echo $ac_n "(cached) $ac_c" 1>&6
19621 cat > conftest.$ac_ext <<EOF
19622 #line 19623 "configure"
19623 #include "confdefs.h"
19626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19627 { (eval echo configure:19628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19629 if test -z "$ac_err"; then
19631 eval "ac_cv_header_$ac_safe=yes"
19634 echo "configure: failed program was:" >&5
19635 cat conftest.$ac_ext >&5
19637 eval "ac_cv_header_$ac_safe=no"
19641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19642 echo "$ac_t""yes" 1>&6
19643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19644 cat >> confdefs.h <<EOF
19645 #define $ac_tr_hdr 1
19649 echo "$ac_t""no" 1>&6
19653 echo $ac_n "checking for db""... $ac_c" 1>&6
19654 echo "configure:19655: checking for db" >&5
19655 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19656 echo $ac_n "(cached) $ac_c" 1>&6
19659 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19667 echo "$ac_t""$ol_cv_mdbm" 1>&6
19668 if test $ol_cv_mdbm = yes ; then
19669 cat >> confdefs.h <<\EOF
19670 #define HAVE_MDBM 1
19676 if test $ol_cv_mdbm = yes ; then
19678 ol_with_ldbm_api=mdbm
19679 if test $ol_cv_lib_mdbm != yes ; then
19680 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19685 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19686 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19687 echo "configure:19688: checking for GDBM library" >&5
19688 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19689 echo $ac_n "(cached) $ac_c" 1>&6
19692 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19693 echo "configure:19694: checking for gdbm_open" >&5
19694 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19695 echo $ac_n "(cached) $ac_c" 1>&6
19697 cat > conftest.$ac_ext <<EOF
19698 #line 19699 "configure"
19699 #include "confdefs.h"
19700 /* System header to define __stub macros and hopefully few prototypes,
19701 which can conflict with char gdbm_open(); below. */
19702 #include <assert.h>
19703 /* Override any gcc2 internal prototype to avoid an error. */
19704 /* We use char because int might match the return type of a gcc2
19705 builtin and then its argument prototype would still apply. */
19711 /* The GNU C library defines this for functions which it implements
19712 to always fail with ENOSYS. Some functions are actually named
19713 something starting with __ and the normal name is an alias. */
19714 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19722 if { (eval echo configure:19723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19724 eval "ac_cv_func_gdbm_open=yes"
19726 echo "configure: failed program was:" >&5
19727 cat conftest.$ac_ext >&5
19729 eval "ac_cv_func_gdbm_open=no"
19734 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19735 echo "$ac_t""yes" 1>&6
19738 echo "$ac_t""no" 1>&6
19740 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19741 echo "configure:19742: checking for gdbm_open in -lgdbm" >&5
19742 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19743 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19744 echo $ac_n "(cached) $ac_c" 1>&6
19746 ac_save_LIBS="$LIBS"
19747 LIBS="-lgdbm $LIBS"
19748 cat > conftest.$ac_ext <<EOF
19749 #line 19750 "configure"
19750 #include "confdefs.h"
19751 /* Override any gcc2 internal prototype to avoid an error. */
19752 /* We use char because int might match the return type of a gcc2
19753 builtin and then its argument prototype would still apply. */
19760 if { (eval echo configure:19761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19762 eval "ac_cv_lib_$ac_lib_var=yes"
19764 echo "configure: failed program was:" >&5
19765 cat conftest.$ac_ext >&5
19767 eval "ac_cv_lib_$ac_lib_var=no"
19770 LIBS="$ac_save_LIBS"
19773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19774 echo "$ac_t""yes" 1>&6
19775 ol_cv_lib_gdbm=-lgdbm
19777 echo "$ac_t""no" 1>&6
19788 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19791 for ac_hdr in gdbm.h
19793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19795 echo "configure:19796: checking for $ac_hdr" >&5
19796 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19797 echo $ac_n "(cached) $ac_c" 1>&6
19799 cat > conftest.$ac_ext <<EOF
19800 #line 19801 "configure"
19801 #include "confdefs.h"
19804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19805 { (eval echo configure:19806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19807 if test -z "$ac_err"; then
19809 eval "ac_cv_header_$ac_safe=yes"
19812 echo "configure: failed program was:" >&5
19813 cat conftest.$ac_ext >&5
19815 eval "ac_cv_header_$ac_safe=no"
19819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19820 echo "$ac_t""yes" 1>&6
19821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19822 cat >> confdefs.h <<EOF
19823 #define $ac_tr_hdr 1
19827 echo "$ac_t""no" 1>&6
19831 echo $ac_n "checking for db""... $ac_c" 1>&6
19832 echo "configure:19833: checking for db" >&5
19833 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19834 echo $ac_n "(cached) $ac_c" 1>&6
19837 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19845 echo "$ac_t""$ol_cv_gdbm" 1>&6
19846 if test $ol_cv_gdbm = yes ; then
19847 cat >> confdefs.h <<\EOF
19848 #define HAVE_GDBM 1
19854 if test $ol_cv_gdbm = yes ; then
19856 ol_with_ldbm_api=gdbm
19858 if test $ol_cv_lib_gdbm != yes ; then
19859 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19864 if test $ol_with_ldbm_api = ndbm ; then
19865 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19866 echo "configure:19867: checking for NDBM library" >&5
19867 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19868 echo $ac_n "(cached) $ac_c" 1>&6
19871 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19872 echo "configure:19873: checking for dbm_open" >&5
19873 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19874 echo $ac_n "(cached) $ac_c" 1>&6
19876 cat > conftest.$ac_ext <<EOF
19877 #line 19878 "configure"
19878 #include "confdefs.h"
19879 /* System header to define __stub macros and hopefully few prototypes,
19880 which can conflict with char dbm_open(); below. */
19881 #include <assert.h>
19882 /* Override any gcc2 internal prototype to avoid an error. */
19883 /* We use char because int might match the return type of a gcc2
19884 builtin and then its argument prototype would still apply. */
19890 /* The GNU C library defines this for functions which it implements
19891 to always fail with ENOSYS. Some functions are actually named
19892 something starting with __ and the normal name is an alias. */
19893 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19901 if { (eval echo configure:19902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19903 eval "ac_cv_func_dbm_open=yes"
19905 echo "configure: failed program was:" >&5
19906 cat conftest.$ac_ext >&5
19908 eval "ac_cv_func_dbm_open=no"
19913 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19914 echo "$ac_t""yes" 1>&6
19917 echo "$ac_t""no" 1>&6
19919 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19920 echo "configure:19921: checking for dbm_open in -lndbm" >&5
19921 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19922 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19923 echo $ac_n "(cached) $ac_c" 1>&6
19925 ac_save_LIBS="$LIBS"
19926 LIBS="-lndbm $LIBS"
19927 cat > conftest.$ac_ext <<EOF
19928 #line 19929 "configure"
19929 #include "confdefs.h"
19930 /* Override any gcc2 internal prototype to avoid an error. */
19931 /* We use char because int might match the return type of a gcc2
19932 builtin and then its argument prototype would still apply. */
19939 if { (eval echo configure:19940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19941 eval "ac_cv_lib_$ac_lib_var=yes"
19943 echo "configure: failed program was:" >&5
19944 cat conftest.$ac_ext >&5
19946 eval "ac_cv_lib_$ac_lib_var=no"
19949 LIBS="$ac_save_LIBS"
19952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19953 echo "$ac_t""yes" 1>&6
19954 ol_cv_lib_ndbm=-lndbm
19956 echo "$ac_t""no" 1>&6
19958 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19959 echo "configure:19960: checking for dbm_open in -ldbm" >&5
19960 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19961 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19962 echo $ac_n "(cached) $ac_c" 1>&6
19964 ac_save_LIBS="$LIBS"
19966 cat > conftest.$ac_ext <<EOF
19967 #line 19968 "configure"
19968 #include "confdefs.h"
19969 /* Override any gcc2 internal prototype to avoid an error. */
19970 /* We use char because int might match the return type of a gcc2
19971 builtin and then its argument prototype would still apply. */
19978 if { (eval echo configure:19979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19980 eval "ac_cv_lib_$ac_lib_var=yes"
19982 echo "configure: failed program was:" >&5
19983 cat conftest.$ac_ext >&5
19985 eval "ac_cv_lib_$ac_lib_var=no"
19988 LIBS="$ac_save_LIBS"
19991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19992 echo "$ac_t""yes" 1>&6
19993 ol_cv_lib_ndbm=-ldbm
19995 echo "$ac_t""no" 1>&6
20008 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20011 for ac_hdr in ndbm.h
20013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20015 echo "configure:20016: checking for $ac_hdr" >&5
20016 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20017 echo $ac_n "(cached) $ac_c" 1>&6
20019 cat > conftest.$ac_ext <<EOF
20020 #line 20021 "configure"
20021 #include "confdefs.h"
20024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20025 { (eval echo configure:20026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20027 if test -z "$ac_err"; then
20029 eval "ac_cv_header_$ac_safe=yes"
20032 echo "configure: failed program was:" >&5
20033 cat conftest.$ac_ext >&5
20035 eval "ac_cv_header_$ac_safe=no"
20039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20040 echo "$ac_t""yes" 1>&6
20041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20042 cat >> confdefs.h <<EOF
20043 #define $ac_tr_hdr 1
20047 echo "$ac_t""no" 1>&6
20051 echo $ac_n "checking for db""... $ac_c" 1>&6
20052 echo "configure:20053: checking for db" >&5
20053 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20054 echo $ac_n "(cached) $ac_c" 1>&6
20057 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20065 echo "$ac_t""$ol_cv_ndbm" 1>&6
20066 if test $ol_cv_ndbm = yes ; then
20067 cat >> confdefs.h <<\EOF
20068 #define HAVE_NDBM 1
20074 if test $ol_cv_ndbm = yes ; then
20076 ol_with_ldbm_api=ndbm
20078 if test $ol_cv_lib_ndbm != yes ; then
20079 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20084 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20085 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20086 if test $ol_enable_ldbm = yes ; then
20087 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20090 echo "configure: warning: disabling LDBM" 1>&2
20095 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20096 BUILD_LIBS_DYNAMIC=shared
20097 cat >> confdefs.h <<\EOF
20098 #define LDAP_LIBS_DYNAMIC 1
20103 BUILD_LIBS_DYNAMIC=static
20107 if test $ol_enable_wrappers != no ; then
20108 for ac_hdr in tcpd.h
20110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20112 echo "configure:20113: checking for $ac_hdr" >&5
20113 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20114 echo $ac_n "(cached) $ac_c" 1>&6
20116 cat > conftest.$ac_ext <<EOF
20117 #line 20118 "configure"
20118 #include "confdefs.h"
20121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20122 { (eval echo configure:20123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20124 if test -z "$ac_err"; then
20126 eval "ac_cv_header_$ac_safe=yes"
20129 echo "configure: failed program was:" >&5
20130 cat conftest.$ac_ext >&5
20132 eval "ac_cv_header_$ac_safe=no"
20136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20137 echo "$ac_t""yes" 1>&6
20138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20139 cat >> confdefs.h <<EOF
20140 #define $ac_tr_hdr 1
20143 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20144 echo "configure:20145: checking for TCP wrappers library" >&5
20146 LIBS="$LIBS -lwrap"
20147 cat > conftest.$ac_ext <<EOF
20148 #line 20149 "configure"
20149 #include "confdefs.h"
20152 int allow_severity = 0;
20153 int deny_severity = 0;
20155 struct request_info *req;
20163 if { (eval echo configure:20164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20165 echo "$ac_t""-lwrap" 1>&6
20169 echo "configure: failed program was:" >&5
20170 cat conftest.$ac_ext >&5
20174 cat > conftest.$ac_ext <<EOF
20175 #line 20176 "configure"
20176 #include "confdefs.h"
20179 int allow_severity = 0;
20180 int deny_severity = 0;
20182 struct request_info *req;
20190 if { (eval echo configure:20191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20192 echo "$ac_t""-lwrap -lnsl" 1>&6
20194 LIBS="$save_LIBS -lnsl"
20196 echo "configure: failed program was:" >&5
20197 cat conftest.$ac_ext >&5
20200 echo "$ac_t""no" 1>&6
20208 echo "$ac_t""no" 1>&6
20214 if test $have_wrappers = yes ; then
20215 cat >> confdefs.h <<\EOF
20216 #define HAVE_TCPD 1
20220 elif test $ol_enable_wrappers = yes ; then
20221 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20223 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20228 if test $ol_enable_syslog != no ; then
20229 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20230 echo "configure:20231: checking for openlog" >&5
20231 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20232 echo $ac_n "(cached) $ac_c" 1>&6
20234 cat > conftest.$ac_ext <<EOF
20235 #line 20236 "configure"
20236 #include "confdefs.h"
20237 /* System header to define __stub macros and hopefully few prototypes,
20238 which can conflict with char openlog(); below. */
20239 #include <assert.h>
20240 /* Override any gcc2 internal prototype to avoid an error. */
20241 /* We use char because int might match the return type of a gcc2
20242 builtin and then its argument prototype would still apply. */
20248 /* The GNU C library defines this for functions which it implements
20249 to always fail with ENOSYS. Some functions are actually named
20250 something starting with __ and the normal name is an alias. */
20251 #if defined (__stub_openlog) || defined (__stub___openlog)
20259 if { (eval echo configure:20260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20261 eval "ac_cv_func_openlog=yes"
20263 echo "configure: failed program was:" >&5
20264 cat conftest.$ac_ext >&5
20266 eval "ac_cv_func_openlog=no"
20271 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20272 echo "$ac_t""yes" 1>&6
20275 echo "$ac_t""no" 1>&6
20278 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20279 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20281 ol_enable_syslog=$ac_cv_func_openlog
20286 if test $ol_enable_sql != no ; then
20287 for ac_hdr in sql.h sqlext.h
20289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20291 echo "configure:20292: checking for $ac_hdr" >&5
20292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20293 echo $ac_n "(cached) $ac_c" 1>&6
20295 cat > conftest.$ac_ext <<EOF
20296 #line 20297 "configure"
20297 #include "confdefs.h"
20300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20301 { (eval echo configure:20302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20303 if test -z "$ac_err"; then
20305 eval "ac_cv_header_$ac_safe=yes"
20308 echo "configure: failed program was:" >&5
20309 cat conftest.$ac_ext >&5
20311 eval "ac_cv_header_$ac_safe=no"
20315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20316 echo "$ac_t""yes" 1>&6
20317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20318 cat >> confdefs.h <<EOF
20319 #define $ac_tr_hdr 1
20323 echo "$ac_t""no" 1>&6
20324 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20330 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20331 echo "configure:20332: checking for SQLDriverConnect in -liodbc" >&5
20332 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20334 echo $ac_n "(cached) $ac_c" 1>&6
20336 ac_save_LIBS="$LIBS"
20337 LIBS="-liodbc $LIBS"
20338 cat > conftest.$ac_ext <<EOF
20339 #line 20340 "configure"
20340 #include "confdefs.h"
20341 /* Override any gcc2 internal prototype to avoid an error. */
20342 /* We use char because int might match the return type of a gcc2
20343 builtin and then its argument prototype would still apply. */
20344 char SQLDriverConnect();
20350 if { (eval echo configure:20351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20352 eval "ac_cv_lib_$ac_lib_var=yes"
20354 echo "configure: failed program was:" >&5
20355 cat conftest.$ac_ext >&5
20357 eval "ac_cv_lib_$ac_lib_var=no"
20360 LIBS="$ac_save_LIBS"
20363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20364 echo "$ac_t""yes" 1>&6
20367 echo "$ac_t""no" 1>&6
20371 if test $have_iodbc = yes ; then
20372 ol_link_sql="-liodbc"
20374 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20375 echo "configure:20376: checking for SQLDriverConnect in -lodbc" >&5
20376 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20377 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20378 echo $ac_n "(cached) $ac_c" 1>&6
20380 ac_save_LIBS="$LIBS"
20381 LIBS="-lodbc $LIBS"
20382 cat > conftest.$ac_ext <<EOF
20383 #line 20384 "configure"
20384 #include "confdefs.h"
20385 /* Override any gcc2 internal prototype to avoid an error. */
20386 /* We use char because int might match the return type of a gcc2
20387 builtin and then its argument prototype would still apply. */
20388 char SQLDriverConnect();
20394 if { (eval echo configure:20395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20396 eval "ac_cv_lib_$ac_lib_var=yes"
20398 echo "configure: failed program was:" >&5
20399 cat conftest.$ac_ext >&5
20401 eval "ac_cv_lib_$ac_lib_var=no"
20404 LIBS="$ac_save_LIBS"
20407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20408 echo "$ac_t""yes" 1>&6
20411 echo "$ac_t""no" 1>&6
20415 if test $have_odbc = yes ; then
20416 ol_link_sql="-lodbc"
20420 if test $ol_link_sql != no ; then
20421 SLAPD_SQL_LIBS="$ol_link_sql"
20423 elif test $ol_enable_sql != auto ; then
20424 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20430 if test $ol_with_cyrus_sasl != no ; then
20431 for ac_hdr in sasl/sasl.h sasl.h
20433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20435 echo "configure:20436: checking for $ac_hdr" >&5
20436 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20437 echo $ac_n "(cached) $ac_c" 1>&6
20439 cat > conftest.$ac_ext <<EOF
20440 #line 20441 "configure"
20441 #include "confdefs.h"
20444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20445 { (eval echo configure:20446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20447 if test -z "$ac_err"; then
20449 eval "ac_cv_header_$ac_safe=yes"
20452 echo "configure: failed program was:" >&5
20453 cat conftest.$ac_ext >&5
20455 eval "ac_cv_header_$ac_safe=no"
20459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20460 echo "$ac_t""yes" 1>&6
20461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20462 cat >> confdefs.h <<EOF
20463 #define $ac_tr_hdr 1
20467 echo "$ac_t""no" 1>&6
20472 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20473 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20474 echo "configure:20475: checking for sasl_client_init in -lsasl2" >&5
20475 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20476 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20477 echo $ac_n "(cached) $ac_c" 1>&6
20479 ac_save_LIBS="$LIBS"
20480 LIBS="-lsasl2 $LIBS"
20481 cat > conftest.$ac_ext <<EOF
20482 #line 20483 "configure"
20483 #include "confdefs.h"
20484 /* Override any gcc2 internal prototype to avoid an error. */
20485 /* We use char because int might match the return type of a gcc2
20486 builtin and then its argument prototype would still apply. */
20487 char sasl_client_init();
20493 if { (eval echo configure:20494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20495 eval "ac_cv_lib_$ac_lib_var=yes"
20497 echo "configure: failed program was:" >&5
20498 cat conftest.$ac_ext >&5
20500 eval "ac_cv_lib_$ac_lib_var=no"
20503 LIBS="$ac_save_LIBS"
20506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20507 echo "$ac_t""yes" 1>&6
20508 ol_link_sasl="-lsasl2"
20510 echo "$ac_t""no" 1>&6
20511 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20512 echo "configure:20513: checking for sasl_client_init in -lsasl" >&5
20513 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20514 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20515 echo $ac_n "(cached) $ac_c" 1>&6
20517 ac_save_LIBS="$LIBS"
20518 LIBS="-lsasl $LIBS"
20519 cat > conftest.$ac_ext <<EOF
20520 #line 20521 "configure"
20521 #include "confdefs.h"
20522 /* Override any gcc2 internal prototype to avoid an error. */
20523 /* We use char because int might match the return type of a gcc2
20524 builtin and then its argument prototype would still apply. */
20525 char sasl_client_init();
20531 if { (eval echo configure:20532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20533 eval "ac_cv_lib_$ac_lib_var=yes"
20535 echo "configure: failed program was:" >&5
20536 cat conftest.$ac_ext >&5
20538 eval "ac_cv_lib_$ac_lib_var=no"
20541 LIBS="$ac_save_LIBS"
20544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20545 echo "$ac_t""yes" 1>&6
20546 ol_link_sasl="-lsasl"
20548 echo "$ac_t""no" 1>&6
20555 if test $ol_link_sasl = no ; then
20556 if test $ol_with_cyrus_sasl != auto ; then
20557 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20559 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20560 echo "configure: warning: SASL authentication not supported!" 1>&2
20561 if test $ol_link_tls = no ; then
20562 echo "configure: warning: Strong authentication not supported!" 1>&2
20566 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20567 echo "configure:20568: checking Cyrus SASL library version" >&5
20568 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20569 echo $ac_n "(cached) $ac_c" 1>&6
20572 cat > conftest.$ac_ext <<EOF
20573 #line 20574 "configure"
20574 #include "confdefs.h"
20576 #ifdef HAVE_SASL_SASL_H
20577 #include <sasl/sasl.h>
20582 /* Require 2.1.15+ */
20583 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20584 char *__sasl_compat = "2.2+ or better okay (we guess)";
20585 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20586 && SASL_VERSION_STEP >=15
20587 char *__sasl_compat = "2.1.15+ or better okay";
20591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20592 egrep "__sasl_compat" >/dev/null 2>&1; then
20594 ol_cv_sasl_compat=yes
20597 ol_cv_sasl_compat=no
20603 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20605 if test $ol_cv_sasl_compat = no ; then
20607 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
20610 cat >> confdefs.h <<\EOF
20611 #define HAVE_CYRUS_SASL 1
20614 SASL_LIBS="$ol_link_sasl"
20615 if test $ol_enable_spasswd != no ; then
20616 ol_link_spasswd=yes
20619 ac_save_LIBS="$LIBS"
20620 LIBS="$LIBS $ol_link_sasl"
20621 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20622 echo "configure:20623: checking for sasl_version" >&5
20623 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20624 echo $ac_n "(cached) $ac_c" 1>&6
20626 cat > conftest.$ac_ext <<EOF
20627 #line 20628 "configure"
20628 #include "confdefs.h"
20629 /* System header to define __stub macros and hopefully few prototypes,
20630 which can conflict with char sasl_version(); below. */
20631 #include <assert.h>
20632 /* Override any gcc2 internal prototype to avoid an error. */
20633 /* We use char because int might match the return type of a gcc2
20634 builtin and then its argument prototype would still apply. */
20635 char sasl_version();
20640 /* The GNU C library defines this for functions which it implements
20641 to always fail with ENOSYS. Some functions are actually named
20642 something starting with __ and the normal name is an alias. */
20643 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20651 if { (eval echo configure:20652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20653 eval "ac_cv_func_sasl_version=yes"
20655 echo "configure: failed program was:" >&5
20656 cat conftest.$ac_ext >&5
20658 eval "ac_cv_func_sasl_version=no"
20663 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20664 echo "$ac_t""yes" 1>&6
20665 cat >> confdefs.h <<\EOF
20666 #define HAVE_SASL_VERSION 1
20670 echo "$ac_t""no" 1>&6
20673 LIBS="$ac_save_LIBS"
20677 echo "configure: warning: SASL authentication not supported!" 1>&2
20678 if test $ol_link_tls = no ; then
20679 echo "configure: warning: Strong authentication not supported!" 1>&2
20683 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20685 if test -r /dev/urandom ; then
20686 dev="/dev/urandom";
20687 elif test -r /idev/urandom ; then
20688 dev="/idev/urandom";
20689 elif test -r /dev/srandom ; then
20690 dev="/dev/srandom";
20691 elif test -r /dev/random ; then
20693 elif test -r /idev/random ; then
20694 dev="/idev/random";
20697 if test $dev != no ; then
20698 cat >> confdefs.h <<EOF
20699 #define URANDOM_DEVICE "$dev"
20706 if test $ol_with_fetch != no ; then
20708 LIBS="-lfetch -lcom_err $LIBS"
20709 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20710 echo "configure:20711: checking fetch(3) library" >&5
20711 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20712 echo $ac_n "(cached) $ac_c" 1>&6
20715 cat > conftest.$ac_ext <<EOF
20716 #line 20717 "configure"
20717 #include "confdefs.h"
20719 #include <sys/param.h>
20723 struct url *u = fetchParseURL("file:///");
20726 if { (eval echo configure:20727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20728 ol_cv_lib_fetch=yes
20730 echo "configure: failed program was:" >&5
20731 cat conftest.$ac_ext >&5
20738 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20740 if test $ol_cv_lib_fetch != no ; then
20741 ol_link_fetch="-lfetch -lcom_err"
20742 cat >> confdefs.h <<\EOF
20743 #define HAVE_FETCH 1
20749 if test $ol_cv_lib_fetch != no ; then
20750 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
20751 ol_link_fetch=freebsd
20753 elif test $ol_with_fetch != auto ; then
20754 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20758 if test $ol_enable_crypt != no ; then
20760 LIBS="$TLS_LIBS $LIBS"
20762 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20763 echo "configure:20764: checking for crypt" >&5
20764 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20765 echo $ac_n "(cached) $ac_c" 1>&6
20767 cat > conftest.$ac_ext <<EOF
20768 #line 20769 "configure"
20769 #include "confdefs.h"
20770 /* System header to define __stub macros and hopefully few prototypes,
20771 which can conflict with char crypt(); below. */
20772 #include <assert.h>
20773 /* Override any gcc2 internal prototype to avoid an error. */
20774 /* We use char because int might match the return type of a gcc2
20775 builtin and then its argument prototype would still apply. */
20781 /* The GNU C library defines this for functions which it implements
20782 to always fail with ENOSYS. Some functions are actually named
20783 something starting with __ and the normal name is an alias. */
20784 #if defined (__stub_crypt) || defined (__stub___crypt)
20792 if { (eval echo configure:20793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20794 eval "ac_cv_func_crypt=yes"
20796 echo "configure: failed program was:" >&5
20797 cat conftest.$ac_ext >&5
20799 eval "ac_cv_func_crypt=no"
20804 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20805 echo "$ac_t""yes" 1>&6
20808 echo "$ac_t""no" 1>&6
20811 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20812 echo "configure:20813: checking for crypt in -lcrypt" >&5
20813 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20815 echo $ac_n "(cached) $ac_c" 1>&6
20817 ac_save_LIBS="$LIBS"
20818 LIBS="-lcrypt $LIBS"
20819 cat > conftest.$ac_ext <<EOF
20820 #line 20821 "configure"
20821 #include "confdefs.h"
20822 /* Override any gcc2 internal prototype to avoid an error. */
20823 /* We use char because int might match the return type of a gcc2
20824 builtin and then its argument prototype would still apply. */
20831 if { (eval echo configure:20832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20833 eval "ac_cv_lib_$ac_lib_var=yes"
20835 echo "configure: failed program was:" >&5
20836 cat conftest.$ac_ext >&5
20838 eval "ac_cv_lib_$ac_lib_var=no"
20841 LIBS="$ac_save_LIBS"
20844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20845 echo "$ac_t""yes" 1>&6
20846 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20849 echo "$ac_t""no" 1>&6
20858 if test $have_crypt = yes ; then
20859 cat >> confdefs.h <<\EOF
20860 #define HAVE_CRYPT 1
20864 echo "configure: warning: could not find crypt" 1>&2
20865 if test $ol_enable_crypt = yes ; then
20866 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
20869 echo "configure: warning: disabling crypt support" 1>&2
20874 if test $ol_enable_proctitle != no ; then
20875 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20876 echo "configure:20877: checking for setproctitle" >&5
20877 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20878 echo $ac_n "(cached) $ac_c" 1>&6
20880 cat > conftest.$ac_ext <<EOF
20881 #line 20882 "configure"
20882 #include "confdefs.h"
20883 /* System header to define __stub macros and hopefully few prototypes,
20884 which can conflict with char setproctitle(); below. */
20885 #include <assert.h>
20886 /* Override any gcc2 internal prototype to avoid an error. */
20887 /* We use char because int might match the return type of a gcc2
20888 builtin and then its argument prototype would still apply. */
20889 char setproctitle();
20894 /* The GNU C library defines this for functions which it implements
20895 to always fail with ENOSYS. Some functions are actually named
20896 something starting with __ and the normal name is an alias. */
20897 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20905 if { (eval echo configure:20906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20907 eval "ac_cv_func_setproctitle=yes"
20909 echo "configure: failed program was:" >&5
20910 cat conftest.$ac_ext >&5
20912 eval "ac_cv_func_setproctitle=no"
20917 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20918 echo "$ac_t""yes" 1>&6
20919 have_setproctitle=yes
20921 echo "$ac_t""no" 1>&6
20923 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20924 echo "configure:20925: checking for setproctitle in -lutil" >&5
20925 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20926 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20927 echo $ac_n "(cached) $ac_c" 1>&6
20929 ac_save_LIBS="$LIBS"
20930 LIBS="-lutil $LIBS"
20931 cat > conftest.$ac_ext <<EOF
20932 #line 20933 "configure"
20933 #include "confdefs.h"
20934 /* Override any gcc2 internal prototype to avoid an error. */
20935 /* We use char because int might match the return type of a gcc2
20936 builtin and then its argument prototype would still apply. */
20937 char setproctitle();
20943 if { (eval echo configure:20944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20945 eval "ac_cv_lib_$ac_lib_var=yes"
20947 echo "configure: failed program was:" >&5
20948 cat conftest.$ac_ext >&5
20950 eval "ac_cv_lib_$ac_lib_var=no"
20953 LIBS="$ac_save_LIBS"
20956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20957 echo "$ac_t""yes" 1>&6
20958 have_setproctitle=yes
20959 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20961 echo "$ac_t""no" 1>&6
20962 have_setproctitle=no
20963 LIBOBJS="$LIBOBJS setproctitle.o"
20964 LIBSRCS="$LIBSRCS setproctitle.c"
20970 if test $have_setproctitle = yes ; then
20971 cat >> confdefs.h <<\EOF
20972 #define HAVE_SETPROCTITLE 1
20978 if test $ol_enable_slp != no ; then
20979 for ac_hdr in slp.h
20981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20983 echo "configure:20984: checking for $ac_hdr" >&5
20984 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20985 echo $ac_n "(cached) $ac_c" 1>&6
20987 cat > conftest.$ac_ext <<EOF
20988 #line 20989 "configure"
20989 #include "confdefs.h"
20992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20993 { (eval echo configure:20994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20995 if test -z "$ac_err"; then
20997 eval "ac_cv_header_$ac_safe=yes"
21000 echo "configure: failed program was:" >&5
21001 cat conftest.$ac_ext >&5
21003 eval "ac_cv_header_$ac_safe=no"
21007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21008 echo "$ac_t""yes" 1>&6
21009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21010 cat >> confdefs.h <<EOF
21011 #define $ac_tr_hdr 1
21015 echo "$ac_t""no" 1>&6
21020 if test $ac_cv_header_slp_h = yes ; then
21021 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21022 echo "configure:21023: checking for SLPOpen in -lslp" >&5
21023 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21024 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21025 echo $ac_n "(cached) $ac_c" 1>&6
21027 ac_save_LIBS="$LIBS"
21029 cat > conftest.$ac_ext <<EOF
21030 #line 21031 "configure"
21031 #include "confdefs.h"
21032 /* Override any gcc2 internal prototype to avoid an error. */
21033 /* We use char because int might match the return type of a gcc2
21034 builtin and then its argument prototype would still apply. */
21041 if { (eval echo configure:21042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21043 eval "ac_cv_lib_$ac_lib_var=yes"
21045 echo "configure: failed program was:" >&5
21046 cat conftest.$ac_ext >&5
21048 eval "ac_cv_lib_$ac_lib_var=no"
21051 LIBS="$ac_save_LIBS"
21054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21055 echo "$ac_t""yes" 1>&6
21058 echo "$ac_t""no" 1>&6
21062 if test $have_slp = yes ; then
21063 cat >> confdefs.h <<\EOF
21067 SLAPD_SLP_LIBS=-lslp
21070 elif test $ol_enable_slp = yes ; then
21071 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21076 echo $ac_n "checking long long""... $ac_c" 1>&6
21077 echo "configure:21078: checking long long" >&5
21078 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21079 echo $ac_n "(cached) $ac_c" 1>&6
21082 cat > conftest.$ac_ext <<EOF
21083 #line 21084 "configure"
21084 #include "confdefs.h"
21090 if { (eval echo configure:21091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21092 ol_cv_type_long_long=yes
21094 echo "configure: failed program was:" >&5
21095 cat conftest.$ac_ext >&5
21097 ol_cv_type_long_long=no
21102 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21103 if test $ol_cv_type_long_long = yes; then
21104 cat >> confdefs.h <<\EOF
21105 #define HAVE_LONG_LONG 1
21110 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21111 echo "configure:21112: checking for ANSI C header files" >&5
21112 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21113 echo $ac_n "(cached) $ac_c" 1>&6
21115 cat > conftest.$ac_ext <<EOF
21116 #line 21117 "configure"
21117 #include "confdefs.h"
21118 #include <stdlib.h>
21119 #include <stdarg.h>
21120 #include <string.h>
21123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21124 { (eval echo configure:21125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21126 if test -z "$ac_err"; then
21128 ac_cv_header_stdc=yes
21131 echo "configure: failed program was:" >&5
21132 cat conftest.$ac_ext >&5
21134 ac_cv_header_stdc=no
21138 if test $ac_cv_header_stdc = yes; then
21139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21140 cat > conftest.$ac_ext <<EOF
21141 #line 21142 "configure"
21142 #include "confdefs.h"
21143 #include <string.h>
21145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21146 egrep "memchr" >/dev/null 2>&1; then
21150 ac_cv_header_stdc=no
21156 if test $ac_cv_header_stdc = yes; then
21157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21158 cat > conftest.$ac_ext <<EOF
21159 #line 21160 "configure"
21160 #include "confdefs.h"
21161 #include <stdlib.h>
21163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21164 egrep "free" >/dev/null 2>&1; then
21168 ac_cv_header_stdc=no
21174 if test $ac_cv_header_stdc = yes; then
21175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21176 if test "$cross_compiling" = yes; then
21179 cat > conftest.$ac_ext <<EOF
21180 #line 21181 "configure"
21181 #include "confdefs.h"
21183 #if ((' ' & 0x0FF) == 0x020)
21184 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21185 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21187 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21188 || ('j' <= (c) && (c) <= 'r') \
21189 || ('s' <= (c) && (c) <= 'z'))
21190 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21193 int main () { int i; for (i = 0; i < 256; i++)
21194 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21198 if { (eval echo configure:21199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21202 echo "configure: failed program was:" >&5
21203 cat conftest.$ac_ext >&5
21205 ac_cv_header_stdc=no
21213 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21214 if test $ac_cv_header_stdc = yes; then
21215 cat >> confdefs.h <<\EOF
21216 #define STDC_HEADERS 1
21221 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21222 echo "configure:21223: checking for mode_t" >&5
21223 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21224 echo $ac_n "(cached) $ac_c" 1>&6
21226 cat > conftest.$ac_ext <<EOF
21227 #line 21228 "configure"
21228 #include "confdefs.h"
21229 #include <sys/types.h>
21231 #include <stdlib.h>
21232 #include <stddef.h>
21236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21237 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21239 eval "ac_cv_type_mode_t=yes"
21242 eval "ac_cv_type_mode_t=no"
21247 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21248 echo "$ac_t""yes" 1>&6
21250 echo "$ac_t""no" 1>&6
21251 cat >> confdefs.h <<EOF
21257 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21258 echo "configure:21259: checking for off_t" >&5
21259 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21260 echo $ac_n "(cached) $ac_c" 1>&6
21262 cat > conftest.$ac_ext <<EOF
21263 #line 21264 "configure"
21264 #include "confdefs.h"
21265 #include <sys/types.h>
21267 #include <stdlib.h>
21268 #include <stddef.h>
21272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21273 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21275 eval "ac_cv_type_off_t=yes"
21278 eval "ac_cv_type_off_t=no"
21283 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21284 echo "$ac_t""yes" 1>&6
21286 echo "$ac_t""no" 1>&6
21287 cat >> confdefs.h <<EOF
21293 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21294 echo "configure:21295: checking for pid_t" >&5
21295 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21296 echo $ac_n "(cached) $ac_c" 1>&6
21298 cat > conftest.$ac_ext <<EOF
21299 #line 21300 "configure"
21300 #include "confdefs.h"
21301 #include <sys/types.h>
21303 #include <stdlib.h>
21304 #include <stddef.h>
21308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21309 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21311 eval "ac_cv_type_pid_t=yes"
21314 eval "ac_cv_type_pid_t=no"
21319 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21320 echo "$ac_t""yes" 1>&6
21322 echo "$ac_t""no" 1>&6
21323 cat >> confdefs.h <<EOF
21329 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21330 echo "configure:21331: checking for ptrdiff_t" >&5
21331 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21332 echo $ac_n "(cached) $ac_c" 1>&6
21334 cat > conftest.$ac_ext <<EOF
21335 #line 21336 "configure"
21336 #include "confdefs.h"
21337 #include <stddef.h>
21342 if { (eval echo configure:21343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21344 am_cv_type_ptrdiff_t=yes
21346 echo "configure: failed program was:" >&5
21347 cat conftest.$ac_ext >&5
21349 am_cv_type_ptrdiff_t=no
21354 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21355 if test $am_cv_type_ptrdiff_t = yes; then
21356 cat >> confdefs.h <<\EOF
21357 #define HAVE_PTRDIFF_T 1
21362 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21363 echo "configure:21364: checking return type of signal handlers" >&5
21364 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21365 echo $ac_n "(cached) $ac_c" 1>&6
21367 cat > conftest.$ac_ext <<EOF
21368 #line 21369 "configure"
21369 #include "confdefs.h"
21370 #include <sys/types.h>
21371 #include <signal.h>
21376 extern "C" void (*signal (int, void (*)(int)))(int);
21378 void (*signal ()) ();
21385 if { (eval echo configure:21386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21387 ac_cv_type_signal=void
21389 echo "configure: failed program was:" >&5
21390 cat conftest.$ac_ext >&5
21392 ac_cv_type_signal=int
21397 echo "$ac_t""$ac_cv_type_signal" 1>&6
21398 cat >> confdefs.h <<EOF
21399 #define RETSIGTYPE $ac_cv_type_signal
21403 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21404 echo "configure:21405: checking for size_t" >&5
21405 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21406 echo $ac_n "(cached) $ac_c" 1>&6
21408 cat > conftest.$ac_ext <<EOF
21409 #line 21410 "configure"
21410 #include "confdefs.h"
21411 #include <sys/types.h>
21413 #include <stdlib.h>
21414 #include <stddef.h>
21418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21419 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21421 eval "ac_cv_type_size_t=yes"
21424 eval "ac_cv_type_size_t=no"
21429 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21430 echo "$ac_t""yes" 1>&6
21432 echo "$ac_t""no" 1>&6
21433 cat >> confdefs.h <<EOF
21434 #define size_t unsigned
21440 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21441 echo "configure:21442: checking for ssize_t" >&5
21442 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21443 echo $ac_n "(cached) $ac_c" 1>&6
21445 cat > conftest.$ac_ext <<EOF
21446 #line 21447 "configure"
21447 #include "confdefs.h"
21448 #include <sys/types.h>
21450 #include <stdlib.h>
21451 #include <stddef.h>
21455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21456 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21458 eval "ac_cv_type_ssize_t=yes"
21461 eval "ac_cv_type_ssize_t=no"
21466 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21467 echo "$ac_t""yes" 1>&6
21469 echo "$ac_t""no" 1>&6
21470 cat >> confdefs.h <<EOF
21471 #define ssize_t signed int
21476 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21477 echo "configure:21478: checking for caddr_t" >&5
21478 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21479 echo $ac_n "(cached) $ac_c" 1>&6
21481 cat > conftest.$ac_ext <<EOF
21482 #line 21483 "configure"
21483 #include "confdefs.h"
21484 #include <sys/types.h>
21486 #include <stdlib.h>
21487 #include <stddef.h>
21491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21492 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21494 eval "ac_cv_type_caddr_t=yes"
21497 eval "ac_cv_type_caddr_t=no"
21502 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21503 echo "$ac_t""yes" 1>&6
21505 echo "$ac_t""no" 1>&6
21506 cat >> confdefs.h <<EOF
21507 #define caddr_t char *
21513 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21514 echo "configure:21515: checking for socklen_t" >&5
21515 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21516 echo $ac_n "(cached) $ac_c" 1>&6
21518 cat > conftest.$ac_ext <<EOF
21519 #line 21520 "configure"
21520 #include "confdefs.h"
21522 #ifdef HAVE_SYS_TYPES_H
21523 #include <sys/types.h>
21525 #ifdef HAVE_SYS_SOCKET_H
21526 #include <sys/socket.h>
21533 if { (eval echo configure:21534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21535 ol_cv_type_socklen_t=yes
21537 echo "configure: failed program was:" >&5
21538 cat conftest.$ac_ext >&5
21540 ol_cv_type_socklen_t=no
21545 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21546 if test $ol_cv_type_socklen_t = no; then
21547 cat >> confdefs.h <<\EOF
21548 #define socklen_t int
21553 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21554 echo "configure:21555: checking for member st_blksize in aggregate type struct stat" >&5
21555 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21556 echo $ac_n "(cached) $ac_c" 1>&6
21558 cat > conftest.$ac_ext <<EOF
21559 #line 21560 "configure"
21560 #include "confdefs.h"
21561 #include <sys/types.h>
21562 #include <sys/stat.h>
21564 struct stat foo; foo.st_blksize;
21567 if { (eval echo configure:21568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21569 ac_cv_c_struct_member_st_blksize=yes
21571 echo "configure: failed program was:" >&5
21572 cat conftest.$ac_ext >&5
21574 ac_cv_c_struct_member_st_blksize=no
21579 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21580 st_blksize="$ac_cv_c_struct_member_st_blksize"
21581 if test $ac_cv_c_struct_member_st_blksize = yes; then
21582 cat >> confdefs.h <<\EOF
21583 #define HAVE_ST_BLKSIZE 1
21588 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21589 echo "configure:21590: checking whether time.h and sys/time.h may both be included" >&5
21590 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21591 echo $ac_n "(cached) $ac_c" 1>&6
21593 cat > conftest.$ac_ext <<EOF
21594 #line 21595 "configure"
21595 #include "confdefs.h"
21596 #include <sys/types.h>
21597 #include <sys/time.h>
21603 if { (eval echo configure:21604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21605 ac_cv_header_time=yes
21607 echo "configure: failed program was:" >&5
21608 cat conftest.$ac_ext >&5
21610 ac_cv_header_time=no
21615 echo "$ac_t""$ac_cv_header_time" 1>&6
21616 if test $ac_cv_header_time = yes; then
21617 cat >> confdefs.h <<\EOF
21618 #define TIME_WITH_SYS_TIME 1
21623 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21624 echo "configure:21625: checking whether struct tm is in sys/time.h or time.h" >&5
21625 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21626 echo $ac_n "(cached) $ac_c" 1>&6
21628 cat > conftest.$ac_ext <<EOF
21629 #line 21630 "configure"
21630 #include "confdefs.h"
21631 #include <sys/types.h>
21634 struct tm *tp; tp->tm_sec;
21637 if { (eval echo configure:21638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21639 ac_cv_struct_tm=time.h
21641 echo "configure: failed program was:" >&5
21642 cat conftest.$ac_ext >&5
21644 ac_cv_struct_tm=sys/time.h
21649 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21650 if test $ac_cv_struct_tm = sys/time.h; then
21651 cat >> confdefs.h <<\EOF
21652 #define TM_IN_SYS_TIME 1
21657 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21658 echo "configure:21659: checking for uid_t in sys/types.h" >&5
21659 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21660 echo $ac_n "(cached) $ac_c" 1>&6
21662 cat > conftest.$ac_ext <<EOF
21663 #line 21664 "configure"
21664 #include "confdefs.h"
21665 #include <sys/types.h>
21667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21668 egrep "uid_t" >/dev/null 2>&1; then
21670 ac_cv_type_uid_t=yes
21673 ac_cv_type_uid_t=no
21679 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21680 if test $ac_cv_type_uid_t = no; then
21681 cat >> confdefs.h <<\EOF
21685 cat >> confdefs.h <<\EOF
21691 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21692 echo "configure:21693: checking for sig_atomic_t" >&5
21693 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21694 echo $ac_n "(cached) $ac_c" 1>&6
21696 cat > conftest.$ac_ext <<EOF
21697 #line 21698 "configure"
21698 #include "confdefs.h"
21699 #include <signal.h>
21701 sig_atomic_t atomic;
21704 if { (eval echo configure:21705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21706 ol_cv_type_sig_atomic_t=yes
21708 echo "configure: failed program was:" >&5
21709 cat conftest.$ac_ext >&5
21711 ol_cv_type_sig_atomic_t=no
21716 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21717 if test $ol_cv_type_sig_atomic_t = no; then
21718 cat >> confdefs.h <<\EOF
21719 #define sig_atomic_t int
21726 # test for pw_gecos in struct passwd
21727 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21728 echo "configure:21729: checking struct passwd for pw_gecos" >&5
21729 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21730 echo $ac_n "(cached) $ac_c" 1>&6
21733 cat > conftest.$ac_ext <<EOF
21734 #line 21735 "configure"
21735 #include "confdefs.h"
21740 pwd.pw_gecos = pwd.pw_name;
21744 if { (eval echo configure:21745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21746 ol_cv_struct_passwd_pw_gecos=yes
21748 echo "configure: failed program was:" >&5
21749 cat conftest.$ac_ext >&5
21751 ol_cv_struct_passwd_pw_gecos=no
21756 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21757 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21758 cat >> confdefs.h <<\EOF
21759 #define HAVE_PW_GECOS 1
21764 # test for pw_passwd in struct passwd
21765 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21766 echo "configure:21767: checking struct passwd for pw_passwd" >&5
21767 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21768 echo $ac_n "(cached) $ac_c" 1>&6
21771 cat > conftest.$ac_ext <<EOF
21772 #line 21773 "configure"
21773 #include "confdefs.h"
21778 pwd.pw_passwd = pwd.pw_name;
21782 if { (eval echo configure:21783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21784 ol_cv_struct_passwd_pw_passwd=yes
21786 echo "configure: failed program was:" >&5
21787 cat conftest.$ac_ext >&5
21789 ol_cv_struct_passwd_pw_passwd=no
21794 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21795 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21796 cat >> confdefs.h <<\EOF
21797 #define HAVE_PW_PASSWD 1
21803 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21804 echo "configure:21805: checking if toupper() requires islower()" >&5
21805 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21806 echo $ac_n "(cached) $ac_c" 1>&6
21809 if test "$cross_compiling" = yes; then
21810 ol_cv_c_upper_lower=safe
21812 cat > conftest.$ac_ext <<EOF
21813 #line 21814 "configure"
21814 #include "confdefs.h"
21819 if ('C' == toupper('C'))
21825 if { (eval echo configure:21826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21827 ol_cv_c_upper_lower=no
21829 echo "configure: failed program was:" >&5
21830 cat conftest.$ac_ext >&5
21832 ol_cv_c_upper_lower=yes
21839 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21840 if test $ol_cv_c_upper_lower != no ; then
21841 cat >> confdefs.h <<\EOF
21842 #define C_UPPER_LOWER 1
21847 echo $ac_n "checking for working const""... $ac_c" 1>&6
21848 echo "configure:21849: checking for working const" >&5
21849 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21850 echo $ac_n "(cached) $ac_c" 1>&6
21852 cat > conftest.$ac_ext <<EOF
21853 #line 21854 "configure"
21854 #include "confdefs.h"
21858 /* Ultrix mips cc rejects this. */
21859 typedef int charset[2]; const charset x;
21860 /* SunOS 4.1.1 cc rejects this. */
21861 char const *const *ccp;
21863 /* NEC SVR4.0.2 mips cc rejects this. */
21864 struct point {int x, y;};
21865 static struct point const zero = {0,0};
21866 /* AIX XL C 1.02.0.0 rejects this.
21867 It does not let you subtract one const X* pointer from another in an arm
21868 of an if-expression whose if-part is not a constant expression */
21869 const char *g = "string";
21870 ccp = &g + (g ? g-g : 0);
21871 /* HPUX 7.0 cc rejects these. */
21874 ccp = (char const *const *) p;
21875 { /* SCO 3.2v4 cc rejects this. */
21877 char const *s = 0 ? (char *) 0 : (char const *) 0;
21881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21882 int x[] = {25, 17};
21883 const int *foo = &x[0];
21886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21887 typedef const int *iptr;
21891 { /* AIX XL C 1.02.0.0 rejects this saying
21892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21893 struct s { int j; const int *ap[3]; };
21894 struct s *b; b->j = 5;
21896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21897 const int foo = 10;
21902 if { (eval echo configure:21903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21906 echo "configure: failed program was:" >&5
21907 cat conftest.$ac_ext >&5
21914 echo "$ac_t""$ac_cv_c_const" 1>&6
21915 if test $ac_cv_c_const = no; then
21916 cat >> confdefs.h <<\EOF
21922 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21923 echo "configure:21924: checking if compiler understands volatile" >&5
21924 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21925 echo $ac_n "(cached) $ac_c" 1>&6
21927 cat > conftest.$ac_ext <<EOF
21928 #line 21929 "configure"
21929 #include "confdefs.h"
21932 volatile int a; int * volatile b = x ? &y : &z;
21933 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21937 if { (eval echo configure:21938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21939 ol_cv_c_volatile=yes
21941 echo "configure: failed program was:" >&5
21942 cat conftest.$ac_ext >&5
21944 ol_cv_c_volatile=no
21949 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21950 if test $ol_cv_c_volatile = yes; then
21953 cat >> confdefs.h <<\EOF
21960 if test $cross_compiling = yes ; then
21961 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
21962 cat >> confdefs.h <<\EOF
21963 #define CROSS_COMPILING 1
21967 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21968 echo "configure:21969: checking whether byte ordering is bigendian" >&5
21969 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21970 echo $ac_n "(cached) $ac_c" 1>&6
21972 ac_cv_c_bigendian=unknown
21973 # See if sys/param.h defines the BYTE_ORDER macro.
21974 cat > conftest.$ac_ext <<EOF
21975 #line 21976 "configure"
21976 #include "confdefs.h"
21977 #include <sys/types.h>
21978 #include <sys/param.h>
21981 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21982 bogus endian macros
21986 if { (eval echo configure:21987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21988 # It does; now see whether it defined to BIG_ENDIAN or not.
21989 cat > conftest.$ac_ext <<EOF
21990 #line 21991 "configure"
21991 #include "confdefs.h"
21992 #include <sys/types.h>
21993 #include <sys/param.h>
21996 #if BYTE_ORDER != BIG_ENDIAN
22001 if { (eval echo configure:22002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22003 ac_cv_c_bigendian=yes
22005 echo "configure: failed program was:" >&5
22006 cat conftest.$ac_ext >&5
22008 ac_cv_c_bigendian=no
22012 echo "configure: failed program was:" >&5
22013 cat conftest.$ac_ext >&5
22016 if test $ac_cv_c_bigendian = unknown; then
22017 if test "$cross_compiling" = yes; then
22018 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22020 cat > conftest.$ac_ext <<EOF
22021 #line 22022 "configure"
22022 #include "confdefs.h"
22024 /* Are we little or big endian? From Harbison&Steele. */
22028 char c[sizeof (long)];
22031 exit (u.c[sizeof (long) - 1] == 1);
22034 if { (eval echo configure:22035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22036 ac_cv_c_bigendian=no
22038 echo "configure: failed program was:" >&5
22039 cat conftest.$ac_ext >&5
22041 ac_cv_c_bigendian=yes
22049 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22050 if test $ac_cv_c_bigendian = yes; then
22051 cat >> confdefs.h <<\EOF
22052 #define WORDS_BIGENDIAN 1
22059 echo $ac_n "checking size of short""... $ac_c" 1>&6
22060 echo "configure:22061: checking size of short" >&5
22061 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22062 echo $ac_n "(cached) $ac_c" 1>&6
22064 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22065 cat > conftest.$ac_ext <<EOF
22066 #line 22067 "configure"
22067 #include "confdefs.h"
22068 #include "confdefs.h"
22069 #include <sys/types.h>
22073 switch (0) case 0: case (sizeof (short) == $ac_size):;
22076 if { (eval echo configure:22077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22078 ac_cv_sizeof_short=$ac_size
22080 echo "configure: failed program was:" >&5
22081 cat conftest.$ac_ext >&5
22084 if test x$ac_cv_sizeof_short != x ; then break; fi
22089 if test x$ac_cv_sizeof_short = x ; then
22090 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22092 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22093 cat >> confdefs.h <<EOF
22094 #define SIZEOF_SHORT $ac_cv_sizeof_short
22098 echo $ac_n "checking size of int""... $ac_c" 1>&6
22099 echo "configure:22100: checking size of int" >&5
22100 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22101 echo $ac_n "(cached) $ac_c" 1>&6
22103 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22104 cat > conftest.$ac_ext <<EOF
22105 #line 22106 "configure"
22106 #include "confdefs.h"
22107 #include "confdefs.h"
22108 #include <sys/types.h>
22112 switch (0) case 0: case (sizeof (int) == $ac_size):;
22115 if { (eval echo configure:22116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22117 ac_cv_sizeof_int=$ac_size
22119 echo "configure: failed program was:" >&5
22120 cat conftest.$ac_ext >&5
22123 if test x$ac_cv_sizeof_int != x ; then break; fi
22128 if test x$ac_cv_sizeof_int = x ; then
22129 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22131 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22132 cat >> confdefs.h <<EOF
22133 #define SIZEOF_INT $ac_cv_sizeof_int
22137 echo $ac_n "checking size of long""... $ac_c" 1>&6
22138 echo "configure:22139: checking size of long" >&5
22139 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22140 echo $ac_n "(cached) $ac_c" 1>&6
22142 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22143 cat > conftest.$ac_ext <<EOF
22144 #line 22145 "configure"
22145 #include "confdefs.h"
22146 #include "confdefs.h"
22147 #include <sys/types.h>
22151 switch (0) case 0: case (sizeof (long) == $ac_size):;
22154 if { (eval echo configure:22155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22156 ac_cv_sizeof_long=$ac_size
22158 echo "configure: failed program was:" >&5
22159 cat conftest.$ac_ext >&5
22162 if test x$ac_cv_sizeof_long != x ; then break; fi
22167 if test x$ac_cv_sizeof_long = x ; then
22168 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22170 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22171 cat >> confdefs.h <<EOF
22172 #define SIZEOF_LONG $ac_cv_sizeof_long
22177 if test "$ac_cv_sizeof_int" -lt 4 ; then
22178 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22180 cat >> confdefs.h <<\EOF
22181 #define LBER_INT_T long
22185 cat >> confdefs.h <<\EOF
22186 #define LBER_INT_T int
22191 cat >> confdefs.h <<\EOF
22192 #define LBER_LEN_T long
22195 cat >> confdefs.h <<\EOF
22196 #define LBER_SOCKET_T int
22199 cat >> confdefs.h <<\EOF
22200 #define LBER_TAG_T long
22204 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22205 echo "configure:22206: checking for 8-bit clean memcmp" >&5
22206 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22207 echo $ac_n "(cached) $ac_c" 1>&6
22209 if test "$cross_compiling" = yes; then
22210 ac_cv_func_memcmp_clean=no
22212 cat > conftest.$ac_ext <<EOF
22213 #line 22214 "configure"
22214 #include "confdefs.h"
22218 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22219 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22223 if { (eval echo configure:22224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22225 ac_cv_func_memcmp_clean=yes
22227 echo "configure: failed program was:" >&5
22228 cat conftest.$ac_ext >&5
22230 ac_cv_func_memcmp_clean=no
22237 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22238 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22240 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22241 echo "configure:22242: checking for strftime" >&5
22242 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22243 echo $ac_n "(cached) $ac_c" 1>&6
22245 cat > conftest.$ac_ext <<EOF
22246 #line 22247 "configure"
22247 #include "confdefs.h"
22248 /* System header to define __stub macros and hopefully few prototypes,
22249 which can conflict with char strftime(); below. */
22250 #include <assert.h>
22251 /* Override any gcc2 internal prototype to avoid an error. */
22252 /* We use char because int might match the return type of a gcc2
22253 builtin and then its argument prototype would still apply. */
22259 /* The GNU C library defines this for functions which it implements
22260 to always fail with ENOSYS. Some functions are actually named
22261 something starting with __ and the normal name is an alias. */
22262 #if defined (__stub_strftime) || defined (__stub___strftime)
22270 if { (eval echo configure:22271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22272 eval "ac_cv_func_strftime=yes"
22274 echo "configure: failed program was:" >&5
22275 cat conftest.$ac_ext >&5
22277 eval "ac_cv_func_strftime=no"
22282 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22283 echo "$ac_t""yes" 1>&6
22284 cat >> confdefs.h <<\EOF
22285 #define HAVE_STRFTIME 1
22289 echo "$ac_t""no" 1>&6
22290 # strftime is in -lintl on SCO UNIX.
22291 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22292 echo "configure:22293: checking for strftime in -lintl" >&5
22293 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22294 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22295 echo $ac_n "(cached) $ac_c" 1>&6
22297 ac_save_LIBS="$LIBS"
22298 LIBS="-lintl $LIBS"
22299 cat > conftest.$ac_ext <<EOF
22300 #line 22301 "configure"
22301 #include "confdefs.h"
22302 /* Override any gcc2 internal prototype to avoid an error. */
22303 /* We use char because int might match the return type of a gcc2
22304 builtin and then its argument prototype would still apply. */
22311 if { (eval echo configure:22312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22313 eval "ac_cv_lib_$ac_lib_var=yes"
22315 echo "configure: failed program was:" >&5
22316 cat conftest.$ac_ext >&5
22318 eval "ac_cv_lib_$ac_lib_var=no"
22321 LIBS="$ac_save_LIBS"
22324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22325 echo "$ac_t""yes" 1>&6
22326 cat >> confdefs.h <<\EOF
22327 #define HAVE_STRFTIME 1
22330 LIBS="-lintl $LIBS"
22332 echo "$ac_t""no" 1>&6
22338 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22339 echo "configure:22340: checking for inet_aton()" >&5
22340 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22341 echo $ac_n "(cached) $ac_c" 1>&6
22343 cat > conftest.$ac_ext <<EOF
22344 #line 22345 "configure"
22345 #include "confdefs.h"
22347 #ifdef HAVE_SYS_TYPES_H
22348 # include <sys/types.h>
22350 #ifdef HAVE_SYS_SOCKET_H
22351 # include <sys/socket.h>
22352 # ifdef HAVE_SYS_SELECT_H
22353 # include <sys/select.h>
22355 # include <netinet/in.h>
22356 # ifdef HAVE_ARPA_INET_H
22357 # include <arpa/inet.h>
22363 int rc = inet_aton( "255.255.255.255", &in );
22366 if { (eval echo configure:22367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22368 ol_cv_func_inet_aton=yes
22370 echo "configure: failed program was:" >&5
22371 cat conftest.$ac_ext >&5
22373 ol_cv_func_inet_aton=no
22378 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22379 if test $ol_cv_func_inet_aton != no; then
22380 cat >> confdefs.h <<\EOF
22381 #define HAVE_INET_ATON 1
22387 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22388 echo "configure:22389: checking for _spawnlp" >&5
22389 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22390 echo $ac_n "(cached) $ac_c" 1>&6
22392 cat > conftest.$ac_ext <<EOF
22393 #line 22394 "configure"
22394 #include "confdefs.h"
22395 /* System header to define __stub macros and hopefully few prototypes,
22396 which can conflict with char _spawnlp(); below. */
22397 #include <assert.h>
22398 /* Override any gcc2 internal prototype to avoid an error. */
22399 /* We use char because int might match the return type of a gcc2
22400 builtin and then its argument prototype would still apply. */
22406 /* The GNU C library defines this for functions which it implements
22407 to always fail with ENOSYS. Some functions are actually named
22408 something starting with __ and the normal name is an alias. */
22409 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22417 if { (eval echo configure:22418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22419 eval "ac_cv_func__spawnlp=yes"
22421 echo "configure: failed program was:" >&5
22422 cat conftest.$ac_ext >&5
22424 eval "ac_cv_func__spawnlp=no"
22429 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22430 echo "$ac_t""yes" 1>&6
22431 cat >> confdefs.h <<\EOF
22432 #define HAVE_SPAWNLP 1
22436 echo "$ac_t""no" 1>&6
22440 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22441 echo "configure:22442: checking for _snprintf" >&5
22442 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22443 echo $ac_n "(cached) $ac_c" 1>&6
22445 cat > conftest.$ac_ext <<EOF
22446 #line 22447 "configure"
22447 #include "confdefs.h"
22448 /* System header to define __stub macros and hopefully few prototypes,
22449 which can conflict with char _snprintf(); below. */
22450 #include <assert.h>
22451 /* Override any gcc2 internal prototype to avoid an error. */
22452 /* We use char because int might match the return type of a gcc2
22453 builtin and then its argument prototype would still apply. */
22459 /* The GNU C library defines this for functions which it implements
22460 to always fail with ENOSYS. Some functions are actually named
22461 something starting with __ and the normal name is an alias. */
22462 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22470 if { (eval echo configure:22471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22472 eval "ac_cv_func__snprintf=yes"
22474 echo "configure: failed program was:" >&5
22475 cat conftest.$ac_ext >&5
22477 eval "ac_cv_func__snprintf=no"
22482 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22483 echo "$ac_t""yes" 1>&6
22484 ac_cv_func_snprintf=yes
22485 cat >> confdefs.h <<\EOF
22486 #define snprintf _snprintf
22491 echo "$ac_t""no" 1>&6
22495 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22496 echo "configure:22497: checking for _vsnprintf" >&5
22497 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22498 echo $ac_n "(cached) $ac_c" 1>&6
22500 cat > conftest.$ac_ext <<EOF
22501 #line 22502 "configure"
22502 #include "confdefs.h"
22503 /* System header to define __stub macros and hopefully few prototypes,
22504 which can conflict with char _vsnprintf(); below. */
22505 #include <assert.h>
22506 /* Override any gcc2 internal prototype to avoid an error. */
22507 /* We use char because int might match the return type of a gcc2
22508 builtin and then its argument prototype would still apply. */
22514 /* The GNU C library defines this for functions which it implements
22515 to always fail with ENOSYS. Some functions are actually named
22516 something starting with __ and the normal name is an alias. */
22517 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22525 if { (eval echo configure:22526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22527 eval "ac_cv_func__vsnprintf=yes"
22529 echo "configure: failed program was:" >&5
22530 cat conftest.$ac_ext >&5
22532 eval "ac_cv_func__vsnprintf=no"
22537 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22538 echo "$ac_t""yes" 1>&6
22539 ac_cv_func_vsnprintf=yes
22540 cat >> confdefs.h <<\EOF
22541 #define vsnprintf _vsnprintf
22546 echo "$ac_t""no" 1>&6
22550 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22551 echo "configure:22552: checking for vprintf" >&5
22552 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22553 echo $ac_n "(cached) $ac_c" 1>&6
22555 cat > conftest.$ac_ext <<EOF
22556 #line 22557 "configure"
22557 #include "confdefs.h"
22558 /* System header to define __stub macros and hopefully few prototypes,
22559 which can conflict with char vprintf(); below. */
22560 #include <assert.h>
22561 /* Override any gcc2 internal prototype to avoid an error. */
22562 /* We use char because int might match the return type of a gcc2
22563 builtin and then its argument prototype would still apply. */
22569 /* The GNU C library defines this for functions which it implements
22570 to always fail with ENOSYS. Some functions are actually named
22571 something starting with __ and the normal name is an alias. */
22572 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22580 if { (eval echo configure:22581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22582 eval "ac_cv_func_vprintf=yes"
22584 echo "configure: failed program was:" >&5
22585 cat conftest.$ac_ext >&5
22587 eval "ac_cv_func_vprintf=no"
22592 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22593 echo "$ac_t""yes" 1>&6
22594 cat >> confdefs.h <<\EOF
22595 #define HAVE_VPRINTF 1
22599 echo "$ac_t""no" 1>&6
22602 if test "$ac_cv_func_vprintf" != yes; then
22603 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22604 echo "configure:22605: checking for _doprnt" >&5
22605 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22606 echo $ac_n "(cached) $ac_c" 1>&6
22608 cat > conftest.$ac_ext <<EOF
22609 #line 22610 "configure"
22610 #include "confdefs.h"
22611 /* System header to define __stub macros and hopefully few prototypes,
22612 which can conflict with char _doprnt(); below. */
22613 #include <assert.h>
22614 /* Override any gcc2 internal prototype to avoid an error. */
22615 /* We use char because int might match the return type of a gcc2
22616 builtin and then its argument prototype would still apply. */
22622 /* The GNU C library defines this for functions which it implements
22623 to always fail with ENOSYS. Some functions are actually named
22624 something starting with __ and the normal name is an alias. */
22625 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22633 if { (eval echo configure:22634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22635 eval "ac_cv_func__doprnt=yes"
22637 echo "configure: failed program was:" >&5
22638 cat conftest.$ac_ext >&5
22640 eval "ac_cv_func__doprnt=no"
22645 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22646 echo "$ac_t""yes" 1>&6
22647 cat >> confdefs.h <<\EOF
22648 #define HAVE_DOPRNT 1
22652 echo "$ac_t""no" 1>&6
22658 if test $ac_cv_func_vprintf = yes ; then
22659 for ac_func in snprintf vsnprintf
22661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22662 echo "configure:22663: checking for $ac_func" >&5
22663 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22664 echo $ac_n "(cached) $ac_c" 1>&6
22666 cat > conftest.$ac_ext <<EOF
22667 #line 22668 "configure"
22668 #include "confdefs.h"
22669 /* System header to define __stub macros and hopefully few prototypes,
22670 which can conflict with char $ac_func(); below. */
22671 #include <assert.h>
22672 /* Override any gcc2 internal prototype to avoid an error. */
22673 /* We use char because int might match the return type of a gcc2
22674 builtin and then its argument prototype would still apply. */
22680 /* The GNU C library defines this for functions which it implements
22681 to always fail with ENOSYS. Some functions are actually named
22682 something starting with __ and the normal name is an alias. */
22683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22691 if { (eval echo configure:22692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22693 eval "ac_cv_func_$ac_func=yes"
22695 echo "configure: failed program was:" >&5
22696 cat conftest.$ac_ext >&5
22698 eval "ac_cv_func_$ac_func=no"
22703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22704 echo "$ac_t""yes" 1>&6
22705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22706 cat >> confdefs.h <<EOF
22707 #define $ac_tr_func 1
22711 echo "$ac_t""no" 1>&6
22776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22777 echo "configure:22778: checking for $ac_func" >&5
22778 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22779 echo $ac_n "(cached) $ac_c" 1>&6
22781 cat > conftest.$ac_ext <<EOF
22782 #line 22783 "configure"
22783 #include "confdefs.h"
22784 /* System header to define __stub macros and hopefully few prototypes,
22785 which can conflict with char $ac_func(); below. */
22786 #include <assert.h>
22787 /* Override any gcc2 internal prototype to avoid an error. */
22788 /* We use char because int might match the return type of a gcc2
22789 builtin and then its argument prototype would still apply. */
22795 /* The GNU C library defines this for functions which it implements
22796 to always fail with ENOSYS. Some functions are actually named
22797 something starting with __ and the normal name is an alias. */
22798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22806 if { (eval echo configure:22807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22808 eval "ac_cv_func_$ac_func=yes"
22810 echo "configure: failed program was:" >&5
22811 cat conftest.$ac_ext >&5
22813 eval "ac_cv_func_$ac_func=no"
22818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22819 echo "$ac_t""yes" 1>&6
22820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22821 cat >> confdefs.h <<EOF
22822 #define $ac_tr_func 1
22826 echo "$ac_t""no" 1>&6
22831 for ac_func in getopt getpeereid
22833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22834 echo "configure:22835: checking for $ac_func" >&5
22835 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22836 echo $ac_n "(cached) $ac_c" 1>&6
22838 cat > conftest.$ac_ext <<EOF
22839 #line 22840 "configure"
22840 #include "confdefs.h"
22841 /* System header to define __stub macros and hopefully few prototypes,
22842 which can conflict with char $ac_func(); below. */
22843 #include <assert.h>
22844 /* Override any gcc2 internal prototype to avoid an error. */
22845 /* We use char because int might match the return type of a gcc2
22846 builtin and then its argument prototype would still apply. */
22852 /* The GNU C library defines this for functions which it implements
22853 to always fail with ENOSYS. Some functions are actually named
22854 something starting with __ and the normal name is an alias. */
22855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22863 if { (eval echo configure:22864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22865 eval "ac_cv_func_$ac_func=yes"
22867 echo "configure: failed program was:" >&5
22868 cat conftest.$ac_ext >&5
22870 eval "ac_cv_func_$ac_func=no"
22875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22876 echo "$ac_t""yes" 1>&6
22877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22878 cat >> confdefs.h <<EOF
22879 #define $ac_tr_func 1
22883 echo "$ac_t""no" 1>&6
22884 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22890 if test "$ac_cv_func_getopt" != yes; then
22891 LIBSRCS="$LIBSRCS getopt.c"
22893 if test "$ac_cv_func_getpeereid" != yes; then
22894 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22895 echo "configure:22896: checking for msg_accrights in msghdr" >&5
22896 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22897 echo $ac_n "(cached) $ac_c" 1>&6
22899 cat > conftest.$ac_ext <<EOF
22900 #line 22901 "configure"
22901 #include "confdefs.h"
22902 #include <sys/socket.h>
22904 struct msghdr m; m.msg_accrightslen=0
22907 if { (eval echo configure:22908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22909 ol_cv_msghdr_msg_accrights=yes
22911 echo "configure: failed program was:" >&5
22912 cat conftest.$ac_ext >&5
22914 ol_cv_msghdr_msg_accrights=no
22920 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22921 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22922 cat >> confdefs.h <<\EOF
22923 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
22928 LIBSRCS="$LIBSRCS getpeereid.c"
22930 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22931 if test "$ac_cv_func_snprintf" != yes; then
22932 cat >> confdefs.h <<\EOF
22933 #define snprintf ber_pvt_snprintf
22937 if test "$ac_cv_func_vsnprintf" != yes; then
22938 cat >> confdefs.h <<\EOF
22939 #define vsnprintf ber_pvt_vsnprintf
22945 # Check Configuration
22946 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22947 echo "configure:22948: checking declaration of sys_errlist" >&5
22948 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22949 echo $ac_n "(cached) $ac_c" 1>&6
22952 cat > conftest.$ac_ext <<EOF
22953 #line 22954 "configure"
22954 #include "confdefs.h"
22957 #include <sys/types.h>
22960 #include <stdlib.h>
22963 char *c = (char *) *sys_errlist
22966 if { (eval echo configure:22967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22968 ol_cv_dcl_sys_errlist=yes
22969 ol_cv_have_sys_errlist=yes
22971 echo "configure: failed program was:" >&5
22972 cat conftest.$ac_ext >&5
22974 ol_cv_dcl_sys_errlist=no
22979 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22981 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22982 if test $ol_cv_dcl_sys_errlist = no ; then
22983 cat >> confdefs.h <<\EOF
22984 #define DECL_SYS_ERRLIST 1
22988 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22989 echo "configure:22990: checking existence of sys_errlist" >&5
22990 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22991 echo $ac_n "(cached) $ac_c" 1>&6
22994 cat > conftest.$ac_ext <<EOF
22995 #line 22996 "configure"
22996 #include "confdefs.h"
22999 char *c = (char *) *sys_errlist
23002 if { (eval echo configure:23003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23004 ol_cv_have_sys_errlist=yes
23006 echo "configure: failed program was:" >&5
23007 cat conftest.$ac_ext >&5
23009 ol_cv_have_sys_errlist=no
23014 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23016 if test $ol_cv_have_sys_errlist = yes ; then
23017 cat >> confdefs.h <<\EOF
23018 #define HAVE_SYS_ERRLIST 1
23025 if test "$ol_enable_slapi" != no ; then
23026 for ac_hdr in ltdl.h
23028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23030 echo "configure:23031: checking for $ac_hdr" >&5
23031 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23032 echo $ac_n "(cached) $ac_c" 1>&6
23034 cat > conftest.$ac_ext <<EOF
23035 #line 23036 "configure"
23036 #include "confdefs.h"
23039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23040 { (eval echo configure:23041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23042 if test -z "$ac_err"; then
23044 eval "ac_cv_header_$ac_safe=yes"
23047 echo "configure: failed program was:" >&5
23048 cat conftest.$ac_ext >&5
23050 eval "ac_cv_header_$ac_safe=no"
23054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23055 echo "$ac_t""yes" 1>&6
23056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23057 cat >> confdefs.h <<EOF
23058 #define $ac_tr_hdr 1
23062 echo "$ac_t""no" 1>&6
23067 if test $ac_cv_header_ltdl_h != yes ; then
23068 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23070 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23071 echo "configure:23072: checking for lt_dlinit in -lltdl" >&5
23072 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23073 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23074 echo $ac_n "(cached) $ac_c" 1>&6
23076 ac_save_LIBS="$LIBS"
23077 LIBS="-lltdl $LIBS"
23078 cat > conftest.$ac_ext <<EOF
23079 #line 23080 "configure"
23080 #include "confdefs.h"
23081 /* Override any gcc2 internal prototype to avoid an error. */
23082 /* We use char because int might match the return type of a gcc2
23083 builtin and then its argument prototype would still apply. */
23090 if { (eval echo configure:23091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23092 eval "ac_cv_lib_$ac_lib_var=yes"
23094 echo "configure: failed program was:" >&5
23095 cat conftest.$ac_ext >&5
23097 eval "ac_cv_lib_$ac_lib_var=no"
23100 LIBS="$ac_save_LIBS"
23103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23104 echo "$ac_t""yes" 1>&6
23107 LIBSLAPI=libslapi.a
23108 LIBSLAPITOOLS=../libslapi.a
23109 cat >> confdefs.h <<\EOF
23110 #define HAVE_LIBLTDL 1
23115 echo "$ac_t""no" 1>&6
23116 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23120 cat >> confdefs.h <<\EOF
23121 #define LDAP_SLAPI 1
23126 if test "$ol_enable_debug" != no ; then
23127 cat >> confdefs.h <<\EOF
23128 #define LDAP_DEBUG 1
23132 if test "$ol_enable_syslog" = yes ; then
23133 cat >> confdefs.h <<\EOF
23134 #define LDAP_SYSLOG 1
23138 if test "$ol_link_kbind" != no ; then
23139 cat >> confdefs.h <<\EOF
23140 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23144 if test "$ol_enable_proctitle" != no ; then
23145 cat >> confdefs.h <<\EOF
23146 #define LDAP_PROCTITLE 1
23150 if test "$ol_enable_referrals" != no ; then
23151 cat >> confdefs.h <<\EOF
23152 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23156 if test "$ol_enable_local" != no; then
23157 cat >> confdefs.h <<\EOF
23158 #define LDAP_PF_LOCAL 1
23162 if test "$ol_link_ipv6" != no; then
23163 cat >> confdefs.h <<\EOF
23164 #define LDAP_PF_INET6 1
23168 if test "$ol_enable_cleartext" != no ; then
23169 cat >> confdefs.h <<\EOF
23170 #define SLAPD_CLEARTEXT 1
23174 if test "$ol_enable_crypt" != no ; then
23175 cat >> confdefs.h <<\EOF
23176 #define SLAPD_CRYPT 1
23180 if test "$ol_link_spasswd" != no ; then
23181 cat >> confdefs.h <<\EOF
23182 #define SLAPD_SPASSWD 1
23186 if test "$ol_enable_multimaster" != no ; then
23187 cat >> confdefs.h <<\EOF
23188 #define SLAPD_MULTIMASTER 1
23192 if test "$ol_enable_rlookups" != no ; then
23193 cat >> confdefs.h <<\EOF
23194 #define SLAPD_RLOOKUPS 1
23198 if test "$ol_enable_aci" != no ; then
23199 cat >> confdefs.h <<\EOF
23200 #define SLAPD_ACI_ENABLED 1
23205 if test "$ol_link_modules" != no ; then
23206 cat >> confdefs.h <<\EOF
23207 #define SLAPD_MODULES 1
23211 SLAPD_MODULES_LDFLAGS="-dlopen self"
23214 cat >> confdefs.h <<\EOF
23215 #define SLAPD_MOD_STATIC 1
23218 cat >> confdefs.h <<\EOF
23219 #define SLAPD_MOD_DYNAMIC 2
23223 if test "$ol_enable_bdb" != no ; then
23225 BUILD_BDB=$ol_enable_bdb
23226 if test "$ol_enable_bdb" = mod ; then
23227 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23228 MFLAG=SLAPD_MOD_DYNAMIC
23230 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23231 MFLAG=SLAPD_MOD_STATIC
23233 cat >> confdefs.h <<EOF
23234 #define SLAPD_BDB $MFLAG
23239 if test "$ol_enable_dnssrv" != no ; then
23241 BUILD_DNSSRV=$ol_enable_dnssrv
23242 if test "$ol_enable_dnssrv" = mod ; then
23243 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23244 MFLAG=SLAPD_MOD_DYNAMIC
23246 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23247 MFLAG=SLAPD_MOD_STATIC
23249 cat >> confdefs.h <<EOF
23250 #define SLAPD_DNSSRV $MFLAG
23255 if test "$ol_enable_hdb" != no ; then
23257 BUILD_HDB=$ol_enable_hdb
23258 if test "$ol_enable_hdb" = mod ; then
23259 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23260 MFLAG=SLAPD_MOD_DYNAMIC
23262 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23263 MFLAG=SLAPD_MOD_STATIC
23265 cat >> confdefs.h <<EOF
23266 #define SLAPD_HDB $MFLAG
23271 if test "$ol_enable_ldap" != no ; then
23273 BUILD_LDAP=$ol_enable_ldap
23274 if test "$ol_enable_ldap" = mod ; then
23275 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23276 MFLAG=SLAPD_MOD_DYNAMIC
23278 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23279 MFLAG=SLAPD_MOD_STATIC
23281 cat >> confdefs.h <<EOF
23282 #define SLAPD_LDAP $MFLAG
23287 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23289 BUILD_LDBM=$ol_enable_ldbm
23290 if test "$ol_enable_ldbm" = mod ; then
23291 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23292 MFLAG=SLAPD_MOD_DYNAMIC
23294 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23295 MFLAG=SLAPD_MOD_STATIC
23297 cat >> confdefs.h <<EOF
23298 #define SLAPD_LDBM $MFLAG
23303 if test "$ol_enable_meta" != no ; then
23305 BUILD_META=$ol_enable_meta
23307 if test "$ol_enable_meta" = mod ; then
23308 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23309 MFLAG=SLAPD_MOD_DYNAMIC
23311 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23312 MFLAG=SLAPD_MOD_STATIC
23314 cat >> confdefs.h <<EOF
23315 #define SLAPD_META $MFLAG
23320 if test "$ol_enable_monitor" != no ; then
23322 BUILD_MONITOR=$ol_enable_monitor
23323 if test "$ol_enable_monitor" = mod ; then
23324 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23325 MFLAG=SLAPD_MOD_DYNAMIC
23327 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23328 MFLAG=SLAPD_MOD_STATIC
23330 cat >> confdefs.h <<EOF
23331 #define SLAPD_MONITOR $MFLAG
23336 if test "$ol_enable_null" != no ; then
23338 BUILD_NULL=$ol_enable_null
23339 if test "$ol_enable_null" = mod ; then
23340 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23341 MFLAG=SLAPD_MOD_DYNAMIC
23343 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23344 MFLAG=SLAPD_MOD_STATIC
23346 cat >> confdefs.h <<EOF
23347 #define SLAPD_NULL $MFLAG
23352 if test "$ol_enable_passwd" != no ; then
23354 BUILD_PASSWD=$ol_enable_passwd
23355 if test "$ol_enable_passwd" = mod ; then
23356 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23357 MFLAG=SLAPD_MOD_DYNAMIC
23359 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23360 MFLAG=SLAPD_MOD_STATIC
23362 cat >> confdefs.h <<EOF
23363 #define SLAPD_PASSWD $MFLAG
23368 if test "$ol_link_perl" != no ; then
23370 BUILD_PERL=$ol_enable_perl
23371 if test "$ol_enable_perl" = mod ; then
23372 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23373 MFLAG=SLAPD_MOD_DYNAMIC
23375 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23376 MFLAG=SLAPD_MOD_STATIC
23378 cat >> confdefs.h <<EOF
23379 #define SLAPD_PERL $MFLAG
23384 if test "$ol_enable_relay" != no ; then
23386 BUILD_RELAY=$ol_enable_relay
23387 if test "$ol_enable_relay" = mod ; then
23388 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
23389 MFLAG=SLAPD_MOD_DYNAMIC
23391 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
23392 MFLAG=SLAPD_MOD_STATIC
23394 cat >> confdefs.h <<EOF
23395 #define SLAPD_RELAY $MFLAG
23400 if test "$ol_enable_shell" != no ; then
23401 if test "$ol_link_thread" != no ; then
23402 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23405 BUILD_SHELL=$ol_enable_shell
23406 if test "$ol_enable_shell" = mod ; then
23407 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23408 MFLAG=SLAPD_MOD_DYNAMIC
23410 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23411 MFLAG=SLAPD_MOD_STATIC
23413 cat >> confdefs.h <<EOF
23414 #define SLAPD_SHELL $MFLAG
23419 if test "$ol_link_sql" != no ; then
23421 BUILD_SQL=$ol_enable_sql
23422 if test "$ol_enable_sql" = mod; then
23423 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23424 MFLAG=SLAPD_MOD_DYNAMIC
23426 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23427 MFLAG=SLAPD_MOD_STATIC
23429 cat >> confdefs.h <<EOF
23430 #define SLAPD_SQL $MFLAG
23435 if test "$ol_enable_chain" != no ; then
23436 BUILD_CHAIN=$ol_enable_chain
23437 if test "$ol_enable_chain" = mod ; then
23438 MFLAG=SLAPD_MOD_DYNAMIC
23439 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
23441 MFLAG=SLAPD_MOD_STATIC
23443 cat >> confdefs.h <<EOF
23444 #define SLAPD_OVER_CHAIN $MFLAG
23449 if test "$ol_enable_denyop" != no ; then
23450 BUILD_DENYOP=$ol_enable_denyop
23451 if test "$ol_enable_denyop" = mod ; then
23452 MFLAG=SLAPD_MOD_DYNAMIC
23453 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
23455 MFLAG=SLAPD_MOD_STATIC
23457 cat >> confdefs.h <<EOF
23458 #define SLAPD_OVER_DENYOP $MFLAG
23463 if test "$ol_enable_dyngroup" != no ; then
23464 BUILD_DYNGROUP=$ol_enable_dyngroup
23465 if test "$ol_enable_dyngroup" = mod ; then
23466 MFLAG=SLAPD_MOD_DYNAMIC
23467 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23469 MFLAG=SLAPD_MOD_STATIC
23471 cat >> confdefs.h <<EOF
23472 #define SLAPD_OVER_DYNGROUP $MFLAG
23477 if test "$ol_enable_ppolicy" != no ; then
23478 BUILD_PPOLICY=$ol_enable_ppolicy
23479 if test "$ol_enable_ppolicy" = mod ; then
23480 MFLAG=SLAPD_MOD_DYNAMIC
23481 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
23483 MFLAG=SLAPD_MOD_STATIC
23485 cat >> confdefs.h <<EOF
23486 #define SLAPD_OVER_PPOLICY $MFLAG
23491 if test "$ol_enable_proxycache" != no ; then
23492 BUILD_PROXYCACHE=$ol_enable_proxycache
23493 if test "$ol_enable_proxycache" = mod ; then
23494 MFLAG=SLAPD_MOD_DYNAMIC
23495 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23497 MFLAG=SLAPD_MOD_STATIC
23499 cat >> confdefs.h <<EOF
23500 #define SLAPD_OVER_PROXYCACHE $MFLAG
23505 if test "$ol_enable_rwm" != no ; then
23507 BUILD_RWM=$ol_enable_rwm
23508 if test "$ol_enable_rwm" = mod ; then
23509 MFLAG=SLAPD_MOD_DYNAMIC
23510 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
23512 MFLAG=SLAPD_MOD_STATIC
23514 cat >> confdefs.h <<EOF
23515 #define SLAPD_OVER_RWM $MFLAG
23520 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23521 $BUILD_SLAPD = yes ; then
23525 if test "$ol_enable_rewrite" != no ; then
23526 cat >> confdefs.h <<\EOF
23527 #define ENABLE_REWRITE 1
23533 if test "$ol_enable_slapi" != no ; then
23534 cat >> confdefs.h <<\EOF
23535 #define ENABLE_SLAPI 1
23539 SLAPD_SLAPI_DEPEND=libslapi.a
23544 if test "$ac_cv_mingw32" = yes ; then
23546 SLAPD_MODULES_LDFLAGS=
23551 if test -z "$SLAPD_STATIC_BACKENDS"; then
23552 SLAPD_NO_STATIC='#'
23622 # Check whether --with-xxinstall or --without-xxinstall was given.
23623 if test "${with_xxinstall+set}" = set; then
23624 withval="$with_xxinstall"
23632 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23635 # Let make expand exec_prefix.
23636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23638 # Any assignment to VPATH causes Sun make to only execute
23639 # the first set of double-colon rules, so remove it if not needed.
23640 # If there is a colon in the path, we need to keep it.
23641 if test "x$srcdir" = x.; then
23642 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23645 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23647 DEFS=-DHAVE_CONFIG_H
23649 # Without the "./", some shells look in PATH for config.status.
23650 : ${CONFIG_STATUS=./config.status}
23652 echo creating $CONFIG_STATUS
23653 rm -f $CONFIG_STATUS
23654 cat > $CONFIG_STATUS <<EOF
23656 # Generated automatically by configure.
23657 # Run this file to recreate the current configuration.
23658 # This directory was configured as follows,
23659 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23661 # $0 $ac_configure_args
23663 # Compiler output produced by configure, useful for debugging
23664 # configure, is in ./config.log if it exists.
23666 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23669 case "\$ac_option" in
23670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23671 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23672 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23673 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23674 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23676 -help | --help | --hel | --he | --h)
23677 echo "\$ac_cs_usage"; exit 0 ;;
23678 *) echo "\$ac_cs_usage"; exit 1 ;;
23682 ac_given_srcdir=$srcdir
23683 ac_given_INSTALL="$INSTALL"
23685 trap 'rm -fr `echo "\
23686 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23687 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23688 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23689 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23690 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23691 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23692 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23693 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23694 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23695 include/Makefile:build/top.mk:include/Makefile.in \
23696 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23697 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23698 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23699 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23700 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23701 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23702 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23703 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23704 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23705 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23706 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23707 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23708 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23709 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23710 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23711 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23712 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23713 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23714 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23715 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
23716 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23717 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23718 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23719 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23720 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23721 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23722 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23724 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23725 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23727 cat >> $CONFIG_STATUS <<EOF
23729 # Protect against being on the right side of a sed subst in config.status.
23730 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23731 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23735 s%@CFLAGS@%$CFLAGS%g
23736 s%@CPPFLAGS@%$CPPFLAGS%g
23737 s%@CXXFLAGS@%$CXXFLAGS%g
23738 s%@FFLAGS@%$FFLAGS%g
23740 s%@LDFLAGS@%$LDFLAGS%g
23742 s%@exec_prefix@%$exec_prefix%g
23743 s%@prefix@%$prefix%g
23744 s%@program_transform_name@%$program_transform_name%g
23745 s%@bindir@%$bindir%g
23746 s%@sbindir@%$sbindir%g
23747 s%@libexecdir@%$libexecdir%g
23748 s%@datadir@%$datadir%g
23749 s%@sysconfdir@%$sysconfdir%g
23750 s%@sharedstatedir@%$sharedstatedir%g
23751 s%@localstatedir@%$localstatedir%g
23752 s%@libdir@%$libdir%g
23753 s%@includedir@%$includedir%g
23754 s%@oldincludedir@%$oldincludedir%g
23755 s%@infodir@%$infodir%g
23756 s%@mandir@%$mandir%g
23758 s%@host_alias@%$host_alias%g
23759 s%@host_cpu@%$host_cpu%g
23760 s%@host_vendor@%$host_vendor%g
23761 s%@host_os@%$host_os%g
23762 s%@target@%$target%g
23763 s%@target_alias@%$target_alias%g
23764 s%@target_cpu@%$target_cpu%g
23765 s%@target_vendor@%$target_vendor%g
23766 s%@target_os@%$target_os%g
23768 s%@build_alias@%$build_alias%g
23769 s%@build_cpu@%$build_cpu%g
23770 s%@build_vendor@%$build_vendor%g
23771 s%@build_os@%$build_os%g
23772 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23773 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23774 s%@INSTALL_DATA@%$INSTALL_DATA%g
23775 s%@PACKAGE@%$PACKAGE%g
23776 s%@VERSION@%$VERSION%g
23777 s%@ACLOCAL@%$ACLOCAL%g
23778 s%@AUTOCONF@%$AUTOCONF%g
23779 s%@AUTOMAKE@%$AUTOMAKE%g
23780 s%@AUTOHEADER@%$AUTOHEADER%g
23781 s%@MAKEINFO@%$MAKEINFO%g
23782 s%@install_sh@%$install_sh%g
23785 s%@AMTARFLAGS@%$AMTARFLAGS%g
23786 s%@SET_MAKE@%$SET_MAKE%g
23787 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
23788 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23789 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23790 s%@top_builddir@%$top_builddir%g
23791 s%@ldap_subdir@%$ldap_subdir%g
23795 s%@OBJEXT@%$OBJEXT%g
23796 s%@EXEEXT@%$EXEEXT%g
23798 s%@RANLIB@%$RANLIB%g
23800 s%@DLLTOOL@%$DLLTOOL%g
23802 s%@OBJDUMP@%$OBJDUMP%g
23804 s%@LIBTOOL@%$LIBTOOL%g
23806 s%@PERLBIN@%$PERLBIN%g
23807 s%@OL_MKDEP@%$OL_MKDEP%g
23808 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23809 s%@LTSTATIC@%$LTSTATIC%g
23810 s%@LIBOBJS@%$LIBOBJS%g
23811 s%@LIBSRCS@%$LIBSRCS%g
23813 s%@WITH_TLS@%$WITH_TLS%g
23814 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23815 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23816 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23817 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23818 s%@BUILD_BDB@%$BUILD_BDB%g
23819 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23820 s%@BUILD_HDB@%$BUILD_HDB%g
23821 s%@BUILD_LDAP@%$BUILD_LDAP%g
23822 s%@BUILD_LDBM@%$BUILD_LDBM%g
23823 s%@BUILD_META@%$BUILD_META%g
23824 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23825 s%@BUILD_NULL@%$BUILD_NULL%g
23826 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23827 s%@BUILD_RELAY@%$BUILD_RELAY%g
23828 s%@BUILD_PERL@%$BUILD_PERL%g
23829 s%@BUILD_SHELL@%$BUILD_SHELL%g
23830 s%@BUILD_SQL@%$BUILD_SQL%g
23831 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
23832 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
23833 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
23834 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
23835 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
23836 s%@BUILD_RWM@%$BUILD_RWM%g
23837 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23838 s%@LDAP_LIBS@%$LDAP_LIBS%g
23839 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23840 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23841 s%@LDBM_LIBS@%$LDBM_LIBS%g
23842 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23843 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23844 s%@WRAP_LIBS@%$WRAP_LIBS%g
23845 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23846 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23847 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23848 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23849 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23850 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
23851 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23852 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23853 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23854 s%@KRB4_LIBS@%$KRB4_LIBS%g
23855 s%@KRB5_LIBS@%$KRB5_LIBS%g
23856 s%@SASL_LIBS@%$SASL_LIBS%g
23857 s%@TLS_LIBS@%$TLS_LIBS%g
23858 s%@MODULES_LIBS@%$MODULES_LIBS%g
23859 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23860 s%@LIBSLAPI@%$LIBSLAPI%g
23861 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23862 s%@AUTH_LIBS@%$AUTH_LIBS%g
23863 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23864 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23865 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23866 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23871 cat >> $CONFIG_STATUS <<\EOF
23873 # Split the substitutions into bite-sized pieces for seds with
23874 # small command number limits, like on Digital OSF/1 and HP-UX.
23875 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23876 ac_file=1 # Number of current file.
23877 ac_beg=1 # First line for current file.
23878 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23881 while $ac_more_lines; do
23882 if test $ac_beg -gt 1; then
23883 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23885 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23887 if test ! -s conftest.s$ac_file; then
23888 ac_more_lines=false
23889 rm -f conftest.s$ac_file
23891 if test -z "$ac_sed_cmds"; then
23892 ac_sed_cmds="sed -f conftest.s$ac_file"
23894 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23896 ac_file=`expr $ac_file + 1`
23898 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23901 if test -z "$ac_sed_cmds"; then
23906 cat >> $CONFIG_STATUS <<EOF
23908 CONFIG_FILES=\${CONFIG_FILES-"\
23909 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23910 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23911 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23912 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23913 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23914 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23915 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23916 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23917 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23918 include/Makefile:build/top.mk:include/Makefile.in \
23919 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23920 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23921 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23922 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23923 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23924 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23925 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23926 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23927 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23928 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23929 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23930 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23931 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23932 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23933 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23934 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23935 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23936 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23937 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23938 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
23939 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23940 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23941 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23942 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23943 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23944 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23945 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23947 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23950 cat >> $CONFIG_STATUS <<\EOF
23951 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23952 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23954 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23955 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23956 *) ac_file_in="${ac_file}.in" ;;
23959 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23961 # Remove last slash and all that follows it. Not all systems have dirname.
23962 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23963 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23964 # The file is in a subdirectory.
23965 test ! -d "$ac_dir" && mkdir "$ac_dir"
23966 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23967 # A "../" for each directory in $ac_dir_suffix.
23968 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23970 ac_dir_suffix= ac_dots=
23973 case "$ac_given_srcdir" in
23975 if test -z "$ac_dots"; then top_srcdir=.
23976 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23977 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23978 *) # Relative path.
23979 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23980 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23983 case "$ac_given_INSTALL" in
23984 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23985 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23988 echo creating "$ac_file"
23990 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23992 *[Mm]akefile*) ac_comsub="1i\\
23993 # $configure_input" ;;
23997 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23999 s%@configure_input@%$configure_input%g
24000 s%@srcdir@%$srcdir%g
24001 s%@top_srcdir@%$top_srcdir%g
24002 s%@INSTALL@%$INSTALL%g
24003 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24007 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24008 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24010 # ac_d sets the value in "#define NAME VALUE" lines.
24011 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24012 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24015 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24016 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24017 ac_uB='\([ ]\)%\1#\2define\3'
24020 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24021 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24022 ac_eB='$%\1#\2define\3'
24026 if test "${CONFIG_HEADERS+set}" != set; then
24028 cat >> $CONFIG_STATUS <<EOF
24029 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24031 cat >> $CONFIG_STATUS <<\EOF
24033 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24036 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24037 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24038 *) ac_file_in="${ac_file}.in" ;;
24041 echo creating $ac_file
24043 rm -f conftest.frag conftest.in conftest.out
24044 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24045 cat $ac_file_inputs > conftest.in
24049 # Transform confdefs.h into a sed script conftest.vals that substitutes
24050 # the proper values into config.h.in to produce config.h. And first:
24051 # Protect against being on the right side of a sed subst in config.status.
24052 # Protect against being in an unquoted here document in config.status.
24053 rm -f conftest.vals
24054 cat > conftest.hdr <<\EOF
24057 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24061 sed -n -f conftest.hdr confdefs.h > conftest.vals
24064 # This sed command replaces #undef with comments. This is necessary, for
24065 # example, in the case of _POSIX_SOURCE, which is predefined and required
24066 # on some systems where configure will not decide to define it.
24067 cat >> conftest.vals <<\EOF
24068 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24071 # Break up conftest.vals because some shells have a limit on
24072 # the size of here documents, and old seds have small limits too.
24074 rm -f conftest.tail
24077 ac_lines=`grep -c . conftest.vals`
24078 # grep -c gives empty output for an empty file on some AIX systems.
24079 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24080 # Write a limited-size here document to conftest.frag.
24081 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24082 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24084 sed -f conftest.frag conftest.in > conftest.out
24086 mv conftest.out conftest.in
24087 ' >> $CONFIG_STATUS
24088 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24089 rm -f conftest.vals
24090 mv conftest.tail conftest.vals
24092 rm -f conftest.vals
24094 cat >> $CONFIG_STATUS <<\EOF
24095 rm -f conftest.frag conftest.h
24096 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24097 cat conftest.in >> conftest.h
24099 if cmp -s $ac_file conftest.h 2>/dev/null; then
24100 echo "$ac_file is unchanged"
24103 # Remove last slash and all that follows it. Not all systems have dirname.
24104 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24105 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24106 # The file is in a subdirectory.
24107 test ! -d "$ac_dir" && mkdir "$ac_dir"
24110 mv conftest.h $ac_file
24115 cat >> $CONFIG_STATUS <<EOF
24118 cat >> $CONFIG_STATUS <<\EOF
24122 echo Please run \"make depend\" to build dependencies
24126 chmod +x $CONFIG_STATUS
24127 rm -fr confdefs* $ac_clean_files
24128 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1