3 # from OpenLDAP: pkg/ldap/configure.in,v 1.367 2001/10/04 02:54:17 kurt Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
65 SLAPD (Standalone LDAP Daemon) Options:"
67 --enable-slapd enable building slapd [yes]"
69 --enable-aci enable per-object ACIs (experimental) [no]"
71 --enable-cleartext enable cleartext passwords [yes]"
73 --enable-crypt enable crypt(3) passwords [no]"
75 --enable-dynamic enable linking built binaries with dynamic libs [no]"
77 --enable-kpasswd enable Kerberos password verification [no]"
79 --enable-lmpasswd enable LAN Manager passwords [no]"
81 --enable-spasswd enable (Cyrus) SASL password verification [no]"
83 --enable-modules enable dynamic module support [no]"
85 --enable-phonetic enable phonetic/soundex [no]"
87 --enable-rlookups enable reverse lookups [no]"
89 --enable-slp enable SLPv2 support [no]"
91 --enable-wrappers enable tcp wrapper support [no]"
93 --enable-bdb enable Berkeley DB backend [no]"
95 --with-bdb-module module type [static]"
97 --enable-dnssrv enable dnssrv backend [no]"
99 --with-dnssrv-module module type [static]"
101 --enable-ldap enable ldap backend [no]"
103 --with-ldap-module module type [static]"
105 --enable-ldbm enable ldbm backend [yes]"
107 --with-ldbm-api with LDBM API [auto]"
109 --with-ldbm-module module type [static]"
111 --with-ldbm-type use LDBM type [auto]"
113 --enable-meta enable metadirectory backend [no]"
115 --with-meta-module module type [static]"
117 --enable-monitor enable monitor backend [no]"
119 --with-monitor-module module type [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type [static]"
129 --enable-shell enable shell backend [no]"
131 --with-shell-module module type [static]"
133 --enable-sql enable sql backend [no]"
135 --with-sql-module module type [static]"
137 --enable-tcl enable tcl backend [no]"
139 --with-tcl-module module type [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
145 Library Generation & Linking Options"
147 --enable-static[=PKGS] build static libraries [default=yes]"
149 --enable-shared[=PKGS] build shared libraries [default=yes]"
151 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
153 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
155 --disable-libtool-lock avoid locking (might break parallel builds)"
157 # Initialize some variables set by options.
158 # The variables have the same names as the options, with
159 # dashes changed to underlines.
161 cache_file=./config.cache
170 program_transform_name=s,x,x,
178 bindir='${exec_prefix}/bin'
179 sbindir='${exec_prefix}/sbin'
180 libexecdir='${exec_prefix}/libexec'
181 datadir='${prefix}/share'
182 sysconfdir='${prefix}/etc'
183 sharedstatedir='${prefix}/com'
184 localstatedir='${prefix}/var'
185 libdir='${exec_prefix}/lib'
186 includedir='${prefix}/include'
187 oldincludedir='/usr/include'
188 infodir='${prefix}/info'
189 mandir='${prefix}/man'
191 # Initialize some other variables.
194 SHELL=${CONFIG_SHELL-/bin/sh}
195 # Maximum number of lines to put in a shell here document.
202 # If the previous option needs an argument, assign it.
203 if test -n "$ac_prev"; then
204 eval "$ac_prev=\$ac_option"
210 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
214 # Accept the important Cygnus configure options, so we can diagnose typos.
218 -bindir | --bindir | --bindi | --bind | --bin | --bi)
220 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
221 bindir="$ac_optarg" ;;
223 -build | --build | --buil | --bui | --bu)
225 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
226 build="$ac_optarg" ;;
228 -cache-file | --cache-file | --cache-fil | --cache-fi \
229 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
230 ac_prev=cache_file ;;
231 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
232 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
233 cache_file="$ac_optarg" ;;
235 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
237 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
239 datadir="$ac_optarg" ;;
241 -disable-* | --disable-*)
242 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
247 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 eval "enable_${ac_feature}=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
252 # Reject names that are not valid shell variable names.
253 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
254 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
256 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
261 eval "enable_${ac_feature}='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix="$ac_optarg" ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he)
277 # Omit some internal or obsolete options to make the list less imposing.
278 # This message is too long to be a string in the A/UX 3.1 sh.
280 Usage: configure [options] [host]
281 Options: [defaults in brackets after descriptions]
283 --cache-file=FILE cache test results in FILE
284 --help print this message
285 --no-create do not create output files
286 --quiet, --silent do not print \`checking...' messages
287 --version print the version of autoconf that created configure
288 Directory and file names:
289 --prefix=PREFIX install architecture-independent files in PREFIX
291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
293 --bindir=DIR user executables in DIR [EPREFIX/bin]
294 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
295 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
296 --datadir=DIR read-only architecture-independent data in DIR
298 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
299 --sharedstatedir=DIR modifiable architecture-independent data in DIR
301 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
302 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
303 --includedir=DIR C header files in DIR [PREFIX/include]
304 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
305 --infodir=DIR info documentation in DIR [PREFIX/info]
306 --mandir=DIR man documentation in DIR [PREFIX/man]
307 --srcdir=DIR find the sources in DIR [configure dir or ..]
308 --program-prefix=PREFIX prepend PREFIX to installed program names
309 --program-suffix=SUFFIX append SUFFIX to installed program names
310 --program-transform-name=PROGRAM
311 run sed PROGRAM on installed program names
315 --build=BUILD configure for building on BUILD [BUILD=HOST]
316 --host=HOST configure for HOST [guessed]
317 --target=TARGET configure for TARGET [TARGET=HOST]
318 Features and packages:
319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
323 --x-includes=DIR X include files are in DIR
324 --x-libraries=DIR X library files are in DIR
326 if test -n "$ac_help"; then
327 echo "--enable and --with options recognized:$ac_help"
331 -host | --host | --hos | --ho)
333 -host=* | --host=* | --hos=* | --ho=*)
336 -includedir | --includedir | --includedi | --included | --include \
337 | --includ | --inclu | --incl | --inc)
338 ac_prev=includedir ;;
339 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
340 | --includ=* | --inclu=* | --incl=* | --inc=*)
341 includedir="$ac_optarg" ;;
343 -infodir | --infodir | --infodi | --infod | --info | --inf)
345 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
346 infodir="$ac_optarg" ;;
348 -libdir | --libdir | --libdi | --libd)
350 -libdir=* | --libdir=* | --libdi=* | --libd=*)
351 libdir="$ac_optarg" ;;
353 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
354 | --libexe | --libex | --libe)
355 ac_prev=libexecdir ;;
356 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
357 | --libexe=* | --libex=* | --libe=*)
358 libexecdir="$ac_optarg" ;;
360 -localstatedir | --localstatedir | --localstatedi | --localstated \
361 | --localstate | --localstat | --localsta | --localst \
362 | --locals | --local | --loca | --loc | --lo)
363 ac_prev=localstatedir ;;
364 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
365 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
366 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
367 localstatedir="$ac_optarg" ;;
369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
372 mandir="$ac_optarg" ;;
375 # Obsolete; use --without-fp.
378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
388 | --oldin | --oldi | --old | --ol | --o)
389 ac_prev=oldincludedir ;;
390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
393 oldincludedir="$ac_optarg" ;;
395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
398 prefix="$ac_optarg" ;;
400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
401 | --program-pre | --program-pr | --program-p)
402 ac_prev=program_prefix ;;
403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
405 program_prefix="$ac_optarg" ;;
407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
408 | --program-suf | --program-su | --program-s)
409 ac_prev=program_suffix ;;
410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
412 program_suffix="$ac_optarg" ;;
414 -program-transform-name | --program-transform-name \
415 | --program-transform-nam | --program-transform-na \
416 | --program-transform-n | --program-transform- \
417 | --program-transform | --program-transfor \
418 | --program-transfo | --program-transf \
419 | --program-trans | --program-tran \
420 | --progr-tra | --program-tr | --program-t)
421 ac_prev=program_transform_name ;;
422 -program-transform-name=* | --program-transform-name=* \
423 | --program-transform-nam=* | --program-transform-na=* \
424 | --program-transform-n=* | --program-transform-=* \
425 | --program-transform=* | --program-transfor=* \
426 | --program-transfo=* | --program-transf=* \
427 | --program-trans=* | --program-tran=* \
428 | --progr-tra=* | --program-tr=* | --program-t=*)
429 program_transform_name="$ac_optarg" ;;
431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
432 | -silent | --silent | --silen | --sile | --sil)
435 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
437 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
439 sbindir="$ac_optarg" ;;
441 -sharedstatedir | --sharedstatedir | --sharedstatedi \
442 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
443 | --sharedst | --shareds | --shared | --share | --shar \
445 ac_prev=sharedstatedir ;;
446 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
447 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
448 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
450 sharedstatedir="$ac_optarg" ;;
452 -site | --site | --sit)
454 -site=* | --site=* | --sit=*)
457 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
459 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
460 srcdir="$ac_optarg" ;;
462 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
463 | --syscon | --sysco | --sysc | --sys | --sy)
464 ac_prev=sysconfdir ;;
465 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
466 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
467 sysconfdir="$ac_optarg" ;;
469 -target | --target | --targe | --targ | --tar | --ta | --t)
471 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
472 target="$ac_optarg" ;;
474 -v | -verbose | --verbose | --verbos | --verbo | --verb)
477 -version | --version | --versio | --versi | --vers)
478 echo "configure generated by autoconf version 2.13.1"
482 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
483 # Reject names that are not valid shell variable names.
484 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
485 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
487 ac_package=`echo $ac_package| sed 's/-/_/g'`
492 eval "with_${ac_package}='$ac_optarg'" ;;
494 -without-* | --without-*)
495 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
496 # Reject names that are not valid shell variable names.
497 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
498 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
500 ac_package=`echo $ac_package| sed 's/-/_/g'`
501 eval "with_${ac_package}=no" ;;
504 # Obsolete; use --with-x.
507 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
508 | --x-incl | --x-inc | --x-in | --x-i)
509 ac_prev=x_includes ;;
510 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
511 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
512 x_includes="$ac_optarg" ;;
514 -x-libraries | --x-libraries | --x-librarie | --x-librari \
515 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
516 ac_prev=x_libraries ;;
517 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
518 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
519 x_libraries="$ac_optarg" ;;
521 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
525 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
526 echo "configure: warning: $ac_option: invalid host type" 1>&2
528 if test "x$nonopt" != xNONE; then
529 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
537 if test -n "$ac_prev"; then
538 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
541 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
543 # File descriptor usage:
546 # 2 errors and warnings
547 # 3 some systems may open it to /dev/tty
548 # 4 used on the Kubota Titan
549 # 6 checking for... messages and results
550 # 5 compiler messages saved in config.log
551 if test "$silent" = yes; then
559 This file contains any messages produced by compilers while
560 running configure, to aid debugging if configure makes a mistake.
563 # Strip out --no-create and --no-recursion so they do not pile up.
564 # Also quote any args containing shell metacharacters.
569 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
570 | --no-cr | --no-c) ;;
571 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
572 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
573 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
574 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
575 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
580 # Only set these to C if already set. These must not be set unconditionally
581 # because not all systems understand e.g. LANG=C (notably SCO).
582 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
583 # Non-C LC_CTYPE values break the ctype check.
584 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
585 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
586 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
587 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
590 rm -rf conftest* confdefs.h
591 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
594 # A filename unique to this package, relative to the directory that
595 # configure is in, which we can look for to find out if srcdir is correct.
596 ac_unique_file=build/version.sh
598 # Find the source files, if location was not specified.
599 if test -z "$srcdir"; then
600 ac_srcdir_defaulted=yes
601 # Try the directory containing this script, then its parent.
603 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
604 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
606 if test ! -r $srcdir/$ac_unique_file; then
610 ac_srcdir_defaulted=no
612 if test ! -r $srcdir/$ac_unique_file; then
613 if test "$ac_srcdir_defaulted" = yes; then
614 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
616 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
619 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
621 # Prefer explicitly selected file to automatically selected ones.
622 if test -z "$CONFIG_SITE"; then
623 if test "x$prefix" != xNONE; then
624 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
626 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
629 for ac_site_file in $CONFIG_SITE; do
630 if test -r "$ac_site_file"; then
631 echo "loading site script $ac_site_file"
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp='$CPP $CPPFLAGS'
640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling=$ac_cv_prog_cc_cross
646 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
655 ac_n= ac_c='\c' ac_t=
659 # set unset (borrowed from autoconf 2.49c)
660 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
666 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
669 for ac_dir in build $srcdir/build; do
670 if test -f $ac_dir/install-sh; then
672 ac_install_sh="$ac_aux_dir/install-sh -c"
674 elif test -f $ac_dir/install.sh; then
676 ac_install_sh="$ac_aux_dir/install.sh -c"
678 elif test -f $ac_dir/shtool; then
680 ac_install_sh="$ac_aux_dir/shtool install -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
687 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
688 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
689 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
691 eval `$ac_aux_dir/version.sh`
692 if test -z "$OL_STRING"; then
693 { echo "configure: error: could not determine version" 1>&2; exit 1; }
696 echo "Configuring $OL_STRING ..."
699 echo $ac_n "checking host system type""... $ac_c" 1>&6
700 echo "configure:701: checking host system type" >&5
701 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
703 # Make sure we can run config.sub.
704 if $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 ac_cv_host_alias=$host
709 case "$ac_cv_host_alias" in
713 if ac_cv_host_alias=`$ac_config_guess`; then :
714 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
716 *) ac_cv_host_alias=$nonopt ;;
720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
721 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo $ac_n "(cached) $ac_c" 1>&6
728 echo "$ac_t""$ac_cv_host" 1>&6
731 host_alias=$ac_cv_host_alias
732 host_cpu=$ac_cv_host_cpu
733 host_vendor=$ac_cv_host_vendor
734 host_os=$ac_cv_host_os
740 echo $ac_n "checking target system type""... $ac_c" 1>&6
741 echo "configure:742: checking target system type" >&5
742 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
744 # Make sure we can run config.sub.
745 if $ac_config_sub sun4 >/dev/null 2>&1; then :
746 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749 ac_cv_target_alias=$target
750 case "$ac_cv_target_alias" in
754 ac_cv_target_alias=$host_alias ;;
756 *) ac_cv_target_alias=$nonopt ;;
760 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
761 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo $ac_n "(cached) $ac_c" 1>&6
768 echo "$ac_t""$ac_cv_target" 1>&6
771 target_alias=$ac_cv_target_alias
772 target_cpu=$ac_cv_target_cpu
773 target_vendor=$ac_cv_target_vendor
774 target_os=$ac_cv_target_os
780 echo $ac_n "checking build system type""... $ac_c" 1>&6
781 echo "configure:782: checking build system type" >&5
782 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
784 # Make sure we can run config.sub.
785 if $ac_config_sub sun4 >/dev/null 2>&1; then :
786 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
789 ac_cv_build_alias=$build
790 case "$ac_cv_build_alias" in
794 ac_cv_build_alias=$host_alias ;;
796 *) ac_cv_build_alias=$nonopt ;;
800 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
801 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
802 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
803 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
805 echo $ac_n "(cached) $ac_c" 1>&6
808 echo "$ac_t""$ac_cv_build" 1>&6
811 build_alias=$ac_cv_build_alias
812 build_cpu=$ac_cv_build_cpu
813 build_vendor=$ac_cv_build_vendor
814 build_os=$ac_cv_build_os
820 # Do some error checking and defaulting for the host and target type.
822 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
825 # 1. You are not allowed to specify --host, --target, and nonopt at the
827 # 2. Host defaults to nonopt.
828 # 3. If nonopt is not specified, then host defaults to the current host,
829 # as determined by config.guess.
830 # 4. Target and build default to nonopt.
831 # 5. If nonopt is not specified, then target and build default to host.
833 # The aliases save the names the user supplied, while $host etc.
834 # will get canonicalized.
835 case $host---$target---$nonopt in
836 NONE---*---* | *---NONE---* | *---*---NONE) ;;
837 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
840 test "$host_alias" != "$target_alias" &&
841 test "$program_prefix$program_suffix$program_transform_name" = \
843 program_prefix=${target_alias}-
846 # Find a good install program. We prefer a C program (faster),
847 # so one script is as good as another. But avoid the broken or
848 # incompatible versions:
849 # SysV /etc/install, /usr/sbin/install
850 # SunOS /usr/etc/install
853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
856 # ./install, which can be erroneously created by make from ./install.sh.
857 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
858 echo "configure:859: checking for a BSD compatible install" >&5
859 if test -z "$INSTALL"; then
860 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
864 for ac_dir in $PATH; do
865 # Account for people who put trailing slashes in PATH elements.
867 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
869 # OSF1 and SCO ODT 3.0 have their own names for install.
870 # Don't use installbsd from OSF since it installs stuff as root
872 for ac_prog in ginstall scoinst install; do
873 if test -f $ac_dir/$ac_prog; then
874 if test $ac_prog = install &&
875 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
876 # AIX install. It has an incompatible calling convention.
878 elif test $ac_prog = install &&
879 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
880 # program-specific install script used by HP pwplus--don't use.
883 ac_cv_path_install="$ac_dir/$ac_prog -c"
894 if test "${ac_cv_path_install+set}" = set; then
895 INSTALL="$ac_cv_path_install"
897 # As a last resort, use the slow shell script. We don't cache a
898 # path for INSTALL within a source directory, because that will
899 # break other packages using the cache if that directory is
900 # removed, or if the path is relative.
901 INSTALL="$ac_install_sh"
904 echo "$ac_t""$INSTALL" 1>&6
906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
907 # It thinks the first close brace ends the variable substitution.
908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
914 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
915 echo "configure:916: checking whether build environment is sane" >&5
918 echo timestamp > conftestfile
919 # Do `set' in a subshell so we don't clobber the current shell's
920 # arguments. Must try -L first in case configure is actually a
921 # symlink; some systems play weird games with the mod time of symlinks
922 # (eg FreeBSD returns the mod time of the symlink's containing
925 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
926 if test "$*" = "X"; then
928 set X `ls -t $srcdir/configure conftestfile`
930 if test "$*" != "X $srcdir/configure conftestfile" \
931 && test "$*" != "X conftestfile $srcdir/configure"; then
933 # If neither matched, then we have a broken ls. This can happen
934 # if, for instance, CONFIG_SHELL is bash and it inherits a
935 # broken ls alias from the environment. This has actually
936 # happened. Such a system could not be considered "sane".
937 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
938 alias in your environment" 1>&2; exit 1; }
941 test "$2" = conftestfile
947 { echo "configure: error: newly created file is older than distributed files!
948 Check your system clock" 1>&2; exit 1; }
951 echo "$ac_t""yes" 1>&6
952 if test "$program_transform_name" = s,x,x,; then
953 program_transform_name=
955 # Double any \ or $. echo might interpret backslashes.
956 cat <<\EOF_SED > conftestsed
957 s,\\,\\\\,g; s,\$,$$,g
959 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
962 test "$program_prefix" != NONE &&
963 program_transform_name="s,^,${program_prefix},;$program_transform_name"
964 # Use a double $ so make ignores it.
965 test "$program_suffix" != NONE &&
966 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
968 # sed with no file args requires a program.
969 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
971 for ac_prog in mawk gawk nawk awk
973 # Extract the first word of "$ac_prog", so it can be a program name with args.
974 set dummy $ac_prog; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 if test -n "$AWK"; then
981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 for ac_dir in $ac_dummy; do
986 test -z "$ac_dir" && ac_dir=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_AWK="$ac_prog"
995 AWK="$ac_cv_prog_AWK"
996 if test -n "$AWK"; then
997 echo "$ac_t""$AWK" 1>&6
999 echo "$ac_t""no" 1>&6
1002 test -n "$AWK" && break
1005 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${MAKE-make} sets \${MAKE}" >&5
1007 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1008 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 cat > conftestmake <<\EOF
1013 @echo 'ac_maketemp="${MAKE}"'
1015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1016 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1017 if test -n "$ac_maketemp"; then
1018 eval ac_cv_prog_make_${ac_make}_set=yes
1020 eval ac_cv_prog_make_${ac_make}_set=no
1024 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1025 echo "$ac_t""yes" 1>&6
1028 echo "$ac_t""no" 1>&6
1029 SET_MAKE="MAKE=${MAKE-make}"
1038 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1039 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1044 missing_dir=`cd $ac_aux_dir && pwd`
1045 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working aclocal" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 ACLOCAL="$missing_dir/missing aclocal"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoconf" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOCONF="$missing_dir/missing autoconf"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working automake" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (automake --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 AUTOMAKE="$missing_dir/missing automake"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working autoheader" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1090 AUTOHEADER=autoheader
1091 echo "$ac_t""found" 1>&6
1093 AUTOHEADER="$missing_dir/missing autoheader"
1094 echo "$ac_t""missing" 1>&6
1097 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1098 echo "configure:1099: checking for working makeinfo" >&5
1099 # Run test in a subshell; some versions of sh will print an error if
1100 # an executable is not found, even if stderr is redirected.
1101 # Redirect stdin to placate older versions of autoconf. Sigh.
1102 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1104 echo "$ac_t""found" 1>&6
1106 MAKEINFO="$missing_dir/missing makeinfo"
1107 echo "$ac_t""missing" 1>&6
1110 install_sh="$missing_dir/install-sh"
1111 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1113 for ac_prog in gnutar gtar tar
1115 # Extract the first word of "$ac_prog", so it can be a program name with args.
1116 set dummy $ac_prog; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$AMTAR"; then
1123 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_AMTAR="$ac_prog"
1137 AMTAR="$ac_cv_prog_AMTAR"
1138 if test -n "$AMTAR"; then
1139 echo "$ac_t""$AMTAR" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 test -n "$AMTAR" && break
1149 if test -n "$AMTAR"; then
1150 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1155 cat >> confdefs.h <<EOF
1156 #define OPENLDAP_PACKAGE "$PACKAGE"
1159 cat >> confdefs.h <<EOF
1160 #define OPENLDAP_VERSION "$VERSION"
1164 cat >> confdefs.h <<EOF
1165 #define LDAP_VENDOR_VERSION $OL_API_INC
1168 cat >> confdefs.h <<EOF
1169 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1172 cat >> confdefs.h <<EOF
1173 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1176 cat >> confdefs.h <<EOF
1177 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1181 OPENLDAP_LIBVERSION=$OL_API_LIB
1185 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1186 echo "configure:1187: checking configure arguments" >&5
1191 ldap_subdir="/openldap"
1193 # Check whether --with-subdir or --without-subdir was given.
1194 if test "${with_subdir+set}" = set; then
1195 withval="$with_subdir"
1202 ldap_subdir="$withval"
1205 ldap_subdir="/$withval"
1212 # OpenLDAP --enable-debug
1213 # Check whether --enable-debug or --disable-debug was given.
1214 if test "${enable_debug+set}" = set; then
1215 enableval="$enable_debug"
1218 for ol_val in auto yes no ; do
1219 if test "$enableval" = "$ol_val" ; then
1223 if test "$ol_arg" = "invalid" ; then
1224 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1226 ol_enable_debug="$ol_arg"
1229 ol_enable_debug="yes"
1231 # end --enable-debug
1232 # OpenLDAP --enable-syslog
1233 # Check whether --enable-syslog or --disable-syslog was given.
1234 if test "${enable_syslog+set}" = set; then
1235 enableval="$enable_syslog"
1238 for ol_val in auto yes no ; do
1239 if test "$enableval" = "$ol_val" ; then
1243 if test "$ol_arg" = "invalid" ; then
1244 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1246 ol_enable_syslog="$ol_arg"
1249 ol_enable_syslog="auto"
1251 # end --enable-syslog
1252 # OpenLDAP --enable-proctitle
1253 # Check whether --enable-proctitle or --disable-proctitle was given.
1254 if test "${enable_proctitle+set}" = set; then
1255 enableval="$enable_proctitle"
1258 for ol_val in auto yes no ; do
1259 if test "$enableval" = "$ol_val" ; then
1263 if test "$ol_arg" = "invalid" ; then
1264 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1266 ol_enable_proctitle="$ol_arg"
1269 ol_enable_proctitle="yes"
1271 # end --enable-proctitle
1272 # OpenLDAP --enable-cache
1273 # Check whether --enable-cache or --disable-cache was given.
1274 if test "${enable_cache+set}" = set; then
1275 enableval="$enable_cache"
1278 for ol_val in auto yes no ; do
1279 if test "$enableval" = "$ol_val" ; then
1283 if test "$ol_arg" = "invalid" ; then
1284 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1286 ol_enable_cache="$ol_arg"
1289 ol_enable_cache="no"
1291 # end --enable-cache
1292 # OpenLDAP --enable-referrals
1293 # Check whether --enable-referrals or --disable-referrals was given.
1294 if test "${enable_referrals+set}" = set; then
1295 enableval="$enable_referrals"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1306 ol_enable_referrals="$ol_arg"
1309 ol_enable_referrals="no"
1311 # end --enable-referrals
1312 # OpenLDAP --enable-kbind
1313 # Check whether --enable-kbind or --disable-kbind was given.
1314 if test "${enable_kbind+set}" = set; then
1315 enableval="$enable_kbind"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1326 ol_enable_kbind="$ol_arg"
1329 ol_enable_kbind="no"
1331 # end --enable-kbind
1332 # OpenLDAP --enable-ipv6
1333 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1334 if test "${enable_ipv6+set}" = set; then
1335 enableval="$enable_ipv6"
1338 for ol_val in auto yes no ; do
1339 if test "$enableval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1346 ol_enable_ipv6="$ol_arg"
1349 ol_enable_ipv6="auto"
1352 # OpenLDAP --enable-local
1353 # Check whether --enable-local or --disable-local was given.
1354 if test "${enable_local+set}" = set; then
1355 enableval="$enable_local"
1358 for ol_val in auto yes no ; do
1359 if test "$enableval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1366 ol_enable_local="$ol_arg"
1369 ol_enable_local="auto"
1371 # end --enable-local
1372 # OpenLDAP --enable-rewrite
1373 # Check whether --enable-rewrite or --disable-rewrite was given.
1374 if test "${enable_rewrite+set}" = set; then
1375 enableval="$enable_rewrite"
1378 for ol_val in auto yes no ; do
1379 if test "$enableval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1386 ol_enable_rewrite="$ol_arg"
1389 ol_enable_rewrite="no"
1391 # end --enable-rewrite
1392 # OpenLDAP --enable-x_compile
1393 # Check whether --enable-x_compile or --disable-x_compile was given.
1394 if test "${enable_x_compile+set}" = set; then
1395 enableval="$enable_x_compile"
1398 for ol_val in yes no ; do
1399 if test "$enableval" = "$ol_val" ; then
1403 if test "$ol_arg" = "invalid" ; then
1404 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1406 ol_enable_x_compile="$ol_arg"
1409 ol_enable_x_compile="no"
1411 # end --enable-x_compile
1414 # OpenLDAP --with-cyrus_sasl
1415 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1416 if test "${with_cyrus_sasl+set}" = set; then
1417 withval="$with_cyrus_sasl"
1420 for ol_val in auto yes no ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1428 ol_with_cyrus_sasl="$ol_arg"
1431 ol_with_cyrus_sasl="auto"
1433 # end --with-cyrus_sasl
1435 # OpenLDAP --with-fetch
1436 # Check whether --with-fetch or --without-fetch was given.
1437 if test "${with_fetch+set}" = set; then
1438 withval="$with_fetch"
1441 for ol_val in auto yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1449 ol_with_fetch="$ol_arg"
1452 ol_with_fetch="auto"
1456 # OpenLDAP --with-kerberos
1457 # Check whether --with-kerberos or --without-kerberos was given.
1458 if test "${with_kerberos+set}" = set; then
1459 withval="$with_kerberos"
1462 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1470 ol_with_kerberos="$ol_arg"
1473 ol_with_kerberos="auto"
1475 # end --with-kerberos
1477 # OpenLDAP --with-readline
1478 # Check whether --with-readline or --without-readline was given.
1479 if test "${with_readline+set}" = set; then
1480 withval="$with_readline"
1483 for ol_val in auto yes no ; do
1484 if test "$withval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1491 ol_with_readline="$ol_arg"
1494 ol_with_readline="auto"
1496 # end --with-readline
1498 # OpenLDAP --with-threads
1499 # Check whether --with-threads or --without-threads was given.
1500 if test "${with_threads+set}" = set; then
1501 withval="$with_threads"
1504 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1505 if test "$withval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1512 ol_with_threads="$ol_arg"
1515 ol_with_threads="auto"
1517 # end --with-threads
1519 # OpenLDAP --with-tls
1520 # Check whether --with-tls or --without-tls was given.
1521 if test "${with_tls+set}" = set; then
1525 for ol_val in auto ssleay openssl yes no ; do
1526 if test "$withval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1533 ol_with_tls="$ol_arg"
1540 # OpenLDAP --with-yielding_select
1541 # Check whether --with-yielding_select or --without-yielding_select was given.
1542 if test "${with_yielding_select+set}" = set; then
1543 withval="$with_yielding_select"
1546 for ol_val in auto yes no manual ; do
1547 if test "$withval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1554 ol_with_yielding_select="$ol_arg"
1557 ol_with_yielding_select="auto"
1559 # end --with-yielding_select
1563 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1564 if test "${with_xxslapdoptions+set}" = set; then
1565 withval="$with_xxslapdoptions"
1569 # OpenLDAP --enable-slapd
1570 # Check whether --enable-slapd or --disable-slapd was given.
1571 if test "${enable_slapd+set}" = set; then
1572 enableval="$enable_slapd"
1575 for ol_val in auto yes no ; do
1576 if test "$enableval" = "$ol_val" ; then
1580 if test "$ol_arg" = "invalid" ; then
1581 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1583 ol_enable_slapd="$ol_arg"
1586 ol_enable_slapd="yes"
1588 # end --enable-slapd
1589 # OpenLDAP --enable-aci
1590 # Check whether --enable-aci or --disable-aci was given.
1591 if test "${enable_aci+set}" = set; then
1592 enableval="$enable_aci"
1595 for ol_val in auto yes no ; do
1596 if test "$enableval" = "$ol_val" ; then
1600 if test "$ol_arg" = "invalid" ; then
1601 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1603 ol_enable_aci="$ol_arg"
1609 # OpenLDAP --enable-cleartext
1610 # Check whether --enable-cleartext or --disable-cleartext was given.
1611 if test "${enable_cleartext+set}" = set; then
1612 enableval="$enable_cleartext"
1615 for ol_val in auto yes no ; do
1616 if test "$enableval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1623 ol_enable_cleartext="$ol_arg"
1626 ol_enable_cleartext="yes"
1628 # end --enable-cleartext
1629 # OpenLDAP --enable-crypt
1630 # Check whether --enable-crypt or --disable-crypt was given.
1631 if test "${enable_crypt+set}" = set; then
1632 enableval="$enable_crypt"
1635 for ol_val in auto yes no ; do
1636 if test "$enableval" = "$ol_val" ; then
1640 if test "$ol_arg" = "invalid" ; then
1641 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1643 ol_enable_crypt="$ol_arg"
1646 ol_enable_crypt="no"
1648 # end --enable-crypt
1649 # OpenLDAP --enable-dynamic
1650 # Check whether --enable-dynamic or --disable-dynamic was given.
1651 if test "${enable_dynamic+set}" = set; then
1652 enableval="$enable_dynamic"
1655 for ol_val in auto yes no ; do
1656 if test "$enableval" = "$ol_val" ; then
1660 if test "$ol_arg" = "invalid" ; then
1661 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1663 ol_enable_dynamic="$ol_arg"
1666 ol_enable_dynamic="no"
1668 # end --enable-dynamic
1669 # OpenLDAP --enable-kpasswd
1670 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1671 if test "${enable_kpasswd+set}" = set; then
1672 enableval="$enable_kpasswd"
1675 for ol_val in auto yes no ; do
1676 if test "$enableval" = "$ol_val" ; then
1680 if test "$ol_arg" = "invalid" ; then
1681 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1683 ol_enable_kpasswd="$ol_arg"
1686 ol_enable_kpasswd="no"
1688 # end --enable-kpasswd
1689 # OpenLDAP --enable-lmpasswd
1690 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1691 if test "${enable_lmpasswd+set}" = set; then
1692 enableval="$enable_lmpasswd"
1695 for ol_val in auto yes no ; do
1696 if test "$enableval" = "$ol_val" ; then
1700 if test "$ol_arg" = "invalid" ; then
1701 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1703 ol_enable_lmpasswd="$ol_arg"
1706 ol_enable_lmpasswd="no"
1708 # end --enable-lmpasswd
1709 # OpenLDAP --enable-spasswd
1710 # Check whether --enable-spasswd or --disable-spasswd was given.
1711 if test "${enable_spasswd+set}" = set; then
1712 enableval="$enable_spasswd"
1715 for ol_val in auto yes no ; do
1716 if test "$enableval" = "$ol_val" ; then
1720 if test "$ol_arg" = "invalid" ; then
1721 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1723 ol_enable_spasswd="$ol_arg"
1726 ol_enable_spasswd="no"
1728 # end --enable-spasswd
1729 # OpenLDAP --enable-modules
1730 # Check whether --enable-modules or --disable-modules was given.
1731 if test "${enable_modules+set}" = set; then
1732 enableval="$enable_modules"
1735 for ol_val in auto yes no ; do
1736 if test "$enableval" = "$ol_val" ; then
1740 if test "$ol_arg" = "invalid" ; then
1741 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1743 ol_enable_modules="$ol_arg"
1746 ol_enable_modules="no"
1748 # end --enable-modules
1749 # OpenLDAP --enable-phonetic
1750 # Check whether --enable-phonetic or --disable-phonetic was given.
1751 if test "${enable_phonetic+set}" = set; then
1752 enableval="$enable_phonetic"
1755 for ol_val in auto yes no ; do
1756 if test "$enableval" = "$ol_val" ; then
1760 if test "$ol_arg" = "invalid" ; then
1761 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1763 ol_enable_phonetic="$ol_arg"
1766 ol_enable_phonetic="no"
1768 # end --enable-phonetic
1769 # OpenLDAP --enable-rlookups
1770 # Check whether --enable-rlookups or --disable-rlookups was given.
1771 if test "${enable_rlookups+set}" = set; then
1772 enableval="$enable_rlookups"
1775 for ol_val in auto yes no ; do
1776 if test "$enableval" = "$ol_val" ; then
1780 if test "$ol_arg" = "invalid" ; then
1781 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1783 ol_enable_rlookups="$ol_arg"
1786 ol_enable_rlookups="no"
1788 # end --enable-rlookups
1789 # OpenLDAP --enable-slp
1790 # Check whether --enable-slp or --disable-slp was given.
1791 if test "${enable_slp+set}" = set; then
1792 enableval="$enable_slp"
1795 for ol_val in auto yes no ; do
1796 if test "$enableval" = "$ol_val" ; then
1800 if test "$ol_arg" = "invalid" ; then
1801 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1803 ol_enable_slp="$ol_arg"
1809 # OpenLDAP --enable-wrappers
1810 # Check whether --enable-wrappers or --disable-wrappers was given.
1811 if test "${enable_wrappers+set}" = set; then
1812 enableval="$enable_wrappers"
1815 for ol_val in auto yes no ; do
1816 if test "$enableval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1823 ol_enable_wrappers="$ol_arg"
1826 ol_enable_wrappers="no"
1828 # end --enable-wrappers
1830 # OpenLDAP --enable-bdb
1831 # Check whether --enable-bdb or --disable-bdb was given.
1832 if test "${enable_bdb+set}" = set; then
1833 enableval="$enable_bdb"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1844 ol_enable_bdb="$ol_arg"
1850 # OpenLDAP --with-bdb_module
1851 # Check whether --with-bdb_module or --without-bdb_module was given.
1852 if test "${with_bdb_module+set}" = set; then
1853 withval="$with_bdb_module"
1856 for ol_val in static dynamic ; do
1857 if test "$withval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1864 ol_with_bdb_module="$ol_arg"
1867 ol_with_bdb_module="static"
1869 # end --with-bdb_module
1871 # OpenLDAP --enable-dnssrv
1872 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1873 if test "${enable_dnssrv+set}" = set; then
1874 enableval="$enable_dnssrv"
1877 for ol_val in auto yes no ; do
1878 if test "$enableval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1885 ol_enable_dnssrv="$ol_arg"
1888 ol_enable_dnssrv="no"
1890 # end --enable-dnssrv
1891 # OpenLDAP --with-dnssrv_module
1892 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1893 if test "${with_dnssrv_module+set}" = set; then
1894 withval="$with_dnssrv_module"
1897 for ol_val in static dynamic ; do
1898 if test "$withval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1905 ol_with_dnssrv_module="$ol_arg"
1908 ol_with_dnssrv_module="static"
1910 # end --with-dnssrv_module
1912 # OpenLDAP --enable-ldap
1913 # Check whether --enable-ldap or --disable-ldap was given.
1914 if test "${enable_ldap+set}" = set; then
1915 enableval="$enable_ldap"
1918 for ol_val in auto yes no ; do
1919 if test "$enableval" = "$ol_val" ; then
1923 if test "$ol_arg" = "invalid" ; then
1924 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1926 ol_enable_ldap="$ol_arg"
1932 # OpenLDAP --with-ldap_module
1933 # Check whether --with-ldap_module or --without-ldap_module was given.
1934 if test "${with_ldap_module+set}" = set; then
1935 withval="$with_ldap_module"
1938 for ol_val in static dynamic ; do
1939 if test "$withval" = "$ol_val" ; then
1943 if test "$ol_arg" = "invalid" ; then
1944 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1946 ol_with_ldap_module="$ol_arg"
1949 ol_with_ldap_module="static"
1951 # end --with-ldap_module
1953 # OpenLDAP --enable-ldbm
1954 # Check whether --enable-ldbm or --disable-ldbm was given.
1955 if test "${enable_ldbm+set}" = set; then
1956 enableval="$enable_ldbm"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1967 ol_enable_ldbm="$ol_arg"
1970 ol_enable_ldbm="yes"
1973 # OpenLDAP --with-ldbm_api
1974 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1975 if test "${with_ldbm_api+set}" = set; then
1976 withval="$with_ldbm_api"
1979 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1980 if test "$withval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1987 ol_with_ldbm_api="$ol_arg"
1990 ol_with_ldbm_api="auto"
1992 # end --with-ldbm_api
1994 # OpenLDAP --with-ldbm_module
1995 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1996 if test "${with_ldbm_module+set}" = set; then
1997 withval="$with_ldbm_module"
2000 for ol_val in static dynamic ; do
2001 if test "$withval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2008 ol_with_ldbm_module="$ol_arg"
2011 ol_with_ldbm_module="static"
2013 # end --with-ldbm_module
2015 # OpenLDAP --with-ldbm_type
2016 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2017 if test "${with_ldbm_type+set}" = set; then
2018 withval="$with_ldbm_type"
2021 for ol_val in auto btree hash ; do
2022 if test "$withval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2029 ol_with_ldbm_type="$ol_arg"
2032 ol_with_ldbm_type="auto"
2034 # end --with-ldbm_type
2036 # OpenLDAP --enable-meta
2037 # Check whether --enable-meta or --disable-meta was given.
2038 if test "${enable_meta+set}" = set; then
2039 enableval="$enable_meta"
2042 for ol_val in auto yes no ; do
2043 if test "$enableval" = "$ol_val" ; then
2047 if test "$ol_arg" = "invalid" ; then
2048 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2050 ol_enable_meta="$ol_arg"
2056 # OpenLDAP --with-meta_module
2057 # Check whether --with-meta_module or --without-meta_module was given.
2058 if test "${with_meta_module+set}" = set; then
2059 withval="$with_meta_module"
2062 for ol_val in static dynamic ; do
2063 if test "$withval" = "$ol_val" ; then
2067 if test "$ol_arg" = "invalid" ; then
2068 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2070 ol_with_meta_module="$ol_arg"
2073 ol_with_meta_module="static"
2075 # end --with-meta_module
2077 # OpenLDAP --enable-monitor
2078 # Check whether --enable-monitor or --disable-monitor was given.
2079 if test "${enable_monitor+set}" = set; then
2080 enableval="$enable_monitor"
2083 for ol_val in auto yes no ; do
2084 if test "$enableval" = "$ol_val" ; then
2088 if test "$ol_arg" = "invalid" ; then
2089 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2091 ol_enable_monitor="$ol_arg"
2094 ol_enable_monitor="no"
2096 # end --enable-monitor
2097 # OpenLDAP --with-monitor_module
2098 # Check whether --with-monitor_module or --without-monitor_module was given.
2099 if test "${with_monitor_module+set}" = set; then
2100 withval="$with_monitor_module"
2103 for ol_val in static dynamic ; do
2104 if test "$withval" = "$ol_val" ; then
2108 if test "$ol_arg" = "invalid" ; then
2109 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2111 ol_with_monitor_module="$ol_arg"
2114 ol_with_monitor_module="static"
2116 # end --with-monitor_module
2118 # OpenLDAP --enable-passwd
2119 # Check whether --enable-passwd or --disable-passwd was given.
2120 if test "${enable_passwd+set}" = set; then
2121 enableval="$enable_passwd"
2124 for ol_val in auto yes no ; do
2125 if test "$enableval" = "$ol_val" ; then
2129 if test "$ol_arg" = "invalid" ; then
2130 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2132 ol_enable_passwd="$ol_arg"
2135 ol_enable_passwd="no"
2137 # end --enable-passwd
2138 # OpenLDAP --with-passwd_module
2139 # Check whether --with-passwd_module or --without-passwd_module was given.
2140 if test "${with_passwd_module+set}" = set; then
2141 withval="$with_passwd_module"
2144 for ol_val in static dynamic ; do
2145 if test "$withval" = "$ol_val" ; then
2149 if test "$ol_arg" = "invalid" ; then
2150 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2152 ol_with_passwd_module="$ol_arg"
2155 ol_with_passwd_module="static"
2157 # end --with-passwd_module
2159 # OpenLDAP --enable-perl
2160 # Check whether --enable-perl or --disable-perl was given.
2161 if test "${enable_perl+set}" = set; then
2162 enableval="$enable_perl"
2165 for ol_val in auto yes no ; do
2166 if test "$enableval" = "$ol_val" ; then
2170 if test "$ol_arg" = "invalid" ; then
2171 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2173 ol_enable_perl="$ol_arg"
2179 # OpenLDAP --with-perl_module
2180 # Check whether --with-perl_module or --without-perl_module was given.
2181 if test "${with_perl_module+set}" = set; then
2182 withval="$with_perl_module"
2185 for ol_val in static dynamic ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2193 ol_with_perl_module="$ol_arg"
2196 ol_with_perl_module="static"
2198 # end --with-perl_module
2200 # OpenLDAP --enable-shell
2201 # Check whether --enable-shell or --disable-shell was given.
2202 if test "${enable_shell+set}" = set; then
2203 enableval="$enable_shell"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2214 ol_enable_shell="$ol_arg"
2217 ol_enable_shell="no"
2219 # end --enable-shell
2220 # OpenLDAP --with-shell_module
2221 # Check whether --with-shell_module or --without-shell_module was given.
2222 if test "${with_shell_module+set}" = set; then
2223 withval="$with_shell_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2234 ol_with_shell_module="$ol_arg"
2237 ol_with_shell_module="static"
2239 # end --with-shell_module
2241 # OpenLDAP --enable-sql
2242 # Check whether --enable-sql or --disable-sql was given.
2243 if test "${enable_sql+set}" = set; then
2244 enableval="$enable_sql"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2255 ol_enable_sql="$ol_arg"
2261 # OpenLDAP --with-sql_module
2262 # Check whether --with-sql_module or --without-sql_module was given.
2263 if test "${with_sql_module+set}" = set; then
2264 withval="$with_sql_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2275 ol_with_sql_module="$ol_arg"
2278 ol_with_sql_module="static"
2280 # end --with-sql_module
2282 # OpenLDAP --enable-tcl
2283 # Check whether --enable-tcl or --disable-tcl was given.
2284 if test "${enable_tcl+set}" = set; then
2285 enableval="$enable_tcl"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2296 ol_enable_tcl="$ol_arg"
2302 # OpenLDAP --with-tcl_module
2303 # Check whether --with-tcl_module or --without-tcl_module was given.
2304 if test "${with_tcl_module+set}" = set; then
2305 withval="$with_tcl_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2316 ol_with_tcl_module="$ol_arg"
2319 ol_with_tcl_module="static"
2321 # end --with-tcl_module
2324 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2325 if test "${with_xxslurpdoptions+set}" = set; then
2326 withval="$with_xxslurpdoptions"
2330 # OpenLDAP --enable-slurpd
2331 # Check whether --enable-slurpd or --disable-slurpd was given.
2332 if test "${enable_slurpd+set}" = set; then
2333 enableval="$enable_slurpd"
2336 for ol_val in auto yes no ; do
2337 if test "$enableval" = "$ol_val" ; then
2341 if test "$ol_arg" = "invalid" ; then
2342 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2344 ol_enable_slurpd="$ol_arg"
2347 ol_enable_slurpd="auto"
2349 # end --enable-slurpd
2351 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2352 if test "${with_xxliboptions+set}" = set; then
2353 withval="$with_xxliboptions"
2357 # Check whether --enable-static or --disable-static was given.
2358 if test "${enable_static+set}" = set; then
2359 enableval="$enable_static"
2360 p=${PACKAGE-default}
2361 case "$enableval" in
2362 yes) enable_static=yes ;;
2363 no) enable_static=no ;;
2366 # Look at the argument we got. We use all the common list separators.
2367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2368 for pkg in $enableval; do
2369 if test "X$pkg" = "X$p"; then
2380 # Check whether --enable-shared or --disable-shared was given.
2381 if test "${enable_shared+set}" = set; then
2382 enableval="$enable_shared"
2383 p=${PACKAGE-default}
2384 case "$enableval" in
2385 yes) enable_shared=yes ;;
2386 no) enable_shared=no ;;
2389 # Look at the argument we got. We use all the common list separators.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2391 for pkg in $enableval; do
2392 if test "X$pkg" = "X$p"; then
2406 if test $ol_enable_slapd = no ; then
2407 if test $ol_enable_bdb = yes ; then
2408 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2410 if test $ol_enable_dnssrv = yes ; then
2411 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2413 if test $ol_enable_ldap = yes ; then
2414 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2416 if test $ol_enable_ldbm = yes ; then
2417 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2419 if test $ol_enable_meta = yes ; then
2420 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2422 if test $ol_enable_module = yes ; then
2423 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2425 if test $ol_enable_passwd = yes ; then
2426 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2428 if test $ol_enable_perl = yes ; then
2429 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2431 if test $ol_enable_shell = yes ; then
2432 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2434 if test $ol_enable_tcl = yes ; then
2435 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2437 if test $ol_enable_sql = yes ; then
2438 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2440 if test $ol_enable_modules = yes ; then
2441 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2443 if test $ol_enable_wrappers = yes ; then
2444 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2446 if test $ol_enable_phonetic = yes ; then
2447 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2449 if test $ol_enable_rlookups = yes ; then
2450 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2452 if test $ol_enable_aci = yes ; then
2453 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2455 if test $ol_with_ldbm_api != auto ; then
2456 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2458 if test $ol_with_ldbm_type != auto ; then
2459 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2461 if test $ol_with_bdb_module != static ; then
2462 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2464 if test $ol_with_dnssrv_module != static ; then
2465 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2467 if test $ol_with_ldap_module != static ; then
2468 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2470 if test $ol_with_ldbm_module != static ; then
2471 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2473 if test $ol_with_meta_module != static ; then
2474 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2476 if test $ol_with_monitor_module != static ; then
2477 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2479 if test $ol_with_passwd_module != static ; then
2480 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2482 if test $ol_with_perl_module != static ; then
2483 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2485 if test $ol_with_shell_module != static ; then
2486 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2488 if test $ol_with_tcl_module != static ; then
2489 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2491 if test $ol_with_sql_module != static ; then
2492 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2494 if test $ol_enable_slurpd = yes ; then
2495 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2497 if test $ol_enable_rewrite = yes ; then
2498 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2501 # force settings to no
2507 ol_enable_monitor=no
2514 ol_enable_modules=no
2515 ol_enable_phonetic=no
2516 ol_enable_rlookups=no
2518 ol_enable_wrappers=no
2519 ol_enable_dynamic=no
2522 ol_with_ldbm_type=no
2524 ol_with_bdb_module=static
2525 ol_with_dnssrv_module=static
2526 ol_with_ldap_module=static
2527 ol_with_ldbm_module=static
2528 ol_with_meta_module=static
2529 ol_with_monitor_module=static
2530 ol_with_passwd_module=static
2531 ol_with_perl_module=static
2532 ol_with_shell_module=static
2533 ol_with_tcl_module=static
2534 ol_with_sql_module=static
2538 ol_enable_rewrite=no
2540 elif test $ol_enable_ldbm = no ; then
2542 if test $ol_with_ldbm_api != auto ; then
2543 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2546 if test $ol_with_ldbm_type != auto ; then
2547 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2550 if test $ol_with_ldbm_module != static ; then
2551 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2554 if test $ol_enable_modules != yes -a \
2555 $ol_enable_bdb = no -a \
2556 $ol_enable_dnssrv = no -a \
2557 $ol_enable_ldap = no -a \
2558 $ol_enable_meta = no -a \
2559 $ol_enable_monitor = no -a \
2560 $ol_enable_passwd = no -a \
2561 $ol_enable_perl = no -a \
2562 $ol_enable_shell = no -a \
2563 $ol_enable_sql = no -a \
2564 $ol_enable_tcl = no ; then
2566 if test $ol_enable_slapd = yes ; then
2567 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2569 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2575 ol_with_ldbm_type=no
2576 ol_with_ldbm_module=static
2578 if test $ol_enable_bdb != no ; then
2579 ol_with_ldbm_api=berkeley
2583 if test $ol_with_ldbm_api = gdbm -a \
2584 $ol_with_ldbm_type = btree ; then
2585 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2587 if test $ol_with_ldbm_api = mdbm -a \
2588 $ol_with_ldbm_type = btree ; then
2589 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2591 if test $ol_with_ldbm_api = ndbm -a \
2592 $ol_with_ldbm_type = btree ; then
2593 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2596 if test $ol_enable_bdb = yes ; then
2597 if test $ol_with_ldbm_api = auto ; then
2598 ol_with_ldbm_api=berkeley
2599 elif test $ol_with_ldbm_api != berkeley ; then
2600 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2603 elif test $ol_enable_bdb = auto ; then
2604 if test $ol_with_ldbm_api != berkeley \
2605 -o $ol_with_ldbm_api != auto ; then
2606 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2612 if test $ol_enable_slurpd = yes ; then
2613 if test $ol_with_threads = no ; then
2614 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2618 if test $ol_enable_lmpasswd = yes ; then
2619 if test $ol_with_tls = no ; then
2620 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2624 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2625 if test $ol_with_kerberos = no ; then
2626 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2628 ol_with_kerberos=yes
2629 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2630 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2631 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2636 if test $ol_enable_spasswd = yes ; then
2637 if test $ol_with_cyrus_sasl = no ; then
2638 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2640 ol_with_cyrus_sasl=yes
2643 echo "$ac_t""done" 1>&6
2672 BUILD_BDB_DYNAMIC=static
2673 BUILD_DNSSRV_DYNAMIC=static
2674 BUILD_LDAP_DYNAMIC=static
2675 BUILD_LDBM_DYNAMIC=static
2676 BUILD_META_DYNAMIC=static
2677 BUILD_MONITOR_DYNAMIC=static
2678 BUILD_PASSWD_DYNAMIC=static
2679 BUILD_PERL_DYNAMIC=static
2680 BUILD_SHELL_DYNAMIC=static
2681 BUILD_TCL_DYNAMIC=static
2682 BUILD_SQL_DYNAMIC=static
2684 SLAPD_MODULES_LDFLAGS=
2685 SLAPD_MODULES_CPPFLAGS=
2710 cat >> confdefs.h <<\EOF
2711 #define HAVE_MKVERSION 1
2719 *-*-aix*) if test -z "$CC" ; then
2720 case "$ol_with_threads" in
2721 auto | yes | posix) ol_aix_threads=yes ;;
2727 if test $ol_aix_threads = yes ; then
2728 if test -z "${CC}" ; then
2729 for ac_prog in cc_r xlc_r cc
2731 # Extract the first word of "$ac_prog", so it can be a program name with args.
2732 set dummy $ac_prog; ac_word=$2
2733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_word" >&5
2735 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2743 for ac_dir in $ac_dummy; do
2744 test -z "$ac_dir" && ac_dir=.
2745 if test -f $ac_dir/$ac_word; then
2746 ac_cv_prog_CC="$ac_prog"
2754 if test -n "$CC"; then
2755 echo "$ac_t""$CC" 1>&6
2757 echo "$ac_t""no" 1>&6
2760 test -n "$CC" && break
2764 if test "$CC" = cc ; then
2765 if test $ol_with_threads != auto ; then
2766 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2768 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2774 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2775 ol_with_threads=posix
2776 ol_cv_pthread_create=yes
2780 if test -z "${CC}"; then
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784 set dummy $ac_prog; ac_word=$2
2785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2786 echo "configure:2787: checking for $ac_word" >&5
2787 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2795 for ac_dir in $ac_dummy; do
2796 test -z "$ac_dir" && ac_dir=.
2797 if test -f $ac_dir/$ac_word; then
2798 ac_cv_prog_CC="$ac_prog"
2806 if test -n "$CC"; then
2807 echo "$ac_t""$CC" 1>&6
2809 echo "$ac_t""no" 1>&6
2812 test -n "$CC" && break
2820 # Check whether --enable-fast-install or --disable-fast-install was given.
2821 if test "${enable_fast_install+set}" = set; then
2822 enableval="$enable_fast_install"
2823 p=${PACKAGE-default}
2824 case "$enableval" in
2825 yes) enable_fast_install=yes ;;
2826 no) enable_fast_install=no ;;
2828 enable_fast_install=no
2829 # Look at the argument we got. We use all the common list separators.
2830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2831 for pkg in $enableval; do
2832 if test "X$pkg" = "X$p"; then
2833 enable_fast_install=yes
2840 enable_fast_install=yes
2843 # Extract the first word of "ranlib", so it can be a program name with args.
2844 set dummy ranlib; ac_word=$2
2845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_word" >&5
2847 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2850 if test -n "$RANLIB"; then
2851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2855 for ac_dir in $ac_dummy; do
2856 test -z "$ac_dir" && ac_dir=.
2857 if test -f $ac_dir/$ac_word; then
2858 ac_cv_prog_RANLIB="ranlib"
2863 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2866 RANLIB="$ac_cv_prog_RANLIB"
2867 if test -n "$RANLIB"; then
2868 echo "$ac_t""$RANLIB" 1>&6
2870 echo "$ac_t""no" 1>&6
2873 # Extract the first word of "gcc", so it can be a program name with args.
2874 set dummy gcc; ac_word=$2
2875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_word" >&5
2877 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2885 for ac_dir in $ac_dummy; do
2886 test -z "$ac_dir" && ac_dir=.
2887 if test -f $ac_dir/$ac_word; then
2896 if test -n "$CC"; then
2897 echo "$ac_t""$CC" 1>&6
2899 echo "$ac_t""no" 1>&6
2902 if test -z "$CC"; then
2903 # Extract the first word of "cc", so it can be a program name with args.
2904 set dummy cc; ac_word=$2
2905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_word" >&5
2907 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2916 for ac_dir in $ac_dummy; do
2917 test -z "$ac_dir" && ac_dir=.
2918 if test -f $ac_dir/$ac_word; then
2919 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2920 ac_prog_rejected=yes
2928 if test $ac_prog_rejected = yes; then
2929 # We found a bogon in the path, so make sure we never use it.
2930 set dummy $ac_cv_prog_CC
2932 if test $# -gt 0; then
2933 # We chose a different compiler from the bogus one.
2934 # However, it has the same basename, so the bogon will be chosen
2935 # first if we set CC to just the basename; use the full file name.
2937 set dummy "$ac_dir/$ac_word" "$@"
2945 if test -n "$CC"; then
2946 echo "$ac_t""$CC" 1>&6
2948 echo "$ac_t""no" 1>&6
2951 if test -z "$CC"; then
2952 case "`uname -s`" in
2953 *win32* | *WIN32* | *CYGWIN*)
2954 # Extract the first word of "cl", so it can be a program name with args.
2955 set dummy cl; ac_word=$2
2956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_word" >&5
2958 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2966 for ac_dir in $ac_dummy; do
2967 test -z "$ac_dir" && ac_dir=.
2968 if test -f $ac_dir/$ac_word; then
2977 if test -n "$CC"; then
2978 echo "$ac_t""$CC" 1>&6
2980 echo "$ac_t""no" 1>&6
2985 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2989 echo "configure:2990: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2996 cross_compiling=$ac_cv_prog_cc_cross
2998 cat > conftest.$ac_ext << EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3006 ac_cv_prog_cc_works=yes
3007 # If we can't run a trivial program, we are probably using a cross compiler.
3008 if (./conftest; exit) 2>/dev/null; then
3009 ac_cv_prog_cc_cross=no
3011 ac_cv_prog_cc_cross=yes
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 ac_cv_prog_cc_works=no
3020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3024 cross_compiling=$ac_cv_prog_cc_cross
3026 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3027 if test $ac_cv_prog_cc_works = no; then
3028 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3030 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3031 echo "configure:3032: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3032 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3033 cross_compiling=$ac_cv_prog_cc_cross
3035 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3036 echo "configure:3037: checking whether we are using GNU C" >&5
3037 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.c <<EOF
3045 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3052 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3054 if test $ac_cv_prog_gcc = yes; then
3060 ac_test_CFLAGS="${CFLAGS+set}"
3061 ac_save_CFLAGS="$CFLAGS"
3063 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3064 echo "configure:3065: checking whether ${CC-cc} accepts -g" >&5
3065 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 echo 'void f(){}' > conftest.c
3069 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3078 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3079 if test "$ac_test_CFLAGS" = set; then
3080 CFLAGS="$ac_save_CFLAGS"
3081 elif test $ac_cv_prog_cc_g = yes; then
3082 if test "$GCC" = yes; then
3088 if test "$GCC" = yes; then
3095 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3096 if test "${with_gnu_ld+set}" = set; then
3097 withval="$with_gnu_ld"
3098 test "$withval" = no || with_gnu_ld=yes
3104 if test "$ac_cv_prog_gcc" = yes; then
3105 # Check if gcc -print-prog-name=ld gives a path.
3106 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3107 echo "configure:3108: checking for ld used by GCC" >&5
3108 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3110 # Accept absolute paths.
3111 [\\/]* | [A-Za-z]:[\\/]*)
3112 re_direlt='/[^/][^/]*/\.\./'
3113 # Canonicalize the path of ld
3114 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3116 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3118 test -z "$LD" && LD="$ac_prog"
3121 # If it fails, then pretend we aren't using GCC.
3125 # If it is relative, then search for the first ld in PATH.
3129 elif test "$with_gnu_ld" = yes; then
3130 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3131 echo "configure:3132: checking for GNU ld" >&5
3133 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3134 echo "configure:3135: checking for non-GNU ld" >&5
3136 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3139 if test -z "$LD"; then
3140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3141 for ac_dir in $PATH; do
3142 test -z "$ac_dir" && ac_dir=.
3143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3144 ac_cv_path_LD="$ac_dir/$ac_prog"
3145 # Check to see if the program is GNU ld. I'd rather use --version,
3146 # but apparently some GNU ld's only accept -v.
3147 # Break only if it was the GNU/non-GNU ld that we prefer.
3148 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3149 test "$with_gnu_ld" != no && break
3151 test "$with_gnu_ld" != yes && break
3157 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3162 if test -n "$LD"; then
3163 echo "$ac_t""$LD" 1>&6
3165 echo "$ac_t""no" 1>&6
3167 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3168 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3169 echo "configure:3170: checking if the linker ($LD) is GNU ld" >&5
3170 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3174 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3175 ac_cv_prog_gnu_ld=yes
3177 ac_cv_prog_gnu_ld=no
3181 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3184 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3185 echo "configure:3186: checking for BSD-compatible nm" >&5
3186 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 if test -n "$NM"; then
3190 # Let the user override the test.
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3194 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3197 # Check to see if the nm accepts a BSD-compat flag.
3198 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3199 # nm: unknown option "B" ignored
3200 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3201 ac_cv_path_NM="$ac_dir/nm -B"
3203 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3204 ac_cv_path_NM="$ac_dir/nm -p"
3207 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3208 continue # so that we can try to find one that supports BSD flags
3213 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3218 echo "$ac_t""$NM" 1>&6
3220 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3221 echo "configure:3222: checking whether ln -s works" >&5
3222 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3226 if ln -s X conftestdata 2>/dev/null
3229 ac_cv_prog_LN_S="ln -s"
3234 LN_S="$ac_cv_prog_LN_S"
3235 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3236 echo "$ac_t""yes" 1>&6
3238 echo "$ac_t""no" 1>&6
3241 if test $host != $build; then
3242 ac_tool_prefix=${host_alias}-
3249 NONE) lt_target="$host" ;;
3250 *) lt_target="$target" ;;
3253 # Check for any special flags to pass to ltconfig.
3254 libtool_flags="--cache-file=$cache_file"
3255 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3256 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3257 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3258 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3259 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3260 libtool_flags="$libtool_flags --enable-dlopen"
3261 libtool_flags="$libtool_flags --enable-win32-dll"
3262 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3263 if test "${enable_libtool_lock+set}" = set; then
3264 enableval="$enable_libtool_lock"
3268 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3269 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3271 # Some flags need to be propagated to the compiler or linker for good
3273 case "$lt_target" in
3275 # Find out which ABI we are using.
3276 echo '#line 3277 "configure"' > conftest.$ac_ext
3277 if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3278 case "`/usr/bin/file conftest.o`" in
3294 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3295 SAVE_CFLAGS="$CFLAGS"
3296 CFLAGS="$CFLAGS -belf"
3297 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3298 echo "configure:3299: checking whether the C compiler needs -belf" >&5
3299 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 lt_cv_cc_needs_belf=yes
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 lt_cv_cc_needs_belf=no
3322 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3323 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3324 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3325 CFLAGS="$SAVE_CFLAGS"
3329 *-*-cygwin* | *-*-mingw*)
3330 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 if test -n "$DLLTOOL"; then
3338 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3342 for ac_dir in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir=.
3344 if test -f $ac_dir/$ac_word; then
3345 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3352 DLLTOOL="$ac_cv_prog_DLLTOOL"
3353 if test -n "$DLLTOOL"; then
3354 echo "$ac_t""$DLLTOOL" 1>&6
3356 echo "$ac_t""no" 1>&6
3360 if test -z "$ac_cv_prog_DLLTOOL"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "dlltool", so it can be a program name with args.
3363 set dummy dlltool; ac_word=$2
3364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_word" >&5
3366 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 if test -n "$DLLTOOL"; then
3370 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3374 for ac_dir in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir=.
3376 if test -f $ac_dir/$ac_word; then
3377 ac_cv_prog_DLLTOOL="dlltool"
3382 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3385 DLLTOOL="$ac_cv_prog_DLLTOOL"
3386 if test -n "$DLLTOOL"; then
3387 echo "$ac_t""$DLLTOOL" 1>&6
3389 echo "$ac_t""no" 1>&6
3397 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}as; ac_word=$2
3399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_word" >&5
3401 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 if test -n "$AS"; then
3405 ac_cv_prog_AS="$AS" # Let the user override the test.
3407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3409 for ac_dir in $ac_dummy; do
3410 test -z "$ac_dir" && ac_dir=.
3411 if test -f $ac_dir/$ac_word; then
3412 ac_cv_prog_AS="${ac_tool_prefix}as"
3420 if test -n "$AS"; then
3421 echo "$ac_t""$AS" 1>&6
3423 echo "$ac_t""no" 1>&6
3427 if test -z "$ac_cv_prog_AS"; then
3428 if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "as", so it can be a program name with args.
3430 set dummy as; ac_word=$2
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3432 echo "configure:3433: checking for $ac_word" >&5
3433 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 if test -n "$AS"; then
3437 ac_cv_prog_AS="$AS" # Let the user override the test.
3439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3441 for ac_dir in $ac_dummy; do
3442 test -z "$ac_dir" && ac_dir=.
3443 if test -f $ac_dir/$ac_word; then
3449 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3453 if test -n "$AS"; then
3454 echo "$ac_t""$AS" 1>&6
3456 echo "$ac_t""no" 1>&6
3464 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3465 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3467 echo "configure:3468: checking for $ac_word" >&5
3468 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 if test -n "$OBJDUMP"; then
3472 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3476 for ac_dir in $ac_dummy; do
3477 test -z "$ac_dir" && ac_dir=.
3478 if test -f $ac_dir/$ac_word; then
3479 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3486 OBJDUMP="$ac_cv_prog_OBJDUMP"
3487 if test -n "$OBJDUMP"; then
3488 echo "$ac_t""$OBJDUMP" 1>&6
3490 echo "$ac_t""no" 1>&6
3494 if test -z "$ac_cv_prog_OBJDUMP"; then
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "objdump", so it can be a program name with args.
3497 set dummy objdump; ac_word=$2
3498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3499 echo "configure:3500: checking for $ac_word" >&5
3500 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 if test -n "$OBJDUMP"; then
3504 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3508 for ac_dir in $ac_dummy; do
3509 test -z "$ac_dir" && ac_dir=.
3510 if test -f $ac_dir/$ac_word; then
3511 ac_cv_prog_OBJDUMP="objdump"
3516 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3519 OBJDUMP="$ac_cv_prog_OBJDUMP"
3520 if test -n "$OBJDUMP"; then
3521 echo "$ac_t""$OBJDUMP" 1>&6
3523 echo "$ac_t""no" 1>&6
3536 # Save cache, so that ltconfig can load it
3539 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3540 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3541 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3542 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3543 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3544 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3545 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3546 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3548 # Reload cache, that may have been modified by ltconfig
3551 # This can be used to rebuild libtool when needed
3552 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3554 # Always use our own libtool.
3555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3557 # Redirect the config.log output again, so that the ltconfig log is not
3558 # clobbered by the next message.
3559 exec 5>>./config.log
3562 for ac_prog in mawk gawk nawk awk
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy $ac_prog; ac_word=$2
3566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3567 echo "configure:3568: checking for $ac_word" >&5
3568 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 if test -n "$AWK"; then
3572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3576 for ac_dir in $ac_dummy; do
3577 test -z "$ac_dir" && ac_dir=.
3578 if test -f $ac_dir/$ac_word; then
3579 ac_cv_prog_AWK="$ac_prog"
3586 AWK="$ac_cv_prog_AWK"
3587 if test -n "$AWK"; then
3588 echo "$ac_t""$AWK" 1>&6
3590 echo "$ac_t""no" 1>&6
3593 test -n "$AWK" && break
3596 # test for ln hardlink support
3597 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3598 echo "configure:3599: checking whether ln works" >&5
3599 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 rm -f conftest.src conftest.dst
3603 echo "conftest" > conftest.src
3604 if ln conftest.src conftest.dst 2>/dev/null
3606 ol_cv_prog_LN_H="ln"
3608 ol_cv_prog_LN_H="cp"
3610 rm -f conftest.src conftest.dst
3613 LN_H="$ol_cv_prog_LN_H"
3614 if test "$ol_cv_prog_LN_H" = "ln"; then
3615 echo "$ac_t""yes" 1>&6
3617 echo "$ac_t""no" 1>&6
3620 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3621 echo "configure:3622: checking whether ln -s works" >&5
3622 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3626 if ln -s X conftestdata 2>/dev/null
3629 ac_cv_prog_LN_S="ln -s"
3634 LN_S="$ac_cv_prog_LN_S"
3635 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3636 echo "$ac_t""yes" 1>&6
3638 echo "$ac_t""no" 1>&6
3642 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3646 # Extract the first word of "sendmail", so it can be a program name with args.
3647 set dummy sendmail; ac_word=$2
3648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3649 echo "configure:3650: checking for $ac_word" >&5
3650 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3655 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3658 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3662 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3663 for ac_dir in $ac_dummy; do
3664 test -z "$ac_dir" && ac_dir=.
3665 if test -f $ac_dir/$ac_word; then
3666 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3671 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3675 SENDMAIL="$ac_cv_path_SENDMAIL"
3676 if test -n "$SENDMAIL"; then
3677 echo "$ac_t""$SENDMAIL" 1>&6
3679 echo "$ac_t""no" 1>&6
3682 # Extract the first word of "vi", so it can be a program name with args.
3683 set dummy vi; ac_word=$2
3684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3685 echo "configure:3686: checking for $ac_word" >&5
3686 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3691 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3694 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3698 ac_dummy="$PATH:/usr/ucb"
3699 for ac_dir in $ac_dummy; do
3700 test -z "$ac_dir" && ac_dir=.
3701 if test -f $ac_dir/$ac_word; then
3702 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3707 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3711 EDITOR="$ac_cv_path_EDITOR"
3712 if test -n "$EDITOR"; then
3713 echo "$ac_t""$EDITOR" 1>&6
3715 echo "$ac_t""no" 1>&6
3718 # Extract the first word of "finger", so it can be a program name with args.
3719 set dummy finger; ac_word=$2
3720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3721 echo "configure:3722: checking for $ac_word" >&5
3722 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3730 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3734 ac_dummy="$PATH:/usr/ucb"
3735 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f $ac_dir/$ac_word; then
3738 ac_cv_path_FINGER="$ac_dir/$ac_word"
3743 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3747 FINGER="$ac_cv_path_FINGER"
3748 if test -n "$FINGER"; then
3749 echo "$ac_t""$FINGER" 1>&6
3751 echo "$ac_t""no" 1>&6
3756 if test $ol_enable_perl != no ; then
3757 # Extract the first word of "perl", so it can be a program name with args.
3758 set dummy perl; ac_word=$2
3759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3760 echo "configure:3761: checking for $ac_word" >&5
3761 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3766 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3769 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3774 for ac_dir in $ac_dummy; do
3775 test -z "$ac_dir" && ac_dir=.
3776 if test -f $ac_dir/$ac_word; then
3777 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3782 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3786 PERLBIN="$ac_cv_path_PERLBIN"
3787 if test -n "$PERLBIN"; then
3788 echo "$ac_t""$PERLBIN" 1>&6
3790 echo "$ac_t""no" 1>&6
3794 if test "no$PERLBIN" = "no" ; then
3795 if test $ol_enable_perl = yes ; then
3796 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3800 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3801 if test x"$ol_with_perl_module" = "xstatic" ; then
3802 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3804 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3810 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3811 echo "configure:3812: checking how to run the C preprocessor" >&5
3812 # On Suns, sometimes $CPP names a directory.
3813 if test -n "$CPP" && test -d "$CPP"; then
3816 if test -z "$CPP"; then
3817 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 # This must be in double quotes, not single quotes, because CPP may get
3821 # substituted into the Makefile and "${CC-cc}" will confuse make.
3823 # On the NeXT, cc -E runs the code through the compiler's parser,
3824 # not just through cpp.
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3832 { (eval echo configure:3833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3834 if test -z "$ac_err"; then
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3841 CPP="${CC-cc} -E -traditional-cpp"
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3849 { (eval echo configure:3850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3851 if test -z "$ac_err"; then
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3858 CPP="${CC-cc} -nologo -E"
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3866 { (eval echo configure:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3868 if test -z "$ac_err"; then
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3882 ac_cv_prog_CPP="$CPP"
3884 CPP="$ac_cv_prog_CPP"
3886 ac_cv_prog_CPP="$CPP"
3888 echo "$ac_t""$CPP" 1>&6
3891 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3892 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3894 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3895 echo "configure: warning: programs compiled here do run here..." 1>&2
3896 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3898 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3899 echo "configure: warning: programs compiled here do not run here..." 1>&2
3900 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3903 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3904 echo "configure:3905: checking for AIX" >&5
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 egrep "yes" >/dev/null 2>&1; then
3916 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3917 #define _ALL_SOURCE 1
3922 echo "$ac_t""no" 1>&6
3927 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3928 echo "configure:3929: checking for POSIXized ISC" >&5
3929 if test -d /etc/conf/kconfig.d &&
3930 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3932 echo "$ac_t""yes" 1>&6
3933 ISC=yes # If later tests want to check for ISC.
3934 cat >> confdefs.h <<\EOF
3935 #define _POSIX_SOURCE 1
3938 if test "$GCC" = yes; then
3944 echo "$ac_t""no" 1>&6
3948 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3949 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3950 echo "configure:3951: checking for minix/config.h" >&5
3951 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 #include <minix/config.h>
3959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3960 { (eval echo configure:3961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3962 if test -z "$ac_err"; then
3964 eval "ac_cv_header_$ac_safe=yes"
3967 echo "configure: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3970 eval "ac_cv_header_$ac_safe=no"
3974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
3978 echo "$ac_t""no" 1>&6
3982 if test "$MINIX" = yes; then
3983 cat >> confdefs.h <<\EOF
3984 #define _POSIX_SOURCE 1
3987 cat >> confdefs.h <<\EOF
3988 #define _POSIX_1_SOURCE 2
3991 cat >> confdefs.h <<\EOF
3998 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3999 echo "configure:4000: checking for Cygwin environment" >&5
4000 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4010 #define __CYGWIN__ __CYGWIN32__
4015 if { (eval echo configure:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4027 echo "$ac_t""$ac_cv_cygwin" 1>&6
4029 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4030 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4031 echo "configure:4032: checking for mingw32 environment" >&5
4032 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4043 if { (eval echo configure:4044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4047 echo "configure: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4055 echo "$ac_t""$ac_cv_mingw32" 1>&6
4057 test "$ac_cv_mingw32" = yes && MINGW32=yes
4058 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4059 echo "configure:4060: checking for EMX OS/2 environment" >&5
4060 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4071 if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4075 echo "configure: failed program was:" >&5
4076 cat conftest.$ac_ext >&5
4083 echo "$ac_t""$ac_cv_emxos2" 1>&6
4085 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4089 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4090 echo "configure:4091: checking for executable suffix" >&5
4091 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4098 echo 'int main () { return 0; }' > conftest.$ac_ext
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4101 for file in conftest.*; do
4103 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4104 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4108 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4111 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4116 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4117 echo "$ac_t""${ac_cv_exeext}" 1>&6
4120 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4121 echo "configure:4122: checking for object suffix" >&5
4122 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4126 echo 'int i = 1;' > conftest.$ac_ext
4127 if { (eval echo configure:4128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4128 for ac_file in conftest.*; do
4131 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4135 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4140 echo "$ac_t""$ac_cv_objext" 1>&6
4141 OBJEXT=$ac_cv_objext
4142 ac_objext=$ac_cv_objext
4145 cat >> confdefs.h <<EOF
4146 #define EXEEXT "${EXEEXT}"
4150 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4151 echo "configure:4152: checking for be_app in -lbe" >&5
4152 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4154 echo $ac_n "(cached) $ac_c" 1>&6
4156 ac_save_LIBS="$LIBS"
4157 LIBS="-lbe -lroot -lnet $LIBS"
4158 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4161 /* Override any gcc2 internal prototype to avoid an error. */
4162 /* We use char because int might match the return type of a gcc2
4163 builtin and then its argument prototype would still apply. */
4170 if { (eval echo configure:4171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4172 eval "ac_cv_lib_$ac_lib_var=yes"
4174 echo "configure: failed program was:" >&5
4175 cat conftest.$ac_ext >&5
4177 eval "ac_cv_lib_$ac_lib_var=no"
4180 LIBS="$ac_save_LIBS"
4183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4184 echo "$ac_t""yes" 1>&6
4185 LIBS="$LIBS -lbe -lroot -lnet"
4187 echo "$ac_t""no" 1>&6
4195 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4196 echo "configure:4197: checking for ${CC-cc} option to accept ANSI C" >&5
4197 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 am_cv_prog_cc_stdc=no
4202 # Don't try gcc -ansi; that turns off useful extensions and
4203 # breaks some systems' header files.
4204 # AIX -qlanglvl=ansi
4205 # Ultrix and OSF/1 -std1
4206 # HP-UX 10.20 and later -Ae
4207 # HP-UX older versions -Aa -D_HPUX_SOURCE
4208 # SVR4 -Xc -D__EXTENSIONS__
4209 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4211 CC="$ac_save_CC $ac_arg"
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4217 #include <sys/types.h>
4218 #include <sys/stat.h>
4219 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4220 struct buf { int x; };
4221 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4222 static char *e (p, i)
4228 static char *f (char * (*g) (char **, int), char **p, ...)
4233 s = g (p, va_arg (v,int));
4237 int test (int i, double x);
4238 struct s1 {int (*f) (int a);};
4239 struct s2 {int (*f) (double a);};
4240 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4246 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4250 if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4252 am_cv_prog_cc_stdc="$ac_arg"; break
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4263 if test -z "$am_cv_prog_cc_stdc"; then
4264 echo "$ac_t""none needed" 1>&6
4266 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4268 case "x$am_cv_prog_cc_stdc" in
4270 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4273 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4274 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4277 # test for make depend flag
4280 if test -z "${MKDEP}"; then
4282 if test -z "${MKDEP_FLAGS}"; then
4283 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4284 echo "configure:4285: checking for ${OL_MKDEP} depend flag" >&5
4285 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4290 for flag in "-M" "-xM"; do
4291 cat > conftest.c <<EOF
4294 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4295 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4297 if test ! -f conftest."${ac_object}" ; then
4299 OL_MKDEP_FLAGS="$flag"
4308 echo "$ac_t""$ol_cv_mkdep" 1>&6
4311 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4316 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4321 if test "${ol_cv_mkdep}" = no ; then
4322 # this will soon become an error
4323 echo "configure: warning: do not know how to generate dependencies" 1>&2
4326 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4327 echo "configure:4328: checking for afopen in -ls" >&5
4328 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4329 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 ac_save_LIBS="$LIBS"
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* Override any gcc2 internal prototype to avoid an error. */
4338 /* We use char because int might match the return type of a gcc2
4339 builtin and then its argument prototype would still apply. */
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4348 eval "ac_cv_lib_$ac_lib_var=yes"
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 eval "ac_cv_lib_$ac_lib_var=no"
4356 LIBS="$ac_save_LIBS"
4359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4363 cat >> confdefs.h <<\EOF
4364 #define HAVE_AIX_SECURITY 1
4369 echo "$ac_t""no" 1>&6
4375 if test $ol_enable_modules != no ; then
4376 for ac_hdr in ltdl.h
4378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4380 echo "configure:4381: checking for $ac_hdr" >&5
4381 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4390 { (eval echo configure:4391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4392 if test -z "$ac_err"; then
4394 eval "ac_cv_header_$ac_safe=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "ac_cv_header_$ac_safe=no"
4404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4407 cat >> confdefs.h <<EOF
4408 #define $ac_tr_hdr 1
4412 echo "$ac_t""no" 1>&6
4417 if test $ac_cv_header_ltdl_h = no ; then
4418 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4421 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4422 echo "configure:4423: checking for lt_dlinit in -lltdl" >&5
4423 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4424 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 ac_save_LIBS="$LIBS"
4429 cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4432 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4443 eval "ac_cv_lib_$ac_lib_var=yes"
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4448 eval "ac_cv_lib_$ac_lib_var=no"
4451 LIBS="$ac_save_LIBS"
4454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4455 echo "$ac_t""yes" 1>&6
4458 cat >> confdefs.h <<\EOF
4459 #define HAVE_LIBLTDL 1
4464 echo "$ac_t""no" 1>&6
4468 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4469 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4473 ol_with_bdb_module=static
4474 ol_with_dnssrv_module=static
4475 ol_with_ldap_module=static
4476 ol_with_ldbm_module=static
4477 ol_with_meta_module=static
4478 ol_with_monitor_module=static
4479 ol_with_passwd_module=static
4480 ol_with_perl_module=static
4481 ol_with_shell_module=static
4482 ol_with_tcl_module=static
4483 ol_with_sql_module=static
4487 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4488 echo "configure:4489: checking for EBCDIC" >&5
4489 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4498 #include <__ASCII__/generate_error.h>
4502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4503 { (eval echo configure:4504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4505 if test -z "$ac_err"; then
4507 ol_cv_cpp_ebcdic=yes
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4518 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4519 if test $ol_cv_cpp_ebcdic = yes ; then
4520 cat >> confdefs.h <<\EOF
4521 #define HAVE_EBCDIC 1
4526 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4527 echo "configure:4528: checking for ANSI C header files" >&5
4528 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4540 { (eval echo configure:4541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4542 if test -z "$ac_err"; then
4544 ol_cv_header_stdc=yes
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4550 ol_cv_header_stdc=no
4554 if test $ol_cv_header_stdc = yes; then
4555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4562 egrep "memchr" >/dev/null 2>&1; then
4566 ol_cv_header_stdc=no
4572 if test $ol_cv_header_stdc = yes; then
4573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4580 egrep "free" >/dev/null 2>&1; then
4584 ol_cv_header_stdc=no
4590 if test $ol_cv_header_stdc = yes; then
4591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4592 if test "$cross_compiling" = yes; then
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4603 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4604 || ('j' <= (c) && (c) <= 'r') \
4605 || ('s' <= (c) && (c) <= 'z'))
4606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4609 int main () { int i; for (i = 0; i < 256; i++)
4610 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 ol_cv_header_stdc=no
4629 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4630 if test $ol_cv_header_stdc = yes; then
4631 cat >> confdefs.h <<\EOF
4632 #define STDC_HEADERS 1
4636 ac_cv_header_stdc=disable
4639 if test $ol_cv_header_stdc != yes; then
4640 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4644 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4647 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4648 echo "configure:4649: checking for $ac_hdr that defines DIR" >&5
4649 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 #include <sys/types.h>
4661 if { (eval echo configure:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4663 eval "ac_cv_header_dirent_$ac_safe=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 eval "ac_cv_header_dirent_$ac_safe=no"
4672 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4675 cat >> confdefs.h <<EOF
4676 #define $ac_tr_hdr 1
4678 ac_header_dirent=$ac_hdr; break
4680 echo "$ac_t""no" 1>&6
4683 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4684 if test $ac_header_dirent = dirent.h; then
4685 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4686 echo "configure:4687: checking for opendir in -ldir" >&5
4687 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4688 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 ac_save_LIBS="$LIBS"
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4705 if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4707 eval "ac_cv_lib_$ac_lib_var=yes"
4709 echo "configure: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4712 eval "ac_cv_lib_$ac_lib_var=no"
4715 LIBS="$ac_save_LIBS"
4718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4722 echo "$ac_t""no" 1>&6
4726 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4727 echo "configure:4728: checking for opendir in -lx" >&5
4728 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4732 ac_save_LIBS="$LIBS"
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4737 /* Override any gcc2 internal prototype to avoid an error. */
4738 /* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4746 if { (eval echo configure:4747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 eval "ac_cv_lib_$ac_lib_var=yes"
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4753 eval "ac_cv_lib_$ac_lib_var=no"
4756 LIBS="$ac_save_LIBS"
4759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4763 echo "$ac_t""no" 1>&6
4768 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4769 echo "configure:4770: checking for sys/wait.h that is POSIX.1 compatible" >&5
4770 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776 #include <sys/types.h>
4777 #include <sys/wait.h>
4779 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4782 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4787 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4790 if { (eval echo configure:4791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4792 ac_cv_header_sys_wait_h=yes
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4797 ac_cv_header_sys_wait_h=no
4802 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4803 if test $ac_cv_header_sys_wait_h = yes; then
4804 cat >> confdefs.h <<\EOF
4805 #define HAVE_SYS_WAIT_H 1
4810 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4811 echo "configure:4812: checking POSIX termios" >&5
4812 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 #include <sys/types.h>
4820 #include <termios.h>
4822 /* SunOS 4.0.3 has termios.h but not the library calls. */
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828 am_cv_sys_posix_termios=yes
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 am_cv_sys_posix_termios=no
4838 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4841 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4842 echo "configure:4843: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4843 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4848 gwinsz_in_termios_h=no
4849 if test $am_cv_sys_posix_termios = yes; then
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 #include <sys/types.h>
4854 # include <termios.h>
4860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4861 egrep "yes" >/dev/null 2>&1; then
4863 gwinsz_in_termios_h=yes
4869 if test $gwinsz_in_termios_h = no; then
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 #include <sys/types.h>
4874 # include <sys/ioctl.h>
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881 egrep "yes" >/dev/null 2>&1; then
4883 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4891 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4892 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4893 cat >> confdefs.h <<\EOF
4894 #define GWINSZ_IN_SYS_IOCTL 1
4899 if test $am_cv_sys_posix_termios = yes ; then
4900 cat >> confdefs.h <<\EOF
4901 #define HAVE_POSIX_TERMIOS 1
4952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4954 echo "configure:4955: checking for $ac_hdr" >&5
4955 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4964 { (eval echo configure:4965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4966 if test -z "$ac_err"; then
4968 eval "ac_cv_header_$ac_safe=yes"
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4974 eval "ac_cv_header_$ac_safe=no"
4978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4979 echo "$ac_t""yes" 1>&6
4980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4981 cat >> confdefs.h <<EOF
4982 #define $ac_tr_hdr 1
4986 echo "$ac_t""no" 1>&6
4993 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4994 echo "configure:4995: checking for dlopen" >&5
4995 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002 which can conflict with char dlopen(); below. */
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5012 /* The GNU C library defines this for functions which it implements
5013 to always fail with ENOSYS. Some functions are actually named
5014 something starting with __ and the normal name is an alias. */
5015 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5023 if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5025 eval "ac_cv_func_dlopen=yes"
5027 echo "configure: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5030 eval "ac_cv_func_dlopen=no"
5035 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5036 echo "$ac_t""yes" 1>&6
5039 echo "$ac_t""no" 1>&6
5040 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5041 echo "configure:5042: checking for dlopen in -ldl" >&5
5042 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
5043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 ac_save_LIBS="$LIBS"
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5070 LIBS="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_lib 1
5084 echo "$ac_t""no" 1>&6
5090 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5091 echo "configure:5092: checking for sigset in -lV3" >&5
5092 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5093 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS="$LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 eval "ac_cv_lib_$ac_lib_var=no"
5120 LIBS="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_lib 1
5134 echo "$ac_t""no" 1>&6
5138 if test $ac_cv_header_winsock_h = yes; then
5139 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5140 echo "configure:5141: checking for winsock" >&5
5141 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5147 #include <winsock.h>
5151 select(0,NULL,NULL,NULL,NULL);
5153 gethostname(NULL,0);
5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5169 echo "$ac_t""$ol_cv_winsock" 1>&6
5171 if test $ol_cv_winsock = yes ; then
5172 cat >> confdefs.h <<\EOF
5173 #define HAVE_WINSOCK 1
5176 ac_cv_func_socket=yes
5177 ac_cv_func_select=yes
5178 ac_cv_func_closesocket=yes
5179 ac_cv_func_gethostname=yes
5184 echo $ac_n "checking for socket""... $ac_c" 1>&6
5185 echo "configure:5186: checking for socket" >&5
5186 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5187 echo $ac_n "(cached) $ac_c" 1>&6
5189 cat > conftest.$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 /* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char socket(); below. */
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5203 /* The GNU C library defines this for functions which it implements
5204 to always fail with ENOSYS. Some functions are actually named
5205 something starting with __ and the normal name is an alias. */
5206 #if defined (__stub_socket) || defined (__stub___socket)
5214 if { (eval echo configure:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5216 eval "ac_cv_func_socket=yes"
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5221 eval "ac_cv_func_socket=no"
5226 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5227 echo "$ac_t""yes" 1>&6
5230 echo "$ac_t""no" 1>&6
5232 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5233 echo "configure:5234: checking for main in -lsocket" >&5
5234 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5235 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 ac_save_LIBS="$LIBS"
5239 LIBS="-lsocket $LIBS"
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5250 eval "ac_cv_lib_$ac_lib_var=yes"
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5255 eval "ac_cv_lib_$ac_lib_var=no"
5258 LIBS="$ac_save_LIBS"
5261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5262 echo "$ac_t""yes" 1>&6
5263 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5264 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5265 cat >> confdefs.h <<EOF
5266 #define $ac_tr_lib 1
5269 LIBS="-lsocket $LIBS"
5272 echo "$ac_t""no" 1>&6
5275 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5276 echo "configure:5277: checking for main in -lnet" >&5
5277 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5278 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5281 ac_save_LIBS="$LIBS"
5283 cat > conftest.$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5291 if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5293 eval "ac_cv_lib_$ac_lib_var=yes"
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 eval "ac_cv_lib_$ac_lib_var=no"
5301 LIBS="$ac_save_LIBS"
5304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5305 echo "$ac_t""yes" 1>&6
5306 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5308 cat >> confdefs.h <<EOF
5309 #define $ac_tr_lib 1
5315 echo "$ac_t""no" 1>&6
5318 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5319 echo "configure:5320: checking for main in -lnsl_s" >&5
5320 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 ac_save_LIBS="$LIBS"
5325 LIBS="-lnsl_s $LIBS"
5326 cat > conftest.$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5336 eval "ac_cv_lib_$ac_lib_var=yes"
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5341 eval "ac_cv_lib_$ac_lib_var=no"
5344 LIBS="$ac_save_LIBS"
5347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5351 cat >> confdefs.h <<EOF
5352 #define $ac_tr_lib 1
5355 LIBS="-lnsl_s $LIBS"
5358 echo "$ac_t""no" 1>&6
5361 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5362 echo "configure:5363: checking for main in -lnsl" >&5
5363 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5367 ac_save_LIBS="$LIBS"
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5379 eval "ac_cv_lib_$ac_lib_var=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 eval "ac_cv_lib_$ac_lib_var=no"
5387 LIBS="$ac_save_LIBS"
5390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5391 echo "$ac_t""yes" 1>&6
5392 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5394 cat >> confdefs.h <<EOF
5395 #define $ac_tr_lib 1
5401 echo "$ac_t""no" 1>&6
5404 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5405 echo "configure:5406: checking for socket in -linet" >&5
5406 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5407 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 ac_save_LIBS="$LIBS"
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5416 /* We use char because int might match the return type of a gcc2
5417 builtin and then its argument prototype would still apply. */
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5426 eval "ac_cv_lib_$ac_lib_var=yes"
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5431 eval "ac_cv_lib_$ac_lib_var=no"
5434 LIBS="$ac_save_LIBS"
5437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5438 echo "$ac_t""yes" 1>&6
5439 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5441 cat >> confdefs.h <<EOF
5442 #define $ac_tr_lib 1
5448 echo "$ac_t""no" 1>&6
5451 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5452 echo "configure:5453: checking for main in -lgen" >&5
5453 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5454 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5457 ac_save_LIBS="$LIBS"
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5467 if { (eval echo configure:5468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5469 eval "ac_cv_lib_$ac_lib_var=yes"
5471 echo "configure: failed program was:" >&5
5472 cat conftest.$ac_ext >&5
5474 eval "ac_cv_lib_$ac_lib_var=no"
5477 LIBS="$ac_save_LIBS"
5480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5481 echo "$ac_t""yes" 1>&6
5482 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5484 cat >> confdefs.h <<EOF
5485 #define $ac_tr_lib 1
5491 echo "$ac_t""no" 1>&6
5498 echo $ac_n "checking for select""... $ac_c" 1>&6
5499 echo "configure:5500: checking for select" >&5
5500 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 /* System header to define __stub macros and hopefully few prototypes,
5507 which can conflict with char select(); below. */
5509 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5517 /* The GNU C library defines this for functions which it implements
5518 to always fail with ENOSYS. Some functions are actually named
5519 something starting with __ and the normal name is an alias. */
5520 #if defined (__stub_select) || defined (__stub___select)
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5530 eval "ac_cv_func_select=yes"
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5535 eval "ac_cv_func_select=no"
5540 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5541 echo "$ac_t""yes" 1>&6
5544 echo "$ac_t""no" 1>&6
5545 { echo "configure: error: select() required." 1>&2; exit 1; }
5549 if test "${ac_cv_header_winsock_h}" != yes; then
5550 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5551 echo "configure:5552: checking types of arguments for select()" >&5
5552 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5558 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5562 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5563 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 #ifdef HAVE_SYS_TYPES_H
5568 #include <sys/types.h>
5570 #ifdef HAVE_SYS_TIME_H
5571 #include <sys/time.h>
5573 #ifdef HAVE_SYS_SELECT_H
5574 #include <sys/select.h>
5576 #ifdef HAVE_SYS_SOCKET_H
5577 #include <sys/socket.h>
5579 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);
5584 if { (eval echo configure:5585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5586 ac_not_found=no ; break 3
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5603 if test "$ac_not_found" = yes; then
5604 ac_cv_func_select_arg1=int
5605 ac_cv_func_select_arg234='int *'
5606 ac_cv_func_select_arg5='struct timeval *'
5608 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5609 cat >> confdefs.h <<EOF
5610 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5613 cat >> confdefs.h <<EOF
5614 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5617 cat >> confdefs.h <<EOF
5618 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5625 for ac_hdr in regex.h
5627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5629 echo "configure:5630: checking for $ac_hdr" >&5
5630 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5639 { (eval echo configure:5640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5641 if test -z "$ac_err"; then
5643 eval "ac_cv_header_$ac_safe=yes"
5646 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5649 eval "ac_cv_header_$ac_safe=no"
5653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5654 echo "$ac_t""yes" 1>&6
5655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5656 cat >> confdefs.h <<EOF
5657 #define $ac_tr_hdr 1
5661 echo "$ac_t""no" 1>&6
5665 if test "$ac_cv_header_regex_h" != yes ; then
5666 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5668 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5669 echo "configure:5670: checking for regfree" >&5
5670 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 /* System header to define __stub macros and hopefully few prototypes,
5677 which can conflict with char regfree(); below. */
5679 /* Override any gcc2 internal prototype to avoid an error. */
5680 /* We use char because int might match the return type of a gcc2
5681 builtin and then its argument prototype would still apply. */
5687 /* The GNU C library defines this for functions which it implements
5688 to always fail with ENOSYS. Some functions are actually named
5689 something starting with __ and the normal name is an alias. */
5690 #if defined (__stub_regfree) || defined (__stub___regfree)
5698 if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5700 eval "ac_cv_func_regfree=yes"
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5705 eval "ac_cv_func_regfree=no"
5710 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5711 echo "$ac_t""yes" 1>&6
5714 echo "$ac_t""no" 1>&6
5715 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5720 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5721 echo "configure:5722: checking for compatible POSIX regex" >&5
5722 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5726 if test "$cross_compiling" = yes; then
5727 ol_cv_c_posix_regex=cross
5729 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5733 #include <sys/types.h>
5735 static char *pattern, *string;
5743 if(regcomp(&re, pattern, 0)) {
5747 string = "ALL MATCH";
5749 rc = regexec(&re, string, 0, (void*)0, 0);
5756 if { (eval echo configure:5757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5758 ol_cv_c_posix_regex=yes
5760 echo "configure: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5763 ol_cv_c_posix_regex=no
5770 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5772 if test "$ol_cv_c_posix_regex" = no ; then
5773 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5777 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5778 echo "configure:5779: checking for res_query" >&5
5779 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 /* System header to define __stub macros and hopefully few prototypes,
5786 which can conflict with char res_query(); below. */
5788 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5796 /* The GNU C library defines this for functions which it implements
5797 to always fail with ENOSYS. Some functions are actually named
5798 something starting with __ and the normal name is an alias. */
5799 #if defined (__stub_res_query) || defined (__stub___res_query)
5807 if { (eval echo configure:5808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809 eval "ac_cv_func_res_query=yes"
5811 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5814 eval "ac_cv_func_res_query=no"
5819 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5820 echo "$ac_t""yes" 1>&6
5823 echo "$ac_t""no" 1>&6
5826 if test $ac_cv_func_res_query = no ; then
5827 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5828 echo "configure:5829: checking for res_query in -lbind" >&5
5829 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 ac_save_LIBS="$LIBS"
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* Override any gcc2 internal prototype to avoid an error. */
5839 /* We use char because int might match the return type of a gcc2
5840 builtin and then its argument prototype would still apply. */
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5849 eval "ac_cv_lib_$ac_lib_var=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 eval "ac_cv_lib_$ac_lib_var=no"
5857 LIBS="$ac_save_LIBS"
5860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5862 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5864 cat >> confdefs.h <<EOF
5865 #define $ac_tr_lib 1
5871 echo "$ac_t""no" 1>&6
5874 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5877 if test $ac_cv_func_res_query = no ; then
5878 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5879 echo "configure:5880: checking for __res_query in -lbind" >&5
5880 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5881 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 ac_save_LIBS="$LIBS"
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5900 eval "ac_cv_lib_$ac_lib_var=yes"
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5905 eval "ac_cv_lib_$ac_lib_var=no"
5908 LIBS="$ac_save_LIBS"
5911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5912 echo "$ac_t""yes" 1>&6
5913 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5915 cat >> confdefs.h <<EOF
5916 #define $ac_tr_lib 1
5922 echo "$ac_t""no" 1>&6
5925 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5928 if test $ac_cv_func_res_query = no ; then
5929 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5930 echo "configure:5931: checking for res_query in -lresolv" >&5
5931 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5932 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5935 ac_save_LIBS="$LIBS"
5936 LIBS="-lresolv $LIBS"
5937 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5951 eval "ac_cv_lib_$ac_lib_var=yes"
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5956 eval "ac_cv_lib_$ac_lib_var=no"
5959 LIBS="$ac_save_LIBS"
5962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5963 echo "$ac_t""yes" 1>&6
5964 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5965 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5966 cat >> confdefs.h <<EOF
5967 #define $ac_tr_lib 1
5970 LIBS="-lresolv $LIBS"
5973 echo "$ac_t""no" 1>&6
5976 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5979 if test "$ac_cv_func_res_query" = yes ; then
5980 cat >> confdefs.h <<\EOF
5981 #define HAVE_RES_QUERY 1
5985 if test $ol_enable_dnssrv != no ; then
5990 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5991 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5994 for ac_func in getaddrinfo inet_ntop
5996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_func" >&5
5998 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func(); below. */
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6015 /* The GNU C library defines this for functions which it implements
6016 to always fail with ENOSYS. Some functions are actually named
6017 something starting with __ and the normal name is an alias. */
6018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6026 if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 eval "ac_cv_func_$ac_func=yes"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 eval "ac_cv_func_$ac_func=no"
6038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6039 echo "$ac_t""yes" 1>&6
6040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6041 cat >> confdefs.h <<EOF
6042 #define $ac_tr_func 1
6046 echo "$ac_t""no" 1>&6
6052 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
6053 if test $ol_enable_ipv6 = yes ; then
6054 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
6057 for ac_func in gai_strerror
6059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6060 echo "configure:6061: checking for $ac_func" >&5
6061 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6062 echo $ac_n "(cached) $ac_c" 1>&6
6064 cat > conftest.$ac_ext <<EOF
6065 #line 6066 "configure"
6066 #include "confdefs.h"
6067 /* System header to define __stub macros and hopefully few prototypes,
6068 which can conflict with char $ac_func(); below. */
6070 /* Override any gcc2 internal prototype to avoid an error. */
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6078 /* The GNU C library defines this for functions which it implements
6079 to always fail with ENOSYS. Some functions are actually named
6080 something starting with __ and the normal name is an alias. */
6081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6089 if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6091 eval "ac_cv_func_$ac_func=yes"
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6096 eval "ac_cv_func_$ac_func=no"
6101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6102 echo "$ac_t""yes" 1>&6
6103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6104 cat >> confdefs.h <<EOF
6105 #define $ac_tr_func 1
6109 echo "$ac_t""no" 1>&6
6114 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6115 echo "configure:6116: checking INET6_ADDRSTRLEN" >&5
6116 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6117 echo $ac_n "(cached) $ac_c" 1>&6
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6124 # include <netinet/in.h>
6125 # ifdef INET6_ADDRSTRLEN
6126 __has_inet6_addrstrlen__;
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6133 ol_cv_inet6_addrstrlen=yes
6136 ol_cv_inet6_addrstrlen=no
6142 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6144 if test $ol_cv_inet6_addrstrlen = yes ; then
6146 elif test $ol_enable_ipv6 = yes ; then
6147 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6151 if test $ol_enable_local != no ; then
6152 for ac_hdr in sys/un.h
6154 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6155 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6156 echo "configure:6157: checking for $ac_hdr" >&5
6157 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6166 { (eval echo configure:6167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6168 if test -z "$ac_err"; then
6170 eval "ac_cv_header_$ac_safe=yes"
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6176 eval "ac_cv_header_$ac_safe=no"
6180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6182 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6183 cat >> confdefs.h <<EOF
6184 #define $ac_tr_hdr 1
6188 echo "$ac_t""no" 1>&6
6193 if test $ol_enable_local = auto ; then
6194 ol_enable_local=$ac_cv_header_sys_un_h
6195 elif test $ac_cv_header_sys_un_h = no ; then
6196 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6205 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6206 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6207 -o $ol_with_kerberos = k425 ; then
6209 for ac_hdr in krb5.h
6211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6213 echo "configure:6214: checking for $ac_hdr" >&5
6214 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6215 echo $ac_n "(cached) $ac_c" 1>&6
6217 cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6223 { (eval echo configure:6224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6225 if test -z "$ac_err"; then
6227 eval "ac_cv_header_$ac_safe=yes"
6230 echo "configure: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 eval "ac_cv_header_$ac_safe=no"
6237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6240 cat >> confdefs.h <<EOF
6241 #define $ac_tr_hdr 1
6245 echo "$ac_t""no" 1>&6
6250 if test $ac_cv_header_krb5_h = yes ; then
6251 for ac_hdr in heim_err.h
6253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6255 echo "configure:6256: checking for $ac_hdr" >&5
6256 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6265 { (eval echo configure:6266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6267 if test -z "$ac_err"; then
6269 eval "ac_cv_header_$ac_safe=yes"
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6275 eval "ac_cv_header_$ac_safe=no"
6279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6280 echo "$ac_t""yes" 1>&6
6281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6282 cat >> confdefs.h <<EOF
6283 #define $ac_tr_hdr 1
6287 echo "$ac_t""no" 1>&6
6291 if test $ac_cv_header_heim_err_h = yes ; then
6297 if test $krb5_impl = mit; then
6298 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6299 echo "configure:6300: checking for main in -lkrb5" >&5
6300 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6301 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 ac_save_LIBS="$LIBS"
6305 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6314 if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6316 eval "ac_cv_lib_$ac_lib_var=yes"
6318 echo "configure: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6321 eval "ac_cv_lib_$ac_lib_var=no"
6324 LIBS="$ac_save_LIBS"
6327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6328 echo "$ac_t""yes" 1>&6
6330 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6332 echo "$ac_t""no" 1>&6
6337 elif test $krb5_impl = heimdal; then
6338 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6339 echo "configure:6340: checking for main in -lkrb5" >&5
6340 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6341 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6344 ac_save_LIBS="$LIBS"
6345 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6354 if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6356 eval "ac_cv_lib_$ac_lib_var=yes"
6358 echo "configure: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6361 eval "ac_cv_lib_$ac_lib_var=no"
6364 LIBS="$ac_save_LIBS"
6367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6368 echo "$ac_t""yes" 1>&6
6370 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6372 echo "$ac_t""no" 1>&6
6377 cat >> confdefs.h <<\EOF
6378 #define HAVE_HEIMDAL_KERBEROS 1
6383 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6386 if test $have_krb5 = yes ; then
6389 cat >> confdefs.h <<\EOF
6394 if test $ol_enable_kpasswd != no ; then
6395 ol_link_kpasswd=yes;
6398 if test $ol_with_kerberos = k5only ; then
6399 ol_with_kerberos=found
6402 elif test $ol_with_kerberos != auto ; then
6403 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6409 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6410 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6412 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6416 echo "configure:6417: checking for $ac_hdr" >&5
6417 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6426 { (eval echo configure:6427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6428 if test -z "$ac_err"; then
6430 eval "ac_cv_header_$ac_safe=yes"
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6436 eval "ac_cv_header_$ac_safe=no"
6440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6441 echo "$ac_t""yes" 1>&6
6442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6443 cat >> confdefs.h <<EOF
6444 #define $ac_tr_hdr 1
6448 echo "$ac_t""no" 1>&6
6453 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6454 if test $krb5_impl = mit; then
6455 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6456 echo "configure:6457: checking for main in -lkrb4" >&5
6457 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6458 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6461 ac_save_LIBS="$LIBS"
6462 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473 eval "ac_cv_lib_$ac_lib_var=yes"
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 eval "ac_cv_lib_$ac_lib_var=no"
6481 LIBS="$ac_save_LIBS"
6484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6485 echo "$ac_t""yes" 1>&6
6487 KRB4_LIBS="-lkrb4 -ldes425"
6489 echo "$ac_t""no" 1>&6
6494 elif test $krb5_impl = heimdal; then
6495 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6496 echo "configure:6497: checking for main in -lkrb4" >&5
6497 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6498 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6499 echo $ac_n "(cached) $ac_c" 1>&6
6501 ac_save_LIBS="$LIBS"
6502 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6511 if { (eval echo configure:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6513 eval "ac_cv_lib_$ac_lib_var=yes"
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 eval "ac_cv_lib_$ac_lib_var=no"
6521 LIBS="$ac_save_LIBS"
6524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6525 echo "$ac_t""yes" 1>&6
6529 echo "$ac_t""no" 1>&6
6536 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6539 if test $have_k425 = yes ; then
6540 ol_with_kerberos=found
6543 cat >> confdefs.h <<\EOF
6544 #define HAVE_KRB425 1
6547 cat >> confdefs.h <<\EOF
6552 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6553 echo "configure:6554: checking for des_debug in Kerberos libraries" >&5
6554 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6559 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6564 #include <kerberosIV/krb.h>
6565 #include <kerberosIV/des.h>
6566 extern int des_debug;
6574 if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6576 ol_cv_var_des_debug=yes
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 ol_cv_var_des_debug=no
6588 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6590 if test $ol_cv_var_des_debug = yes ; then
6591 cat >> confdefs.h <<\EOF
6592 #define HAVE_DES_DEBUG 1
6602 if test $ol_link_krb5 = yes ; then
6603 ol_with_kerberos=found
6606 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6607 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6609 for ac_hdr in krb.h des.h krb-archaeology.h
6611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6613 echo "configure:6614: checking for $ac_hdr" >&5
6614 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6623 { (eval echo configure:6624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6625 if test -z "$ac_err"; then
6627 eval "ac_cv_header_$ac_safe=yes"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6633 eval "ac_cv_header_$ac_safe=no"
6637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6638 echo "$ac_t""yes" 1>&6
6639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6640 cat >> confdefs.h <<EOF
6641 #define $ac_tr_hdr 1
6645 echo "$ac_t""no" 1>&6
6650 if test $ac_cv_header_krb_h = yes ; then
6651 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6652 echo "configure:6653: checking for main in -lkrb" >&5
6653 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6654 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6657 ac_save_LIBS="$LIBS"
6658 LIBS="-lkrb -ldes $LIBS"
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6669 eval "ac_cv_lib_$ac_lib_var=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 eval "ac_cv_lib_$ac_lib_var=no"
6677 LIBS="$ac_save_LIBS"
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6684 echo "$ac_t""no" 1>&6
6689 if test $have_k4 = yes ; then
6690 ol_with_kerberos=found
6693 cat >> confdefs.h <<\EOF
6698 KRB4_LIBS="-lkrb -ldes"
6700 if test $ac_cv_header_krb_archaeology_h = yes ; then
6701 cat >> confdefs.h <<\EOF
6702 #define HAVE_KTH_KERBEROS 1
6710 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6714 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6717 elif test $ol_enable_kbind = yes ; then
6718 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6721 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6722 cat >> confdefs.h <<\EOF
6723 #define HAVE_KERBEROS 1
6727 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6728 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6732 if test $ol_with_tls != no ; then
6733 for ac_hdr in openssl/ssl.h ssl.h
6735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6737 echo "configure:6738: checking for $ac_hdr" >&5
6738 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6747 { (eval echo configure:6748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6749 if test -z "$ac_err"; then
6751 eval "ac_cv_header_$ac_safe=yes"
6754 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6757 eval "ac_cv_header_$ac_safe=no"
6761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6762 echo "$ac_t""yes" 1>&6
6763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6764 cat >> confdefs.h <<EOF
6765 #define $ac_tr_hdr 1
6769 echo "$ac_t""no" 1>&6
6774 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6775 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6776 echo "configure:6777: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6777 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6778 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6781 ac_save_LIBS="$LIBS"
6782 LIBS="-lssl -lcrypto $LIBS"
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 /* Override any gcc2 internal prototype to avoid an error. */
6787 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6789 char SSLeay_add_ssl_algorithms();
6792 SSLeay_add_ssl_algorithms()
6795 if { (eval echo configure:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6797 eval "ac_cv_lib_$ac_lib_var=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6802 eval "ac_cv_lib_$ac_lib_var=no"
6805 LIBS="$ac_save_LIBS"
6808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6809 echo "$ac_t""yes" 1>&6
6813 echo "$ac_t""no" 1>&6
6818 if test $have_ssleay = no ; then
6819 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6820 echo "configure:6821: checking for SSL_library_init in -lssl" >&5
6821 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6822 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6825 ac_save_LIBS="$LIBS"
6826 LIBS="-lssl -lcrypto $LIBS"
6827 cat > conftest.$ac_ext <<EOF
6828 #line 6829 "configure"
6829 #include "confdefs.h"
6830 /* Override any gcc2 internal prototype to avoid an error. */
6831 /* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */
6833 char SSL_library_init();
6839 if { (eval echo configure:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6841 eval "ac_cv_lib_$ac_lib_var=yes"
6843 echo "configure: failed program was:" >&5
6844 cat conftest.$ac_ext >&5
6846 eval "ac_cv_lib_$ac_lib_var=no"
6849 LIBS="$ac_save_LIBS"
6852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6853 echo "$ac_t""yes" 1>&6
6857 echo "$ac_t""no" 1>&6
6863 if test $have_ssleay = no ; then
6864 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6865 echo "configure:6866: checking for ssl3_accept in -lssl" >&5
6866 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6867 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6870 ac_save_LIBS="$LIBS"
6871 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886 eval "ac_cv_lib_$ac_lib_var=yes"
6888 echo "configure: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6891 eval "ac_cv_lib_$ac_lib_var=no"
6894 LIBS="$ac_save_LIBS"
6897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6902 echo "$ac_t""no" 1>&6
6908 if test $have_ssleay = yes ; then
6912 cat >> confdefs.h <<\EOF
6913 #define HAVE_SSLEAY 1
6917 if test $need_rsaref = yes; then
6918 cat >> confdefs.h <<\EOF
6919 #define HAVE_RSAREF 1
6923 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6925 TLS_LIBS="-lssl -lcrypto"
6931 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6934 if test $ol_link_tls = yes ; then
6935 cat >> confdefs.h <<\EOF
6940 elif test $ol_with_tls = auto ; then
6941 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6942 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6944 elif test $ol_with_tls != no ; then
6945 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6948 if test $ol_enable_lmpasswd != no; then
6949 if test $ol_link_tls != yes ; then
6950 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
6953 cat >> confdefs.h <<\EOF
6954 #define SLAPD_LMHASH 1
6961 gethostbyname_r gethostbyaddr_r \
6964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6965 echo "configure:6966: checking for $ac_func" >&5
6966 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6969 cat > conftest.$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6972 /* System header to define __stub macros and hopefully few prototypes,
6973 which can conflict with char $ac_func(); below. */
6975 /* Override any gcc2 internal prototype to avoid an error. */
6976 /* We use char because int might match the return type of a gcc2
6977 builtin and then its argument prototype would still apply. */
6983 /* The GNU C library defines this for functions which it implements
6984 to always fail with ENOSYS. Some functions are actually named
6985 something starting with __ and the normal name is an alias. */
6986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 eval "ac_cv_func_$ac_func=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 eval "ac_cv_func_$ac_func=no"
7006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7009 cat >> confdefs.h <<EOF
7010 #define $ac_tr_func 1
7014 echo "$ac_t""no" 1>&6
7019 if test "$ac_cv_func_ctime_r" = no ; then
7020 ol_cv_func_ctime_r_nargs=0
7022 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
7023 echo "configure:7024: checking number of arguments of ctime_r" >&5
7024 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7032 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
7035 if { (eval echo configure:7036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7037 ol_cv_func_ctime_r_nargs3=yes
7039 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7042 ol_cv_func_ctime_r_nargs3=no
7046 cat > conftest.$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7051 time_t ti; char *buffer; ctime_r(&ti,buffer);
7054 if { (eval echo configure:7055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7056 ol_cv_func_ctime_r_nargs2=yes
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7061 ol_cv_func_ctime_r_nargs2=no
7065 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
7066 $ol_cv_func_ctime_r_nargs2 = no ; then
7068 ol_cv_func_ctime_r_nargs=3
7070 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
7071 $ol_cv_func_ctime_r_nargs2 = yes ; then
7073 ol_cv_func_ctime_r_nargs=2
7076 ol_cv_func_ctime_r_nargs=0
7081 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7083 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7084 cat >> confdefs.h <<EOF
7085 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7092 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7093 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7094 echo "configure:7095: checking number of arguments of gethostbyname_r" >&5
7095 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7096 echo $ac_n "(cached) $ac_c" 1>&6
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 #include <sys/types.h>
7102 #include <sys/socket.h>
7103 #include <netinet/in.h>
7105 #define BUFSIZE (sizeof(struct hostent)+10)
7107 struct hostent hent; char buffer[BUFSIZE];
7108 int bufsize=BUFSIZE;int h_errno;
7109 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7110 buffer, bufsize, &h_errno);
7113 if { (eval echo configure:7114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7115 ol_cv_func_gethostbyname_r_nargs5=yes
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7120 ol_cv_func_gethostbyname_r_nargs5=no
7124 cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7127 #include <sys/types.h>
7128 #include <sys/socket.h>
7129 #include <netinet/in.h>
7131 #define BUFSIZE (sizeof(struct hostent)+10)
7133 struct hostent hent;struct hostent *rhent;
7134 char buffer[BUFSIZE];
7135 int bufsize=BUFSIZE;int h_errno;
7136 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7140 if { (eval echo configure:7141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7142 ol_cv_func_gethostbyname_r_nargs6=yes
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 ol_cv_func_gethostbyname_r_nargs6=no
7151 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7152 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7154 ol_cv_func_gethostbyname_r_nargs=5
7156 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7157 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7159 ol_cv_func_gethostbyname_r_nargs=6
7162 ol_cv_func_gethostbyname_r_nargs=0
7167 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7168 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7169 cat >> confdefs.h <<EOF
7170 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7176 ol_cv_func_gethostbyname_r_nargs=0
7179 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7180 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7181 echo "configure:7182: checking number of arguments of gethostbyaddr_r" >&5
7182 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7183 echo $ac_n "(cached) $ac_c" 1>&6
7185 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7188 #include <sys/types.h>
7189 #include <sys/socket.h>
7190 #include <netinet/in.h>
7192 #define BUFSIZE (sizeof(struct hostent)+10)
7194 struct hostent hent; char buffer[BUFSIZE];
7196 size_t alen=sizeof(struct in_addr);
7197 int bufsize=BUFSIZE;int h_errno;
7198 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7199 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7202 if { (eval echo configure:7203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7204 ol_cv_func_gethostbyaddr_r_nargs7=yes
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 ol_cv_func_gethostbyaddr_r_nargs7=no
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 #include <sys/types.h>
7217 #include <sys/socket.h>
7218 #include <netinet/in.h>
7220 #define BUFSIZE (sizeof(struct hostent)+10)
7222 struct hostent hent;
7223 struct hostent *rhent; char buffer[BUFSIZE];
7225 size_t alen=sizeof(struct in_addr);
7226 int bufsize=BUFSIZE;int h_errno;
7227 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7228 alen, AF_INET, &hent, buffer, bufsize,
7232 if { (eval echo configure:7233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7234 ol_cv_func_gethostbyaddr_r_nargs8=yes
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 ol_cv_func_gethostbyaddr_r_nargs8=no
7243 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7244 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7246 ol_cv_func_gethostbyaddr_r_nargs=7
7248 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7249 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7251 ol_cv_func_gethostbyaddr_r_nargs=8
7254 ol_cv_func_gethostbyaddr_r_nargs=0
7259 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7260 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7261 cat >> confdefs.h <<EOF
7262 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7268 ol_cv_func_gethostbyaddr_r_nargs=0
7271 if test "$ac_cv_func_ctime_r" = yes \
7272 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7273 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7274 -a "$ac_cv_func_gethostbyname_r" = yes \
7275 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7276 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7277 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7278 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7279 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7282 cat >> confdefs.h <<\EOF
7283 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7290 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7291 -o $ol_with_threads = nt ; then
7294 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7295 echo "configure:7296: checking for _beginthread" >&5
7296 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7299 cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7302 /* System header to define __stub macros and hopefully few prototypes,
7303 which can conflict with char _beginthread(); below. */
7305 /* Override any gcc2 internal prototype to avoid an error. */
7306 /* We use char because int might match the return type of a gcc2
7307 builtin and then its argument prototype would still apply. */
7308 char _beginthread();
7313 /* The GNU C library defines this for functions which it implements
7314 to always fail with ENOSYS. Some functions are actually named
7315 something starting with __ and the normal name is an alias. */
7316 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7324 if { (eval echo configure:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7326 eval "ac_cv_func__beginthread=yes"
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7331 eval "ac_cv_func__beginthread=no"
7336 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7337 echo "$ac_t""yes" 1>&6
7340 echo "$ac_t""no" 1>&6
7344 if test $ac_cv_func__beginthread = yes ; then
7345 cat >> confdefs.h <<\EOF
7346 #define HAVE_NT_THREADS 1
7352 if test "$ol_cv_nt_threads" = yes ; then
7354 ol_with_threads=found
7355 ol_with_yielding_select=yes
7357 cat >> confdefs.h <<\EOF
7358 #define HAVE_NT_SERVICE_MANAGER 1
7361 cat >> confdefs.h <<\EOF
7362 #define HAVE_NT_EVENT_LOG 1
7367 if test $ol_with_threads = nt ; then
7368 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7372 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7373 -o $ol_with_threads = posix ; then
7375 for ac_hdr in pthread.h
7377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7379 echo "configure:7380: checking for $ac_hdr" >&5
7380 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7389 { (eval echo configure:7390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7391 if test -z "$ac_err"; then
7393 eval "ac_cv_header_$ac_safe=yes"
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7399 eval "ac_cv_header_$ac_safe=no"
7403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7404 echo "$ac_t""yes" 1>&6
7405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7406 cat >> confdefs.h <<EOF
7407 #define $ac_tr_hdr 1
7411 echo "$ac_t""no" 1>&6
7416 if test $ac_cv_header_pthread_h = yes ; then
7417 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7418 echo "configure:7419: checking POSIX thread version" >&5
7419 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7427 # include <pthread.h>
7428 /* this check could be improved */
7429 # ifdef PTHREAD_ONCE_INIT
7430 pthread_version_final;
7434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7435 egrep "pthread_version_final" >/dev/null 2>&1; then
7437 ol_pthread_final=yes
7445 cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7449 # include <pthread.h>
7450 /* this check could be improved */
7451 # ifdef pthread_once_init
7452 pthread_version_draft4;
7456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7457 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7459 ol_pthread_draft4=yes
7462 ol_pthread_draft4=no
7467 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7468 ol_cv_pthread_version=final
7469 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7470 ol_cv_pthread_version=draft4
7472 ol_cv_pthread_version=unknown
7477 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7480 if test $ol_cv_pthread_version = final ; then
7481 cat >> confdefs.h <<\EOF
7482 #define HAVE_PTHREADS_FINAL 1
7485 elif test $ol_cv_pthread_version = draft4 ; then
7486 cat >> confdefs.h <<\EOF
7487 #define HAVE_PTHREADS_D4 1
7491 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7494 # consider threads found
7495 ol_with_threads=found
7498 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7499 echo "configure:7500: checking for LinuxThreads pthread.h" >&5
7500 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 #include <pthread.h>
7508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7511 ol_cv_header_linux_threads=yes
7514 ol_cv_header_linux_threads=no
7521 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7522 if test $ol_cv_header_linux_threads = yes; then
7523 cat >> confdefs.h <<\EOF
7524 #define HAVE_LINUX_THREADS 1
7530 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7531 echo "configure:7532: checking for GNU Pth pthread.h" >&5
7532 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7535 cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7538 #include <pthread.h>
7539 #ifdef _POSIX_THREAD_IS_GNU_PTH
7544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7545 egrep "__gnu_pth__" >/dev/null 2>&1; then
7547 ol_cv_header_gnu_pth_pthread_h=yes
7550 ol_cv_header_gnu_pth_pthread_h=no
7557 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7560 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7561 for ac_hdr in sched.h
7563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7565 echo "configure:7566: checking for $ac_hdr" >&5
7566 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7575 { (eval echo configure:7576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7577 if test -z "$ac_err"; then
7579 eval "ac_cv_header_$ac_safe=yes"
7582 echo "configure: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7585 eval "ac_cv_header_$ac_safe=no"
7589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7592 cat >> confdefs.h <<EOF
7593 #define $ac_tr_hdr 1
7597 echo "$ac_t""no" 1>&6
7604 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7605 echo "configure:7606: checking for pthread_create in default libraries" >&5
7606 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7607 echo $ac_n "(cached) $ac_c" 1>&6
7610 if test "$cross_compiling" = yes; then
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7614 /* pthread test headers */
7615 #include <pthread.h>
7617 #define NULL (void*)0
7620 static void *task(p)
7623 return (void *) (p == NULL);
7628 /* pthread test function */
7633 #ifdef HAVE_PTHREADS_FINAL
7634 /* Final pthreads */
7635 pthread_attr_t attr;
7637 status = pthread_attr_init(&attr);
7638 if( status ) return status;
7640 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7642 #if defined( PTHREAD_CREATE_JOINABLE )
7643 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7645 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7648 #ifdef PTHREAD_CREATE_DETACHED
7650 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7653 if( status ) return status;
7656 status = pthread_create( &t, &attr, task, NULL );
7657 if( status ) return status;
7659 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7661 /* give thread a chance to complete */
7662 /* it should remain joinable and hence detachable */
7665 status = pthread_detach( t );
7666 if( status ) return status;
7671 /* Draft 4 pthreads */
7672 status = pthread_create( &t, pthread_attr_default, task, NULL );
7673 if( status ) return status;
7676 /* give thread a chance to complete */
7677 /* it should remain joinable and hence detachable */
7680 status = pthread_detach( &t );
7681 if( status ) return status;
7685 #ifdef HAVE_LINUX_THREADS
7686 pthread_kill_other_threads_np();
7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7695 ol_cv_pthread_create=yes
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7700 ol_cv_pthread_create=no
7704 cat > conftest.$ac_ext <<EOF
7705 #line 7706 "configure"
7706 #include "confdefs.h"
7707 /* pthread test headers */
7708 #include <pthread.h>
7710 #define NULL (void*)0
7713 static void *task(p)
7716 return (void *) (p == NULL);
7720 int main(argc, argv)
7725 /* pthread test function */
7730 #ifdef HAVE_PTHREADS_FINAL
7731 /* Final pthreads */
7732 pthread_attr_t attr;
7734 status = pthread_attr_init(&attr);
7735 if( status ) return status;
7737 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7739 #if defined( PTHREAD_CREATE_JOINABLE )
7740 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7742 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7745 #ifdef PTHREAD_CREATE_DETACHED
7747 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7750 if( status ) return status;
7753 status = pthread_create( &t, &attr, task, NULL );
7754 if( status ) return status;
7756 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7758 /* give thread a chance to complete */
7759 /* it should remain joinable and hence detachable */
7762 status = pthread_detach( t );
7763 if( status ) return status;
7768 /* Draft 4 pthreads */
7769 status = pthread_create( &t, pthread_attr_default, task, NULL );
7770 if( status ) return status;
7773 /* give thread a chance to complete */
7774 /* it should remain joinable and hence detachable */
7777 status = pthread_detach( &t );
7778 if( status ) return status;
7782 #ifdef HAVE_LINUX_THREADS
7783 pthread_kill_other_threads_np();
7791 if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7793 ol_cv_pthread_create=yes
7795 echo "configure: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7798 ol_cv_pthread_create=no
7805 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7807 if test $ol_cv_pthread_create != no ; then
7808 ol_link_threads=posix
7812 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7813 if test "$ol_link_threads" = no ; then
7815 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7816 echo "configure:7817: checking for pthread link with -kthread" >&5
7817 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7823 LIBS="-kthread $LIBS"
7825 if test "$cross_compiling" = yes; then
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 /* pthread test headers */
7830 #include <pthread.h>
7832 #define NULL (void*)0
7835 static void *task(p)
7838 return (void *) (p == NULL);
7843 /* pthread test function */
7848 #ifdef HAVE_PTHREADS_FINAL
7849 /* Final pthreads */
7850 pthread_attr_t attr;
7852 status = pthread_attr_init(&attr);
7853 if( status ) return status;
7855 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7857 #if defined( PTHREAD_CREATE_JOINABLE )
7858 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7860 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7863 #ifdef PTHREAD_CREATE_DETACHED
7865 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7868 if( status ) return status;
7871 status = pthread_create( &t, &attr, task, NULL );
7872 if( status ) return status;
7874 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7876 /* give thread a chance to complete */
7877 /* it should remain joinable and hence detachable */
7880 status = pthread_detach( t );
7881 if( status ) return status;
7886 /* Draft 4 pthreads */
7887 status = pthread_create( &t, pthread_attr_default, task, NULL );
7888 if( status ) return status;
7891 /* give thread a chance to complete */
7892 /* it should remain joinable and hence detachable */
7895 status = pthread_detach( &t );
7896 if( status ) return status;
7900 #ifdef HAVE_LINUX_THREADS
7901 pthread_kill_other_threads_np();
7908 if { (eval echo configure:7909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7910 ol_cv_pthread_kthread=yes
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7915 ol_cv_pthread_kthread=no
7919 cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* pthread test headers */
7923 #include <pthread.h>
7925 #define NULL (void*)0
7928 static void *task(p)
7931 return (void *) (p == NULL);
7935 int main(argc, argv)
7940 /* pthread test function */
7945 #ifdef HAVE_PTHREADS_FINAL
7946 /* Final pthreads */
7947 pthread_attr_t attr;
7949 status = pthread_attr_init(&attr);
7950 if( status ) return status;
7952 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7954 #if defined( PTHREAD_CREATE_JOINABLE )
7955 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7957 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7960 #ifdef PTHREAD_CREATE_DETACHED
7962 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7965 if( status ) return status;
7968 status = pthread_create( &t, &attr, task, NULL );
7969 if( status ) return status;
7971 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7973 /* give thread a chance to complete */
7974 /* it should remain joinable and hence detachable */
7977 status = pthread_detach( t );
7978 if( status ) return status;
7983 /* Draft 4 pthreads */
7984 status = pthread_create( &t, pthread_attr_default, task, NULL );
7985 if( status ) return status;
7988 /* give thread a chance to complete */
7989 /* it should remain joinable and hence detachable */
7992 status = pthread_detach( &t );
7993 if( status ) return status;
7997 #ifdef HAVE_LINUX_THREADS
7998 pthread_kill_other_threads_np();
8006 if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8008 ol_cv_pthread_kthread=yes
8010 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8013 ol_cv_pthread_kthread=no
8024 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
8026 if test $ol_cv_pthread_kthread = yes ; then
8027 ol_link_pthreads="-kthread"
8028 ol_link_threads=posix
8032 # Pthread try link: -pthread (ol_cv_pthread_pthread)
8033 if test "$ol_link_threads" = no ; then
8035 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
8036 echo "configure:8037: checking for pthread link with -pthread" >&5
8037 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
8038 echo $ac_n "(cached) $ac_c" 1>&6
8043 LIBS="-pthread $LIBS"
8045 if test "$cross_compiling" = yes; then
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* pthread test headers */
8050 #include <pthread.h>
8052 #define NULL (void*)0
8055 static void *task(p)
8058 return (void *) (p == NULL);
8063 /* pthread test function */
8068 #ifdef HAVE_PTHREADS_FINAL
8069 /* Final pthreads */
8070 pthread_attr_t attr;
8072 status = pthread_attr_init(&attr);
8073 if( status ) return status;
8075 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8077 #if defined( PTHREAD_CREATE_JOINABLE )
8078 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8080 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8083 #ifdef PTHREAD_CREATE_DETACHED
8085 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8088 if( status ) return status;
8091 status = pthread_create( &t, &attr, task, NULL );
8092 if( status ) return status;
8094 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8096 /* give thread a chance to complete */
8097 /* it should remain joinable and hence detachable */
8100 status = pthread_detach( t );
8101 if( status ) return status;
8106 /* Draft 4 pthreads */
8107 status = pthread_create( &t, pthread_attr_default, task, NULL );
8108 if( status ) return status;
8111 /* give thread a chance to complete */
8112 /* it should remain joinable and hence detachable */
8115 status = pthread_detach( &t );
8116 if( status ) return status;
8120 #ifdef HAVE_LINUX_THREADS
8121 pthread_kill_other_threads_np();
8128 if { (eval echo configure:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8130 ol_cv_pthread_pthread=yes
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8135 ol_cv_pthread_pthread=no
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* pthread test headers */
8143 #include <pthread.h>
8145 #define NULL (void*)0
8148 static void *task(p)
8151 return (void *) (p == NULL);
8155 int main(argc, argv)
8160 /* pthread test function */
8165 #ifdef HAVE_PTHREADS_FINAL
8166 /* Final pthreads */
8167 pthread_attr_t attr;
8169 status = pthread_attr_init(&attr);
8170 if( status ) return status;
8172 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8174 #if defined( PTHREAD_CREATE_JOINABLE )
8175 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8177 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8180 #ifdef PTHREAD_CREATE_DETACHED
8182 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8185 if( status ) return status;
8188 status = pthread_create( &t, &attr, task, NULL );
8189 if( status ) return status;
8191 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8193 /* give thread a chance to complete */
8194 /* it should remain joinable and hence detachable */
8197 status = pthread_detach( t );
8198 if( status ) return status;
8203 /* Draft 4 pthreads */
8204 status = pthread_create( &t, pthread_attr_default, task, NULL );
8205 if( status ) return status;
8208 /* give thread a chance to complete */
8209 /* it should remain joinable and hence detachable */
8212 status = pthread_detach( &t );
8213 if( status ) return status;
8217 #ifdef HAVE_LINUX_THREADS
8218 pthread_kill_other_threads_np();
8226 if { (eval echo configure:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8228 ol_cv_pthread_pthread=yes
8230 echo "configure: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8233 ol_cv_pthread_pthread=no
8244 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8246 if test $ol_cv_pthread_pthread = yes ; then
8247 ol_link_pthreads="-pthread"
8248 ol_link_threads=posix
8252 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8253 if test "$ol_link_threads" = no ; then
8255 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8256 echo "configure:8257: checking for pthread link with -pthreads" >&5
8257 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8258 echo $ac_n "(cached) $ac_c" 1>&6
8263 LIBS="-pthreads $LIBS"
8265 if test "$cross_compiling" = yes; then
8266 cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 /* pthread test headers */
8270 #include <pthread.h>
8272 #define NULL (void*)0
8275 static void *task(p)
8278 return (void *) (p == NULL);
8283 /* pthread test function */
8288 #ifdef HAVE_PTHREADS_FINAL
8289 /* Final pthreads */
8290 pthread_attr_t attr;
8292 status = pthread_attr_init(&attr);
8293 if( status ) return status;
8295 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8297 #if defined( PTHREAD_CREATE_JOINABLE )
8298 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8300 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8303 #ifdef PTHREAD_CREATE_DETACHED
8305 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8308 if( status ) return status;
8311 status = pthread_create( &t, &attr, task, NULL );
8312 if( status ) return status;
8314 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8316 /* give thread a chance to complete */
8317 /* it should remain joinable and hence detachable */
8320 status = pthread_detach( t );
8321 if( status ) return status;
8326 /* Draft 4 pthreads */
8327 status = pthread_create( &t, pthread_attr_default, task, NULL );
8328 if( status ) return status;
8331 /* give thread a chance to complete */
8332 /* it should remain joinable and hence detachable */
8335 status = pthread_detach( &t );
8336 if( status ) return status;
8340 #ifdef HAVE_LINUX_THREADS
8341 pthread_kill_other_threads_np();
8348 if { (eval echo configure:8349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8350 ol_cv_pthread_pthreads=yes
8352 echo "configure: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8355 ol_cv_pthread_pthreads=no
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8362 /* pthread test headers */
8363 #include <pthread.h>
8365 #define NULL (void*)0
8368 static void *task(p)
8371 return (void *) (p == NULL);
8375 int main(argc, argv)
8380 /* pthread test function */
8385 #ifdef HAVE_PTHREADS_FINAL
8386 /* Final pthreads */
8387 pthread_attr_t attr;
8389 status = pthread_attr_init(&attr);
8390 if( status ) return status;
8392 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8394 #if defined( PTHREAD_CREATE_JOINABLE )
8395 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8397 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8400 #ifdef PTHREAD_CREATE_DETACHED
8402 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8405 if( status ) return status;
8408 status = pthread_create( &t, &attr, task, NULL );
8409 if( status ) return status;
8411 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8413 /* give thread a chance to complete */
8414 /* it should remain joinable and hence detachable */
8417 status = pthread_detach( t );
8418 if( status ) return status;
8423 /* Draft 4 pthreads */
8424 status = pthread_create( &t, pthread_attr_default, task, NULL );
8425 if( status ) return status;
8428 /* give thread a chance to complete */
8429 /* it should remain joinable and hence detachable */
8432 status = pthread_detach( &t );
8433 if( status ) return status;
8437 #ifdef HAVE_LINUX_THREADS
8438 pthread_kill_other_threads_np();
8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8448 ol_cv_pthread_pthreads=yes
8450 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8453 ol_cv_pthread_pthreads=no
8464 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8466 if test $ol_cv_pthread_pthreads = yes ; then
8467 ol_link_pthreads="-pthreads"
8468 ol_link_threads=posix
8472 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8473 if test "$ol_link_threads" = no ; then
8475 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8476 echo "configure:8477: checking for pthread link with -mthreads" >&5
8477 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8483 LIBS="-mthreads $LIBS"
8485 if test "$cross_compiling" = yes; then
8486 cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8489 /* pthread test headers */
8490 #include <pthread.h>
8492 #define NULL (void*)0
8495 static void *task(p)
8498 return (void *) (p == NULL);
8503 /* pthread test function */
8508 #ifdef HAVE_PTHREADS_FINAL
8509 /* Final pthreads */
8510 pthread_attr_t attr;
8512 status = pthread_attr_init(&attr);
8513 if( status ) return status;
8515 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8517 #if defined( PTHREAD_CREATE_JOINABLE )
8518 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8520 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8523 #ifdef PTHREAD_CREATE_DETACHED
8525 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8528 if( status ) return status;
8531 status = pthread_create( &t, &attr, task, NULL );
8532 if( status ) return status;
8534 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8536 /* give thread a chance to complete */
8537 /* it should remain joinable and hence detachable */
8540 status = pthread_detach( t );
8541 if( status ) return status;
8546 /* Draft 4 pthreads */
8547 status = pthread_create( &t, pthread_attr_default, task, NULL );
8548 if( status ) return status;
8551 /* give thread a chance to complete */
8552 /* it should remain joinable and hence detachable */
8555 status = pthread_detach( &t );
8556 if( status ) return status;
8560 #ifdef HAVE_LINUX_THREADS
8561 pthread_kill_other_threads_np();
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8570 ol_cv_pthread_mthreads=yes
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 ol_cv_pthread_mthreads=no
8579 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 /* pthread test headers */
8583 #include <pthread.h>
8585 #define NULL (void*)0
8588 static void *task(p)
8591 return (void *) (p == NULL);
8595 int main(argc, argv)
8600 /* pthread test function */
8605 #ifdef HAVE_PTHREADS_FINAL
8606 /* Final pthreads */
8607 pthread_attr_t attr;
8609 status = pthread_attr_init(&attr);
8610 if( status ) return status;
8612 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8614 #if defined( PTHREAD_CREATE_JOINABLE )
8615 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8617 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8620 #ifdef PTHREAD_CREATE_DETACHED
8622 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8625 if( status ) return status;
8628 status = pthread_create( &t, &attr, task, NULL );
8629 if( status ) return status;
8631 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8633 /* give thread a chance to complete */
8634 /* it should remain joinable and hence detachable */
8637 status = pthread_detach( t );
8638 if( status ) return status;
8643 /* Draft 4 pthreads */
8644 status = pthread_create( &t, pthread_attr_default, task, NULL );
8645 if( status ) return status;
8648 /* give thread a chance to complete */
8649 /* it should remain joinable and hence detachable */
8652 status = pthread_detach( &t );
8653 if( status ) return status;
8657 #ifdef HAVE_LINUX_THREADS
8658 pthread_kill_other_threads_np();
8666 if { (eval echo configure:8667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8668 ol_cv_pthread_mthreads=yes
8670 echo "configure: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8673 ol_cv_pthread_mthreads=no
8684 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8686 if test $ol_cv_pthread_mthreads = yes ; then
8687 ol_link_pthreads="-mthreads"
8688 ol_link_threads=posix
8692 # Pthread try link: -thread (ol_cv_pthread_thread)
8693 if test "$ol_link_threads" = no ; then
8695 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8696 echo "configure:8697: checking for pthread link with -thread" >&5
8697 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8703 LIBS="-thread $LIBS"
8705 if test "$cross_compiling" = yes; then
8706 cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8709 /* pthread test headers */
8710 #include <pthread.h>
8712 #define NULL (void*)0
8715 static void *task(p)
8718 return (void *) (p == NULL);
8723 /* pthread test function */
8728 #ifdef HAVE_PTHREADS_FINAL
8729 /* Final pthreads */
8730 pthread_attr_t attr;
8732 status = pthread_attr_init(&attr);
8733 if( status ) return status;
8735 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8737 #if defined( PTHREAD_CREATE_JOINABLE )
8738 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8740 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8743 #ifdef PTHREAD_CREATE_DETACHED
8745 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8748 if( status ) return status;
8751 status = pthread_create( &t, &attr, task, NULL );
8752 if( status ) return status;
8754 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8756 /* give thread a chance to complete */
8757 /* it should remain joinable and hence detachable */
8760 status = pthread_detach( t );
8761 if( status ) return status;
8766 /* Draft 4 pthreads */
8767 status = pthread_create( &t, pthread_attr_default, task, NULL );
8768 if( status ) return status;
8771 /* give thread a chance to complete */
8772 /* it should remain joinable and hence detachable */
8775 status = pthread_detach( &t );
8776 if( status ) return status;
8780 #ifdef HAVE_LINUX_THREADS
8781 pthread_kill_other_threads_np();
8788 if { (eval echo configure:8789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8790 ol_cv_pthread_thread=yes
8792 echo "configure: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8795 ol_cv_pthread_thread=no
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* pthread test headers */
8803 #include <pthread.h>
8805 #define NULL (void*)0
8808 static void *task(p)
8811 return (void *) (p == NULL);
8815 int main(argc, argv)
8820 /* pthread test function */
8825 #ifdef HAVE_PTHREADS_FINAL
8826 /* Final pthreads */
8827 pthread_attr_t attr;
8829 status = pthread_attr_init(&attr);
8830 if( status ) return status;
8832 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8834 #if defined( PTHREAD_CREATE_JOINABLE )
8835 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8837 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8840 #ifdef PTHREAD_CREATE_DETACHED
8842 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8845 if( status ) return status;
8848 status = pthread_create( &t, &attr, task, NULL );
8849 if( status ) return status;
8851 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8853 /* give thread a chance to complete */
8854 /* it should remain joinable and hence detachable */
8857 status = pthread_detach( t );
8858 if( status ) return status;
8863 /* Draft 4 pthreads */
8864 status = pthread_create( &t, pthread_attr_default, task, NULL );
8865 if( status ) return status;
8868 /* give thread a chance to complete */
8869 /* it should remain joinable and hence detachable */
8872 status = pthread_detach( &t );
8873 if( status ) return status;
8877 #ifdef HAVE_LINUX_THREADS
8878 pthread_kill_other_threads_np();
8886 if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8888 ol_cv_pthread_thread=yes
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8893 ol_cv_pthread_thread=no
8904 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8906 if test $ol_cv_pthread_thread = yes ; then
8907 ol_link_pthreads="-thread"
8908 ol_link_threads=posix
8913 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8914 if test "$ol_link_threads" = no ; then
8915 # try -lpthread -lmach -lexc -lc_r
8916 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8917 echo "configure:8918: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8918 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
8924 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8926 if test "$cross_compiling" = yes; then
8927 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8930 /* pthread test headers */
8931 #include <pthread.h>
8933 #define NULL (void*)0
8936 static void *task(p)
8939 return (void *) (p == NULL);
8944 /* pthread test function */
8949 #ifdef HAVE_PTHREADS_FINAL
8950 /* Final pthreads */
8951 pthread_attr_t attr;
8953 status = pthread_attr_init(&attr);
8954 if( status ) return status;
8956 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8958 #if defined( PTHREAD_CREATE_JOINABLE )
8959 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8961 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8964 #ifdef PTHREAD_CREATE_DETACHED
8966 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8969 if( status ) return status;
8972 status = pthread_create( &t, &attr, task, NULL );
8973 if( status ) return status;
8975 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8977 /* give thread a chance to complete */
8978 /* it should remain joinable and hence detachable */
8981 status = pthread_detach( t );
8982 if( status ) return status;
8987 /* Draft 4 pthreads */
8988 status = pthread_create( &t, pthread_attr_default, task, NULL );
8989 if( status ) return status;
8992 /* give thread a chance to complete */
8993 /* it should remain joinable and hence detachable */
8996 status = pthread_detach( &t );
8997 if( status ) return status;
9001 #ifdef HAVE_LINUX_THREADS
9002 pthread_kill_other_threads_np();
9009 if { (eval echo configure:9010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9011 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9013 echo "configure: failed program was:" >&5
9014 cat conftest.$ac_ext >&5
9016 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9020 cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9023 /* pthread test headers */
9024 #include <pthread.h>
9026 #define NULL (void*)0
9029 static void *task(p)
9032 return (void *) (p == NULL);
9036 int main(argc, argv)
9041 /* pthread test function */
9046 #ifdef HAVE_PTHREADS_FINAL
9047 /* Final pthreads */
9048 pthread_attr_t attr;
9050 status = pthread_attr_init(&attr);
9051 if( status ) return status;
9053 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9055 #if defined( PTHREAD_CREATE_JOINABLE )
9056 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9058 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9061 #ifdef PTHREAD_CREATE_DETACHED
9063 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9066 if( status ) return status;
9069 status = pthread_create( &t, &attr, task, NULL );
9070 if( status ) return status;
9072 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9074 /* give thread a chance to complete */
9075 /* it should remain joinable and hence detachable */
9078 status = pthread_detach( t );
9079 if( status ) return status;
9084 /* Draft 4 pthreads */
9085 status = pthread_create( &t, pthread_attr_default, task, NULL );
9086 if( status ) return status;
9089 /* give thread a chance to complete */
9090 /* it should remain joinable and hence detachable */
9093 status = pthread_detach( &t );
9094 if( status ) return status;
9098 #ifdef HAVE_LINUX_THREADS
9099 pthread_kill_other_threads_np();
9107 if { (eval echo configure:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9109 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9111 echo "configure: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9114 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9125 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
9127 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
9128 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
9129 ol_link_threads=posix
9133 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
9134 if test "$ol_link_threads" = no ; then
9135 # try -lpthread -lmach -lexc
9136 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
9137 echo "configure:9138: checking for pthread link with -lpthread -lmach -lexc" >&5
9138 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9144 LIBS="-lpthread -lmach -lexc $LIBS"
9146 if test "$cross_compiling" = yes; then
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 /* pthread test headers */
9151 #include <pthread.h>
9153 #define NULL (void*)0
9156 static void *task(p)
9159 return (void *) (p == NULL);
9164 /* pthread test function */
9169 #ifdef HAVE_PTHREADS_FINAL
9170 /* Final pthreads */
9171 pthread_attr_t attr;
9173 status = pthread_attr_init(&attr);
9174 if( status ) return status;
9176 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9178 #if defined( PTHREAD_CREATE_JOINABLE )
9179 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9181 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9184 #ifdef PTHREAD_CREATE_DETACHED
9186 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9189 if( status ) return status;
9192 status = pthread_create( &t, &attr, task, NULL );
9193 if( status ) return status;
9195 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9197 /* give thread a chance to complete */
9198 /* it should remain joinable and hence detachable */
9201 status = pthread_detach( t );
9202 if( status ) return status;
9207 /* Draft 4 pthreads */
9208 status = pthread_create( &t, pthread_attr_default, task, NULL );
9209 if( status ) return status;
9212 /* give thread a chance to complete */
9213 /* it should remain joinable and hence detachable */
9216 status = pthread_detach( &t );
9217 if( status ) return status;
9221 #ifdef HAVE_LINUX_THREADS
9222 pthread_kill_other_threads_np();
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9231 ol_cv_pthread_lpthread_lmach_lexc=yes
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 ol_cv_pthread_lpthread_lmach_lexc=no
9240 cat > conftest.$ac_ext <<EOF
9241 #line 9242 "configure"
9242 #include "confdefs.h"
9243 /* pthread test headers */
9244 #include <pthread.h>
9246 #define NULL (void*)0
9249 static void *task(p)
9252 return (void *) (p == NULL);
9256 int main(argc, argv)
9261 /* pthread test function */
9266 #ifdef HAVE_PTHREADS_FINAL
9267 /* Final pthreads */
9268 pthread_attr_t attr;
9270 status = pthread_attr_init(&attr);
9271 if( status ) return status;
9273 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9275 #if defined( PTHREAD_CREATE_JOINABLE )
9276 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9278 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9281 #ifdef PTHREAD_CREATE_DETACHED
9283 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9286 if( status ) return status;
9289 status = pthread_create( &t, &attr, task, NULL );
9290 if( status ) return status;
9292 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9294 /* give thread a chance to complete */
9295 /* it should remain joinable and hence detachable */
9298 status = pthread_detach( t );
9299 if( status ) return status;
9304 /* Draft 4 pthreads */
9305 status = pthread_create( &t, pthread_attr_default, task, NULL );
9306 if( status ) return status;
9309 /* give thread a chance to complete */
9310 /* it should remain joinable and hence detachable */
9313 status = pthread_detach( &t );
9314 if( status ) return status;
9318 #ifdef HAVE_LINUX_THREADS
9319 pthread_kill_other_threads_np();
9327 if { (eval echo configure:9328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9329 ol_cv_pthread_lpthread_lmach_lexc=yes
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 ol_cv_pthread_lpthread_lmach_lexc=no
9345 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9347 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9348 ol_link_pthreads="-lpthread -lmach -lexc"
9349 ol_link_threads=posix
9354 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9355 if test "$ol_link_threads" = no ; then
9356 # try -lpthread -Wl,-woff,85
9357 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9358 echo "configure:9359: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9359 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9365 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9367 if test "$cross_compiling" = yes; then
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9371 /* pthread test headers */
9372 #include <pthread.h>
9374 #define NULL (void*)0
9377 static void *task(p)
9380 return (void *) (p == NULL);
9385 /* pthread test function */
9390 #ifdef HAVE_PTHREADS_FINAL
9391 /* Final pthreads */
9392 pthread_attr_t attr;
9394 status = pthread_attr_init(&attr);
9395 if( status ) return status;
9397 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9399 #if defined( PTHREAD_CREATE_JOINABLE )
9400 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9402 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9405 #ifdef PTHREAD_CREATE_DETACHED
9407 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9410 if( status ) return status;
9413 status = pthread_create( &t, &attr, task, NULL );
9414 if( status ) return status;
9416 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9418 /* give thread a chance to complete */
9419 /* it should remain joinable and hence detachable */
9422 status = pthread_detach( t );
9423 if( status ) return status;
9428 /* Draft 4 pthreads */
9429 status = pthread_create( &t, pthread_attr_default, task, NULL );
9430 if( status ) return status;
9433 /* give thread a chance to complete */
9434 /* it should remain joinable and hence detachable */
9437 status = pthread_detach( &t );
9438 if( status ) return status;
9442 #ifdef HAVE_LINUX_THREADS
9443 pthread_kill_other_threads_np();
9450 if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9452 ol_cv_pthread_lib_lpthread_woff=yes
9454 echo "configure: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9457 ol_cv_pthread_lib_lpthread_woff=no
9461 cat > conftest.$ac_ext <<EOF
9462 #line 9463 "configure"
9463 #include "confdefs.h"
9464 /* pthread test headers */
9465 #include <pthread.h>
9467 #define NULL (void*)0
9470 static void *task(p)
9473 return (void *) (p == NULL);
9477 int main(argc, argv)
9482 /* pthread test function */
9487 #ifdef HAVE_PTHREADS_FINAL
9488 /* Final pthreads */
9489 pthread_attr_t attr;
9491 status = pthread_attr_init(&attr);
9492 if( status ) return status;
9494 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9496 #if defined( PTHREAD_CREATE_JOINABLE )
9497 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9499 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9502 #ifdef PTHREAD_CREATE_DETACHED
9504 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9507 if( status ) return status;
9510 status = pthread_create( &t, &attr, task, NULL );
9511 if( status ) return status;
9513 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9515 /* give thread a chance to complete */
9516 /* it should remain joinable and hence detachable */
9519 status = pthread_detach( t );
9520 if( status ) return status;
9525 /* Draft 4 pthreads */
9526 status = pthread_create( &t, pthread_attr_default, task, NULL );
9527 if( status ) return status;
9530 /* give thread a chance to complete */
9531 /* it should remain joinable and hence detachable */
9534 status = pthread_detach( &t );
9535 if( status ) return status;
9539 #ifdef HAVE_LINUX_THREADS
9540 pthread_kill_other_threads_np();
9548 if { (eval echo configure:9549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9550 ol_cv_pthread_lib_lpthread_woff=yes
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9555 ol_cv_pthread_lib_lpthread_woff=no
9566 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9568 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9569 ol_link_pthreads="-lpthread -Wl,-woff,85"
9570 ol_link_threads=posix
9575 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9576 if test "$ol_link_threads" = no ; then
9578 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9579 echo "configure:9580: checking for pthread link with -lpthread" >&5
9580 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9586 LIBS="-lpthread $LIBS"
9588 if test "$cross_compiling" = yes; then
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9592 /* pthread test headers */
9593 #include <pthread.h>
9595 #define NULL (void*)0
9598 static void *task(p)
9601 return (void *) (p == NULL);
9606 /* pthread test function */
9611 #ifdef HAVE_PTHREADS_FINAL
9612 /* Final pthreads */
9613 pthread_attr_t attr;
9615 status = pthread_attr_init(&attr);
9616 if( status ) return status;
9618 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9620 #if defined( PTHREAD_CREATE_JOINABLE )
9621 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9623 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9626 #ifdef PTHREAD_CREATE_DETACHED
9628 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9631 if( status ) return status;
9634 status = pthread_create( &t, &attr, task, NULL );
9635 if( status ) return status;
9637 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9639 /* give thread a chance to complete */
9640 /* it should remain joinable and hence detachable */
9643 status = pthread_detach( t );
9644 if( status ) return status;
9649 /* Draft 4 pthreads */
9650 status = pthread_create( &t, pthread_attr_default, task, NULL );
9651 if( status ) return status;
9654 /* give thread a chance to complete */
9655 /* it should remain joinable and hence detachable */
9658 status = pthread_detach( &t );
9659 if( status ) return status;
9663 #ifdef HAVE_LINUX_THREADS
9664 pthread_kill_other_threads_np();
9671 if { (eval echo configure:9672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9673 ol_cv_pthread_lpthread=yes
9675 echo "configure: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9678 ol_cv_pthread_lpthread=no
9682 cat > conftest.$ac_ext <<EOF
9683 #line 9684 "configure"
9684 #include "confdefs.h"
9685 /* pthread test headers */
9686 #include <pthread.h>
9688 #define NULL (void*)0
9691 static void *task(p)
9694 return (void *) (p == NULL);
9698 int main(argc, argv)
9703 /* pthread test function */
9708 #ifdef HAVE_PTHREADS_FINAL
9709 /* Final pthreads */
9710 pthread_attr_t attr;
9712 status = pthread_attr_init(&attr);
9713 if( status ) return status;
9715 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9717 #if defined( PTHREAD_CREATE_JOINABLE )
9718 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9720 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9723 #ifdef PTHREAD_CREATE_DETACHED
9725 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9728 if( status ) return status;
9731 status = pthread_create( &t, &attr, task, NULL );
9732 if( status ) return status;
9734 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9736 /* give thread a chance to complete */
9737 /* it should remain joinable and hence detachable */
9740 status = pthread_detach( t );
9741 if( status ) return status;
9746 /* Draft 4 pthreads */
9747 status = pthread_create( &t, pthread_attr_default, task, NULL );
9748 if( status ) return status;
9751 /* give thread a chance to complete */
9752 /* it should remain joinable and hence detachable */
9755 status = pthread_detach( &t );
9756 if( status ) return status;
9760 #ifdef HAVE_LINUX_THREADS
9761 pthread_kill_other_threads_np();
9769 if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9771 ol_cv_pthread_lpthread=yes
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9776 ol_cv_pthread_lpthread=no
9787 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9789 if test $ol_cv_pthread_lpthread = yes ; then
9790 ol_link_pthreads="-lpthread"
9791 ol_link_threads=posix
9795 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9796 if test "$ol_link_threads" = no ; then
9798 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9799 echo "configure:9800: checking for pthread link with -lc_r" >&5
9800 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9808 if test "$cross_compiling" = yes; then
9809 cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 /* pthread test headers */
9813 #include <pthread.h>
9815 #define NULL (void*)0
9818 static void *task(p)
9821 return (void *) (p == NULL);
9826 /* pthread test function */
9831 #ifdef HAVE_PTHREADS_FINAL
9832 /* Final pthreads */
9833 pthread_attr_t attr;
9835 status = pthread_attr_init(&attr);
9836 if( status ) return status;
9838 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9840 #if defined( PTHREAD_CREATE_JOINABLE )
9841 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9843 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9846 #ifdef PTHREAD_CREATE_DETACHED
9848 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9851 if( status ) return status;
9854 status = pthread_create( &t, &attr, task, NULL );
9855 if( status ) return status;
9857 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9859 /* give thread a chance to complete */
9860 /* it should remain joinable and hence detachable */
9863 status = pthread_detach( t );
9864 if( status ) return status;
9869 /* Draft 4 pthreads */
9870 status = pthread_create( &t, pthread_attr_default, task, NULL );
9871 if( status ) return status;
9874 /* give thread a chance to complete */
9875 /* it should remain joinable and hence detachable */
9878 status = pthread_detach( &t );
9879 if( status ) return status;
9883 #ifdef HAVE_LINUX_THREADS
9884 pthread_kill_other_threads_np();
9891 if { (eval echo configure:9892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9893 ol_cv_pthread_lc_r=yes
9895 echo "configure: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9898 ol_cv_pthread_lc_r=no
9902 cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 /* pthread test headers */
9906 #include <pthread.h>
9908 #define NULL (void*)0
9911 static void *task(p)
9914 return (void *) (p == NULL);
9918 int main(argc, argv)
9923 /* pthread test function */
9928 #ifdef HAVE_PTHREADS_FINAL
9929 /* Final pthreads */
9930 pthread_attr_t attr;
9932 status = pthread_attr_init(&attr);
9933 if( status ) return status;
9935 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9937 #if defined( PTHREAD_CREATE_JOINABLE )
9938 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9940 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9943 #ifdef PTHREAD_CREATE_DETACHED
9945 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9948 if( status ) return status;
9951 status = pthread_create( &t, &attr, task, NULL );
9952 if( status ) return status;
9954 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9956 /* give thread a chance to complete */
9957 /* it should remain joinable and hence detachable */
9960 status = pthread_detach( t );
9961 if( status ) return status;
9966 /* Draft 4 pthreads */
9967 status = pthread_create( &t, pthread_attr_default, task, NULL );
9968 if( status ) return status;
9971 /* give thread a chance to complete */
9972 /* it should remain joinable and hence detachable */
9975 status = pthread_detach( &t );
9976 if( status ) return status;
9980 #ifdef HAVE_LINUX_THREADS
9981 pthread_kill_other_threads_np();
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9991 ol_cv_pthread_lc_r=yes
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9996 ol_cv_pthread_lc_r=no
10007 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
10009 if test $ol_cv_pthread_lc_r = yes ; then
10010 ol_link_pthreads="-lc_r"
10011 ol_link_threads=posix
10016 # Pthread try link: -threads (ol_cv_pthread_threads)
10017 if test "$ol_link_threads" = no ; then
10019 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
10020 echo "configure:10021: checking for pthread link with -threads" >&5
10021 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10027 LIBS="-threads $LIBS"
10029 if test "$cross_compiling" = yes; then
10030 cat > conftest.$ac_ext <<EOF
10031 #line 10032 "configure"
10032 #include "confdefs.h"
10033 /* pthread test headers */
10034 #include <pthread.h>
10036 #define NULL (void*)0
10039 static void *task(p)
10042 return (void *) (p == NULL);
10047 /* pthread test function */
10052 #ifdef HAVE_PTHREADS_FINAL
10053 /* Final pthreads */
10054 pthread_attr_t attr;
10056 status = pthread_attr_init(&attr);
10057 if( status ) return status;
10059 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10061 #if defined( PTHREAD_CREATE_JOINABLE )
10062 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10064 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10067 #ifdef PTHREAD_CREATE_DETACHED
10069 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10072 if( status ) return status;
10075 status = pthread_create( &t, &attr, task, NULL );
10076 if( status ) return status;
10078 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10080 /* give thread a chance to complete */
10081 /* it should remain joinable and hence detachable */
10084 status = pthread_detach( t );
10085 if( status ) return status;
10090 /* Draft 4 pthreads */
10091 status = pthread_create( &t, pthread_attr_default, task, NULL );
10092 if( status ) return status;
10095 /* give thread a chance to complete */
10096 /* it should remain joinable and hence detachable */
10099 status = pthread_detach( &t );
10100 if( status ) return status;
10104 #ifdef HAVE_LINUX_THREADS
10105 pthread_kill_other_threads_np();
10112 if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10114 ol_cv_pthread_threads=yes
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10119 ol_cv_pthread_threads=no
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 /* pthread test headers */
10127 #include <pthread.h>
10129 #define NULL (void*)0
10132 static void *task(p)
10135 return (void *) (p == NULL);
10139 int main(argc, argv)
10144 /* pthread test function */
10149 #ifdef HAVE_PTHREADS_FINAL
10150 /* Final pthreads */
10151 pthread_attr_t attr;
10153 status = pthread_attr_init(&attr);
10154 if( status ) return status;
10156 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10158 #if defined( PTHREAD_CREATE_JOINABLE )
10159 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10161 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10164 #ifdef PTHREAD_CREATE_DETACHED
10166 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10169 if( status ) return status;
10172 status = pthread_create( &t, &attr, task, NULL );
10173 if( status ) return status;
10175 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10177 /* give thread a chance to complete */
10178 /* it should remain joinable and hence detachable */
10181 status = pthread_detach( t );
10182 if( status ) return status;
10187 /* Draft 4 pthreads */
10188 status = pthread_create( &t, pthread_attr_default, task, NULL );
10189 if( status ) return status;
10192 /* give thread a chance to complete */
10193 /* it should remain joinable and hence detachable */
10196 status = pthread_detach( &t );
10197 if( status ) return status;
10201 #ifdef HAVE_LINUX_THREADS
10202 pthread_kill_other_threads_np();
10210 if { (eval echo configure:10211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10212 ol_cv_pthread_threads=yes
10214 echo "configure: failed program was:" >&5
10215 cat conftest.$ac_ext >&5
10217 ol_cv_pthread_threads=no
10228 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
10230 if test $ol_cv_pthread_threads = yes ; then
10231 ol_link_pthreads="-threads"
10232 ol_link_threads=posix
10237 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
10238 if test "$ol_link_threads" = no ; then
10239 # try -lpthreads -lmach -lexc -lc_r
10240 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
10241 echo "configure:10242: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
10242 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
10243 echo $ac_n "(cached) $ac_c" 1>&6
10248 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
10250 if test "$cross_compiling" = yes; then
10251 cat > conftest.$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10254 /* pthread test headers */
10255 #include <pthread.h>
10257 #define NULL (void*)0
10260 static void *task(p)
10263 return (void *) (p == NULL);
10268 /* pthread test function */
10273 #ifdef HAVE_PTHREADS_FINAL
10274 /* Final pthreads */
10275 pthread_attr_t attr;
10277 status = pthread_attr_init(&attr);
10278 if( status ) return status;
10280 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10282 #if defined( PTHREAD_CREATE_JOINABLE )
10283 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10285 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10288 #ifdef PTHREAD_CREATE_DETACHED
10290 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10293 if( status ) return status;
10296 status = pthread_create( &t, &attr, task, NULL );
10297 if( status ) return status;
10299 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10301 /* give thread a chance to complete */
10302 /* it should remain joinable and hence detachable */
10305 status = pthread_detach( t );
10306 if( status ) return status;
10311 /* Draft 4 pthreads */
10312 status = pthread_create( &t, pthread_attr_default, task, NULL );
10313 if( status ) return status;
10316 /* give thread a chance to complete */
10317 /* it should remain joinable and hence detachable */
10320 status = pthread_detach( &t );
10321 if( status ) return status;
10325 #ifdef HAVE_LINUX_THREADS
10326 pthread_kill_other_threads_np();
10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10335 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10344 cat > conftest.$ac_ext <<EOF
10345 #line 10346 "configure"
10346 #include "confdefs.h"
10347 /* pthread test headers */
10348 #include <pthread.h>
10350 #define NULL (void*)0
10353 static void *task(p)
10356 return (void *) (p == NULL);
10360 int main(argc, argv)
10365 /* pthread test function */
10370 #ifdef HAVE_PTHREADS_FINAL
10371 /* Final pthreads */
10372 pthread_attr_t attr;
10374 status = pthread_attr_init(&attr);
10375 if( status ) return status;
10377 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10379 #if defined( PTHREAD_CREATE_JOINABLE )
10380 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10382 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10385 #ifdef PTHREAD_CREATE_DETACHED
10387 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10390 if( status ) return status;
10393 status = pthread_create( &t, &attr, task, NULL );
10394 if( status ) return status;
10396 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10398 /* give thread a chance to complete */
10399 /* it should remain joinable and hence detachable */
10402 status = pthread_detach( t );
10403 if( status ) return status;
10408 /* Draft 4 pthreads */
10409 status = pthread_create( &t, pthread_attr_default, task, NULL );
10410 if( status ) return status;
10413 /* give thread a chance to complete */
10414 /* it should remain joinable and hence detachable */
10417 status = pthread_detach( &t );
10418 if( status ) return status;
10422 #ifdef HAVE_LINUX_THREADS
10423 pthread_kill_other_threads_np();
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10433 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10438 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10449 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10451 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10452 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10453 ol_link_threads=posix
10457 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10458 if test "$ol_link_threads" = no ; then
10459 # try -lpthreads -lmach -lexc
10460 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10461 echo "configure:10462: checking for pthread link with -lpthreads -lmach -lexc" >&5
10462 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10463 echo $ac_n "(cached) $ac_c" 1>&6
10468 LIBS="-lpthreads -lmach -lexc $LIBS"
10470 if test "$cross_compiling" = yes; then
10471 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 /* pthread test headers */
10475 #include <pthread.h>
10477 #define NULL (void*)0
10480 static void *task(p)
10483 return (void *) (p == NULL);
10488 /* pthread test function */
10493 #ifdef HAVE_PTHREADS_FINAL
10494 /* Final pthreads */
10495 pthread_attr_t attr;
10497 status = pthread_attr_init(&attr);
10498 if( status ) return status;
10500 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10502 #if defined( PTHREAD_CREATE_JOINABLE )
10503 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10505 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10508 #ifdef PTHREAD_CREATE_DETACHED
10510 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10513 if( status ) return status;
10516 status = pthread_create( &t, &attr, task, NULL );
10517 if( status ) return status;
10519 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10521 /* give thread a chance to complete */
10522 /* it should remain joinable and hence detachable */
10525 status = pthread_detach( t );
10526 if( status ) return status;
10531 /* Draft 4 pthreads */
10532 status = pthread_create( &t, pthread_attr_default, task, NULL );
10533 if( status ) return status;
10536 /* give thread a chance to complete */
10537 /* it should remain joinable and hence detachable */
10540 status = pthread_detach( &t );
10541 if( status ) return status;
10545 #ifdef HAVE_LINUX_THREADS
10546 pthread_kill_other_threads_np();
10553 if { (eval echo configure:10554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10555 ol_cv_pthread_lpthreads_lmach_lexc=yes
10557 echo "configure: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10560 ol_cv_pthread_lpthreads_lmach_lexc=no
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10567 /* pthread test headers */
10568 #include <pthread.h>
10570 #define NULL (void*)0
10573 static void *task(p)
10576 return (void *) (p == NULL);
10580 int main(argc, argv)
10585 /* pthread test function */
10590 #ifdef HAVE_PTHREADS_FINAL
10591 /* Final pthreads */
10592 pthread_attr_t attr;
10594 status = pthread_attr_init(&attr);
10595 if( status ) return status;
10597 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10599 #if defined( PTHREAD_CREATE_JOINABLE )
10600 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10602 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10605 #ifdef PTHREAD_CREATE_DETACHED
10607 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10610 if( status ) return status;
10613 status = pthread_create( &t, &attr, task, NULL );
10614 if( status ) return status;
10616 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10618 /* give thread a chance to complete */
10619 /* it should remain joinable and hence detachable */
10622 status = pthread_detach( t );
10623 if( status ) return status;
10628 /* Draft 4 pthreads */
10629 status = pthread_create( &t, pthread_attr_default, task, NULL );
10630 if( status ) return status;
10633 /* give thread a chance to complete */
10634 /* it should remain joinable and hence detachable */
10637 status = pthread_detach( &t );
10638 if( status ) return status;
10642 #ifdef HAVE_LINUX_THREADS
10643 pthread_kill_other_threads_np();
10651 if { (eval echo configure:10652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10653 ol_cv_pthread_lpthreads_lmach_lexc=yes
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10658 ol_cv_pthread_lpthreads_lmach_lexc=no
10669 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10671 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10672 ol_link_pthreads="-lpthreads -lmach -lexc"
10673 ol_link_threads=posix
10677 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10678 if test "$ol_link_threads" = no ; then
10679 # try -lpthreads -lexc
10680 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10681 echo "configure:10682: checking for pthread link with -lpthreads -lexc" >&5
10682 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10688 LIBS="-lpthreads -lexc $LIBS"
10690 if test "$cross_compiling" = yes; then
10691 cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694 /* pthread test headers */
10695 #include <pthread.h>
10697 #define NULL (void*)0
10700 static void *task(p)
10703 return (void *) (p == NULL);
10708 /* pthread test function */
10713 #ifdef HAVE_PTHREADS_FINAL
10714 /* Final pthreads */
10715 pthread_attr_t attr;
10717 status = pthread_attr_init(&attr);
10718 if( status ) return status;
10720 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10722 #if defined( PTHREAD_CREATE_JOINABLE )
10723 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10725 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10728 #ifdef PTHREAD_CREATE_DETACHED
10730 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10733 if( status ) return status;
10736 status = pthread_create( &t, &attr, task, NULL );
10737 if( status ) return status;
10739 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10741 /* give thread a chance to complete */
10742 /* it should remain joinable and hence detachable */
10745 status = pthread_detach( t );
10746 if( status ) return status;
10751 /* Draft 4 pthreads */
10752 status = pthread_create( &t, pthread_attr_default, task, NULL );
10753 if( status ) return status;
10756 /* give thread a chance to complete */
10757 /* it should remain joinable and hence detachable */
10760 status = pthread_detach( &t );
10761 if( status ) return status;
10765 #ifdef HAVE_LINUX_THREADS
10766 pthread_kill_other_threads_np();
10773 if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10775 ol_cv_pthread_lpthreads_lexc=yes
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10780 ol_cv_pthread_lpthreads_lexc=no
10784 cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 /* pthread test headers */
10788 #include <pthread.h>
10790 #define NULL (void*)0
10793 static void *task(p)
10796 return (void *) (p == NULL);
10800 int main(argc, argv)
10805 /* pthread test function */
10810 #ifdef HAVE_PTHREADS_FINAL
10811 /* Final pthreads */
10812 pthread_attr_t attr;
10814 status = pthread_attr_init(&attr);
10815 if( status ) return status;
10817 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10819 #if defined( PTHREAD_CREATE_JOINABLE )
10820 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10822 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10825 #ifdef PTHREAD_CREATE_DETACHED
10827 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10830 if( status ) return status;
10833 status = pthread_create( &t, &attr, task, NULL );
10834 if( status ) return status;
10836 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10838 /* give thread a chance to complete */
10839 /* it should remain joinable and hence detachable */
10842 status = pthread_detach( t );
10843 if( status ) return status;
10848 /* Draft 4 pthreads */
10849 status = pthread_create( &t, pthread_attr_default, task, NULL );
10850 if( status ) return status;
10853 /* give thread a chance to complete */
10854 /* it should remain joinable and hence detachable */
10857 status = pthread_detach( &t );
10858 if( status ) return status;
10862 #ifdef HAVE_LINUX_THREADS
10863 pthread_kill_other_threads_np();
10871 if { (eval echo configure:10872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10873 ol_cv_pthread_lpthreads_lexc=yes
10875 echo "configure: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10878 ol_cv_pthread_lpthreads_lexc=no
10889 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10891 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10892 ol_link_pthreads="-lpthreads -lexc"
10893 ol_link_threads=posix
10898 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10899 if test "$ol_link_threads" = no ; then
10901 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10902 echo "configure:10903: checking for pthread link with -lpthreads" >&5
10903 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10904 echo $ac_n "(cached) $ac_c" 1>&6
10909 LIBS="-lpthreads $LIBS"
10911 if test "$cross_compiling" = yes; then
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10915 /* pthread test headers */
10916 #include <pthread.h>
10918 #define NULL (void*)0
10921 static void *task(p)
10924 return (void *) (p == NULL);
10929 /* pthread test function */
10934 #ifdef HAVE_PTHREADS_FINAL
10935 /* Final pthreads */
10936 pthread_attr_t attr;
10938 status = pthread_attr_init(&attr);
10939 if( status ) return status;
10941 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10943 #if defined( PTHREAD_CREATE_JOINABLE )
10944 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10946 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10949 #ifdef PTHREAD_CREATE_DETACHED
10951 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10954 if( status ) return status;
10957 status = pthread_create( &t, &attr, task, NULL );
10958 if( status ) return status;
10960 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10962 /* give thread a chance to complete */
10963 /* it should remain joinable and hence detachable */
10966 status = pthread_detach( t );
10967 if( status ) return status;
10972 /* Draft 4 pthreads */
10973 status = pthread_create( &t, pthread_attr_default, task, NULL );
10974 if( status ) return status;
10977 /* give thread a chance to complete */
10978 /* it should remain joinable and hence detachable */
10981 status = pthread_detach( &t );
10982 if( status ) return status;
10986 #ifdef HAVE_LINUX_THREADS
10987 pthread_kill_other_threads_np();
10994 if { (eval echo configure:10995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10996 ol_cv_pthread_lib_lpthreads=yes
10998 echo "configure: failed program was:" >&5
10999 cat conftest.$ac_ext >&5
11001 ol_cv_pthread_lib_lpthreads=no
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11008 /* pthread test headers */
11009 #include <pthread.h>
11011 #define NULL (void*)0
11014 static void *task(p)
11017 return (void *) (p == NULL);
11021 int main(argc, argv)
11026 /* pthread test function */
11031 #ifdef HAVE_PTHREADS_FINAL
11032 /* Final pthreads */
11033 pthread_attr_t attr;
11035 status = pthread_attr_init(&attr);
11036 if( status ) return status;
11038 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11040 #if defined( PTHREAD_CREATE_JOINABLE )
11041 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11043 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11046 #ifdef PTHREAD_CREATE_DETACHED
11048 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11051 if( status ) return status;
11054 status = pthread_create( &t, &attr, task, NULL );
11055 if( status ) return status;
11057 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11059 /* give thread a chance to complete */
11060 /* it should remain joinable and hence detachable */
11063 status = pthread_detach( t );
11064 if( status ) return status;
11069 /* Draft 4 pthreads */
11070 status = pthread_create( &t, pthread_attr_default, task, NULL );
11071 if( status ) return status;
11074 /* give thread a chance to complete */
11075 /* it should remain joinable and hence detachable */
11078 status = pthread_detach( &t );
11079 if( status ) return status;
11083 #ifdef HAVE_LINUX_THREADS
11084 pthread_kill_other_threads_np();
11092 if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11094 ol_cv_pthread_lib_lpthreads=yes
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11099 ol_cv_pthread_lib_lpthreads=no
11110 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
11112 if test $ol_cv_pthread_lib_lpthreads = yes ; then
11113 ol_link_pthreads="-lpthreads"
11114 ol_link_threads=posix
11119 if test $ol_link_threads != no ; then
11120 cat >> confdefs.h <<\EOF
11121 #define HAVE_PTHREADS 1
11125 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
11127 save_CPPFLAGS="$CPPFLAGS"
11129 LIBS="$LTHREAD_LIBS $LIBS"
11131 for ac_func in sched_yield pthread_yield
11133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11134 echo "configure:11135: checking for $ac_func" >&5
11135 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11138 cat > conftest.$ac_ext <<EOF
11139 #line 11140 "configure"
11140 #include "confdefs.h"
11141 /* System header to define __stub macros and hopefully few prototypes,
11142 which can conflict with char $ac_func(); below. */
11143 #include <assert.h>
11144 /* Override any gcc2 internal prototype to avoid an error. */
11145 /* We use char because int might match the return type of a gcc2
11146 builtin and then its argument prototype would still apply. */
11152 /* The GNU C library defines this for functions which it implements
11153 to always fail with ENOSYS. Some functions are actually named
11154 something starting with __ and the normal name is an alias. */
11155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11163 if { (eval echo configure:11164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11165 eval "ac_cv_func_$ac_func=yes"
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11170 eval "ac_cv_func_$ac_func=no"
11175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11176 echo "$ac_t""yes" 1>&6
11177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11178 cat >> confdefs.h <<EOF
11179 #define $ac_tr_func 1
11183 echo "$ac_t""no" 1>&6
11188 if test $ac_cv_func_sched_yield = no -a \
11189 $ac_cv_func_pthread_yield = no ; then
11190 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
11191 echo "configure:11192: checking for sched_yield in -lrt" >&5
11192 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
11193 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11196 ac_save_LIBS="$LIBS"
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 /* Override any gcc2 internal prototype to avoid an error. */
11202 /* We use char because int might match the return type of a gcc2
11203 builtin and then its argument prototype would still apply. */
11204 char sched_yield();
11210 if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11212 eval "ac_cv_lib_$ac_lib_var=yes"
11214 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11217 eval "ac_cv_lib_$ac_lib_var=no"
11220 LIBS="$ac_save_LIBS"
11223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11224 echo "$ac_t""yes" 1>&6
11225 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
11226 cat >> confdefs.h <<\EOF
11227 #define HAVE_SCHED_YIELD 1
11230 ac_cv_func_sched_yield=yes
11232 echo "$ac_t""no" 1>&6
11233 ac_cv_func_sched_yield=no
11237 if test $ac_cv_func_sched_yield = no -a \
11238 $ac_cv_func_pthread_yield = no ; then
11239 for ac_func in thr_yield
11241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11242 echo "configure:11243: checking for $ac_func" >&5
11243 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11246 cat > conftest.$ac_ext <<EOF
11247 #line 11248 "configure"
11248 #include "confdefs.h"
11249 /* System header to define __stub macros and hopefully few prototypes,
11250 which can conflict with char $ac_func(); below. */
11251 #include <assert.h>
11252 /* Override any gcc2 internal prototype to avoid an error. */
11253 /* We use char because int might match the return type of a gcc2
11254 builtin and then its argument prototype would still apply. */
11260 /* The GNU C library defines this for functions which it implements
11261 to always fail with ENOSYS. Some functions are actually named
11262 something starting with __ and the normal name is an alias. */
11263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11271 if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11273 eval "ac_cv_func_$ac_func=yes"
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11278 eval "ac_cv_func_$ac_func=no"
11283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11284 echo "$ac_t""yes" 1>&6
11285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11286 cat >> confdefs.h <<EOF
11287 #define $ac_tr_func 1
11291 echo "$ac_t""no" 1>&6
11296 if test $ac_cv_func_sched_yield = no -a \
11297 $ac_cv_func_pthread_yield = no -a \
11298 "$ac_cv_func_thr_yield" = no ; then
11299 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11302 for ac_func in pthread_kill pthread_rwlock_destroy
11304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11305 echo "configure:11306: checking for $ac_func" >&5
11306 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11307 echo $ac_n "(cached) $ac_c" 1>&6
11309 cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 /* System header to define __stub macros and hopefully few prototypes,
11313 which can conflict with char $ac_func(); below. */
11314 #include <assert.h>
11315 /* Override any gcc2 internal prototype to avoid an error. */
11316 /* We use char because int might match the return type of a gcc2
11317 builtin and then its argument prototype would still apply. */
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11334 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11336 eval "ac_cv_func_$ac_func=yes"
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11341 eval "ac_cv_func_$ac_func=no"
11346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11347 echo "$ac_t""yes" 1>&6
11348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11349 cat >> confdefs.h <<EOF
11350 #define $ac_tr_func 1
11354 echo "$ac_t""no" 1>&6
11359 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11360 echo "configure:11361: checking for pthread_detach with <pthread.h>" >&5
11361 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11362 echo $ac_n "(cached) $ac_c" 1>&6
11365 cat > conftest.$ac_ext <<EOF
11366 #line 11367 "configure"
11367 #include "confdefs.h"
11369 #include <pthread.h>
11371 #define NULL (void*)0
11375 pthread_detach(NULL);
11378 if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11380 ol_cv_func_pthread_detach=yes
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11385 ol_cv_func_pthread_detach=no
11391 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11393 if test $ol_cv_func_pthread_detach = no ; then
11394 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11397 cat >> confdefs.h <<\EOF
11398 #define HAVE_PTHREAD_DETACH 1
11403 pthread_setconcurrency \
11404 pthread_getconcurrency \
11405 thr_setconcurrency \
11406 thr_getconcurrency \
11409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11410 echo "configure:11411: checking for $ac_func" >&5
11411 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11412 echo $ac_n "(cached) $ac_c" 1>&6
11414 cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure"
11416 #include "confdefs.h"
11417 /* System header to define __stub macros and hopefully few prototypes,
11418 which can conflict with char $ac_func(); below. */
11419 #include <assert.h>
11420 /* Override any gcc2 internal prototype to avoid an error. */
11421 /* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11428 /* The GNU C library defines this for functions which it implements
11429 to always fail with ENOSYS. Some functions are actually named
11430 something starting with __ and the normal name is an alias. */
11431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11441 eval "ac_cv_func_$ac_func=yes"
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11446 eval "ac_cv_func_$ac_func=no"
11451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11452 echo "$ac_t""yes" 1>&6
11453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11454 cat >> confdefs.h <<EOF
11455 #define $ac_tr_func 1
11459 echo "$ac_t""no" 1>&6
11465 for ac_func in pthread_kill_other_threads_np
11467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11468 echo "configure:11469: checking for $ac_func" >&5
11469 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11470 echo $ac_n "(cached) $ac_c" 1>&6
11472 cat > conftest.$ac_ext <<EOF
11473 #line 11474 "configure"
11474 #include "confdefs.h"
11475 /* System header to define __stub macros and hopefully few prototypes,
11476 which can conflict with char $ac_func(); below. */
11477 #include <assert.h>
11478 /* Override any gcc2 internal prototype to avoid an error. */
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11486 /* The GNU C library defines this for functions which it implements
11487 to always fail with ENOSYS. Some functions are actually named
11488 something starting with __ and the normal name is an alias. */
11489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11497 if { (eval echo configure:11498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11499 eval "ac_cv_func_$ac_func=yes"
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11504 eval "ac_cv_func_$ac_func=no"
11509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11510 echo "$ac_t""yes" 1>&6
11511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11512 cat >> confdefs.h <<EOF
11513 #define $ac_tr_func 1
11517 echo "$ac_t""no" 1>&6
11521 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11522 echo "configure:11523: checking for LinuxThreads implementation" >&5
11523 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11526 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11529 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11534 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11535 echo "configure:11536: checking for LinuxThreads consistency" >&5
11536 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11537 echo $ac_n "(cached) $ac_c" 1>&6
11540 if test $ol_cv_header_linux_threads = yes -a \
11541 $ol_cv_sys_linux_threads = yes; then
11542 ol_cv_linux_threads=yes
11543 elif test $ol_cv_header_linux_threads = no -a \
11544 $ol_cv_sys_linux_threads = no; then
11545 ol_cv_linux_threads=no
11547 ol_cv_linux_threads=error
11552 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11555 if test $ol_cv_linux_threads = error; then
11556 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11559 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11560 echo "configure:11561: checking if pthread_create() works" >&5
11561 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11562 echo $ac_n "(cached) $ac_c" 1>&6
11565 if test "$cross_compiling" = yes; then
11566 ol_cv_pthread_create_works=yes
11568 cat > conftest.$ac_ext <<EOF
11569 #line 11570 "configure"
11570 #include "confdefs.h"
11571 /* pthread test headers */
11572 #include <pthread.h>
11574 #define NULL (void*)0
11577 static void *task(p)
11580 return (void *) (p == NULL);
11584 int main(argc, argv)
11589 /* pthread test function */
11594 #ifdef HAVE_PTHREADS_FINAL
11595 /* Final pthreads */
11596 pthread_attr_t attr;
11598 status = pthread_attr_init(&attr);
11599 if( status ) return status;
11601 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11603 #if defined( PTHREAD_CREATE_JOINABLE )
11604 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11606 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11609 #ifdef PTHREAD_CREATE_DETACHED
11611 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11614 if( status ) return status;
11617 status = pthread_create( &t, &attr, task, NULL );
11618 if( status ) return status;
11620 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11622 /* give thread a chance to complete */
11623 /* it should remain joinable and hence detachable */
11626 status = pthread_detach( t );
11627 if( status ) return status;
11632 /* Draft 4 pthreads */
11633 status = pthread_create( &t, pthread_attr_default, task, NULL );
11634 if( status ) return status;
11637 /* give thread a chance to complete */
11638 /* it should remain joinable and hence detachable */
11641 status = pthread_detach( &t );
11642 if( status ) return status;
11646 #ifdef HAVE_LINUX_THREADS
11647 pthread_kill_other_threads_np();
11655 if { (eval echo configure:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11657 ol_cv_pthread_create_works=yes
11659 echo "configure: failed program was:" >&5
11660 cat conftest.$ac_ext >&5
11662 ol_cv_pthread_create_works=no
11669 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11671 if test $ol_cv_pthread_create_works = no ; then
11672 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11675 if test $ol_with_yielding_select = auto ; then
11676 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11677 echo "configure:11678: checking if select yields when using pthreads" >&5
11678 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11682 if test "$cross_compiling" = yes; then
11683 ol_cv_pthread_select_yields=cross
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11689 #include <sys/types.h>
11690 #include <sys/time.h>
11691 #include <unistd.h>
11692 #include <pthread.h>
11694 #define NULL (void*) 0
11697 static int fildes[2];
11699 static void *task(p)
11711 FD_SET(fildes[0], &rfds);
11713 /* we're not interested in any fds */
11714 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11721 exit(0); /* if we exit here, the select blocked the whole process */
11724 int main(argc, argv)
11730 /* create a pipe to select */
11731 if(pipe(&fildes[0])) {
11736 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11737 (void) pthread_setconcurrency(2);
11739 #ifdef HAVE_THR_SETCONCURRENCY
11740 /* Set Solaris LWP concurrency to 2 */
11741 thr_setconcurrency(2);
11745 #if HAVE_PTHREADS_D4
11746 pthread_create(&t, pthread_attr_default, task, NULL);
11748 pthread_create(&t, NULL, task, NULL);
11751 #if HAVE_SCHED_YIELD
11752 sched_yield(); /* make sure task runs first */
11754 #ifdef HAVE_PTHREAD_YIELD
11755 pthread_yield(); /* make sure task runs first */
11762 if { (eval echo configure:11763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11764 ol_cv_pthread_select_yields=no
11766 echo "configure: failed program was:" >&5
11767 cat conftest.$ac_ext >&5
11769 ol_cv_pthread_select_yields=yes
11776 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11778 if test $ol_cv_pthread_select_yields = cross ; then
11779 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11782 if test $ol_cv_pthread_select_yields = yes ; then
11783 ol_with_yielding_select=yes
11787 CPPFLAGS="$save_CPPFLAGS"
11790 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11794 if test $ol_with_threads = posix ; then
11795 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11799 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11800 -o $ol_with_threads = mach ; then
11802 for ac_hdr in mach/cthreads.h
11804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11806 echo "configure:11807: checking for $ac_hdr" >&5
11807 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11810 cat > conftest.$ac_ext <<EOF
11811 #line 11812 "configure"
11812 #include "confdefs.h"
11815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11816 { (eval echo configure:11817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11818 if test -z "$ac_err"; then
11820 eval "ac_cv_header_$ac_safe=yes"
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11826 eval "ac_cv_header_$ac_safe=no"
11830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11831 echo "$ac_t""yes" 1>&6
11832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11833 cat >> confdefs.h <<EOF
11834 #define $ac_tr_hdr 1
11838 echo "$ac_t""no" 1>&6
11842 if test $ac_cv_header_mach_cthreads_h = yes ; then
11843 ol_with_threads=found
11845 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11846 echo "configure:11847: checking for cthread_fork" >&5
11847 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11848 echo $ac_n "(cached) $ac_c" 1>&6
11850 cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11853 /* System header to define __stub macros and hopefully few prototypes,
11854 which can conflict with char cthread_fork(); below. */
11855 #include <assert.h>
11856 /* Override any gcc2 internal prototype to avoid an error. */
11857 /* We use char because int might match the return type of a gcc2
11858 builtin and then its argument prototype would still apply. */
11859 char cthread_fork();
11864 /* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11875 if { (eval echo configure:11876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11877 eval "ac_cv_func_cthread_fork=yes"
11879 echo "configure: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11882 eval "ac_cv_func_cthread_fork=no"
11887 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11888 echo "$ac_t""yes" 1>&6
11889 ol_link_threads=yes
11891 echo "$ac_t""no" 1>&6
11895 if test $ol_link_threads = no ; then
11896 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11897 echo "configure:11898: checking for cthread_fork with -all_load" >&5
11898 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11899 echo $ac_n "(cached) $ac_c" 1>&6
11903 LIBS="-all_load $LIBS"
11904 cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure"
11906 #include "confdefs.h"
11907 #include <mach/cthreads.h>
11910 cthread_fork((void *)0, (void *)0);
11914 if { (eval echo configure:11915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11916 ol_cv_cthread_all_load=yes
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11921 ol_cv_cthread_all_load=no
11928 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11930 if test $ol_cv_cthread_all_load = yes ; then
11931 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11932 ol_link_threads=mach
11936 if test $ol_link_threads != no ; then
11937 : check for cthread specific functionality here
11938 cat >> confdefs.h <<\EOF
11939 #define HAVE_MACH_CTHREADS 1
11943 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11947 if test $ol_with_threads = mach ; then
11948 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11952 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11953 -o $ol_with_threads = pth ; then
11955 for ac_hdr in pth.h
11957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11959 echo "configure:11960: checking for $ac_hdr" >&5
11960 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11961 echo $ac_n "(cached) $ac_c" 1>&6
11963 cat > conftest.$ac_ext <<EOF
11964 #line 11965 "configure"
11965 #include "confdefs.h"
11968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11969 { (eval echo configure:11970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11971 if test -z "$ac_err"; then
11973 eval "ac_cv_header_$ac_safe=yes"
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11979 eval "ac_cv_header_$ac_safe=no"
11983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11984 echo "$ac_t""yes" 1>&6
11985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11986 cat >> confdefs.h <<EOF
11987 #define $ac_tr_hdr 1
11991 echo "$ac_t""no" 1>&6
11996 if test $ac_cv_header_pth_h = yes ; then
11997 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11998 echo "configure:11999: checking for pth_version in -lpth" >&5
11999 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
12000 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12001 echo $ac_n "(cached) $ac_c" 1>&6
12003 ac_save_LIBS="$LIBS"
12005 cat > conftest.$ac_ext <<EOF
12006 #line 12007 "configure"
12007 #include "confdefs.h"
12008 /* Override any gcc2 internal prototype to avoid an error. */
12009 /* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12011 char pth_version();
12017 if { (eval echo configure:12018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12019 eval "ac_cv_lib_$ac_lib_var=yes"
12021 echo "configure: failed program was:" >&5
12022 cat conftest.$ac_ext >&5
12024 eval "ac_cv_lib_$ac_lib_var=no"
12027 LIBS="$ac_save_LIBS"
12030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12031 echo "$ac_t""yes" 1>&6
12034 echo "$ac_t""no" 1>&6
12039 if test $have_pth = yes ; then
12040 cat >> confdefs.h <<\EOF
12041 #define HAVE_GNU_PTH 1
12044 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
12045 ol_link_threads=pth
12047 if test $ol_with_yielding_select = auto ; then
12048 ol_with_yielding_select=yes
12054 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12055 -o $ol_with_threads = lwp ; then
12057 for ac_hdr in thread.h synch.h
12059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12061 echo "configure:12062: checking for $ac_hdr" >&5
12062 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12063 echo $ac_n "(cached) $ac_c" 1>&6
12065 cat > conftest.$ac_ext <<EOF
12066 #line 12067 "configure"
12067 #include "confdefs.h"
12070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12071 { (eval echo configure:12072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12073 if test -z "$ac_err"; then
12075 eval "ac_cv_header_$ac_safe=yes"
12078 echo "configure: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12081 eval "ac_cv_header_$ac_safe=no"
12085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12086 echo "$ac_t""yes" 1>&6
12087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12088 cat >> confdefs.h <<EOF
12089 #define $ac_tr_hdr 1
12093 echo "$ac_t""no" 1>&6
12097 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
12098 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
12099 echo "configure:12100: checking for thr_create in -lthread" >&5
12100 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
12101 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12102 echo $ac_n "(cached) $ac_c" 1>&6
12104 ac_save_LIBS="$LIBS"
12105 LIBS="-lthread $LIBS"
12106 cat > conftest.$ac_ext <<EOF
12107 #line 12108 "configure"
12108 #include "confdefs.h"
12109 /* Override any gcc2 internal prototype to avoid an error. */
12110 /* We use char because int might match the return type of a gcc2
12111 builtin and then its argument prototype would still apply. */
12118 if { (eval echo configure:12119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12120 eval "ac_cv_lib_$ac_lib_var=yes"
12122 echo "configure: failed program was:" >&5
12123 cat conftest.$ac_ext >&5
12125 eval "ac_cv_lib_$ac_lib_var=no"
12128 LIBS="$ac_save_LIBS"
12131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12132 echo "$ac_t""yes" 1>&6
12135 echo "$ac_t""no" 1>&6
12140 if test $have_thr = yes ; then
12141 cat >> confdefs.h <<\EOF
12145 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
12146 ol_link_threads=thr
12148 if test $ol_with_yielding_select = auto ; then
12149 ol_with_yielding_select=yes
12153 thr_setconcurrency \
12154 thr_getconcurrency \
12157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12158 echo "configure:12159: checking for $ac_func" >&5
12159 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12162 cat > conftest.$ac_ext <<EOF
12163 #line 12164 "configure"
12164 #include "confdefs.h"
12165 /* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func(); below. */
12167 #include <assert.h>
12168 /* Override any gcc2 internal prototype to avoid an error. */
12169 /* We use char because int might match the return type of a gcc2
12170 builtin and then its argument prototype would still apply. */
12176 /* The GNU C library defines this for functions which it implements
12177 to always fail with ENOSYS. Some functions are actually named
12178 something starting with __ and the normal name is an alias. */
12179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12187 if { (eval echo configure:12188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12189 eval "ac_cv_func_$ac_func=yes"
12191 echo "configure: failed program was:" >&5
12192 cat conftest.$ac_ext >&5
12194 eval "ac_cv_func_$ac_func=no"
12199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12200 echo "$ac_t""yes" 1>&6
12201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12202 cat >> confdefs.h <<EOF
12203 #define $ac_tr_func 1
12207 echo "$ac_t""no" 1>&6
12214 for ac_hdr in lwp/lwp.h
12216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12218 echo "configure:12219: checking for $ac_hdr" >&5
12219 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12220 echo $ac_n "(cached) $ac_c" 1>&6
12222 cat > conftest.$ac_ext <<EOF
12223 #line 12224 "configure"
12224 #include "confdefs.h"
12227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12228 { (eval echo configure:12229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12230 if test -z "$ac_err"; then
12232 eval "ac_cv_header_$ac_safe=yes"
12235 echo "configure: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12238 eval "ac_cv_header_$ac_safe=no"
12242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12243 echo "$ac_t""yes" 1>&6
12244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12245 cat >> confdefs.h <<EOF
12246 #define $ac_tr_hdr 1
12250 echo "$ac_t""no" 1>&6
12254 if test $ac_cv_header_lwp_lwp_h = yes ; then
12255 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12256 echo "configure:12257: checking for lwp_create in -llwp" >&5
12257 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12259 echo $ac_n "(cached) $ac_c" 1>&6
12261 ac_save_LIBS="$LIBS"
12263 cat > conftest.$ac_ext <<EOF
12264 #line 12265 "configure"
12265 #include "confdefs.h"
12266 /* Override any gcc2 internal prototype to avoid an error. */
12267 /* We use char because int might match the return type of a gcc2
12268 builtin and then its argument prototype would still apply. */
12275 if { (eval echo configure:12276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12277 eval "ac_cv_lib_$ac_lib_var=yes"
12279 echo "configure: failed program was:" >&5
12280 cat conftest.$ac_ext >&5
12282 eval "ac_cv_lib_$ac_lib_var=no"
12285 LIBS="$ac_save_LIBS"
12288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12289 echo "$ac_t""yes" 1>&6
12292 echo "$ac_t""no" 1>&6
12297 if test $have_lwp = yes ; then
12298 cat >> confdefs.h <<\EOF
12302 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12303 ol_link_threads=lwp
12305 if test $ol_with_yielding_select = auto ; then
12306 ol_with_yielding_select=no
12312 if test $ol_with_yielding_select = yes ; then
12313 cat >> confdefs.h <<\EOF
12314 #define HAVE_YIELDING_SELECT 1
12319 if test $ol_with_threads = manual ; then
12320 ol_link_threads=yes
12322 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12324 for ac_hdr in pthread.h sched.h
12326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12328 echo "configure:12329: checking for $ac_hdr" >&5
12329 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12330 echo $ac_n "(cached) $ac_c" 1>&6
12332 cat > conftest.$ac_ext <<EOF
12333 #line 12334 "configure"
12334 #include "confdefs.h"
12337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12338 { (eval echo configure:12339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12340 if test -z "$ac_err"; then
12342 eval "ac_cv_header_$ac_safe=yes"
12345 echo "configure: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12348 eval "ac_cv_header_$ac_safe=no"
12352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12355 cat >> confdefs.h <<EOF
12356 #define $ac_tr_hdr 1
12360 echo "$ac_t""no" 1>&6
12364 for ac_func in sched_yield pthread_yield
12366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12367 echo "configure:12368: checking for $ac_func" >&5
12368 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12369 echo $ac_n "(cached) $ac_c" 1>&6
12371 cat > conftest.$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12374 /* System header to define __stub macros and hopefully few prototypes,
12375 which can conflict with char $ac_func(); below. */
12376 #include <assert.h>
12377 /* Override any gcc2 internal prototype to avoid an error. */
12378 /* We use char because int might match the return type of a gcc2
12379 builtin and then its argument prototype would still apply. */
12385 /* The GNU C library defines this for functions which it implements
12386 to always fail with ENOSYS. Some functions are actually named
12387 something starting with __ and the normal name is an alias. */
12388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12396 if { (eval echo configure:12397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12398 eval "ac_cv_func_$ac_func=yes"
12400 echo "configure: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12403 eval "ac_cv_func_$ac_func=no"
12408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12409 echo "$ac_t""yes" 1>&6
12410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12411 cat >> confdefs.h <<EOF
12412 #define $ac_tr_func 1
12416 echo "$ac_t""no" 1>&6
12421 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12422 echo "configure:12423: checking for LinuxThreads pthread.h" >&5
12423 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12424 echo $ac_n "(cached) $ac_c" 1>&6
12426 cat > conftest.$ac_ext <<EOF
12427 #line 12428 "configure"
12428 #include "confdefs.h"
12429 #include <pthread.h>
12431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12432 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12434 ol_cv_header_linux_threads=yes
12437 ol_cv_header_linux_threads=no
12444 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12445 if test $ol_cv_header_linux_threads = yes; then
12446 cat >> confdefs.h <<\EOF
12447 #define HAVE_LINUX_THREADS 1
12453 for ac_hdr in mach/cthreads.h
12455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12457 echo "configure:12458: checking for $ac_hdr" >&5
12458 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12459 echo $ac_n "(cached) $ac_c" 1>&6
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12467 { (eval echo configure:12468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12469 if test -z "$ac_err"; then
12471 eval "ac_cv_header_$ac_safe=yes"
12474 echo "configure: failed program was:" >&5
12475 cat conftest.$ac_ext >&5
12477 eval "ac_cv_header_$ac_safe=no"
12481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12482 echo "$ac_t""yes" 1>&6
12483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12484 cat >> confdefs.h <<EOF
12485 #define $ac_tr_hdr 1
12489 echo "$ac_t""no" 1>&6
12493 for ac_hdr in lwp/lwp.h
12495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12497 echo "configure:12498: checking for $ac_hdr" >&5
12498 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12499 echo $ac_n "(cached) $ac_c" 1>&6
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12507 { (eval echo configure:12508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12509 if test -z "$ac_err"; then
12511 eval "ac_cv_header_$ac_safe=yes"
12514 echo "configure: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12517 eval "ac_cv_header_$ac_safe=no"
12521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12524 cat >> confdefs.h <<EOF
12525 #define $ac_tr_hdr 1
12529 echo "$ac_t""no" 1>&6
12533 for ac_hdr in thread.h synch.h
12535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12537 echo "configure:12538: checking for $ac_hdr" >&5
12538 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12539 echo $ac_n "(cached) $ac_c" 1>&6
12541 cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12547 { (eval echo configure:12548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12549 if test -z "$ac_err"; then
12551 eval "ac_cv_header_$ac_safe=yes"
12554 echo "configure: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12557 eval "ac_cv_header_$ac_safe=no"
12561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12562 echo "$ac_t""yes" 1>&6
12563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12564 cat >> confdefs.h <<EOF
12565 #define $ac_tr_hdr 1
12569 echo "$ac_t""no" 1>&6
12575 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12576 cat >> confdefs.h <<\EOF
12577 #define REENTRANT 1
12580 cat >> confdefs.h <<\EOF
12581 #define _REENTRANT 1
12584 cat >> confdefs.h <<\EOF
12585 #define THREAD_SAFE 1
12588 cat >> confdefs.h <<\EOF
12589 #define _THREAD_SAFE 1
12592 cat >> confdefs.h <<\EOF
12593 #define THREADSAFE 1
12596 cat >> confdefs.h <<\EOF
12597 #define _THREADSAFE 1
12600 cat >> confdefs.h <<\EOF
12601 #define _SGI_MP_SOURCE 1
12605 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12606 echo "configure:12607: checking for thread specific errno" >&5
12607 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12608 echo $ac_n "(cached) $ac_c" 1>&6
12611 cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12619 if { (eval echo configure:12620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12621 ol_cv_errno_thread_specific=yes
12623 echo "configure: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12626 ol_cv_errno_thread_specific=no
12632 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12634 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12635 echo "configure:12636: checking for thread specific h_errno" >&5
12636 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12637 echo $ac_n "(cached) $ac_c" 1>&6
12640 cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12648 if { (eval echo configure:12649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12650 ol_cv_h_errno_thread_specific=yes
12652 echo "configure: failed program was:" >&5
12653 cat conftest.$ac_ext >&5
12655 ol_cv_h_errno_thread_specific=no
12661 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12663 if test $ol_cv_errno_thread_specific != yes \
12664 -o $ol_cv_h_errno_thread_specific != yes ; then
12665 LIBS="$LTHREAD_LIBS $LIBS"
12671 if test $ol_link_threads = no ; then
12672 if test $ol_with_threads = yes ; then
12673 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12676 if test $ol_with_threads = auto ; then
12677 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12681 cat >> confdefs.h <<\EOF
12682 #define NO_THREADS 1
12688 if test $ol_link_threads != no ; then
12689 cat >> confdefs.h <<\EOF
12690 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12697 if test $ol_with_ldbm_api = auto \
12698 -o $ol_with_ldbm_api = berkeley \
12699 -o $ol_with_ldbm_api = bcompat ; then
12701 if test $ol_with_ldbm_api = bcompat; then \
12702 ol_cv_berkeley_db=no
12703 for ac_hdr in db_185.h db.h
12705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12707 echo "configure:12708: checking for $ac_hdr" >&5
12708 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12709 echo $ac_n "(cached) $ac_c" 1>&6
12711 cat > conftest.$ac_ext <<EOF
12712 #line 12713 "configure"
12713 #include "confdefs.h"
12716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12717 { (eval echo configure:12718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12719 if test -z "$ac_err"; then
12721 eval "ac_cv_header_$ac_safe=yes"
12724 echo "configure: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12727 eval "ac_cv_header_$ac_safe=no"
12731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12732 echo "$ac_t""yes" 1>&6
12733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12734 cat >> confdefs.h <<EOF
12735 #define $ac_tr_hdr 1
12739 echo "$ac_t""no" 1>&6
12743 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12744 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12745 echo "configure:12746: checking if Berkeley DB header compatibility" >&5
12746 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12747 echo $ac_n "(cached) $ac_c" 1>&6
12750 cat > conftest.$ac_ext <<EOF
12751 #line 12752 "configure"
12752 #include "confdefs.h"
12755 # include <db_185.h>
12760 /* this check could be improved */
12761 #ifndef DB_VERSION_MAJOR
12762 # define DB_VERSION_MAJOR 1
12765 #if DB_VERSION_MAJOR == 1
12770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12771 egrep "__db_version_1" >/dev/null 2>&1; then
12773 ol_cv_header_db1=yes
12776 ol_cv_header_db1=no
12782 echo "$ac_t""$ol_cv_header_db1" 1>&6
12784 if test $ol_cv_header_db1 = yes ; then
12786 if test $ol_cv_lib_db = no ; then
12787 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12788 echo "configure:12789: checking for Berkeley DB link (default)" >&5
12789 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12790 echo $ac_n "(cached) $ac_c" 1>&6
12795 LIBS="$ol_DB_LIB $LIBS"
12797 cat > conftest.$ac_ext <<EOF
12798 #line 12799 "configure"
12799 #include "confdefs.h"
12801 #ifdef HAVE_DB_185_H
12802 # include <db_185.h>
12807 #ifndef DB_VERSION_MAJOR
12808 # define DB_VERSION_MAJOR 1
12812 #define NULL ((void*)0)
12817 #if DB_VERSION_MAJOR > 1
12820 int major, minor, patch;
12822 version = db_version( &major, &minor, &patch );
12824 if( major != DB_VERSION_MAJOR ||
12825 minor < DB_VERSION_MINOR )
12827 printf("Berkeley DB version mismatch\n"
12828 "\texpected: %s\n\tgot: %s\n",
12829 DB_VERSION_STRING, version);
12835 #if DB_VERSION_MAJOR > 2
12836 db_env_create( NULL, 0 );
12837 #elif DB_VERSION_MAJOR > 1
12838 db_appexit( NULL );
12840 (void) dbopen( NULL, 0, 0, 0, NULL);
12845 if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12849 echo "configure: failed program was:" >&5
12850 cat conftest.$ac_ext >&5
12860 echo "$ac_t""$ol_cv_db_none" 1>&6
12862 if test $ol_cv_db_none = yes ; then
12867 if test $ol_cv_lib_db = no ; then
12868 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12869 echo "configure:12870: checking for Berkeley DB link (-ldb)" >&5
12870 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12871 echo $ac_n "(cached) $ac_c" 1>&6
12876 LIBS="$ol_DB_LIB $LIBS"
12878 cat > conftest.$ac_ext <<EOF
12879 #line 12880 "configure"
12880 #include "confdefs.h"
12882 #ifdef HAVE_DB_185_H
12883 # include <db_185.h>
12888 #ifndef DB_VERSION_MAJOR
12889 # define DB_VERSION_MAJOR 1
12893 #define NULL ((void*)0)
12898 #if DB_VERSION_MAJOR > 1
12901 int major, minor, patch;
12903 version = db_version( &major, &minor, &patch );
12905 if( major != DB_VERSION_MAJOR ||
12906 minor < DB_VERSION_MINOR )
12908 printf("Berkeley DB version mismatch\n"
12909 "\texpected: %s\n\tgot: %s\n",
12910 DB_VERSION_STRING, version);
12916 #if DB_VERSION_MAJOR > 2
12917 db_env_create( NULL, 0 );
12918 #elif DB_VERSION_MAJOR > 1
12919 db_appexit( NULL );
12921 (void) dbopen( NULL, 0, 0, 0, NULL);
12926 if { (eval echo configure:12927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12930 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12941 echo "$ac_t""$ol_cv_db_db" 1>&6
12943 if test $ol_cv_db_db = yes ; then
12948 if test $ol_cv_lib_db = no ; then
12949 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12950 echo "configure:12951: checking for Berkeley DB link (-ldb3)" >&5
12951 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12952 echo $ac_n "(cached) $ac_c" 1>&6
12957 LIBS="$ol_DB_LIB $LIBS"
12959 cat > conftest.$ac_ext <<EOF
12960 #line 12961 "configure"
12961 #include "confdefs.h"
12963 #ifdef HAVE_DB_185_H
12964 # include <db_185.h>
12969 #ifndef DB_VERSION_MAJOR
12970 # define DB_VERSION_MAJOR 1
12974 #define NULL ((void*)0)
12979 #if DB_VERSION_MAJOR > 1
12982 int major, minor, patch;
12984 version = db_version( &major, &minor, &patch );
12986 if( major != DB_VERSION_MAJOR ||
12987 minor < DB_VERSION_MINOR )
12989 printf("Berkeley DB version mismatch\n"
12990 "\texpected: %s\n\tgot: %s\n",
12991 DB_VERSION_STRING, version);
12997 #if DB_VERSION_MAJOR > 2
12998 db_env_create( NULL, 0 );
12999 #elif DB_VERSION_MAJOR > 1
13000 db_appexit( NULL );
13002 (void) dbopen( NULL, 0, 0, 0, NULL);
13007 if { (eval echo configure:13008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13011 echo "configure: failed program was:" >&5
13012 cat conftest.$ac_ext >&5
13022 echo "$ac_t""$ol_cv_db_db3" 1>&6
13024 if test $ol_cv_db_db3 = yes ; then
13029 if test $ol_cv_lib_db = no ; then
13030 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13031 echo "configure:13032: checking for Berkeley DB link (-ldb2)" >&5
13032 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13033 echo $ac_n "(cached) $ac_c" 1>&6
13038 LIBS="$ol_DB_LIB $LIBS"
13040 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13044 #ifdef HAVE_DB_185_H
13045 # include <db_185.h>
13050 #ifndef DB_VERSION_MAJOR
13051 # define DB_VERSION_MAJOR 1
13055 #define NULL ((void*)0)
13060 #if DB_VERSION_MAJOR > 1
13063 int major, minor, patch;
13065 version = db_version( &major, &minor, &patch );
13067 if( major != DB_VERSION_MAJOR ||
13068 minor < DB_VERSION_MINOR )
13070 printf("Berkeley DB version mismatch\n"
13071 "\texpected: %s\n\tgot: %s\n",
13072 DB_VERSION_STRING, version);
13078 #if DB_VERSION_MAJOR > 2
13079 db_env_create( NULL, 0 );
13080 #elif DB_VERSION_MAJOR > 1
13081 db_appexit( NULL );
13083 (void) dbopen( NULL, 0, 0, 0, NULL);
13088 if { (eval echo configure:13089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13092 echo "configure: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13103 echo "$ac_t""$ol_cv_db_db2" 1>&6
13105 if test $ol_cv_db_db2 = yes ; then
13110 if test $ol_cv_lib_db = no ; then
13111 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13112 echo "configure:13113: checking for Berkeley DB link (-ldb1)" >&5
13113 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13114 echo $ac_n "(cached) $ac_c" 1>&6
13119 LIBS="$ol_DB_LIB $LIBS"
13121 cat > conftest.$ac_ext <<EOF
13122 #line 13123 "configure"
13123 #include "confdefs.h"
13125 #ifdef HAVE_DB_185_H
13126 # include <db_185.h>
13131 #ifndef DB_VERSION_MAJOR
13132 # define DB_VERSION_MAJOR 1
13136 #define NULL ((void*)0)
13141 #if DB_VERSION_MAJOR > 1
13144 int major, minor, patch;
13146 version = db_version( &major, &minor, &patch );
13148 if( major != DB_VERSION_MAJOR ||
13149 minor < DB_VERSION_MINOR )
13151 printf("Berkeley DB version mismatch\n"
13152 "\texpected: %s\n\tgot: %s\n",
13153 DB_VERSION_STRING, version);
13159 #if DB_VERSION_MAJOR > 2
13160 db_env_create( NULL, 0 );
13161 #elif DB_VERSION_MAJOR > 1
13162 db_appexit( NULL );
13164 (void) dbopen( NULL, 0, 0, 0, NULL);
13169 if { (eval echo configure:13170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13173 echo "configure: failed program was:" >&5
13174 cat conftest.$ac_ext >&5
13184 echo "$ac_t""$ol_cv_db_db1" 1>&6
13186 if test $ol_cv_db_db1 = yes ; then
13192 if test "$ol_cv_lib_db" != no ; then
13193 ol_cv_berkeley_db=yes
13199 ol_cv_berkeley_db=no
13202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13204 echo "configure:13205: checking for $ac_hdr" >&5
13205 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13206 echo $ac_n "(cached) $ac_c" 1>&6
13208 cat > conftest.$ac_ext <<EOF
13209 #line 13210 "configure"
13210 #include "confdefs.h"
13213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13214 { (eval echo configure:13215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13216 if test -z "$ac_err"; then
13218 eval "ac_cv_header_$ac_safe=yes"
13221 echo "configure: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13224 eval "ac_cv_header_$ac_safe=no"
13228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13229 echo "$ac_t""yes" 1>&6
13230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13231 cat >> confdefs.h <<EOF
13232 #define $ac_tr_hdr 1
13236 echo "$ac_t""no" 1>&6
13240 if test $ac_cv_header_db_h = yes; then
13242 if test $ol_cv_lib_db = no ; then
13243 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13244 echo "configure:13245: checking for Berkeley DB link (default)" >&5
13245 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13246 echo $ac_n "(cached) $ac_c" 1>&6
13251 LIBS="$ol_DB_LIB $LIBS"
13253 cat > conftest.$ac_ext <<EOF
13254 #line 13255 "configure"
13255 #include "confdefs.h"
13257 #ifdef HAVE_DB_185_H
13258 # include <db_185.h>
13263 #ifndef DB_VERSION_MAJOR
13264 # define DB_VERSION_MAJOR 1
13268 #define NULL ((void*)0)
13273 #if DB_VERSION_MAJOR > 1
13276 int major, minor, patch;
13278 version = db_version( &major, &minor, &patch );
13280 if( major != DB_VERSION_MAJOR ||
13281 minor < DB_VERSION_MINOR )
13283 printf("Berkeley DB version mismatch\n"
13284 "\texpected: %s\n\tgot: %s\n",
13285 DB_VERSION_STRING, version);
13291 #if DB_VERSION_MAJOR > 2
13292 db_env_create( NULL, 0 );
13293 #elif DB_VERSION_MAJOR > 1
13294 db_appexit( NULL );
13296 (void) dbopen( NULL, 0, 0, 0, NULL);
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13316 echo "$ac_t""$ol_cv_db_none" 1>&6
13318 if test $ol_cv_db_none = yes ; then
13323 if test $ol_cv_lib_db = no ; then
13324 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13325 echo "configure:13326: checking for Berkeley DB link (-ldb)" >&5
13326 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13327 echo $ac_n "(cached) $ac_c" 1>&6
13332 LIBS="$ol_DB_LIB $LIBS"
13334 cat > conftest.$ac_ext <<EOF
13335 #line 13336 "configure"
13336 #include "confdefs.h"
13338 #ifdef HAVE_DB_185_H
13339 # include <db_185.h>
13344 #ifndef DB_VERSION_MAJOR
13345 # define DB_VERSION_MAJOR 1
13349 #define NULL ((void*)0)
13354 #if DB_VERSION_MAJOR > 1
13357 int major, minor, patch;
13359 version = db_version( &major, &minor, &patch );
13361 if( major != DB_VERSION_MAJOR ||
13362 minor < DB_VERSION_MINOR )
13364 printf("Berkeley DB version mismatch\n"
13365 "\texpected: %s\n\tgot: %s\n",
13366 DB_VERSION_STRING, version);
13372 #if DB_VERSION_MAJOR > 2
13373 db_env_create( NULL, 0 );
13374 #elif DB_VERSION_MAJOR > 1
13375 db_appexit( NULL );
13377 (void) dbopen( NULL, 0, 0, 0, NULL);
13382 if { (eval echo configure:13383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13386 echo "configure: failed program was:" >&5
13387 cat conftest.$ac_ext >&5
13397 echo "$ac_t""$ol_cv_db_db" 1>&6
13399 if test $ol_cv_db_db = yes ; then
13404 if test $ol_cv_lib_db = no ; then
13405 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13406 echo "configure:13407: checking for Berkeley DB link (-ldb3)" >&5
13407 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13408 echo $ac_n "(cached) $ac_c" 1>&6
13413 LIBS="$ol_DB_LIB $LIBS"
13415 cat > conftest.$ac_ext <<EOF
13416 #line 13417 "configure"
13417 #include "confdefs.h"
13419 #ifdef HAVE_DB_185_H
13420 # include <db_185.h>
13425 #ifndef DB_VERSION_MAJOR
13426 # define DB_VERSION_MAJOR 1
13430 #define NULL ((void*)0)
13435 #if DB_VERSION_MAJOR > 1
13438 int major, minor, patch;
13440 version = db_version( &major, &minor, &patch );
13442 if( major != DB_VERSION_MAJOR ||
13443 minor < DB_VERSION_MINOR )
13445 printf("Berkeley DB version mismatch\n"
13446 "\texpected: %s\n\tgot: %s\n",
13447 DB_VERSION_STRING, version);
13453 #if DB_VERSION_MAJOR > 2
13454 db_env_create( NULL, 0 );
13455 #elif DB_VERSION_MAJOR > 1
13456 db_appexit( NULL );
13458 (void) dbopen( NULL, 0, 0, 0, NULL);
13463 if { (eval echo configure:13464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13467 echo "configure: failed program was:" >&5
13468 cat conftest.$ac_ext >&5
13478 echo "$ac_t""$ol_cv_db_db3" 1>&6
13480 if test $ol_cv_db_db3 = yes ; then
13485 if test $ol_cv_lib_db = no ; then
13486 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13487 echo "configure:13488: checking for Berkeley DB link (-ldb2)" >&5
13488 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13489 echo $ac_n "(cached) $ac_c" 1>&6
13494 LIBS="$ol_DB_LIB $LIBS"
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13500 #ifdef HAVE_DB_185_H
13501 # include <db_185.h>
13506 #ifndef DB_VERSION_MAJOR
13507 # define DB_VERSION_MAJOR 1
13511 #define NULL ((void*)0)
13516 #if DB_VERSION_MAJOR > 1
13519 int major, minor, patch;
13521 version = db_version( &major, &minor, &patch );
13523 if( major != DB_VERSION_MAJOR ||
13524 minor < DB_VERSION_MINOR )
13526 printf("Berkeley DB version mismatch\n"
13527 "\texpected: %s\n\tgot: %s\n",
13528 DB_VERSION_STRING, version);
13534 #if DB_VERSION_MAJOR > 2
13535 db_env_create( NULL, 0 );
13536 #elif DB_VERSION_MAJOR > 1
13537 db_appexit( NULL );
13539 (void) dbopen( NULL, 0, 0, 0, NULL);
13544 if { (eval echo configure:13545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13548 echo "configure: failed program was:" >&5
13549 cat conftest.$ac_ext >&5
13559 echo "$ac_t""$ol_cv_db_db2" 1>&6
13561 if test $ol_cv_db_db2 = yes ; then
13566 if test $ol_cv_lib_db = no ; then
13567 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13568 echo "configure:13569: checking for Berkeley DB link (-ldb1)" >&5
13569 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
13575 LIBS="$ol_DB_LIB $LIBS"
13577 cat > conftest.$ac_ext <<EOF
13578 #line 13579 "configure"
13579 #include "confdefs.h"
13581 #ifdef HAVE_DB_185_H
13582 # include <db_185.h>
13587 #ifndef DB_VERSION_MAJOR
13588 # define DB_VERSION_MAJOR 1
13592 #define NULL ((void*)0)
13597 #if DB_VERSION_MAJOR > 1
13600 int major, minor, patch;
13602 version = db_version( &major, &minor, &patch );
13604 if( major != DB_VERSION_MAJOR ||
13605 minor < DB_VERSION_MINOR )
13607 printf("Berkeley DB version mismatch\n"
13608 "\texpected: %s\n\tgot: %s\n",
13609 DB_VERSION_STRING, version);
13615 #if DB_VERSION_MAJOR > 2
13616 db_env_create( NULL, 0 );
13617 #elif DB_VERSION_MAJOR > 1
13618 db_appexit( NULL );
13620 (void) dbopen( NULL, 0, 0, 0, NULL);
13625 if { (eval echo configure:13626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13629 echo "configure: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13640 echo "$ac_t""$ol_cv_db_db1" 1>&6
13642 if test $ol_cv_db_db1 = yes ; then
13648 if test "$ol_cv_lib_db" != no ; then
13649 ol_cv_berkeley_db=yes
13650 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13651 echo "configure:13652: checking for Berkeley DB thread support" >&5
13652 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13653 echo $ac_n "(cached) $ac_c" 1>&6
13657 if test $ol_cv_lib_db != yes ; then
13658 LIBS="$ol_cv_lib_db"
13661 if test "$cross_compiling" = yes; then
13662 ol_cv_berkeley_db_thread=cross
13664 cat > conftest.$ac_ext <<EOF
13665 #line 13666 "configure"
13666 #include "confdefs.h"
13668 #ifdef HAVE_DB_185_H
13674 #define NULL ((void *)0)
13679 u_int32_t flags = DB_CREATE |
13685 #if DB_VERSION_MAJOR > 2
13686 DB_ENV *env = NULL;
13688 rc = db_env_create( &env, 0 );
13690 flags |= DB_INIT_MPOOL;
13691 #ifdef DB_MPOOL_PRIVATE
13692 flags |= DB_MPOOL_PRIVATE;
13696 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13700 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13701 rc = env->open( env, NULL, flags, 0 );
13703 rc = env->open( env, NULL, NULL, flags, 0 );
13707 rc = env->close( env, 0 );
13711 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13717 memset( &env, '\0', sizeof(env) );
13719 rc = db_appinit( NULL, NULL, &env, flags );
13722 db_appexit( &env );
13725 unlink("__db_mpool.share");
13726 unlink("__db_lock.share");
13732 if { (eval echo configure:13733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13734 ol_cv_berkeley_db_thread=yes
13736 echo "configure: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13739 ol_cv_berkeley_db_thread=no
13747 if test $ol_cv_berkeley_db_thread != no ; then
13748 cat >> confdefs.h <<\EOF
13749 #define HAVE_BERKELEY_DB_THREAD 1
13756 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
13762 if test $ol_cv_berkeley_db != no ; then
13763 cat >> confdefs.h <<\EOF
13764 #define HAVE_BERKELEY_DB 1
13768 ol_link_ldbm=berkeley
13769 ol_with_ldbm_api=berkeley
13771 if test $ol_with_ldbm_type = hash ; then
13772 cat >> confdefs.h <<\EOF
13773 #define LDBM_USE_DBHASH 1
13777 cat >> confdefs.h <<\EOF
13778 #define LDBM_USE_DBBTREE 1
13783 if test $ol_cv_lib_db != yes ; then
13784 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
13789 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
13790 { echo "configure: error: BerkeleyDB not availabl" 1>&2; exit 1; }
13791 elif test $ol_enable_bdb != no -a $ol_link_ldbm != no ; then
13795 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
13796 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
13797 ol_with_ldbm_api=none
13800 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
13801 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
13802 echo "configure:13803: checking for MDBM library" >&5
13803 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
13804 echo $ac_n "(cached) $ac_c" 1>&6
13807 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
13808 echo "configure:13809: checking for mdbm_set_chain" >&5
13809 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
13810 echo $ac_n "(cached) $ac_c" 1>&6
13812 cat > conftest.$ac_ext <<EOF
13813 #line 13814 "configure"
13814 #include "confdefs.h"
13815 /* System header to define __stub macros and hopefully few prototypes,
13816 which can conflict with char mdbm_set_chain(); below. */
13817 #include <assert.h>
13818 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13821 char mdbm_set_chain();
13826 /* The GNU C library defines this for functions which it implements
13827 to always fail with ENOSYS. Some functions are actually named
13828 something starting with __ and the normal name is an alias. */
13829 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
13832 f = mdbm_set_chain;
13837 if { (eval echo configure:13838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13839 eval "ac_cv_func_mdbm_set_chain=yes"
13841 echo "configure: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13844 eval "ac_cv_func_mdbm_set_chain=no"
13849 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
13850 echo "$ac_t""yes" 1>&6
13853 echo "$ac_t""no" 1>&6
13855 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
13856 echo "configure:13857: checking for mdbm_set_chain in -lmdbm" >&5
13857 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
13858 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13859 echo $ac_n "(cached) $ac_c" 1>&6
13861 ac_save_LIBS="$LIBS"
13862 LIBS="-lmdbm $LIBS"
13863 cat > conftest.$ac_ext <<EOF
13864 #line 13865 "configure"
13865 #include "confdefs.h"
13866 /* Override any gcc2 internal prototype to avoid an error. */
13867 /* We use char because int might match the return type of a gcc2
13868 builtin and then its argument prototype would still apply. */
13869 char mdbm_set_chain();
13875 if { (eval echo configure:13876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13877 eval "ac_cv_lib_$ac_lib_var=yes"
13879 echo "configure: failed program was:" >&5
13880 cat conftest.$ac_ext >&5
13882 eval "ac_cv_lib_$ac_lib_var=no"
13885 LIBS="$ac_save_LIBS"
13888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13889 echo "$ac_t""yes" 1>&6
13890 ol_cv_lib_mdbm=-lmdbm
13892 echo "$ac_t""no" 1>&6
13903 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
13906 for ac_hdr in mdbm.h
13908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13910 echo "configure:13911: checking for $ac_hdr" >&5
13911 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13912 echo $ac_n "(cached) $ac_c" 1>&6
13914 cat > conftest.$ac_ext <<EOF
13915 #line 13916 "configure"
13916 #include "confdefs.h"
13919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13920 { (eval echo configure:13921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13922 if test -z "$ac_err"; then
13924 eval "ac_cv_header_$ac_safe=yes"
13927 echo "configure: failed program was:" >&5
13928 cat conftest.$ac_ext >&5
13930 eval "ac_cv_header_$ac_safe=no"
13934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13935 echo "$ac_t""yes" 1>&6
13936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13937 cat >> confdefs.h <<EOF
13938 #define $ac_tr_hdr 1
13942 echo "$ac_t""no" 1>&6
13946 echo $ac_n "checking for db""... $ac_c" 1>&6
13947 echo "configure:13948: checking for db" >&5
13948 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
13949 echo $ac_n "(cached) $ac_c" 1>&6
13952 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
13960 echo "$ac_t""$ol_cv_mdbm" 1>&6
13961 if test $ol_cv_mdbm = yes ; then
13962 cat >> confdefs.h <<\EOF
13963 #define HAVE_MDBM 1
13969 if test $ol_cv_mdbm = yes ; then
13971 ol_with_ldbm_api=mdbm
13972 if test $ol_cv_lib_mdbm != yes ; then
13973 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
13978 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
13979 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
13980 echo "configure:13981: checking for GDBM library" >&5
13981 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
13982 echo $ac_n "(cached) $ac_c" 1>&6
13985 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
13986 echo "configure:13987: checking for gdbm_open" >&5
13987 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
13988 echo $ac_n "(cached) $ac_c" 1>&6
13990 cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 /* System header to define __stub macros and hopefully few prototypes,
13994 which can conflict with char gdbm_open(); below. */
13995 #include <assert.h>
13996 /* Override any gcc2 internal prototype to avoid an error. */
13997 /* We use char because int might match the return type of a gcc2
13998 builtin and then its argument prototype would still apply. */
14004 /* The GNU C library defines this for functions which it implements
14005 to always fail with ENOSYS. Some functions are actually named
14006 something starting with __ and the normal name is an alias. */
14007 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
14015 if { (eval echo configure:14016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14017 eval "ac_cv_func_gdbm_open=yes"
14019 echo "configure: failed program was:" >&5
14020 cat conftest.$ac_ext >&5
14022 eval "ac_cv_func_gdbm_open=no"
14027 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
14028 echo "$ac_t""yes" 1>&6
14031 echo "$ac_t""no" 1>&6
14033 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
14034 echo "configure:14035: checking for gdbm_open in -lgdbm" >&5
14035 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
14036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14037 echo $ac_n "(cached) $ac_c" 1>&6
14039 ac_save_LIBS="$LIBS"
14040 LIBS="-lgdbm $LIBS"
14041 cat > conftest.$ac_ext <<EOF
14042 #line 14043 "configure"
14043 #include "confdefs.h"
14044 /* Override any gcc2 internal prototype to avoid an error. */
14045 /* We use char because int might match the return type of a gcc2
14046 builtin and then its argument prototype would still apply. */
14053 if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14055 eval "ac_cv_lib_$ac_lib_var=yes"
14057 echo "configure: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14060 eval "ac_cv_lib_$ac_lib_var=no"
14063 LIBS="$ac_save_LIBS"
14066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14067 echo "$ac_t""yes" 1>&6
14068 ol_cv_lib_gdbm=-lgdbm
14070 echo "$ac_t""no" 1>&6
14081 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
14084 for ac_hdr in gdbm.h
14086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14088 echo "configure:14089: checking for $ac_hdr" >&5
14089 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14090 echo $ac_n "(cached) $ac_c" 1>&6
14092 cat > conftest.$ac_ext <<EOF
14093 #line 14094 "configure"
14094 #include "confdefs.h"
14097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14098 { (eval echo configure:14099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14100 if test -z "$ac_err"; then
14102 eval "ac_cv_header_$ac_safe=yes"
14105 echo "configure: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14108 eval "ac_cv_header_$ac_safe=no"
14112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14113 echo "$ac_t""yes" 1>&6
14114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14115 cat >> confdefs.h <<EOF
14116 #define $ac_tr_hdr 1
14120 echo "$ac_t""no" 1>&6
14124 echo $ac_n "checking for db""... $ac_c" 1>&6
14125 echo "configure:14126: checking for db" >&5
14126 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
14127 echo $ac_n "(cached) $ac_c" 1>&6
14130 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14138 echo "$ac_t""$ol_cv_gdbm" 1>&6
14139 if test $ol_cv_gdbm = yes ; then
14140 cat >> confdefs.h <<\EOF
14141 #define HAVE_GDBM 1
14147 if test $ol_cv_gdbm = yes ; then
14149 ol_with_ldbm_api=gdbm
14151 if test $ol_cv_lib_gdbm != yes ; then
14152 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14157 if test $ol_with_ldbm_api = ndbm ; then
14158 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14159 echo "configure:14160: checking for NDBM library" >&5
14160 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14164 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14165 echo "configure:14166: checking for dbm_open" >&5
14166 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14167 echo $ac_n "(cached) $ac_c" 1>&6
14169 cat > conftest.$ac_ext <<EOF
14170 #line 14171 "configure"
14171 #include "confdefs.h"
14172 /* System header to define __stub macros and hopefully few prototypes,
14173 which can conflict with char dbm_open(); below. */
14174 #include <assert.h>
14175 /* Override any gcc2 internal prototype to avoid an error. */
14176 /* We use char because int might match the return type of a gcc2
14177 builtin and then its argument prototype would still apply. */
14183 /* The GNU C library defines this for functions which it implements
14184 to always fail with ENOSYS. Some functions are actually named
14185 something starting with __ and the normal name is an alias. */
14186 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14194 if { (eval echo configure:14195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14196 eval "ac_cv_func_dbm_open=yes"
14198 echo "configure: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14201 eval "ac_cv_func_dbm_open=no"
14206 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14207 echo "$ac_t""yes" 1>&6
14210 echo "$ac_t""no" 1>&6
14212 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14213 echo "configure:14214: checking for dbm_open in -lndbm" >&5
14214 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14215 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14216 echo $ac_n "(cached) $ac_c" 1>&6
14218 ac_save_LIBS="$LIBS"
14219 LIBS="-lndbm $LIBS"
14220 cat > conftest.$ac_ext <<EOF
14221 #line 14222 "configure"
14222 #include "confdefs.h"
14223 /* Override any gcc2 internal prototype to avoid an error. */
14224 /* We use char because int might match the return type of a gcc2
14225 builtin and then its argument prototype would still apply. */
14232 if { (eval echo configure:14233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14234 eval "ac_cv_lib_$ac_lib_var=yes"
14236 echo "configure: failed program was:" >&5
14237 cat conftest.$ac_ext >&5
14239 eval "ac_cv_lib_$ac_lib_var=no"
14242 LIBS="$ac_save_LIBS"
14245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14246 echo "$ac_t""yes" 1>&6
14247 ol_cv_lib_ndbm=-lndbm
14249 echo "$ac_t""no" 1>&6
14251 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14252 echo "configure:14253: checking for dbm_open in -ldbm" >&5
14253 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14254 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14255 echo $ac_n "(cached) $ac_c" 1>&6
14257 ac_save_LIBS="$LIBS"
14259 cat > conftest.$ac_ext <<EOF
14260 #line 14261 "configure"
14261 #include "confdefs.h"
14262 /* Override any gcc2 internal prototype to avoid an error. */
14263 /* We use char because int might match the return type of a gcc2
14264 builtin and then its argument prototype would still apply. */
14271 if { (eval echo configure:14272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14273 eval "ac_cv_lib_$ac_lib_var=yes"
14275 echo "configure: failed program was:" >&5
14276 cat conftest.$ac_ext >&5
14278 eval "ac_cv_lib_$ac_lib_var=no"
14281 LIBS="$ac_save_LIBS"
14284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14285 echo "$ac_t""yes" 1>&6
14286 ol_cv_lib_ndbm=-ldbm
14288 echo "$ac_t""no" 1>&6
14301 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14304 for ac_hdr in ndbm.h
14306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14308 echo "configure:14309: checking for $ac_hdr" >&5
14309 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14310 echo $ac_n "(cached) $ac_c" 1>&6
14312 cat > conftest.$ac_ext <<EOF
14313 #line 14314 "configure"
14314 #include "confdefs.h"
14317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14318 { (eval echo configure:14319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14320 if test -z "$ac_err"; then
14322 eval "ac_cv_header_$ac_safe=yes"
14325 echo "configure: failed program was:" >&5
14326 cat conftest.$ac_ext >&5
14328 eval "ac_cv_header_$ac_safe=no"
14332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14333 echo "$ac_t""yes" 1>&6
14334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14335 cat >> confdefs.h <<EOF
14336 #define $ac_tr_hdr 1
14340 echo "$ac_t""no" 1>&6
14344 echo $ac_n "checking for db""... $ac_c" 1>&6
14345 echo "configure:14346: checking for db" >&5
14346 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
14350 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14358 echo "$ac_t""$ol_cv_ndbm" 1>&6
14359 if test $ol_cv_ndbm = yes ; then
14360 cat >> confdefs.h <<\EOF
14361 #define HAVE_NDBM 1
14367 if test $ol_cv_ndbm = yes ; then
14369 ol_with_ldbm_api=ndbm
14371 if test $ol_cv_lib_ndbm != yes ; then
14372 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14377 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14378 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14379 if test $ol_enable_ldbm = yes ; then
14380 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14383 echo "configure: warning: disabling LDBM" 1>&2
14387 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14388 LINK_BINS_DYNAMIC="yes"
14390 LINK_BINS_DYNAMIC="no"
14393 if test $ol_enable_wrappers != no ; then
14394 for ac_hdr in tcpd.h
14396 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14397 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14398 echo "configure:14399: checking for $ac_hdr" >&5
14399 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14400 echo $ac_n "(cached) $ac_c" 1>&6
14402 cat > conftest.$ac_ext <<EOF
14403 #line 14404 "configure"
14404 #include "confdefs.h"
14407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14408 { (eval echo configure:14409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14410 if test -z "$ac_err"; then
14412 eval "ac_cv_header_$ac_safe=yes"
14415 echo "configure: failed program was:" >&5
14416 cat conftest.$ac_ext >&5
14418 eval "ac_cv_header_$ac_safe=no"
14422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14423 echo "$ac_t""yes" 1>&6
14424 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14425 cat >> confdefs.h <<EOF
14426 #define $ac_tr_hdr 1
14430 echo "$ac_t""no" 1>&6
14435 if test $ac_cv_header_tcpd_h != yes ; then
14438 cat > conftest.$ac_ext <<EOF
14439 #line 14440 "configure"
14440 #include "confdefs.h"
14442 int allow_severity = 0;
14443 int deny_severity = 0;
14449 if { (eval echo configure:14450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14461 if test $have_wrappers = yes ; then
14462 cat >> confdefs.h <<\EOF
14463 #define HAVE_TCPD 1
14468 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14469 echo "configure:14470: checking for main in -lnsl" >&5
14470 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14471 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14474 ac_save_LIBS="$LIBS"
14476 cat > conftest.$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14484 if { (eval echo configure:14485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14486 eval "ac_cv_lib_$ac_lib_var=yes"
14488 echo "configure: failed program was:" >&5
14489 cat conftest.$ac_ext >&5
14491 eval "ac_cv_lib_$ac_lib_var=no"
14494 LIBS="$ac_save_LIBS"
14497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14498 echo "$ac_t""yes" 1>&6
14499 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14501 cat >> confdefs.h <<EOF
14502 #define $ac_tr_lib 1
14508 echo "$ac_t""no" 1>&6
14512 echo "configure: warning: could not find -lwrap" 1>&2
14513 if test $ol_enable_wrappers = yes ; then
14514 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14517 echo "configure: warning: disabling wrappers support" 1>&2
14518 ol_enable_wrappers=no
14523 if test $ol_enable_syslog != no ; then
14524 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14525 echo "configure:14526: checking for openlog" >&5
14526 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14527 echo $ac_n "(cached) $ac_c" 1>&6
14529 cat > conftest.$ac_ext <<EOF
14530 #line 14531 "configure"
14531 #include "confdefs.h"
14532 /* System header to define __stub macros and hopefully few prototypes,
14533 which can conflict with char openlog(); below. */
14534 #include <assert.h>
14535 /* Override any gcc2 internal prototype to avoid an error. */
14536 /* We use char because int might match the return type of a gcc2
14537 builtin and then its argument prototype would still apply. */
14543 /* The GNU C library defines this for functions which it implements
14544 to always fail with ENOSYS. Some functions are actually named
14545 something starting with __ and the normal name is an alias. */
14546 #if defined (__stub_openlog) || defined (__stub___openlog)
14554 if { (eval echo configure:14555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14556 eval "ac_cv_func_openlog=yes"
14558 echo "configure: failed program was:" >&5
14559 cat conftest.$ac_ext >&5
14561 eval "ac_cv_func_openlog=no"
14566 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14567 echo "$ac_t""yes" 1>&6
14570 echo "$ac_t""no" 1>&6
14573 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14574 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14576 ol_enable_syslog=$ac_cv_func_openlog
14581 if test $ol_enable_sql != no ; then
14582 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14583 echo "configure:14584: checking for SQLDriverConnect in -liodbc" >&5
14584 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14585 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
14588 ac_save_LIBS="$LIBS"
14589 LIBS="-liodbc $LIBS"
14590 cat > conftest.$ac_ext <<EOF
14591 #line 14592 "configure"
14592 #include "confdefs.h"
14593 /* Override any gcc2 internal prototype to avoid an error. */
14594 /* We use char because int might match the return type of a gcc2
14595 builtin and then its argument prototype would still apply. */
14596 char SQLDriverConnect();
14602 if { (eval echo configure:14603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14604 eval "ac_cv_lib_$ac_lib_var=yes"
14606 echo "configure: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14609 eval "ac_cv_lib_$ac_lib_var=no"
14612 LIBS="$ac_save_LIBS"
14615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14616 echo "$ac_t""yes" 1>&6
14619 echo "$ac_t""no" 1>&6
14623 if test $have_iodbc = yes ; then
14624 ol_link_sql="-liodbc"
14626 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14627 echo "configure:14628: checking for SQLDriverConnect in -lodbc" >&5
14628 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14630 echo $ac_n "(cached) $ac_c" 1>&6
14632 ac_save_LIBS="$LIBS"
14633 LIBS="-lodbc $LIBS"
14634 cat > conftest.$ac_ext <<EOF
14635 #line 14636 "configure"
14636 #include "confdefs.h"
14637 /* Override any gcc2 internal prototype to avoid an error. */
14638 /* We use char because int might match the return type of a gcc2
14639 builtin and then its argument prototype would still apply. */
14640 char SQLDriverConnect();
14646 if { (eval echo configure:14647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14648 eval "ac_cv_lib_$ac_lib_var=yes"
14650 echo "configure: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14653 eval "ac_cv_lib_$ac_lib_var=no"
14656 LIBS="$ac_save_LIBS"
14659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14660 echo "$ac_t""yes" 1>&6
14663 echo "$ac_t""no" 1>&6
14667 if test $have_odbc = yes ; then
14668 ol_link_sql="-lodbc"
14672 if test $ol_link_sql != no ; then
14673 SLAPD_SQL_LIBS="$ol_link_sql"
14675 elif test $ol_enable_sql != auto ; then
14676 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14680 if test $ol_enable_tcl != no ; then
14681 for ac_hdr in tcl.h
14683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14685 echo "configure:14686: checking for $ac_hdr" >&5
14686 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14687 echo $ac_n "(cached) $ac_c" 1>&6
14689 cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14695 { (eval echo configure:14696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14697 if test -z "$ac_err"; then
14699 eval "ac_cv_header_$ac_safe=yes"
14702 echo "configure: failed program was:" >&5
14703 cat conftest.$ac_ext >&5
14705 eval "ac_cv_header_$ac_safe=no"
14709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14710 echo "$ac_t""yes" 1>&6
14711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14712 cat >> confdefs.h <<EOF
14713 #define $ac_tr_hdr 1
14717 echo "$ac_t""no" 1>&6
14722 if test $ac_cv_header_tcl_h != yes ; then
14725 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
14726 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
14727 echo "configure:14728: checking for main in -l$lib" >&5
14728 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
14729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14730 echo $ac_n "(cached) $ac_c" 1>&6
14732 ac_save_LIBS="$LIBS"
14733 LIBS="-l$lib $LIBS"
14734 cat > conftest.$ac_ext <<EOF
14735 #line 14736 "configure"
14736 #include "confdefs.h"
14742 if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14744 eval "ac_cv_lib_$ac_lib_var=yes"
14746 echo "configure: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14749 eval "ac_cv_lib_$ac_lib_var=no"
14752 LIBS="$ac_save_LIBS"
14755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14756 echo "$ac_t""yes" 1>&6
14758 if test x"$ol_with_tcl_module" = "xstatic" ; then
14759 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
14761 MOD_TCL_LIB="-l${lib}"
14764 echo "$ac_t""no" 1>&6
14771 if test $have_tcl != yes ; then
14772 echo "configure: warning: could not find -ltcl" 1>&2
14773 if test $ol_enable_tcl = yes ; then
14774 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
14782 for ac_hdr in termcap.h ncurses.h
14784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14786 echo "configure:14787: checking for $ac_hdr" >&5
14787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14788 echo $ac_n "(cached) $ac_c" 1>&6
14790 cat > conftest.$ac_ext <<EOF
14791 #line 14792 "configure"
14792 #include "confdefs.h"
14795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14796 { (eval echo configure:14797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14798 if test -z "$ac_err"; then
14800 eval "ac_cv_header_$ac_safe=yes"
14803 echo "configure: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14806 eval "ac_cv_header_$ac_safe=no"
14810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14811 echo "$ac_t""yes" 1>&6
14812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14813 cat >> confdefs.h <<EOF
14814 #define $ac_tr_hdr 1
14818 echo "$ac_t""no" 1>&6
14823 if test $ol_link_termcap = no ; then
14824 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
14825 echo "configure:14826: checking for tputs in -ltermcap" >&5
14826 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
14827 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14828 echo $ac_n "(cached) $ac_c" 1>&6
14830 ac_save_LIBS="$LIBS"
14831 LIBS="-ltermcap $LIBS"
14832 cat > conftest.$ac_ext <<EOF
14833 #line 14834 "configure"
14834 #include "confdefs.h"
14835 /* Override any gcc2 internal prototype to avoid an error. */
14836 /* We use char because int might match the return type of a gcc2
14837 builtin and then its argument prototype would still apply. */
14844 if { (eval echo configure:14845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14846 eval "ac_cv_lib_$ac_lib_var=yes"
14848 echo "configure: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14851 eval "ac_cv_lib_$ac_lib_var=no"
14854 LIBS="$ac_save_LIBS"
14857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14858 echo "$ac_t""yes" 1>&6
14861 echo "$ac_t""no" 1>&6
14865 if test $have_termcap = yes ; then
14866 cat >> confdefs.h <<\EOF
14867 #define HAVE_TERMCAP 1
14870 ol_link_termcap=yes
14871 TERMCAP_LIBS=-ltermcap
14875 if test $ol_link_termcap = no ; then
14876 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
14877 echo "configure:14878: checking for initscr in -lncurses" >&5
14878 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
14879 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14880 echo $ac_n "(cached) $ac_c" 1>&6
14882 ac_save_LIBS="$LIBS"
14883 LIBS="-lncurses $LIBS"
14884 cat > conftest.$ac_ext <<EOF
14885 #line 14886 "configure"
14886 #include "confdefs.h"
14887 /* Override any gcc2 internal prototype to avoid an error. */
14888 /* We use char because int might match the return type of a gcc2
14889 builtin and then its argument prototype would still apply. */
14896 if { (eval echo configure:14897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14898 eval "ac_cv_lib_$ac_lib_var=yes"
14900 echo "configure: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14903 eval "ac_cv_lib_$ac_lib_var=no"
14906 LIBS="$ac_save_LIBS"
14909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14910 echo "$ac_t""yes" 1>&6
14913 echo "$ac_t""no" 1>&6
14917 if test $have_ncurses = yes ; then
14918 cat >> confdefs.h <<\EOF
14919 #define HAVE_NCURSES 1
14922 ol_link_termcap=yes
14923 TERMCAP_LIBS=-lncurses
14927 if test $ol_link_termcap = no ; then
14928 cat >> confdefs.h <<\EOF
14929 #define NO_TERMCAP 1
14937 if test $ol_with_cyrus_sasl != no ; then
14938 for ac_hdr in sasl.h
14940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14942 echo "configure:14943: checking for $ac_hdr" >&5
14943 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14944 echo $ac_n "(cached) $ac_c" 1>&6
14946 cat > conftest.$ac_ext <<EOF
14947 #line 14948 "configure"
14948 #include "confdefs.h"
14951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14952 { (eval echo configure:14953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14954 if test -z "$ac_err"; then
14956 eval "ac_cv_header_$ac_safe=yes"
14959 echo "configure: failed program was:" >&5
14960 cat conftest.$ac_ext >&5
14962 eval "ac_cv_header_$ac_safe=no"
14966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14967 echo "$ac_t""yes" 1>&6
14968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14969 cat >> confdefs.h <<EOF
14970 #define $ac_tr_hdr 1
14974 echo "$ac_t""no" 1>&6
14979 if test $ac_cv_header_sasl_h = yes ; then
14980 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
14981 echo "configure:14982: checking for sasl_client_init in -lsasl" >&5
14982 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
14983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14984 echo $ac_n "(cached) $ac_c" 1>&6
14986 ac_save_LIBS="$LIBS"
14987 LIBS="-lsasl $LIBS"
14988 cat > conftest.$ac_ext <<EOF
14989 #line 14990 "configure"
14990 #include "confdefs.h"
14991 /* Override any gcc2 internal prototype to avoid an error. */
14992 /* We use char because int might match the return type of a gcc2
14993 builtin and then its argument prototype would still apply. */
14994 char sasl_client_init();
15000 if { (eval echo configure:15001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15002 eval "ac_cv_lib_$ac_lib_var=yes"
15004 echo "configure: failed program was:" >&5
15005 cat conftest.$ac_ext >&5
15007 eval "ac_cv_lib_$ac_lib_var=no"
15010 LIBS="$ac_save_LIBS"
15013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15014 echo "$ac_t""yes" 1>&6
15015 have_cyrus_sasl=yes
15017 echo "$ac_t""no" 1>&6
15022 if test $have_cyrus_sasl != no ; then
15024 cat >> confdefs.h <<\EOF
15025 #define HAVE_CYRUS_SASL 1
15032 if test $ol_link_sasl = no ; then
15033 if test $ol_with_cyrus_sasl != auto ; then
15034 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
15036 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
15037 echo "configure: warning: SASL authentication not supported!" 1>&2
15038 if test $ol_link_tls = no ; then
15039 echo "configure: warning: Strong authentication not supported!" 1>&2
15043 elif test $ol_enable_spasswd != no ; then
15044 ol_link_spasswd=yes
15048 echo "configure: warning: SASL authentication not supported!" 1>&2
15049 if test $ol_link_tls = no ; then
15050 echo "configure: warning: Strong authentication not supported!" 1>&2
15054 if test $cross_compiling != yes ; then
15056 if test -r /dev/urandom ; then
15057 dev="/dev/urandom";
15058 elif test -r /idev/urandom ; then
15059 dev="/idev/urandom";
15060 elif test -r /dev/srandom ; then
15061 dev="/dev/srandom";
15062 elif test -r /dev/random ; then
15064 elif test -r /idev/random ; then
15065 dev="/idev/random";
15068 if test $dev != no ; then
15069 cat >> confdefs.h <<EOF
15070 #define URANDOM_DEVICE "$dev"
15077 if test $ol_with_fetch != no ; then
15079 LIBS="-lfetch -lcom_err $LIBS"
15080 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
15081 echo "configure:15082: checking fetch(3) library" >&5
15082 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
15083 echo $ac_n "(cached) $ac_c" 1>&6
15086 cat > conftest.$ac_ext <<EOF
15087 #line 15088 "configure"
15088 #include "confdefs.h"
15090 #include <sys/param.h>
15094 struct url *u = fetchParseURL("file:///");
15097 if { (eval echo configure:15098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15099 ol_cv_lib_fetch=yes
15101 echo "configure: failed program was:" >&5
15102 cat conftest.$ac_ext >&5
15109 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
15111 if test $ol_cv_lib_fetch != no ; then
15112 ol_link_fetch="-lfetch -lcom_err"
15113 cat >> confdefs.h <<\EOF
15114 #define HAVE_FETCH 1
15120 if test $ol_cv_lib_fetch != no ; then
15121 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
15122 ol_link_fetch=freebsd
15124 elif test $ol_with_fetch != auto ; then
15125 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
15129 ol_link_readline=no
15130 if test $ol_with_readline != no ; then
15131 for ac_hdr in readline/readline.h readline/history.h
15133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15135 echo "configure:15136: checking for $ac_hdr" >&5
15136 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15137 echo $ac_n "(cached) $ac_c" 1>&6
15139 cat > conftest.$ac_ext <<EOF
15140 #line 15141 "configure"
15141 #include "confdefs.h"
15144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15145 { (eval echo configure:15146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15147 if test -z "$ac_err"; then
15149 eval "ac_cv_header_$ac_safe=yes"
15152 echo "configure: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15155 eval "ac_cv_header_$ac_safe=no"
15159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15160 echo "$ac_t""yes" 1>&6
15161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15162 cat >> confdefs.h <<EOF
15163 #define $ac_tr_hdr 1
15167 echo "$ac_t""no" 1>&6
15172 if test $ac_cv_header_readline_readline_h = yes ; then
15174 LIBS="$TERMCAP_LIBS $LIBS"
15175 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
15176 echo "configure:15177: checking for readline in -lreadline" >&5
15177 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
15178 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15179 echo $ac_n "(cached) $ac_c" 1>&6
15181 ac_save_LIBS="$LIBS"
15182 LIBS="-lreadline $LIBS"
15183 cat > conftest.$ac_ext <<EOF
15184 #line 15185 "configure"
15185 #include "confdefs.h"
15186 /* Override any gcc2 internal prototype to avoid an error. */
15187 /* We use char because int might match the return type of a gcc2
15188 builtin and then its argument prototype would still apply. */
15195 if { (eval echo configure:15196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15197 eval "ac_cv_lib_$ac_lib_var=yes"
15199 echo "configure: failed program was:" >&5
15200 cat conftest.$ac_ext >&5
15202 eval "ac_cv_lib_$ac_lib_var=no"
15205 LIBS="$ac_save_LIBS"
15208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15209 echo "$ac_t""yes" 1>&6
15212 echo "$ac_t""no" 1>&6
15218 if test $have_readline = yes ; then
15219 ol_with_readline=found
15220 ol_link_readline=yes
15222 READLINE_LIBS="-lreadline"
15227 if test $ol_link_readline = yes ; then
15228 cat >> confdefs.h <<\EOF
15229 #define HAVE_READLINE 1
15235 if test $ol_enable_crypt != no ; then
15236 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15237 echo "configure:15238: checking for crypt" >&5
15238 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15239 echo $ac_n "(cached) $ac_c" 1>&6
15241 cat > conftest.$ac_ext <<EOF
15242 #line 15243 "configure"
15243 #include "confdefs.h"
15244 /* System header to define __stub macros and hopefully few prototypes,
15245 which can conflict with char crypt(); below. */
15246 #include <assert.h>
15247 /* Override any gcc2 internal prototype to avoid an error. */
15248 /* We use char because int might match the return type of a gcc2
15249 builtin and then its argument prototype would still apply. */
15255 /* The GNU C library defines this for functions which it implements
15256 to always fail with ENOSYS. Some functions are actually named
15257 something starting with __ and the normal name is an alias. */
15258 #if defined (__stub_crypt) || defined (__stub___crypt)
15266 if { (eval echo configure:15267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15268 eval "ac_cv_func_crypt=yes"
15270 echo "configure: failed program was:" >&5
15271 cat conftest.$ac_ext >&5
15273 eval "ac_cv_func_crypt=no"
15278 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15279 echo "$ac_t""yes" 1>&6
15282 echo "$ac_t""no" 1>&6
15284 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15285 echo "configure:15286: checking for crypt in -lcrypt" >&5
15286 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15287 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15288 echo $ac_n "(cached) $ac_c" 1>&6
15290 ac_save_LIBS="$LIBS"
15291 LIBS="-lcrypt $LIBS"
15292 cat > conftest.$ac_ext <<EOF
15293 #line 15294 "configure"
15294 #include "confdefs.h"
15295 /* Override any gcc2 internal prototype to avoid an error. */
15296 /* We use char because int might match the return type of a gcc2
15297 builtin and then its argument prototype would still apply. */
15304 if { (eval echo configure:15305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15306 eval "ac_cv_lib_$ac_lib_var=yes"
15308 echo "configure: failed program was:" >&5
15309 cat conftest.$ac_ext >&5
15311 eval "ac_cv_lib_$ac_lib_var=no"
15314 LIBS="$ac_save_LIBS"
15317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15318 echo "$ac_t""yes" 1>&6
15319 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15322 echo "$ac_t""no" 1>&6
15329 if test $have_crypt = yes ; then
15330 cat >> confdefs.h <<\EOF
15331 #define HAVE_CRYPT 1
15335 echo "configure: warning: could not find crypt" 1>&2
15336 if test $ol_enable_crypt = yes ; then
15337 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15340 echo "configure: warning: disabling crypt support" 1>&2
15345 if test $ol_enable_proctitle != no ; then
15346 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15347 echo "configure:15348: checking for setproctitle" >&5
15348 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15349 echo $ac_n "(cached) $ac_c" 1>&6
15351 cat > conftest.$ac_ext <<EOF
15352 #line 15353 "configure"
15353 #include "confdefs.h"
15354 /* System header to define __stub macros and hopefully few prototypes,
15355 which can conflict with char setproctitle(); below. */
15356 #include <assert.h>
15357 /* Override any gcc2 internal prototype to avoid an error. */
15358 /* We use char because int might match the return type of a gcc2
15359 builtin and then its argument prototype would still apply. */
15360 char setproctitle();
15365 /* The GNU C library defines this for functions which it implements
15366 to always fail with ENOSYS. Some functions are actually named
15367 something starting with __ and the normal name is an alias. */
15368 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15376 if { (eval echo configure:15377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15378 eval "ac_cv_func_setproctitle=yes"
15380 echo "configure: failed program was:" >&5
15381 cat conftest.$ac_ext >&5
15383 eval "ac_cv_func_setproctitle=no"
15388 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15389 echo "$ac_t""yes" 1>&6
15390 have_setproctitle=yes
15392 echo "$ac_t""no" 1>&6
15394 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15395 echo "configure:15396: checking for setproctitle in -lutil" >&5
15396 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15397 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15398 echo $ac_n "(cached) $ac_c" 1>&6
15400 ac_save_LIBS="$LIBS"
15401 LIBS="-lutil $LIBS"
15402 cat > conftest.$ac_ext <<EOF
15403 #line 15404 "configure"
15404 #include "confdefs.h"
15405 /* Override any gcc2 internal prototype to avoid an error. */
15406 /* We use char because int might match the return type of a gcc2
15407 builtin and then its argument prototype would still apply. */
15408 char setproctitle();
15414 if { (eval echo configure:15415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15416 eval "ac_cv_lib_$ac_lib_var=yes"
15418 echo "configure: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15421 eval "ac_cv_lib_$ac_lib_var=no"
15424 LIBS="$ac_save_LIBS"
15427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15428 echo "$ac_t""yes" 1>&6
15429 have_setproctitle=yes
15430 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15432 echo "$ac_t""no" 1>&6
15433 have_setproctitle=no
15434 LIBOBJS="$LIBOBJS setproctitle.o"
15435 LIBSRCS="$LIBSRCS setproctitle.c"
15441 if test $have_setproctitle = yes ; then
15442 cat >> confdefs.h <<\EOF
15443 #define HAVE_SETPROCTITLE 1
15449 if test $ol_enable_slp != no ; then
15450 for ac_hdr in slp.h
15452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15454 echo "configure:15455: checking for $ac_hdr" >&5
15455 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15456 echo $ac_n "(cached) $ac_c" 1>&6
15458 cat > conftest.$ac_ext <<EOF
15459 #line 15460 "configure"
15460 #include "confdefs.h"
15463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15464 { (eval echo configure:15465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15466 if test -z "$ac_err"; then
15468 eval "ac_cv_header_$ac_safe=yes"
15471 echo "configure: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15474 eval "ac_cv_header_$ac_safe=no"
15478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15479 echo "$ac_t""yes" 1>&6
15480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15481 cat >> confdefs.h <<EOF
15482 #define $ac_tr_hdr 1
15486 echo "$ac_t""no" 1>&6
15491 if test $ac_cv_header_slp_h = yes ; then
15492 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
15493 echo "configure:15494: checking for SLPOpen in -lslp" >&5
15494 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
15495 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15496 echo $ac_n "(cached) $ac_c" 1>&6
15498 ac_save_LIBS="$LIBS"
15500 cat > conftest.$ac_ext <<EOF
15501 #line 15502 "configure"
15502 #include "confdefs.h"
15503 /* Override any gcc2 internal prototype to avoid an error. */
15504 /* We use char because int might match the return type of a gcc2
15505 builtin and then its argument prototype would still apply. */
15512 if { (eval echo configure:15513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15514 eval "ac_cv_lib_$ac_lib_var=yes"
15516 echo "configure: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15519 eval "ac_cv_lib_$ac_lib_var=no"
15522 LIBS="$ac_save_LIBS"
15525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15526 echo "$ac_t""yes" 1>&6
15529 echo "$ac_t""no" 1>&6
15533 if test $have_slp = yes ; then
15534 cat >> confdefs.h <<\EOF
15538 SLAPD_SLP_LIBS=-lslp
15541 elif test $ol_enable_slp = yes ; then
15542 { echo "configure: error: SLP not found" 1>&2; exit 1; }
15546 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15547 echo "configure:15548: checking for ANSI C header files" >&5
15548 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15549 echo $ac_n "(cached) $ac_c" 1>&6
15551 cat > conftest.$ac_ext <<EOF
15552 #line 15553 "configure"
15553 #include "confdefs.h"
15554 #include <stdlib.h>
15555 #include <stdarg.h>
15556 #include <string.h>
15559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15560 { (eval echo configure:15561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15562 if test -z "$ac_err"; then
15564 ac_cv_header_stdc=yes
15567 echo "configure: failed program was:" >&5
15568 cat conftest.$ac_ext >&5
15570 ac_cv_header_stdc=no
15574 if test $ac_cv_header_stdc = yes; then
15575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15576 cat > conftest.$ac_ext <<EOF
15577 #line 15578 "configure"
15578 #include "confdefs.h"
15579 #include <string.h>
15581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15582 egrep "memchr" >/dev/null 2>&1; then
15586 ac_cv_header_stdc=no
15592 if test $ac_cv_header_stdc = yes; then
15593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15594 cat > conftest.$ac_ext <<EOF
15595 #line 15596 "configure"
15596 #include "confdefs.h"
15597 #include <stdlib.h>
15599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15600 egrep "free" >/dev/null 2>&1; then
15604 ac_cv_header_stdc=no
15610 if test $ac_cv_header_stdc = yes; then
15611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15612 if test "$cross_compiling" = yes; then
15615 cat > conftest.$ac_ext <<EOF
15616 #line 15617 "configure"
15617 #include "confdefs.h"
15619 #if ((' ' & 0x0FF) == 0x020)
15620 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15621 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15623 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15624 || ('j' <= (c) && (c) <= 'r') \
15625 || ('s' <= (c) && (c) <= 'z'))
15626 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15628 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15629 int main () { int i; for (i = 0; i < 256; i++)
15630 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15634 if { (eval echo configure:15635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15638 echo "configure: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15641 ac_cv_header_stdc=no
15649 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15650 if test $ac_cv_header_stdc = yes; then
15651 cat >> confdefs.h <<\EOF
15652 #define STDC_HEADERS 1
15657 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15658 echo "configure:15659: checking for mode_t" >&5
15659 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15660 echo $ac_n "(cached) $ac_c" 1>&6
15662 cat > conftest.$ac_ext <<EOF
15663 #line 15664 "configure"
15664 #include "confdefs.h"
15665 #include <sys/types.h>
15667 #include <stdlib.h>
15668 #include <stddef.h>
15672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15673 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15675 eval "ac_cv_type_mode_t=yes"
15678 eval "ac_cv_type_mode_t=no"
15683 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15684 echo "$ac_t""yes" 1>&6
15686 echo "$ac_t""no" 1>&6
15687 cat >> confdefs.h <<EOF
15693 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15694 echo "configure:15695: checking for off_t" >&5
15695 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15696 echo $ac_n "(cached) $ac_c" 1>&6
15698 cat > conftest.$ac_ext <<EOF
15699 #line 15700 "configure"
15700 #include "confdefs.h"
15701 #include <sys/types.h>
15703 #include <stdlib.h>
15704 #include <stddef.h>
15708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15709 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15711 eval "ac_cv_type_off_t=yes"
15714 eval "ac_cv_type_off_t=no"
15719 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15720 echo "$ac_t""yes" 1>&6
15722 echo "$ac_t""no" 1>&6
15723 cat >> confdefs.h <<EOF
15729 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15730 echo "configure:15731: checking for pid_t" >&5
15731 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15732 echo $ac_n "(cached) $ac_c" 1>&6
15734 cat > conftest.$ac_ext <<EOF
15735 #line 15736 "configure"
15736 #include "confdefs.h"
15737 #include <sys/types.h>
15739 #include <stdlib.h>
15740 #include <stddef.h>
15744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15745 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15747 eval "ac_cv_type_pid_t=yes"
15750 eval "ac_cv_type_pid_t=no"
15755 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
15756 echo "$ac_t""yes" 1>&6
15758 echo "$ac_t""no" 1>&6
15759 cat >> confdefs.h <<EOF
15765 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
15766 echo "configure:15767: checking for ptrdiff_t" >&5
15767 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
15768 echo $ac_n "(cached) $ac_c" 1>&6
15770 cat > conftest.$ac_ext <<EOF
15771 #line 15772 "configure"
15772 #include "confdefs.h"
15773 #include <stddef.h>
15778 if { (eval echo configure:15779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15780 am_cv_type_ptrdiff_t=yes
15782 echo "configure: failed program was:" >&5
15783 cat conftest.$ac_ext >&5
15785 am_cv_type_ptrdiff_t=no
15790 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
15791 if test $am_cv_type_ptrdiff_t = yes; then
15792 cat >> confdefs.h <<\EOF
15793 #define HAVE_PTRDIFF_T 1
15798 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
15799 echo "configure:15800: checking return type of signal handlers" >&5
15800 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
15801 echo $ac_n "(cached) $ac_c" 1>&6
15803 cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15806 #include <sys/types.h>
15807 #include <signal.h>
15812 extern "C" void (*signal (int, void (*)(int)))(int);
15814 void (*signal ()) ();
15821 if { (eval echo configure:15822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15823 ac_cv_type_signal=void
15825 echo "configure: failed program was:" >&5
15826 cat conftest.$ac_ext >&5
15828 ac_cv_type_signal=int
15833 echo "$ac_t""$ac_cv_type_signal" 1>&6
15834 cat >> confdefs.h <<EOF
15835 #define RETSIGTYPE $ac_cv_type_signal
15839 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15840 echo "configure:15841: checking for size_t" >&5
15841 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
15842 echo $ac_n "(cached) $ac_c" 1>&6
15844 cat > conftest.$ac_ext <<EOF
15845 #line 15846 "configure"
15846 #include "confdefs.h"
15847 #include <sys/types.h>
15849 #include <stdlib.h>
15850 #include <stddef.h>
15854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15855 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15857 eval "ac_cv_type_size_t=yes"
15860 eval "ac_cv_type_size_t=no"
15865 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
15866 echo "$ac_t""yes" 1>&6
15868 echo "$ac_t""no" 1>&6
15869 cat >> confdefs.h <<EOF
15870 #define size_t unsigned
15876 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
15877 echo "configure:15878: checking for ssize_t" >&5
15878 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
15879 echo $ac_n "(cached) $ac_c" 1>&6
15881 cat > conftest.$ac_ext <<EOF
15882 #line 15883 "configure"
15883 #include "confdefs.h"
15884 #include <sys/types.h>
15886 #include <stdlib.h>
15887 #include <stddef.h>
15891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15892 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15894 eval "ac_cv_type_ssize_t=yes"
15897 eval "ac_cv_type_ssize_t=no"
15902 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
15903 echo "$ac_t""yes" 1>&6
15905 echo "$ac_t""no" 1>&6
15906 cat >> confdefs.h <<EOF
15907 #define ssize_t signed int
15912 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
15913 echo "configure:15914: checking for caddr_t" >&5
15914 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15917 cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15920 #include <sys/types.h>
15922 #include <stdlib.h>
15923 #include <stddef.h>
15927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15928 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15930 eval "ac_cv_type_caddr_t=yes"
15933 eval "ac_cv_type_caddr_t=no"
15938 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
15939 echo "$ac_t""yes" 1>&6
15941 echo "$ac_t""no" 1>&6
15942 cat >> confdefs.h <<EOF
15943 #define caddr_t char *
15949 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
15950 echo "configure:15951: checking for socklen_t" >&5
15951 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
15952 echo $ac_n "(cached) $ac_c" 1>&6
15954 cat > conftest.$ac_ext <<EOF
15955 #line 15956 "configure"
15956 #include "confdefs.h"
15958 #ifdef HAVE_SYS_TYPES_H
15959 #include <sys/types.h>
15961 #ifdef HAVE_SYS_SOCKET_H
15962 #include <sys/socket.h>
15969 if { (eval echo configure:15970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15971 ol_cv_type_socklen_t=yes
15973 echo "configure: failed program was:" >&5
15974 cat conftest.$ac_ext >&5
15976 ol_cv_type_socklen_t=no
15981 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
15982 if test $ol_cv_type_socklen_t = no; then
15983 cat >> confdefs.h <<\EOF
15984 #define socklen_t int
15989 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
15990 echo "configure:15991: checking for member st_blksize in aggregate type struct stat" >&5
15991 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
15992 echo $ac_n "(cached) $ac_c" 1>&6
15994 cat > conftest.$ac_ext <<EOF
15995 #line 15996 "configure"
15996 #include "confdefs.h"
15997 #include <sys/types.h>
15998 #include <sys/stat.h>
16000 struct stat foo; foo.st_blksize;
16003 if { (eval echo configure:16004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16005 ac_cv_c_struct_member_st_blksize=yes
16007 echo "configure: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
16010 ac_cv_c_struct_member_st_blksize=no
16015 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
16016 st_blksize="$ac_cv_c_struct_member_st_blksize"
16017 if test $ac_cv_c_struct_member_st_blksize = yes; then
16018 cat >> confdefs.h <<\EOF
16019 #define HAVE_ST_BLKSIZE 1
16024 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16025 echo "configure:16026: checking whether time.h and sys/time.h may both be included" >&5
16026 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
16027 echo $ac_n "(cached) $ac_c" 1>&6
16029 cat > conftest.$ac_ext <<EOF
16030 #line 16031 "configure"
16031 #include "confdefs.h"
16032 #include <sys/types.h>
16033 #include <sys/time.h>
16039 if { (eval echo configure:16040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16041 ac_cv_header_time=yes
16043 echo "configure: failed program was:" >&5
16044 cat conftest.$ac_ext >&5
16046 ac_cv_header_time=no
16051 echo "$ac_t""$ac_cv_header_time" 1>&6
16052 if test $ac_cv_header_time = yes; then
16053 cat >> confdefs.h <<\EOF
16054 #define TIME_WITH_SYS_TIME 1
16059 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16060 echo "configure:16061: checking whether struct tm is in sys/time.h or time.h" >&5
16061 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
16062 echo $ac_n "(cached) $ac_c" 1>&6
16064 cat > conftest.$ac_ext <<EOF
16065 #line 16066 "configure"
16066 #include "confdefs.h"
16067 #include <sys/types.h>
16070 struct tm *tp; tp->tm_sec;
16073 if { (eval echo configure:16074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16075 ac_cv_struct_tm=time.h
16077 echo "configure: failed program was:" >&5
16078 cat conftest.$ac_ext >&5
16080 ac_cv_struct_tm=sys/time.h
16085 echo "$ac_t""$ac_cv_struct_tm" 1>&6
16086 if test $ac_cv_struct_tm = sys/time.h; then
16087 cat >> confdefs.h <<\EOF
16088 #define TM_IN_SYS_TIME 1
16093 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16094 echo "configure:16095: checking for uid_t in sys/types.h" >&5
16095 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
16096 echo $ac_n "(cached) $ac_c" 1>&6
16098 cat > conftest.$ac_ext <<EOF
16099 #line 16100 "configure"
16100 #include "confdefs.h"
16101 #include <sys/types.h>
16103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16104 egrep "uid_t" >/dev/null 2>&1; then
16106 ac_cv_type_uid_t=yes
16109 ac_cv_type_uid_t=no
16115 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16116 if test $ac_cv_type_uid_t = no; then
16117 cat >> confdefs.h <<\EOF
16121 cat >> confdefs.h <<\EOF
16127 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
16128 echo "configure:16129: checking for sig_atomic_t" >&5
16129 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
16130 echo $ac_n "(cached) $ac_c" 1>&6
16132 cat > conftest.$ac_ext <<EOF
16133 #line 16134 "configure"
16134 #include "confdefs.h"
16135 #include <signal.h>
16137 sig_atomic_t atomic;
16140 if { (eval echo configure:16141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16142 ol_cv_type_sig_atomic_t=yes
16144 echo "configure: failed program was:" >&5
16145 cat conftest.$ac_ext >&5
16147 ol_cv_type_sig_atomic_t=no
16152 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
16153 if test $ol_cv_type_sig_atomic_t = no; then
16154 cat >> confdefs.h <<\EOF
16155 #define sig_atomic_t int
16162 # test for pw_gecos in struct passwd
16163 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
16164 echo "configure:16165: checking struct passwd for pw_gecos" >&5
16165 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
16166 echo $ac_n "(cached) $ac_c" 1>&6
16169 cat > conftest.$ac_ext <<EOF
16170 #line 16171 "configure"
16171 #include "confdefs.h"
16176 pwd.pw_gecos = pwd.pw_name;
16180 if { (eval echo configure:16181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16182 ol_cv_struct_passwd_pw_gecos=yes
16184 echo "configure: failed program was:" >&5
16185 cat conftest.$ac_ext >&5
16187 ol_cv_struct_passwd_pw_gecos=no
16192 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
16193 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
16194 cat >> confdefs.h <<\EOF
16195 #define HAVE_PW_GECOS 1
16200 # test for pw_passwd in struct passwd
16201 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
16202 echo "configure:16203: checking struct passwd for pw_passwd" >&5
16203 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
16204 echo $ac_n "(cached) $ac_c" 1>&6
16207 cat > conftest.$ac_ext <<EOF
16208 #line 16209 "configure"
16209 #include "confdefs.h"
16214 pwd.pw_passwd = pwd.pw_name;
16218 if { (eval echo configure:16219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16220 ol_cv_struct_passwd_pw_passwd=yes
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16225 ol_cv_struct_passwd_pw_passwd=no
16230 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
16231 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
16232 cat >> confdefs.h <<\EOF
16233 #define HAVE_PW_PASSWD 1
16239 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
16240 echo "configure:16241: checking if toupper() requires islower()" >&5
16241 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
16242 echo $ac_n "(cached) $ac_c" 1>&6
16245 if test "$cross_compiling" = yes; then
16246 ol_cv_c_upper_lower=safe
16248 cat > conftest.$ac_ext <<EOF
16249 #line 16250 "configure"
16250 #include "confdefs.h"
16255 if ('C' == toupper('C'))
16261 if { (eval echo configure:16262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16263 ol_cv_c_upper_lower=no
16265 echo "configure: failed program was:" >&5
16266 cat conftest.$ac_ext >&5
16268 ol_cv_c_upper_lower=yes
16275 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
16276 if test $ol_cv_c_upper_lower != no ; then
16277 cat >> confdefs.h <<\EOF
16278 #define C_UPPER_LOWER 1
16283 echo $ac_n "checking for working const""... $ac_c" 1>&6
16284 echo "configure:16285: checking for working const" >&5
16285 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
16286 echo $ac_n "(cached) $ac_c" 1>&6
16288 cat > conftest.$ac_ext <<EOF
16289 #line 16290 "configure"
16290 #include "confdefs.h"
16294 /* Ultrix mips cc rejects this. */
16295 typedef int charset[2]; const charset x;
16296 /* SunOS 4.1.1 cc rejects this. */
16297 char const *const *ccp;
16299 /* NEC SVR4.0.2 mips cc rejects this. */
16300 struct point {int x, y;};
16301 static struct point const zero = {0,0};
16302 /* AIX XL C 1.02.0.0 rejects this.
16303 It does not let you subtract one const X* pointer from another in an arm
16304 of an if-expression whose if-part is not a constant expression */
16305 const char *g = "string";
16306 ccp = &g + (g ? g-g : 0);
16307 /* HPUX 7.0 cc rejects these. */
16310 ccp = (char const *const *) p;
16311 { /* SCO 3.2v4 cc rejects this. */
16313 char const *s = 0 ? (char *) 0 : (char const *) 0;
16317 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16318 int x[] = {25, 17};
16319 const int *foo = &x[0];
16322 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16323 typedef const int *iptr;
16327 { /* AIX XL C 1.02.0.0 rejects this saying
16328 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16329 struct s { int j; const int *ap[3]; };
16330 struct s *b; b->j = 5;
16332 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16333 const int foo = 10;
16338 if { (eval echo configure:16339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16342 echo "configure: failed program was:" >&5
16343 cat conftest.$ac_ext >&5
16350 echo "$ac_t""$ac_cv_c_const" 1>&6
16351 if test $ac_cv_c_const = no; then
16352 cat >> confdefs.h <<\EOF
16358 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16359 echo "configure:16360: checking if compiler understands volatile" >&5
16360 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16361 echo $ac_n "(cached) $ac_c" 1>&6
16363 cat > conftest.$ac_ext <<EOF
16364 #line 16365 "configure"
16365 #include "confdefs.h"
16368 volatile int a; int * volatile b = x ? &y : &z;
16369 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16373 if { (eval echo configure:16374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16375 ol_cv_c_volatile=yes
16377 echo "configure: failed program was:" >&5
16378 cat conftest.$ac_ext >&5
16380 ol_cv_c_volatile=no
16385 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16386 if test $ol_cv_c_volatile = yes; then
16389 cat >> confdefs.h <<\EOF
16396 if test $cross_compiling = yes ; then
16397 cat >> confdefs.h <<\EOF
16398 #define CROSS_COMPILING 1
16402 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16403 echo "configure:16404: checking whether byte ordering is bigendian" >&5
16404 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16405 echo $ac_n "(cached) $ac_c" 1>&6
16407 ac_cv_c_bigendian=unknown
16408 # See if sys/param.h defines the BYTE_ORDER macro.
16409 cat > conftest.$ac_ext <<EOF
16410 #line 16411 "configure"
16411 #include "confdefs.h"
16412 #include <sys/types.h>
16413 #include <sys/param.h>
16416 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16417 bogus endian macros
16421 if { (eval echo configure:16422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16423 # It does; now see whether it defined to BIG_ENDIAN or not.
16424 cat > conftest.$ac_ext <<EOF
16425 #line 16426 "configure"
16426 #include "confdefs.h"
16427 #include <sys/types.h>
16428 #include <sys/param.h>
16431 #if BYTE_ORDER != BIG_ENDIAN
16436 if { (eval echo configure:16437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16438 ac_cv_c_bigendian=yes
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16443 ac_cv_c_bigendian=no
16447 echo "configure: failed program was:" >&5
16448 cat conftest.$ac_ext >&5
16451 if test $ac_cv_c_bigendian = unknown; then
16452 if test "$cross_compiling" = yes; then
16453 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16455 cat > conftest.$ac_ext <<EOF
16456 #line 16457 "configure"
16457 #include "confdefs.h"
16459 /* Are we little or big endian? From Harbison&Steele. */
16463 char c[sizeof (long)];
16466 exit (u.c[sizeof (long) - 1] == 1);
16469 if { (eval echo configure:16470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16471 ac_cv_c_bigendian=no
16473 echo "configure: failed program was:" >&5
16474 cat conftest.$ac_ext >&5
16476 ac_cv_c_bigendian=yes
16484 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16485 if test $ac_cv_c_bigendian = yes; then
16486 cat >> confdefs.h <<\EOF
16487 #define WORDS_BIGENDIAN 1
16494 echo $ac_n "checking size of short""... $ac_c" 1>&6
16495 echo "configure:16496: checking size of short" >&5
16496 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16497 echo $ac_n "(cached) $ac_c" 1>&6
16499 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16500 cat > conftest.$ac_ext <<EOF
16501 #line 16502 "configure"
16502 #include "confdefs.h"
16503 #include "confdefs.h"
16504 #include <sys/types.h>
16508 switch (0) case 0: case (sizeof (short) == $ac_size):;
16511 if { (eval echo configure:16512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16513 ac_cv_sizeof_short=$ac_size
16515 echo "configure: failed program was:" >&5
16516 cat conftest.$ac_ext >&5
16519 if test x$ac_cv_sizeof_short != x ; then break; fi
16524 if test x$ac_cv_sizeof_short = x ; then
16525 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16527 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16528 cat >> confdefs.h <<EOF
16529 #define SIZEOF_SHORT $ac_cv_sizeof_short
16533 echo $ac_n "checking size of int""... $ac_c" 1>&6
16534 echo "configure:16535: checking size of int" >&5
16535 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16536 echo $ac_n "(cached) $ac_c" 1>&6
16538 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16539 cat > conftest.$ac_ext <<EOF
16540 #line 16541 "configure"
16541 #include "confdefs.h"
16542 #include "confdefs.h"
16543 #include <sys/types.h>
16547 switch (0) case 0: case (sizeof (int) == $ac_size):;
16550 if { (eval echo configure:16551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16552 ac_cv_sizeof_int=$ac_size
16554 echo "configure: failed program was:" >&5
16555 cat conftest.$ac_ext >&5
16558 if test x$ac_cv_sizeof_int != x ; then break; fi
16563 if test x$ac_cv_sizeof_int = x ; then
16564 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16566 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16567 cat >> confdefs.h <<EOF
16568 #define SIZEOF_INT $ac_cv_sizeof_int
16572 echo $ac_n "checking size of long""... $ac_c" 1>&6
16573 echo "configure:16574: checking size of long" >&5
16574 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16575 echo $ac_n "(cached) $ac_c" 1>&6
16577 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16578 cat > conftest.$ac_ext <<EOF
16579 #line 16580 "configure"
16580 #include "confdefs.h"
16581 #include "confdefs.h"
16582 #include <sys/types.h>
16586 switch (0) case 0: case (sizeof (long) == $ac_size):;
16589 if { (eval echo configure:16590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16591 ac_cv_sizeof_long=$ac_size
16593 echo "configure: failed program was:" >&5
16594 cat conftest.$ac_ext >&5
16597 if test x$ac_cv_sizeof_long != x ; then break; fi
16602 if test x$ac_cv_sizeof_long = x ; then
16603 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16605 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16606 cat >> confdefs.h <<EOF
16607 #define SIZEOF_LONG $ac_cv_sizeof_long
16612 if test "$ac_cv_sizeof_int" -lt 4 ; then
16613 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16615 cat >> confdefs.h <<\EOF
16616 #define LBER_INT_T long
16620 cat >> confdefs.h <<\EOF
16621 #define LBER_INT_T int
16626 cat >> confdefs.h <<\EOF
16627 #define LBER_LEN_T long
16630 cat >> confdefs.h <<\EOF
16631 #define LBER_SOCKET_T int
16634 cat >> confdefs.h <<\EOF
16635 #define LBER_TAG_T long
16639 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16640 echo "configure:16641: checking for 8-bit clean memcmp" >&5
16641 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16642 echo $ac_n "(cached) $ac_c" 1>&6
16644 if test "$cross_compiling" = yes; then
16645 ac_cv_func_memcmp_clean=no
16647 cat > conftest.$ac_ext <<EOF
16648 #line 16649 "configure"
16649 #include "confdefs.h"
16653 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16654 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16658 if { (eval echo configure:16659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16660 ac_cv_func_memcmp_clean=yes
16662 echo "configure: failed program was:" >&5
16663 cat conftest.$ac_ext >&5
16665 ac_cv_func_memcmp_clean=no
16672 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16673 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16675 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16676 echo "configure:16677: checking for strftime" >&5
16677 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16678 echo $ac_n "(cached) $ac_c" 1>&6
16680 cat > conftest.$ac_ext <<EOF
16681 #line 16682 "configure"
16682 #include "confdefs.h"
16683 /* System header to define __stub macros and hopefully few prototypes,
16684 which can conflict with char strftime(); below. */
16685 #include <assert.h>
16686 /* Override any gcc2 internal prototype to avoid an error. */
16687 /* We use char because int might match the return type of a gcc2
16688 builtin and then its argument prototype would still apply. */
16694 /* The GNU C library defines this for functions which it implements
16695 to always fail with ENOSYS. Some functions are actually named
16696 something starting with __ and the normal name is an alias. */
16697 #if defined (__stub_strftime) || defined (__stub___strftime)
16705 if { (eval echo configure:16706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16707 eval "ac_cv_func_strftime=yes"
16709 echo "configure: failed program was:" >&5
16710 cat conftest.$ac_ext >&5
16712 eval "ac_cv_func_strftime=no"
16717 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16718 echo "$ac_t""yes" 1>&6
16719 cat >> confdefs.h <<\EOF
16720 #define HAVE_STRFTIME 1
16724 echo "$ac_t""no" 1>&6
16725 # strftime is in -lintl on SCO UNIX.
16726 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16727 echo "configure:16728: checking for strftime in -lintl" >&5
16728 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16730 echo $ac_n "(cached) $ac_c" 1>&6
16732 ac_save_LIBS="$LIBS"
16733 LIBS="-lintl $LIBS"
16734 cat > conftest.$ac_ext <<EOF
16735 #line 16736 "configure"
16736 #include "confdefs.h"
16737 /* Override any gcc2 internal prototype to avoid an error. */
16738 /* We use char because int might match the return type of a gcc2
16739 builtin and then its argument prototype would still apply. */
16746 if { (eval echo configure:16747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16748 eval "ac_cv_lib_$ac_lib_var=yes"
16750 echo "configure: failed program was:" >&5
16751 cat conftest.$ac_ext >&5
16753 eval "ac_cv_lib_$ac_lib_var=no"
16756 LIBS="$ac_save_LIBS"
16759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16760 echo "$ac_t""yes" 1>&6
16761 cat >> confdefs.h <<\EOF
16762 #define HAVE_STRFTIME 1
16765 LIBS="-lintl $LIBS"
16767 echo "$ac_t""no" 1>&6
16773 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
16774 echo "configure:16775: checking for inet_aton()" >&5
16775 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
16776 echo $ac_n "(cached) $ac_c" 1>&6
16778 cat > conftest.$ac_ext <<EOF
16779 #line 16780 "configure"
16780 #include "confdefs.h"
16782 #ifdef HAVE_SYS_TYPES_H
16783 # include <sys/types.h>
16785 #ifdef HAVE_SYS_SOCKET_H
16786 # include <sys/socket.h>
16787 # ifdef HAVE_SYS_SELECT_H
16788 # include <sys/select.h>
16790 # include <netinet/in.h>
16791 # ifdef HAVE_ARPA_INET_H
16792 # include <arpa/inet.h>
16798 int rc = inet_aton( "255.255.255.255", &in );
16801 if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16803 ol_cv_func_inet_aton=yes
16805 echo "configure: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16808 ol_cv_func_inet_aton=no
16813 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
16814 if test $ol_cv_func_inet_aton != no; then
16815 cat >> confdefs.h <<\EOF
16816 #define HAVE_INET_ATON 1
16822 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
16823 echo "configure:16824: checking for _spawnlp" >&5
16824 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
16825 echo $ac_n "(cached) $ac_c" 1>&6
16827 cat > conftest.$ac_ext <<EOF
16828 #line 16829 "configure"
16829 #include "confdefs.h"
16830 /* System header to define __stub macros and hopefully few prototypes,
16831 which can conflict with char _spawnlp(); below. */
16832 #include <assert.h>
16833 /* Override any gcc2 internal prototype to avoid an error. */
16834 /* We use char because int might match the return type of a gcc2
16835 builtin and then its argument prototype would still apply. */
16841 /* The GNU C library defines this for functions which it implements
16842 to always fail with ENOSYS. Some functions are actually named
16843 something starting with __ and the normal name is an alias. */
16844 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
16852 if { (eval echo configure:16853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16854 eval "ac_cv_func__spawnlp=yes"
16856 echo "configure: failed program was:" >&5
16857 cat conftest.$ac_ext >&5
16859 eval "ac_cv_func__spawnlp=no"
16864 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
16865 echo "$ac_t""yes" 1>&6
16866 cat >> confdefs.h <<\EOF
16867 #define HAVE_SPAWNLP 1
16871 echo "$ac_t""no" 1>&6
16875 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
16876 echo "configure:16877: checking for _snprintf" >&5
16877 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
16878 echo $ac_n "(cached) $ac_c" 1>&6
16880 cat > conftest.$ac_ext <<EOF
16881 #line 16882 "configure"
16882 #include "confdefs.h"
16883 /* System header to define __stub macros and hopefully few prototypes,
16884 which can conflict with char _snprintf(); below. */
16885 #include <assert.h>
16886 /* Override any gcc2 internal prototype to avoid an error. */
16887 /* We use char because int might match the return type of a gcc2
16888 builtin and then its argument prototype would still apply. */
16894 /* The GNU C library defines this for functions which it implements
16895 to always fail with ENOSYS. Some functions are actually named
16896 something starting with __ and the normal name is an alias. */
16897 #if defined (__stub__snprintf) || defined (__stub____snprintf)
16905 if { (eval echo configure:16906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16907 eval "ac_cv_func__snprintf=yes"
16909 echo "configure: failed program was:" >&5
16910 cat conftest.$ac_ext >&5
16912 eval "ac_cv_func__snprintf=no"
16917 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
16918 echo "$ac_t""yes" 1>&6
16919 ac_cv_func_snprintf=yes
16920 cat >> confdefs.h <<\EOF
16921 #define snprintf _snprintf
16926 echo "$ac_t""no" 1>&6
16930 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
16931 echo "configure:16932: checking for _vsnprintf" >&5
16932 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
16933 echo $ac_n "(cached) $ac_c" 1>&6
16935 cat > conftest.$ac_ext <<EOF
16936 #line 16937 "configure"
16937 #include "confdefs.h"
16938 /* System header to define __stub macros and hopefully few prototypes,
16939 which can conflict with char _vsnprintf(); below. */
16940 #include <assert.h>
16941 /* Override any gcc2 internal prototype to avoid an error. */
16942 /* We use char because int might match the return type of a gcc2
16943 builtin and then its argument prototype would still apply. */
16949 /* The GNU C library defines this for functions which it implements
16950 to always fail with ENOSYS. Some functions are actually named
16951 something starting with __ and the normal name is an alias. */
16952 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
16960 if { (eval echo configure:16961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16962 eval "ac_cv_func__vsnprintf=yes"
16964 echo "configure: failed program was:" >&5
16965 cat conftest.$ac_ext >&5
16967 eval "ac_cv_func__vsnprintf=no"
16972 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
16973 echo "$ac_t""yes" 1>&6
16974 ac_cv_func_vsnprintf=yes
16975 cat >> confdefs.h <<\EOF
16976 #define vsnprintf _vsnprintf
16981 echo "$ac_t""no" 1>&6
16985 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16986 echo "configure:16987: checking for vprintf" >&5
16987 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
16988 echo $ac_n "(cached) $ac_c" 1>&6
16990 cat > conftest.$ac_ext <<EOF
16991 #line 16992 "configure"
16992 #include "confdefs.h"
16993 /* System header to define __stub macros and hopefully few prototypes,
16994 which can conflict with char vprintf(); below. */
16995 #include <assert.h>
16996 /* Override any gcc2 internal prototype to avoid an error. */
16997 /* We use char because int might match the return type of a gcc2
16998 builtin and then its argument prototype would still apply. */
17004 /* The GNU C library defines this for functions which it implements
17005 to always fail with ENOSYS. Some functions are actually named
17006 something starting with __ and the normal name is an alias. */
17007 #if defined (__stub_vprintf) || defined (__stub___vprintf)
17015 if { (eval echo configure:17016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17017 eval "ac_cv_func_vprintf=yes"
17019 echo "configure: failed program was:" >&5
17020 cat conftest.$ac_ext >&5
17022 eval "ac_cv_func_vprintf=no"
17027 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
17028 echo "$ac_t""yes" 1>&6
17029 cat >> confdefs.h <<\EOF
17030 #define HAVE_VPRINTF 1
17034 echo "$ac_t""no" 1>&6
17037 if test "$ac_cv_func_vprintf" != yes; then
17038 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17039 echo "configure:17040: checking for _doprnt" >&5
17040 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
17041 echo $ac_n "(cached) $ac_c" 1>&6
17043 cat > conftest.$ac_ext <<EOF
17044 #line 17045 "configure"
17045 #include "confdefs.h"
17046 /* System header to define __stub macros and hopefully few prototypes,
17047 which can conflict with char _doprnt(); below. */
17048 #include <assert.h>
17049 /* Override any gcc2 internal prototype to avoid an error. */
17050 /* We use char because int might match the return type of a gcc2
17051 builtin and then its argument prototype would still apply. */
17057 /* The GNU C library defines this for functions which it implements
17058 to always fail with ENOSYS. Some functions are actually named
17059 something starting with __ and the normal name is an alias. */
17060 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17068 if { (eval echo configure:17069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17070 eval "ac_cv_func__doprnt=yes"
17072 echo "configure: failed program was:" >&5
17073 cat conftest.$ac_ext >&5
17075 eval "ac_cv_func__doprnt=no"
17080 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
17081 echo "$ac_t""yes" 1>&6
17082 cat >> confdefs.h <<\EOF
17083 #define HAVE_DOPRNT 1
17087 echo "$ac_t""no" 1>&6
17093 if test $ac_cv_func_vprintf = yes ; then
17094 for ac_func in vsnprintf vsprintf
17096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17097 echo "configure:17098: checking for $ac_func" >&5
17098 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17099 echo $ac_n "(cached) $ac_c" 1>&6
17101 cat > conftest.$ac_ext <<EOF
17102 #line 17103 "configure"
17103 #include "confdefs.h"
17104 /* System header to define __stub macros and hopefully few prototypes,
17105 which can conflict with char $ac_func(); below. */
17106 #include <assert.h>
17107 /* Override any gcc2 internal prototype to avoid an error. */
17108 /* We use char because int might match the return type of a gcc2
17109 builtin and then its argument prototype would still apply. */
17115 /* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17126 if { (eval echo configure:17127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17128 eval "ac_cv_func_$ac_func=yes"
17130 echo "configure: failed program was:" >&5
17131 cat conftest.$ac_ext >&5
17133 eval "ac_cv_func_$ac_func=no"
17138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17139 echo "$ac_t""yes" 1>&6
17140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17141 cat >> confdefs.h <<EOF
17142 #define $ac_tr_func 1
17146 echo "$ac_t""no" 1>&6
17203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17204 echo "configure:17205: checking for $ac_func" >&5
17205 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
17208 cat > conftest.$ac_ext <<EOF
17209 #line 17210 "configure"
17210 #include "confdefs.h"
17211 /* System header to define __stub macros and hopefully few prototypes,
17212 which can conflict with char $ac_func(); below. */
17213 #include <assert.h>
17214 /* Override any gcc2 internal prototype to avoid an error. */
17215 /* We use char because int might match the return type of a gcc2
17216 builtin and then its argument prototype would still apply. */
17222 /* The GNU C library defines this for functions which it implements
17223 to always fail with ENOSYS. Some functions are actually named
17224 something starting with __ and the normal name is an alias. */
17225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17233 if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17235 eval "ac_cv_func_$ac_func=yes"
17237 echo "configure: failed program was:" >&5
17238 cat conftest.$ac_ext >&5
17240 eval "ac_cv_func_$ac_func=no"
17245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17246 echo "$ac_t""yes" 1>&6
17247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17248 cat >> confdefs.h <<EOF
17249 #define $ac_tr_func 1
17253 echo "$ac_t""no" 1>&6
17258 for ac_func in getopt
17260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17261 echo "configure:17262: checking for $ac_func" >&5
17262 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17263 echo $ac_n "(cached) $ac_c" 1>&6
17265 cat > conftest.$ac_ext <<EOF
17266 #line 17267 "configure"
17267 #include "confdefs.h"
17268 /* System header to define __stub macros and hopefully few prototypes,
17269 which can conflict with char $ac_func(); below. */
17270 #include <assert.h>
17271 /* Override any gcc2 internal prototype to avoid an error. */
17272 /* We use char because int might match the return type of a gcc2
17273 builtin and then its argument prototype would still apply. */
17279 /* The GNU C library defines this for functions which it implements
17280 to always fail with ENOSYS. Some functions are actually named
17281 something starting with __ and the normal name is an alias. */
17282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17290 if { (eval echo configure:17291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17292 eval "ac_cv_func_$ac_func=yes"
17294 echo "configure: failed program was:" >&5
17295 cat conftest.$ac_ext >&5
17297 eval "ac_cv_func_$ac_func=no"
17302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17303 echo "$ac_t""yes" 1>&6
17304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17305 cat >> confdefs.h <<EOF
17306 #define $ac_tr_func 1
17310 echo "$ac_t""no" 1>&6
17311 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17317 if test "$ac_cv_func_getopt" != yes; then
17318 LIBSRCS="$LIBSRCS getopt.c"
17321 # Check Configuration
17322 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17323 echo "configure:17324: checking declaration of sys_errlist" >&5
17324 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17325 echo $ac_n "(cached) $ac_c" 1>&6
17328 cat > conftest.$ac_ext <<EOF
17329 #line 17330 "configure"
17330 #include "confdefs.h"
17333 #include <sys/types.h>
17336 #include <stdlib.h>
17339 char *c = (char *) *sys_errlist
17342 if { (eval echo configure:17343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17344 ol_cv_dcl_sys_errlist=yes
17345 ol_cv_have_sys_errlist=yes
17347 echo "configure: failed program was:" >&5
17348 cat conftest.$ac_ext >&5
17350 ol_cv_dcl_sys_errlist=no
17355 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17357 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17358 if test $ol_cv_dcl_sys_errlist = no ; then
17359 cat >> confdefs.h <<\EOF
17360 #define DECL_SYS_ERRLIST 1
17364 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17365 echo "configure:17366: checking existence of sys_errlist" >&5
17366 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17370 cat > conftest.$ac_ext <<EOF
17371 #line 17372 "configure"
17372 #include "confdefs.h"
17375 char *c = (char *) *sys_errlist
17378 if { (eval echo configure:17379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17380 ol_cv_have_sys_errlist=yes
17382 echo "configure: failed program was:" >&5
17383 cat conftest.$ac_ext >&5
17385 ol_cv_have_sys_errlist=no
17390 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17392 if test $ol_cv_have_sys_errlist = yes ; then
17393 cat >> confdefs.h <<\EOF
17394 #define HAVE_SYS_ERRLIST 1
17401 if test "$ol_enable_debug" != no ; then
17402 cat >> confdefs.h <<\EOF
17403 #define LDAP_DEBUG 1
17407 if test "$ol_enable_syslog" = yes ; then
17408 cat >> confdefs.h <<\EOF
17409 #define LDAP_SYSLOG 1
17413 if test "$ol_enable_cache" = no ; then
17414 cat >> confdefs.h <<\EOF
17415 #define LDAP_NOCACHE 1
17419 if test "$ol_link_kbind" != no ; then
17420 cat >> confdefs.h <<\EOF
17421 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17425 if test "$ol_enable_proctitle" != no ; then
17426 cat >> confdefs.h <<\EOF
17427 #define LDAP_PROCTITLE 1
17431 if test "$ol_enable_referrals" != no ; then
17432 cat >> confdefs.h <<\EOF
17433 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17437 if test "$ol_enable_local" != no; then
17438 cat >> confdefs.h <<\EOF
17439 #define LDAP_PF_LOCAL 1
17443 if test "$ol_link_ipv6" != no; then
17444 cat >> confdefs.h <<\EOF
17445 #define LDAP_PF_INET6 1
17449 if test "$ol_enable_cleartext" != no ; then
17450 cat >> confdefs.h <<\EOF
17451 #define SLAPD_CLEARTEXT 1
17455 if test "$ol_enable_crypt" != no ; then
17456 cat >> confdefs.h <<\EOF
17457 #define SLAPD_CRYPT 1
17461 if test "$ol_link_kpasswd" != no ; then
17462 cat >> confdefs.h <<\EOF
17463 #define SLAPD_KPASSWD 1
17467 if test "$ol_link_spasswd" != no ; then
17468 cat >> confdefs.h <<\EOF
17469 #define SLAPD_SPASSWD 1
17473 if test "$ol_enable_phonetic" != no ; then
17474 cat >> confdefs.h <<\EOF
17475 #define SLAPD_PHONETIC 1
17479 if test "$ol_enable_rlookups" != no ; then
17480 cat >> confdefs.h <<\EOF
17481 #define SLAPD_RLOOKUPS 1
17485 if test "$ol_enable_aci" != no ; then
17486 cat >> confdefs.h <<\EOF
17487 #define SLAPD_ACI_ENABLED 1
17492 if test "$ol_link_modules" != no ; then
17493 cat >> confdefs.h <<\EOF
17494 #define SLAPD_MODULES 1
17498 SLAPD_MODULES_LDFLAGS="-dlopen self"
17501 if test "$ol_enable_bdb" != no ; then
17502 cat >> confdefs.h <<\EOF
17503 #define SLAPD_BDB 1
17508 if test "$ol_with_bdb_module" != static ; then
17509 cat >> confdefs.h <<\EOF
17510 #define SLAPD_BDB_DYNAMIC 1
17514 BUILD_BDB_DYNAMIC=shared
17515 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
17519 if test "$ol_link_dnssrv" != no ; then
17520 cat >> confdefs.h <<\EOF
17521 #define SLAPD_DNSSRV 1
17526 if test "$ol_with_dnssrv_module" != static ; then
17527 cat >> confdefs.h <<\EOF
17528 #define SLAPD_DNSSRV_DYNAMIC 1
17532 BUILD_DNSSRV_DYNAMIC=shared
17533 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17537 if test "$ol_enable_ldap" != no ; then
17538 cat >> confdefs.h <<\EOF
17539 #define SLAPD_LDAP 1
17544 if test "$ol_with_ldap_module" != static ; then
17545 cat >> confdefs.h <<\EOF
17546 #define SLAPD_LDAP_DYNAMIC 1
17550 BUILD_LDAP_DYNAMIC=shared
17551 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17555 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
17556 cat >> confdefs.h <<\EOF
17557 #define SLAPD_LDBM 1
17563 if test "$ol_with_ldbm_module" != static ; then
17564 cat >> confdefs.h <<\EOF
17565 #define SLAPD_LDBM_DYNAMIC 1
17569 BUILD_LDBM_DYNAMIC=shared
17570 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17574 if test "$ol_enable_meta" != no ; then
17575 if test "$ol_enable_ldap" = no ; then
17576 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
17578 if test "$ol_enable_rewrite" = no ; then
17579 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
17581 cat >> confdefs.h <<\EOF
17582 #define SLAPD_META 1
17587 if test "$ol_with_meta_module" != static ; then
17588 cat >> confdefs.h <<\EOF
17589 #define SLAPD_META_DYNAMIC 1
17593 BUILD_META_DYNAMIC=shared
17594 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
17598 if test "$ol_enable_monitor" != no ; then
17599 cat >> confdefs.h <<\EOF
17600 #define SLAPD_MONITOR 1
17605 if test "$ol_with_monitor_module" != static ; then
17606 cat >> confdefs.h <<\EOF
17607 #define SLAPD_MONITOR_DYNAMIC 1
17611 BUILD_MONITOR_DYNAMIC=shared
17612 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
17616 if test "$ol_enable_passwd" != no ; then
17617 cat >> confdefs.h <<\EOF
17618 #define SLAPD_PASSWD 1
17623 if test "$ol_with_passwd_module" != static ; then
17624 cat >> confdefs.h <<\EOF
17625 #define SLAPD_PASSWD_DYNAMIC 1
17629 BUILD_PASSWD_DYNAMIC=shared
17630 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17634 if test "$ol_link_perl" != no ; then
17635 cat >> confdefs.h <<\EOF
17636 #define SLAPD_PERL 1
17641 if test "$ol_with_perl_module" != static ; then
17642 cat >> confdefs.h <<\EOF
17643 #define SLAPD_PERL_DYNAMIC 1
17647 BUILD_PERL_DYNAMIC=shared
17648 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
17652 if test "$ol_enable_shell" != no ; then
17653 cat >> confdefs.h <<\EOF
17654 #define SLAPD_SHELL 1
17659 if test "$ol_with_shell_module" != static ; then
17660 cat >> confdefs.h <<\EOF
17661 #define SLAPD_SHELL_DYNAMIC 1
17665 BUILD_SHELL_DYNAMIC=shared
17666 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17670 if test "$ol_enable_tcl" != no ; then
17671 cat >> confdefs.h <<\EOF
17672 #define SLAPD_TCL 1
17677 if test "$ol_with_tcl_module" != static; then
17678 cat >> confdefs.h <<\EOF
17679 #define SLAPD_TCL_DYNAMIC 1
17683 BUILD_TCL_DYNAMIC=shared
17684 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
17688 if test "$ol_link_sql" != no ; then
17689 cat >> confdefs.h <<\EOF
17690 #define SLAPD_SQL 1
17695 if test "$ol_with_sql_module" != static; then
17696 cat >> confdefs.h <<\EOF
17697 #define SLAPD_SQL_DYNAMIC 1
17701 BUILD_SQL_DYNAMIC=shared
17702 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17706 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17707 $BUILD_SLAPD = yes ; then
17711 if test "$ol_enable_rewrite" != no ; then
17712 cat >> confdefs.h <<\EOF
17713 #define ENABLE_REWRITE 1
17717 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
17721 if test "$LINK_BINS_DYNAMIC" = yes; then
17723 LT_LIB_LINKAGE=shared
17726 LT_LIB_LINKAGE=static
17729 if test "$ac_cv_mingw32" = yes ; then
17808 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17810 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17811 # Let make expand exec_prefix.
17812 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17814 # Any assignment to VPATH causes Sun make to only execute
17815 # the first set of double-colon rules, so remove it if not needed.
17816 # If there is a colon in the path, we need to keep it.
17817 if test "x$srcdir" = x.; then
17818 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17821 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17823 DEFS=-DHAVE_CONFIG_H
17825 # Without the "./", some shells look in PATH for config.status.
17826 : ${CONFIG_STATUS=./config.status}
17828 echo creating $CONFIG_STATUS
17829 rm -f $CONFIG_STATUS
17830 cat > $CONFIG_STATUS <<EOF
17832 # Generated automatically by configure.
17833 # Run this file to recreate the current configuration.
17834 # This directory was configured as follows,
17835 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17837 # $0 $ac_configure_args
17839 # Compiler output produced by configure, useful for debugging
17840 # configure, is in ./config.log if it exists.
17842 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17845 case "\$ac_option" in
17846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17847 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17848 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17849 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17850 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
17852 -help | --help | --hel | --he | --h)
17853 echo "\$ac_cs_usage"; exit 0 ;;
17854 *) echo "\$ac_cs_usage"; exit 1 ;;
17858 ac_given_srcdir=$srcdir
17859 ac_given_INSTALL="$INSTALL"
17861 trap 'rm -fr `echo "\
17862 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17863 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17864 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17865 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17866 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17867 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17868 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17869 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17870 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17871 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17872 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17873 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17874 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17875 include/Makefile:build/top.mk:include/Makefile.in \
17876 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17877 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17878 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17879 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17880 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17881 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17882 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17883 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
17884 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17885 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
17886 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17887 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17888 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
17889 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17890 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17891 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17892 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
17893 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
17894 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17895 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
17896 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17897 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17898 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
17899 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17900 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17901 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17902 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17903 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17904 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17905 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17906 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17908 cat >> $CONFIG_STATUS <<EOF
17910 # Protect against being on the right side of a sed subst in config.status.
17911 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17912 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17916 s%@CFLAGS@%$CFLAGS%g
17917 s%@CPPFLAGS@%$CPPFLAGS%g
17918 s%@CXXFLAGS@%$CXXFLAGS%g
17919 s%@FFLAGS@%$FFLAGS%g
17921 s%@LDFLAGS@%$LDFLAGS%g
17923 s%@exec_prefix@%$exec_prefix%g
17924 s%@prefix@%$prefix%g
17925 s%@program_transform_name@%$program_transform_name%g
17926 s%@bindir@%$bindir%g
17927 s%@sbindir@%$sbindir%g
17928 s%@libexecdir@%$libexecdir%g
17929 s%@datadir@%$datadir%g
17930 s%@sysconfdir@%$sysconfdir%g
17931 s%@sharedstatedir@%$sharedstatedir%g
17932 s%@localstatedir@%$localstatedir%g
17933 s%@libdir@%$libdir%g
17934 s%@includedir@%$includedir%g
17935 s%@oldincludedir@%$oldincludedir%g
17936 s%@infodir@%$infodir%g
17937 s%@mandir@%$mandir%g
17939 s%@host_alias@%$host_alias%g
17940 s%@host_cpu@%$host_cpu%g
17941 s%@host_vendor@%$host_vendor%g
17942 s%@host_os@%$host_os%g
17943 s%@target@%$target%g
17944 s%@target_alias@%$target_alias%g
17945 s%@target_cpu@%$target_cpu%g
17946 s%@target_vendor@%$target_vendor%g
17947 s%@target_os@%$target_os%g
17949 s%@build_alias@%$build_alias%g
17950 s%@build_cpu@%$build_cpu%g
17951 s%@build_vendor@%$build_vendor%g
17952 s%@build_os@%$build_os%g
17953 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17954 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17955 s%@INSTALL_DATA@%$INSTALL_DATA%g
17956 s%@PACKAGE@%$PACKAGE%g
17957 s%@VERSION@%$VERSION%g
17958 s%@ACLOCAL@%$ACLOCAL%g
17959 s%@AUTOCONF@%$AUTOCONF%g
17960 s%@AUTOMAKE@%$AUTOMAKE%g
17961 s%@AUTOHEADER@%$AUTOHEADER%g
17962 s%@MAKEINFO@%$MAKEINFO%g
17963 s%@install_sh@%$install_sh%g
17966 s%@AMTARFLAGS@%$AMTARFLAGS%g
17967 s%@SET_MAKE@%$SET_MAKE%g
17968 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
17969 s%@top_builddir@%$top_builddir%g
17970 s%@ldap_subdir@%$ldap_subdir%g
17972 s%@RANLIB@%$RANLIB%g
17974 s%@DLLTOOL@%$DLLTOOL%g
17976 s%@OBJDUMP@%$OBJDUMP%g
17977 s%@LIBTOOL@%$LIBTOOL%g
17979 s%@SENDMAIL@%$SENDMAIL%g
17980 s%@EDITOR@%$EDITOR%g
17981 s%@FINGER@%$FINGER%g
17982 s%@PERLBIN@%$PERLBIN%g
17984 s%@EXEEXT@%$EXEEXT%g
17985 s%@OBJEXT@%$OBJEXT%g
17986 s%@OL_MKDEP@%$OL_MKDEP%g
17987 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
17988 s%@LIBOBJS@%$LIBOBJS%g
17989 s%@LIBSRCS@%$LIBSRCS%g
17991 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
17992 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
17993 s%@DYN_EXT@%$DYN_EXT%g
17994 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
17995 s%@BUILD_BDB@%$BUILD_BDB%g
17996 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
17997 s%@BUILD_LDAP@%$BUILD_LDAP%g
17998 s%@BUILD_LDBM@%$BUILD_LDBM%g
17999 s%@BUILD_META@%$BUILD_META%g
18000 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
18001 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
18002 s%@BUILD_PERL@%$BUILD_PERL%g
18003 s%@BUILD_SHELL@%$BUILD_SHELL%g
18004 s%@BUILD_SQL@%$BUILD_SQL%g
18005 s%@BUILD_TCL@%$BUILD_TCL%g
18006 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
18007 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
18008 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
18009 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
18010 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
18011 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
18012 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
18013 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
18014 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
18015 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
18016 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
18017 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
18018 s%@LDBM_LIB@%$LDBM_LIB%g
18019 s%@LDAP_LIBS@%$LDAP_LIBS%g
18020 s%@LDIF_LIBS@%$LDIF_LIBS%g
18021 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
18022 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
18023 s%@LDBM_LIBS@%$LDBM_LIBS%g
18024 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
18025 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
18026 s%@WRAP_LIBS@%$WRAP_LIBS%g
18027 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
18028 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
18029 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
18030 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
18031 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
18032 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
18033 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
18034 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
18035 s%@KRB4_LIBS@%$KRB4_LIBS%g
18036 s%@KRB5_LIBS@%$KRB5_LIBS%g
18037 s%@READLINE_LIBS@%$READLINE_LIBS%g
18038 s%@SASL_LIBS@%$SASL_LIBS%g
18039 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
18040 s%@TLS_LIBS@%$TLS_LIBS%g
18041 s%@MODULES_LIBS@%$MODULES_LIBS%g
18042 s%@AUTH_LIBS@%$AUTH_LIBS%g
18043 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
18044 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
18045 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
18046 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
18051 cat >> $CONFIG_STATUS <<\EOF
18053 # Split the substitutions into bite-sized pieces for seds with
18054 # small command number limits, like on Digital OSF/1 and HP-UX.
18055 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18056 ac_file=1 # Number of current file.
18057 ac_beg=1 # First line for current file.
18058 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18061 while $ac_more_lines; do
18062 if test $ac_beg -gt 1; then
18063 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18065 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18067 if test ! -s conftest.s$ac_file; then
18068 ac_more_lines=false
18069 rm -f conftest.s$ac_file
18071 if test -z "$ac_sed_cmds"; then
18072 ac_sed_cmds="sed -f conftest.s$ac_file"
18074 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18076 ac_file=`expr $ac_file + 1`
18078 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18081 if test -z "$ac_sed_cmds"; then
18086 cat >> $CONFIG_STATUS <<EOF
18088 CONFIG_FILES=\${CONFIG_FILES-"\
18089 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18090 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18091 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18092 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18093 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18094 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18095 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18096 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18097 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18098 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18099 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18100 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18101 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18102 include/Makefile:build/top.mk:include/Makefile.in \
18103 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18104 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18105 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18106 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18107 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18108 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18109 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18110 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18111 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18112 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18113 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18114 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18115 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18116 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18117 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18118 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18119 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18120 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18121 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18122 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18123 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18124 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18125 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18126 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18127 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18128 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18129 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18130 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18131 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
18132 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
18135 cat >> $CONFIG_STATUS <<\EOF
18136 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18137 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18139 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18140 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18141 *) ac_file_in="${ac_file}.in" ;;
18144 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18146 # Remove last slash and all that follows it. Not all systems have dirname.
18147 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18148 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18149 # The file is in a subdirectory.
18150 test ! -d "$ac_dir" && mkdir "$ac_dir"
18151 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18152 # A "../" for each directory in $ac_dir_suffix.
18153 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18155 ac_dir_suffix= ac_dots=
18158 case "$ac_given_srcdir" in
18160 if test -z "$ac_dots"; then top_srcdir=.
18161 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18162 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18163 *) # Relative path.
18164 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18165 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18168 case "$ac_given_INSTALL" in
18169 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18170 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18173 echo creating "$ac_file"
18175 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18177 *[Mm]akefile*) ac_comsub="1i\\
18178 # $configure_input" ;;
18182 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18184 s%@configure_input@%$configure_input%g
18185 s%@srcdir@%$srcdir%g
18186 s%@top_srcdir@%$top_srcdir%g
18187 s%@INSTALL@%$INSTALL%g
18188 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18192 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18193 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18195 # ac_d sets the value in "#define NAME VALUE" lines.
18196 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18197 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18200 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18201 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18202 ac_uB='\([ ]\)%\1#\2define\3'
18205 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18206 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18207 ac_eB='$%\1#\2define\3'
18211 if test "${CONFIG_HEADERS+set}" != set; then
18213 cat >> $CONFIG_STATUS <<EOF
18214 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
18216 cat >> $CONFIG_STATUS <<\EOF
18218 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18221 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18222 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18223 *) ac_file_in="${ac_file}.in" ;;
18226 echo creating $ac_file
18228 rm -f conftest.frag conftest.in conftest.out
18229 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18230 cat $ac_file_inputs > conftest.in
18234 # Transform confdefs.h into a sed script conftest.vals that substitutes
18235 # the proper values into config.h.in to produce config.h. And first:
18236 # Protect against being on the right side of a sed subst in config.status.
18237 # Protect against being in an unquoted here document in config.status.
18238 rm -f conftest.vals
18239 cat > conftest.hdr <<\EOF
18242 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18246 sed -n -f conftest.hdr confdefs.h > conftest.vals
18249 # This sed command replaces #undef with comments. This is necessary, for
18250 # example, in the case of _POSIX_SOURCE, which is predefined and required
18251 # on some systems where configure will not decide to define it.
18252 cat >> conftest.vals <<\EOF
18253 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18256 # Break up conftest.vals because some shells have a limit on
18257 # the size of here documents, and old seds have small limits too.
18259 rm -f conftest.tail
18262 ac_lines=`grep -c . conftest.vals`
18263 # grep -c gives empty output for an empty file on some AIX systems.
18264 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18265 # Write a limited-size here document to conftest.frag.
18266 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18267 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18269 sed -f conftest.frag conftest.in > conftest.out
18271 mv conftest.out conftest.in
18272 ' >> $CONFIG_STATUS
18273 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18274 rm -f conftest.vals
18275 mv conftest.tail conftest.vals
18277 rm -f conftest.vals
18279 cat >> $CONFIG_STATUS <<\EOF
18280 rm -f conftest.frag conftest.h
18281 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18282 cat conftest.in >> conftest.h
18284 if cmp -s $ac_file conftest.h 2>/dev/null; then
18285 echo "$ac_file is unchanged"
18288 # Remove last slash and all that follows it. Not all systems have dirname.
18289 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18290 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18291 # The file is in a subdirectory.
18292 test ! -d "$ac_dir" && mkdir "$ac_dir"
18295 mv conftest.h $ac_file
18300 cat >> $CONFIG_STATUS <<EOF
18303 cat >> $CONFIG_STATUS <<\EOF
18306 echo Please \"make depend\" to build dependencies
18310 chmod +x $CONFIG_STATUS
18311 rm -fr confdefs* $ac_clean_files
18312 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1