3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-cyrus-sasl with Cyrus SASL support (auto)"
38 --with-fetch with fetch URL support (auto)"
40 --with-kerberos with Kerberos support (auto)"
42 --with-readline with readline support (auto)"
44 --with-threads use threads (auto)"
46 --with-tls with TLS/SSL support (auto)"
48 --with-yielding-select with implicitly yielding select (auto)"
52 --enable-ldapd enable building ldapd (no)"
56 --enable-slapd enable building slapd (yes)"
58 --enable-cleartext enable cleartext passwords (yes)"
60 --enable-crypt enable crypt(3) passwords (auto)"
62 --enable-modules enable dynamic module support (no)"
64 --enable-multimaster enable multimaster replication (no)"
66 --enable-phonetic enable phonetic/soundex (no)"
68 --enable-quipu build quipu migration tools (no)"
70 --enable-rlookups enable reverse lookups (auto)"
72 --enable-wrappers enable tcp wrapper support (no)"
74 --enable-bdb2 enable bdb2 backend (no)"
76 --with-bdb2-module module type (static)"
78 --enable-ldap enable ldap backend (no)"
80 --with-ldap-module module type (static)"
82 --enable-ldbm enable ldbm backend (yes)"
84 --with-ldbm-module module type (static)"
86 --with-ldbm-api use LDBM API (auto)"
88 --with-ldbm-type use LDBM type (auto)"
90 --enable-passwd enable passwd backend (no)"
92 --with-passwd-module module type (static)"
94 --enable-perl enable perl backend (no)"
96 --with-perl-module module type (static)"
98 --enable-shell enable shell backend (no)"
100 --with-shell-module module type (static)"
102 --enable-tcl enable tcl backend (no)"
104 --with-tcl-module module type (static)"
108 --enable-slurpd enable building slurpd (auto)"
110 Library Generation & Linking Options"
112 --enable-static[=PKGS] build static libraries [default=yes]"
114 --enable-shared[=PKGS] build shared libraries [default=yes]"
116 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
118 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
120 --disable-libtool-lock avoid locking (might break parallel builds)"
122 # Initialize some variables set by options.
123 # The variables have the same names as the options, with
124 # dashes changed to underlines.
126 cache_file=./config.cache
135 program_transform_name=s,x,x,
143 bindir='${exec_prefix}/bin'
144 sbindir='${exec_prefix}/sbin'
145 libexecdir='${exec_prefix}/libexec'
146 datadir='${prefix}/share'
147 sysconfdir='${prefix}/etc'
148 sharedstatedir='${prefix}/com'
149 localstatedir='${prefix}/var'
150 libdir='${exec_prefix}/lib'
151 includedir='${prefix}/include'
152 oldincludedir='/usr/include'
153 infodir='${prefix}/info'
154 mandir='${prefix}/man'
156 # Initialize some other variables.
159 SHELL=${CONFIG_SHELL-/bin/sh}
160 # Maximum number of lines to put in a shell here document.
167 # If the previous option needs an argument, assign it.
168 if test -n "$ac_prev"; then
169 eval "$ac_prev=\$ac_option"
175 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
179 # Accept the important Cygnus configure options, so we can diagnose typos.
183 -bindir | --bindir | --bindi | --bind | --bin | --bi)
185 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
186 bindir="$ac_optarg" ;;
188 -build | --build | --buil | --bui | --bu)
190 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
191 build="$ac_optarg" ;;
193 -cache-file | --cache-file | --cache-fil | --cache-fi \
194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
195 ac_prev=cache_file ;;
196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
198 cache_file="$ac_optarg" ;;
200 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
202 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
204 datadir="$ac_optarg" ;;
206 -disable-* | --disable-*)
207 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
208 # Reject names that are not valid shell variable names.
209 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
210 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
212 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}=no" ;;
215 -enable-* | --enable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
226 eval "enable_${ac_feature}='$ac_optarg'" ;;
228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
230 | --exec | --exe | --ex)
231 ac_prev=exec_prefix ;;
232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
234 | --exec=* | --exe=* | --ex=*)
235 exec_prefix="$ac_optarg" ;;
237 -gas | --gas | --ga | --g)
238 # Obsolete; use --with-gas.
241 -help | --help | --hel | --he)
242 # Omit some internal or obsolete options to make the list less imposing.
243 # This message is too long to be a string in the A/UX 3.1 sh.
245 Usage: configure [options] [host]
246 Options: [defaults in brackets after descriptions]
248 --cache-file=FILE cache test results in FILE
249 --help print this message
250 --no-create do not create output files
251 --quiet, --silent do not print \`checking...' messages
252 --version print the version of autoconf that created configure
253 Directory and file names:
254 --prefix=PREFIX install architecture-independent files in PREFIX
256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
258 --bindir=DIR user executables in DIR [EPREFIX/bin]
259 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
260 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
261 --datadir=DIR read-only architecture-independent data in DIR
263 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
264 --sharedstatedir=DIR modifiable architecture-independent data in DIR
266 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
267 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
268 --includedir=DIR C header files in DIR [PREFIX/include]
269 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
270 --infodir=DIR info documentation in DIR [PREFIX/info]
271 --mandir=DIR man documentation in DIR [PREFIX/man]
272 --srcdir=DIR find the sources in DIR [configure dir or ..]
273 --program-prefix=PREFIX prepend PREFIX to installed program names
274 --program-suffix=SUFFIX append SUFFIX to installed program names
275 --program-transform-name=PROGRAM
276 run sed PROGRAM on installed program names
280 --build=BUILD configure for building on BUILD [BUILD=HOST]
281 --host=HOST configure for HOST [guessed]
282 --target=TARGET configure for TARGET [TARGET=HOST]
283 Features and packages:
284 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
285 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
286 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
287 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
288 --x-includes=DIR X include files are in DIR
289 --x-libraries=DIR X library files are in DIR
291 if test -n "$ac_help"; then
292 echo "--enable and --with options recognized:$ac_help"
296 -host | --host | --hos | --ho)
298 -host=* | --host=* | --hos=* | --ho=*)
301 -includedir | --includedir | --includedi | --included | --include \
302 | --includ | --inclu | --incl | --inc)
303 ac_prev=includedir ;;
304 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
305 | --includ=* | --inclu=* | --incl=* | --inc=*)
306 includedir="$ac_optarg" ;;
308 -infodir | --infodir | --infodi | --infod | --info | --inf)
310 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
311 infodir="$ac_optarg" ;;
313 -libdir | --libdir | --libdi | --libd)
315 -libdir=* | --libdir=* | --libdi=* | --libd=*)
316 libdir="$ac_optarg" ;;
318 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
319 | --libexe | --libex | --libe)
320 ac_prev=libexecdir ;;
321 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
322 | --libexe=* | --libex=* | --libe=*)
323 libexecdir="$ac_optarg" ;;
325 -localstatedir | --localstatedir | --localstatedi | --localstated \
326 | --localstate | --localstat | --localsta | --localst \
327 | --locals | --local | --loca | --loc | --lo)
328 ac_prev=localstatedir ;;
329 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
330 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
331 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
332 localstatedir="$ac_optarg" ;;
334 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
336 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 mandir="$ac_optarg" ;;
340 # Obsolete; use --without-fp.
343 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
347 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
348 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
351 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
352 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
353 | --oldin | --oldi | --old | --ol | --o)
354 ac_prev=oldincludedir ;;
355 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
356 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
357 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
358 oldincludedir="$ac_optarg" ;;
360 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
362 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
363 prefix="$ac_optarg" ;;
365 -program-prefix | --program-prefix | --program-prefi | --program-pref \
366 | --program-pre | --program-pr | --program-p)
367 ac_prev=program_prefix ;;
368 -program-prefix=* | --program-prefix=* | --program-prefi=* \
369 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
370 program_prefix="$ac_optarg" ;;
372 -program-suffix | --program-suffix | --program-suffi | --program-suff \
373 | --program-suf | --program-su | --program-s)
374 ac_prev=program_suffix ;;
375 -program-suffix=* | --program-suffix=* | --program-suffi=* \
376 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
377 program_suffix="$ac_optarg" ;;
379 -program-transform-name | --program-transform-name \
380 | --program-transform-nam | --program-transform-na \
381 | --program-transform-n | --program-transform- \
382 | --program-transform | --program-transfor \
383 | --program-transfo | --program-transf \
384 | --program-trans | --program-tran \
385 | --progr-tra | --program-tr | --program-t)
386 ac_prev=program_transform_name ;;
387 -program-transform-name=* | --program-transform-name=* \
388 | --program-transform-nam=* | --program-transform-na=* \
389 | --program-transform-n=* | --program-transform-=* \
390 | --program-transform=* | --program-transfor=* \
391 | --program-transfo=* | --program-transf=* \
392 | --program-trans=* | --program-tran=* \
393 | --progr-tra=* | --program-tr=* | --program-t=*)
394 program_transform_name="$ac_optarg" ;;
396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
397 | -silent | --silent | --silen | --sile | --sil)
400 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
402 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
404 sbindir="$ac_optarg" ;;
406 -sharedstatedir | --sharedstatedir | --sharedstatedi \
407 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
408 | --sharedst | --shareds | --shared | --share | --shar \
410 ac_prev=sharedstatedir ;;
411 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
412 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
413 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
415 sharedstatedir="$ac_optarg" ;;
417 -site | --site | --sit)
419 -site=* | --site=* | --sit=*)
422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
425 srcdir="$ac_optarg" ;;
427 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
428 | --syscon | --sysco | --sysc | --sys | --sy)
429 ac_prev=sysconfdir ;;
430 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
431 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
432 sysconfdir="$ac_optarg" ;;
434 -target | --target | --targe | --targ | --tar | --ta | --t)
436 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
437 target="$ac_optarg" ;;
439 -v | -verbose | --verbose | --verbos | --verbo | --verb)
442 -version | --version | --versio | --versi | --vers)
443 echo "configure generated by autoconf version 2.13.1"
447 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package=`echo $ac_package| sed 's/-/_/g'`
457 eval "with_${ac_package}='$ac_optarg'" ;;
459 -without-* | --without-*)
460 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
461 # Reject names that are not valid shell variable names.
462 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
465 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}=no" ;;
469 # Obsolete; use --with-x.
472 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
473 | --x-incl | --x-inc | --x-in | --x-i)
474 ac_prev=x_includes ;;
475 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
476 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
477 x_includes="$ac_optarg" ;;
479 -x-libraries | --x-libraries | --x-librarie | --x-librari \
480 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
481 ac_prev=x_libraries ;;
482 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
483 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
484 x_libraries="$ac_optarg" ;;
486 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
490 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
491 echo "configure: warning: $ac_option: invalid host type" 1>&2
493 if test "x$nonopt" != xNONE; then
494 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
502 if test -n "$ac_prev"; then
503 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
506 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
508 # File descriptor usage:
511 # 2 errors and warnings
512 # 3 some systems may open it to /dev/tty
513 # 4 used on the Kubota Titan
514 # 6 checking for... messages and results
515 # 5 compiler messages saved in config.log
516 if test "$silent" = yes; then
524 This file contains any messages produced by compilers while
525 running configure, to aid debugging if configure makes a mistake.
528 # Strip out --no-create and --no-recursion so they do not pile up.
529 # Also quote any args containing shell metacharacters.
534 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
535 | --no-cr | --no-c) ;;
536 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
537 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
539 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
540 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
545 # Only set these to C if already set. These must not be set unconditionally
546 # because not all systems understand e.g. LANG=C (notably SCO).
547 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
548 # Non-C LC_CTYPE values break the ctype check.
549 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
550 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
551 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
552 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
554 # confdefs.h avoids OS command line length limits that DEFS can exceed.
555 rm -rf conftest* confdefs.h
556 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
559 # A filename unique to this package, relative to the directory that
560 # configure is in, which we can look for to find out if srcdir is correct.
561 ac_unique_file=build/version
563 # Find the source files, if location was not specified.
564 if test -z "$srcdir"; then
565 ac_srcdir_defaulted=yes
566 # Try the directory containing this script, then its parent.
568 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
569 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
571 if test ! -r $srcdir/$ac_unique_file; then
575 ac_srcdir_defaulted=no
577 if test ! -r $srcdir/$ac_unique_file; then
578 if test "$ac_srcdir_defaulted" = yes; then
579 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
581 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
584 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
586 # Prefer explicitly selected file to automatically selected ones.
587 if test -z "$CONFIG_SITE"; then
588 if test "x$prefix" != xNONE; then
589 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
591 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
594 for ac_site_file in $CONFIG_SITE; do
595 if test -r "$ac_site_file"; then
596 echo "loading site script $ac_site_file"
603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
604 ac_cpp='$CPP $CPPFLAGS'
605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
607 cross_compiling=$ac_cv_prog_cc_cross
611 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
612 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
613 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
620 ac_n= ac_c='\c' ac_t=
624 for ac_dir in build $srcdir/build; do
625 if test -f $ac_dir/install-sh; then
627 ac_install_sh="$ac_aux_dir/install-sh -c"
629 elif test -f $ac_dir/install.sh; then
631 ac_install_sh="$ac_aux_dir/install.sh -c"
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
638 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
639 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
640 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
642 OL_VERSION=`cat $ac_aux_dir/version`
643 if test -z "$OL_VERSION"; then
644 { echo "configure: error: could not determine version" 1>&2; exit 1; }
648 echo $ac_n "checking host system type""... $ac_c" 1>&6
649 echo "configure:650: checking host system type" >&5
650 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
652 # Make sure we can run config.sub.
653 if $ac_config_sub sun4 >/dev/null 2>&1; then :
654 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
657 ac_cv_host_alias=$host
658 case "$ac_cv_host_alias" in
662 if ac_cv_host_alias=`$ac_config_guess`; then :
663 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
665 *) ac_cv_host_alias=$nonopt ;;
669 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
670 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674 echo $ac_n "(cached) $ac_c" 1>&6
677 echo "$ac_t""$ac_cv_host" 1>&6
680 host_alias=$ac_cv_host_alias
681 host_cpu=$ac_cv_host_cpu
682 host_vendor=$ac_cv_host_vendor
683 host_os=$ac_cv_host_os
689 echo $ac_n "checking target system type""... $ac_c" 1>&6
690 echo "configure:691: checking target system type" >&5
691 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
693 # Make sure we can run config.sub.
694 if $ac_config_sub sun4 >/dev/null 2>&1; then :
695 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
698 ac_cv_target_alias=$target
699 case "$ac_cv_target_alias" in
703 ac_cv_target_alias=$host_alias ;;
705 *) ac_cv_target_alias=$nonopt ;;
709 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
710 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo $ac_n "(cached) $ac_c" 1>&6
717 echo "$ac_t""$ac_cv_target" 1>&6
720 target_alias=$ac_cv_target_alias
721 target_cpu=$ac_cv_target_cpu
722 target_vendor=$ac_cv_target_vendor
723 target_os=$ac_cv_target_os
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
731 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
733 # Make sure we can run config.sub.
734 if $ac_config_sub sun4 >/dev/null 2>&1; then :
735 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
738 ac_cv_build_alias=$build
739 case "$ac_cv_build_alias" in
743 ac_cv_build_alias=$host_alias ;;
745 *) ac_cv_build_alias=$nonopt ;;
749 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
750 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
754 echo $ac_n "(cached) $ac_c" 1>&6
757 echo "$ac_t""$ac_cv_build" 1>&6
760 build_alias=$ac_cv_build_alias
761 build_cpu=$ac_cv_build_cpu
762 build_vendor=$ac_cv_build_vendor
763 build_os=$ac_cv_build_os
769 # Do some error checking and defaulting for the host and target type.
771 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
774 # 1. You are not allowed to specify --host, --target, and nonopt at the
776 # 2. Host defaults to nonopt.
777 # 3. If nonopt is not specified, then host defaults to the current host,
778 # as determined by config.guess.
779 # 4. Target and build default to nonopt.
780 # 5. If nonopt is not specified, then target and build default to host.
782 # The aliases save the names the user supplied, while $host etc.
783 # will get canonicalized.
784 case $host---$target---$nonopt in
785 NONE---*---* | *---NONE---* | *---*---NONE) ;;
786 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
789 test "$host_alias" != "$target_alias" &&
790 test "$program_prefix$program_suffix$program_transform_name" = \
792 program_prefix=${target_alias}-
795 # Find a good install program. We prefer a C program (faster),
796 # so one script is as good as another. But avoid the broken or
797 # incompatible versions:
798 # SysV /etc/install, /usr/sbin/install
799 # SunOS /usr/etc/install
802 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
803 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
804 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
805 # ./install, which can be erroneously created by make from ./install.sh.
806 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
807 echo "configure:808: checking for a BSD compatible install" >&5
808 if test -z "$INSTALL"; then
809 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
813 for ac_dir in $PATH; do
814 # Account for people who put trailing slashes in PATH elements.
816 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
818 # OSF1 and SCO ODT 3.0 have their own names for install.
819 # Don't use installbsd from OSF since it installs stuff as root
821 for ac_prog in ginstall scoinst install; do
822 if test -f $ac_dir/$ac_prog; then
823 if test $ac_prog = install &&
824 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
825 # AIX install. It has an incompatible calling convention.
827 elif test $ac_prog = install &&
828 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
829 # program-specific install script used by HP pwplus--don't use.
832 ac_cv_path_install="$ac_dir/$ac_prog -c"
843 if test "${ac_cv_path_install+set}" = set; then
844 INSTALL="$ac_cv_path_install"
846 # As a last resort, use the slow shell script. We don't cache a
847 # path for INSTALL within a source directory, because that will
848 # break other packages using the cache if that directory is
849 # removed, or if the path is relative.
850 INSTALL="$ac_install_sh"
853 echo "$ac_t""$INSTALL" 1>&6
855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
856 # It thinks the first close brace ends the variable substitution.
857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
861 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
863 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
864 echo "configure:865: checking whether build environment is sane" >&5
867 echo timestamp > conftestfile
868 # Do `set' in a subshell so we don't clobber the current shell's
869 # arguments. Must try -L first in case configure is actually a
870 # symlink; some systems play weird games with the mod time of symlinks
871 # (eg FreeBSD returns the mod time of the symlink's containing
874 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
875 if test "$*" = "X"; then
877 set X `ls -t $srcdir/configure conftestfile`
879 if test "$*" != "X $srcdir/configure conftestfile" \
880 && test "$*" != "X conftestfile $srcdir/configure"; then
882 # If neither matched, then we have a broken ls. This can happen
883 # if, for instance, CONFIG_SHELL is bash and it inherits a
884 # broken ls alias from the environment. This has actually
885 # happened. Such a system could not be considered "sane".
886 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
887 alias in your environment" 1>&2; exit 1; }
890 test "$2" = conftestfile
896 { echo "configure: error: newly created file is older than distributed files!
897 Check your system clock" 1>&2; exit 1; }
900 echo "$ac_t""yes" 1>&6
901 if test "$program_transform_name" = s,x,x,; then
902 program_transform_name=
904 # Double any \ or $. echo might interpret backslashes.
905 cat <<\EOF_SED > conftestsed
906 s,\\,\\\\,g; s,\$,$$,g
908 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
911 test "$program_prefix" != NONE &&
912 program_transform_name="s,^,${program_prefix},;$program_transform_name"
913 # Use a double $ so make ignores it.
914 test "$program_suffix" != NONE &&
915 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
917 # sed with no file args requires a program.
918 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
920 for ac_prog in mawk gawk nawk awk
922 # Extract the first word of "$ac_prog", so it can be a program name with args.
923 set dummy $ac_prog; ac_word=$2
924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
925 echo "configure:926: checking for $ac_word" >&5
926 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 if test -n "$AWK"; then
930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
934 for ac_dir in $ac_dummy; do
935 test -z "$ac_dir" && ac_dir=.
936 if test -f $ac_dir/$ac_word; then
937 ac_cv_prog_AWK="$ac_prog"
944 AWK="$ac_cv_prog_AWK"
945 if test -n "$AWK"; then
946 echo "$ac_t""$AWK" 1>&6
948 echo "$ac_t""no" 1>&6
951 test -n "$AWK" && break
954 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
955 echo "configure:956: checking whether ${MAKE-make} sets \${MAKE}" >&5
956 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
957 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 cat > conftestmake <<\EOF
962 @echo 'ac_maketemp="${MAKE}"'
964 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
965 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
966 if test -n "$ac_maketemp"; then
967 eval ac_cv_prog_make_${ac_make}_set=yes
969 eval ac_cv_prog_make_${ac_make}_set=no
973 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
974 echo "$ac_t""yes" 1>&6
977 echo "$ac_t""no" 1>&6
978 SET_MAKE="MAKE=${MAKE-make}"
987 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
988 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
993 missing_dir=`cd $ac_aux_dir && pwd`
994 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
995 echo "configure:996: checking for working aclocal" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1001 echo "$ac_t""found" 1>&6
1003 ACLOCAL="$missing_dir/missing aclocal"
1004 echo "$ac_t""missing" 1>&6
1007 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1008 echo "configure:1009: checking for working autoconf" >&5
1009 # Run test in a subshell; some versions of sh will print an error if
1010 # an executable is not found, even if stderr is redirected.
1011 # Redirect stdin to placate older versions of autoconf. Sigh.
1012 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1014 echo "$ac_t""found" 1>&6
1016 AUTOCONF="$missing_dir/missing autoconf"
1017 echo "$ac_t""missing" 1>&6
1020 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working automake" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (automake --version) < /dev/null > /dev/null 2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 AUTOMAKE="$missing_dir/missing automake"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1034 echo "configure:1035: checking for working autoheader" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1039 AUTOHEADER=autoheader
1040 echo "$ac_t""found" 1>&6
1042 AUTOHEADER="$missing_dir/missing autoheader"
1043 echo "$ac_t""missing" 1>&6
1046 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1047 echo "configure:1048: checking for working makeinfo" >&5
1048 # Run test in a subshell; some versions of sh will print an error if
1049 # an executable is not found, even if stderr is redirected.
1050 # Redirect stdin to placate older versions of autoconf. Sigh.
1051 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1053 echo "$ac_t""found" 1>&6
1055 MAKEINFO="$missing_dir/missing makeinfo"
1056 echo "$ac_t""missing" 1>&6
1059 install_sh="$missing_dir/install-sh"
1060 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1062 for ac_prog in gnutar gtar tar
1064 # Extract the first word of "$ac_prog", so it can be a program name with args.
1065 set dummy $ac_prog; ac_word=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$AMTAR"; then
1072 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 for ac_dir in $ac_dummy; do
1077 test -z "$ac_dir" && ac_dir=.
1078 if test -f $ac_dir/$ac_word; then
1079 ac_cv_prog_AMTAR="$ac_prog"
1086 AMTAR="$ac_cv_prog_AMTAR"
1087 if test -n "$AMTAR"; then
1088 echo "$ac_t""$AMTAR" 1>&6
1090 echo "$ac_t""no" 1>&6
1093 test -n "$AMTAR" && break
1098 if test -n "$AMTAR"; then
1099 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1106 cat >> confdefs.h <<EOF
1107 #define OPENLDAP_PACKAGE "$PACKAGE"
1110 cat >> confdefs.h <<EOF
1111 #define OPENLDAP_VERSION "$VERSION"
1117 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1118 echo "configure:1119: checking configure arguments" >&5
1123 ldap_subdir="/openldap"
1125 # Check whether --with-subdir or --without-subdir was given.
1126 if test "${with_subdir+set}" = set; then
1127 withval="$with_subdir"
1134 ldap_subdir="$withval"
1137 ldap_subdir="/$withval"
1144 # OpenLDAP --enable-debug
1145 # Check whether --enable-debug or --disable-debug was given.
1146 if test "${enable_debug+set}" = set; then
1147 enableval="$enable_debug"
1150 for ol_val in auto yes no ; do
1151 if test "$enableval" = "$ol_val" ; then
1155 if test "$ol_arg" = "invalid" ; then
1156 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1158 ol_enable_debug="$ol_arg"
1161 ol_enable_debug="yes"
1163 # end --enable-debug
1164 # OpenLDAP --enable-syslog
1165 # Check whether --enable-syslog or --disable-syslog was given.
1166 if test "${enable_syslog+set}" = set; then
1167 enableval="$enable_syslog"
1170 for ol_val in auto yes no ; do
1171 if test "$enableval" = "$ol_val" ; then
1175 if test "$ol_arg" = "invalid" ; then
1176 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1178 ol_enable_syslog="$ol_arg"
1181 ol_enable_syslog="auto"
1183 # end --enable-syslog
1184 # OpenLDAP --enable-proctitle
1185 # Check whether --enable-proctitle or --disable-proctitle was given.
1186 if test "${enable_proctitle+set}" = set; then
1187 enableval="$enable_proctitle"
1190 for ol_val in auto yes no ; do
1191 if test "$enableval" = "$ol_val" ; then
1195 if test "$ol_arg" = "invalid" ; then
1196 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1198 ol_enable_proctitle="$ol_arg"
1201 ol_enable_proctitle="yes"
1203 # end --enable-proctitle
1204 # OpenLDAP --enable-cache
1205 # Check whether --enable-cache or --disable-cache was given.
1206 if test "${enable_cache+set}" = set; then
1207 enableval="$enable_cache"
1210 for ol_val in auto yes no ; do
1211 if test "$enableval" = "$ol_val" ; then
1215 if test "$ol_arg" = "invalid" ; then
1216 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1218 ol_enable_cache="$ol_arg"
1221 ol_enable_cache="yes"
1223 # end --enable-cache
1224 # OpenLDAP --enable-dns
1225 # Check whether --enable-dns or --disable-dns was given.
1226 if test "${enable_dns+set}" = set; then
1227 enableval="$enable_dns"
1230 for ol_val in auto yes no ; do
1231 if test "$enableval" = "$ol_val" ; then
1235 if test "$ol_arg" = "invalid" ; then
1236 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1238 ol_enable_dns="$ol_arg"
1244 # OpenLDAP --enable-referrals
1245 # Check whether --enable-referrals or --disable-referrals was given.
1246 if test "${enable_referrals+set}" = set; then
1247 enableval="$enable_referrals"
1250 for ol_val in auto yes no ; do
1251 if test "$enableval" = "$ol_val" ; then
1255 if test "$ol_arg" = "invalid" ; then
1256 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1258 ol_enable_referrals="$ol_arg"
1261 ol_enable_referrals="yes"
1263 # end --enable-referrals
1264 # OpenLDAP --enable-cldap
1265 # Check whether --enable-cldap or --disable-cldap was given.
1266 if test "${enable_cldap+set}" = set; then
1267 enableval="$enable_cldap"
1270 for ol_val in auto yes no ; do
1271 if test "$enableval" = "$ol_val" ; then
1275 if test "$ol_arg" = "invalid" ; then
1276 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1278 ol_enable_cldap="$ol_arg"
1281 ol_enable_cldap="no"
1283 # end --enable-cldap
1284 # OpenLDAP --enable-x_compile
1285 # Check whether --enable-x_compile or --disable-x_compile was given.
1286 if test "${enable_x_compile+set}" = set; then
1287 enableval="$enable_x_compile"
1290 for ol_val in yes no ; do
1291 if test "$enableval" = "$ol_val" ; then
1295 if test "$ol_arg" = "invalid" ; then
1296 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1298 ol_enable_x_compile="$ol_arg"
1301 ol_enable_x_compile="no"
1303 # end --enable-x_compile
1305 # OpenLDAP --enable-dmalloc
1306 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1307 if test "${enable_dmalloc+set}" = set; then
1308 enableval="$enable_dmalloc"
1311 for ol_val in auto yes no ; do
1312 if test "$enableval" = "$ol_val" ; then
1316 if test "$ol_arg" = "invalid" ; then
1317 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1319 ol_enable_dmalloc="$ol_arg"
1322 ol_enable_dmalloc="no"
1324 # end --enable-dmalloc
1326 # OpenLDAP --with-cyrus_sasl
1327 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1328 if test "${with_cyrus_sasl+set}" = set; then
1329 withval="$with_cyrus_sasl"
1332 for ol_val in auto yes no ; do
1333 if test "$withval" = "$ol_val" ; then
1337 if test "$ol_arg" = "invalid" ; then
1338 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1340 ol_with_cyrus_sasl="$ol_arg"
1343 ol_with_cyrus_sasl="auto"
1345 # end --with-cyrus_sasl
1347 # OpenLDAP --with-fetch
1348 # Check whether --with-fetch or --without-fetch was given.
1349 if test "${with_fetch+set}" = set; then
1350 withval="$with_fetch"
1353 for ol_val in auto yes no ; do
1354 if test "$withval" = "$ol_val" ; then
1358 if test "$ol_arg" = "invalid" ; then
1359 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1361 ol_with_fetch="$ol_arg"
1364 ol_with_fetch="auto"
1368 # OpenLDAP --with-kerberos
1369 # Check whether --with-kerberos or --without-kerberos was given.
1370 if test "${with_kerberos+set}" = set; then
1371 withval="$with_kerberos"
1374 for ol_val in auto k5 k4 afs yes no ; do
1375 if test "$withval" = "$ol_val" ; then
1379 if test "$ol_arg" = "invalid" ; then
1380 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1382 ol_with_kerberos="$ol_arg"
1385 ol_with_kerberos="auto"
1387 # end --with-kerberos
1389 # OpenLDAP --with-readline
1390 # Check whether --with-readline or --without-readline was given.
1391 if test "${with_readline+set}" = set; then
1392 withval="$with_readline"
1395 for ol_val in auto yes no ; do
1396 if test "$withval" = "$ol_val" ; then
1400 if test "$ol_arg" = "invalid" ; then
1401 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1403 ol_with_readline="$ol_arg"
1406 ol_with_readline="auto"
1408 # end --with-readline
1410 # OpenLDAP --with-threads
1411 # Check whether --with-threads or --without-threads was given.
1412 if test "${with_threads+set}" = set; then
1413 withval="$with_threads"
1416 for ol_val in auto posix mach lwp yes no manual ; do
1417 if test "$withval" = "$ol_val" ; then
1421 if test "$ol_arg" = "invalid" ; then
1422 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1424 ol_with_threads="$ol_arg"
1427 ol_with_threads="auto"
1429 # end --with-threads
1431 # OpenLDAP --with-tls
1432 # Check whether --with-tls or --without-tls was given.
1433 if test "${with_tls+set}" = set; then
1437 for ol_val in auto ssleay openssl yes no ; do
1438 if test "$withval" = "$ol_val" ; then
1442 if test "$ol_arg" = "invalid" ; then
1443 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1445 ol_with_tls="$ol_arg"
1452 # OpenLDAP --with-yielding_select
1453 # Check whether --with-yielding_select or --without-yielding_select was given.
1454 if test "${with_yielding_select+set}" = set; then
1455 withval="$with_yielding_select"
1458 for ol_val in auto yes no manual ; do
1459 if test "$withval" = "$ol_val" ; then
1463 if test "$ol_arg" = "invalid" ; then
1464 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1466 ol_with_yielding_select="$ol_arg"
1469 ol_with_yielding_select="auto"
1471 # end --with-yielding_select
1475 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1476 if test "${with_xxldapdoptions+set}" = set; then
1477 withval="$with_xxldapdoptions"
1481 # OpenLDAP --enable-ldapd
1482 # Check whether --enable-ldapd or --disable-ldapd was given.
1483 if test "${enable_ldapd+set}" = set; then
1484 enableval="$enable_ldapd"
1487 for ol_val in auto yes no ; do
1488 if test "$enableval" = "$ol_val" ; then
1492 if test "$ol_arg" = "invalid" ; then
1493 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1495 ol_enable_ldapd="$ol_arg"
1498 ol_enable_ldapd="no"
1500 # end --enable-ldapd
1502 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1503 if test "${with_xxslapdoptions+set}" = set; then
1504 withval="$with_xxslapdoptions"
1508 # OpenLDAP --enable-slapd
1509 # Check whether --enable-slapd or --disable-slapd was given.
1510 if test "${enable_slapd+set}" = set; then
1511 enableval="$enable_slapd"
1514 for ol_val in auto yes no ; do
1515 if test "$enableval" = "$ol_val" ; then
1519 if test "$ol_arg" = "invalid" ; then
1520 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1522 ol_enable_slapd="$ol_arg"
1525 ol_enable_slapd="yes"
1527 # end --enable-slapd
1528 # OpenLDAP --enable-cleartext
1529 # Check whether --enable-cleartext or --disable-cleartext was given.
1530 if test "${enable_cleartext+set}" = set; then
1531 enableval="$enable_cleartext"
1534 for ol_val in auto yes no ; do
1535 if test "$enableval" = "$ol_val" ; then
1539 if test "$ol_arg" = "invalid" ; then
1540 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1542 ol_enable_cleartext="$ol_arg"
1545 ol_enable_cleartext="yes"
1547 # end --enable-cleartext
1548 # OpenLDAP --enable-crypt
1549 # Check whether --enable-crypt or --disable-crypt was given.
1550 if test "${enable_crypt+set}" = set; then
1551 enableval="$enable_crypt"
1554 for ol_val in auto yes no ; do
1555 if test "$enableval" = "$ol_val" ; then
1559 if test "$ol_arg" = "invalid" ; then
1560 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1562 ol_enable_crypt="$ol_arg"
1565 ol_enable_crypt="auto"
1567 # end --enable-crypt
1568 # OpenLDAP --enable-modules
1569 # Check whether --enable-modules or --disable-modules was given.
1570 if test "${enable_modules+set}" = set; then
1571 enableval="$enable_modules"
1574 for ol_val in auto yes no ; do
1575 if test "$enableval" = "$ol_val" ; then
1579 if test "$ol_arg" = "invalid" ; then
1580 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1582 ol_enable_modules="$ol_arg"
1585 ol_enable_modules="no"
1587 # end --enable-modules
1588 # OpenLDAP --enable-multimaster
1589 # Check whether --enable-multimaster or --disable-multimaster was given.
1590 if test "${enable_multimaster+set}" = set; then
1591 enableval="$enable_multimaster"
1594 for ol_val in auto yes no ; do
1595 if test "$enableval" = "$ol_val" ; then
1599 if test "$ol_arg" = "invalid" ; then
1600 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1602 ol_enable_multimaster="$ol_arg"
1605 ol_enable_multimaster="no"
1607 # end --enable-multimaster
1608 # OpenLDAP --enable-phonetic
1609 # Check whether --enable-phonetic or --disable-phonetic was given.
1610 if test "${enable_phonetic+set}" = set; then
1611 enableval="$enable_phonetic"
1614 for ol_val in auto yes no ; do
1615 if test "$enableval" = "$ol_val" ; then
1619 if test "$ol_arg" = "invalid" ; then
1620 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1622 ol_enable_phonetic="$ol_arg"
1625 ol_enable_phonetic="no"
1627 # end --enable-phonetic
1628 # OpenLDAP --enable-quipu
1629 # Check whether --enable-quipu or --disable-quipu was given.
1630 if test "${enable_quipu+set}" = set; then
1631 enableval="$enable_quipu"
1634 for ol_val in auto yes no ; do
1635 if test "$enableval" = "$ol_val" ; then
1639 if test "$ol_arg" = "invalid" ; then
1640 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1642 ol_enable_quipu="$ol_arg"
1645 ol_enable_quipu="no"
1647 # end --enable-quipu
1648 # OpenLDAP --enable-rlookups
1649 # Check whether --enable-rlookups or --disable-rlookups was given.
1650 if test "${enable_rlookups+set}" = set; then
1651 enableval="$enable_rlookups"
1654 for ol_val in auto yes no ; do
1655 if test "$enableval" = "$ol_val" ; then
1659 if test "$ol_arg" = "invalid" ; then
1660 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1662 ol_enable_rlookups="$ol_arg"
1665 ol_enable_rlookups="auto"
1667 # end --enable-rlookups
1668 # OpenLDAP --enable-wrappers
1669 # Check whether --enable-wrappers or --disable-wrappers was given.
1670 if test "${enable_wrappers+set}" = set; then
1671 enableval="$enable_wrappers"
1674 for ol_val in auto yes no ; do
1675 if test "$enableval" = "$ol_val" ; then
1679 if test "$ol_arg" = "invalid" ; then
1680 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1682 ol_enable_wrappers="$ol_arg"
1685 ol_enable_wrappers="no"
1687 # end --enable-wrappers
1689 # OpenLDAP --enable-bdb2
1690 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1691 if test "${enable_bdb2+set}" = set; then
1692 enableval="$enable_bdb2"
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-bdb2" 1>&2; exit 1; }
1703 ol_enable_bdb2="$ol_arg"
1709 # OpenLDAP --with-bdb2_module
1710 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1711 if test "${with_bdb2_module+set}" = set; then
1712 withval="$with_bdb2_module"
1715 for ol_val in static dynamic ; do
1716 if test "$withval" = "$ol_val" ; then
1720 if test "$ol_arg" = "invalid" ; then
1721 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1723 ol_with_bdb2_module="$ol_arg"
1726 ol_with_bdb2_module="static"
1728 # end --with-bdb2_module
1730 # OpenLDAP --enable-ldap
1731 # Check whether --enable-ldap or --disable-ldap was given.
1732 if test "${enable_ldap+set}" = set; then
1733 enableval="$enable_ldap"
1736 for ol_val in auto yes no ; do
1737 if test "$enableval" = "$ol_val" ; then
1741 if test "$ol_arg" = "invalid" ; then
1742 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1744 ol_enable_ldap="$ol_arg"
1750 # OpenLDAP --with-ldap_module
1751 # Check whether --with-ldap_module or --without-ldap_module was given.
1752 if test "${with_ldap_module+set}" = set; then
1753 withval="$with_ldap_module"
1756 for ol_val in static dynamic ; do
1757 if test "$withval" = "$ol_val" ; then
1761 if test "$ol_arg" = "invalid" ; then
1762 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1764 ol_with_ldap_module="$ol_arg"
1767 ol_with_ldap_module="static"
1769 # end --with-ldap_module
1771 # OpenLDAP --enable-ldbm
1772 # Check whether --enable-ldbm or --disable-ldbm was given.
1773 if test "${enable_ldbm+set}" = set; then
1774 enableval="$enable_ldbm"
1777 for ol_val in auto yes no ; do
1778 if test "$enableval" = "$ol_val" ; then
1782 if test "$ol_arg" = "invalid" ; then
1783 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1785 ol_enable_ldbm="$ol_arg"
1788 ol_enable_ldbm="yes"
1791 # OpenLDAP --with-ldbm_module
1792 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1793 if test "${with_ldbm_module+set}" = set; then
1794 withval="$with_ldbm_module"
1797 for ol_val in static dynamic ; do
1798 if test "$withval" = "$ol_val" ; then
1802 if test "$ol_arg" = "invalid" ; then
1803 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1805 ol_with_ldbm_module="$ol_arg"
1808 ol_with_ldbm_module="static"
1810 # end --with-ldbm_module
1812 # OpenLDAP --with-ldbm_api
1813 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1814 if test "${with_ldbm_api+set}" = set; then
1815 withval="$with_ldbm_api"
1818 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1819 if test "$withval" = "$ol_val" ; then
1823 if test "$ol_arg" = "invalid" ; then
1824 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1826 ol_with_ldbm_api="$ol_arg"
1829 ol_with_ldbm_api="auto"
1831 # end --with-ldbm_api
1833 # OpenLDAP --with-ldbm_type
1834 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1835 if test "${with_ldbm_type+set}" = set; then
1836 withval="$with_ldbm_type"
1839 for ol_val in auto btree hash ; do
1840 if test "$withval" = "$ol_val" ; then
1844 if test "$ol_arg" = "invalid" ; then
1845 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1847 ol_with_ldbm_type="$ol_arg"
1850 ol_with_ldbm_type="auto"
1852 # end --with-ldbm_type
1855 # OpenLDAP --enable-passwd
1856 # Check whether --enable-passwd or --disable-passwd was given.
1857 if test "${enable_passwd+set}" = set; then
1858 enableval="$enable_passwd"
1861 for ol_val in auto yes no ; do
1862 if test "$enableval" = "$ol_val" ; then
1866 if test "$ol_arg" = "invalid" ; then
1867 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1869 ol_enable_passwd="$ol_arg"
1872 ol_enable_passwd="no"
1874 # end --enable-passwd
1875 # OpenLDAP --with-passwd_module
1876 # Check whether --with-passwd_module or --without-passwd_module was given.
1877 if test "${with_passwd_module+set}" = set; then
1878 withval="$with_passwd_module"
1881 for ol_val in static dynamic ; do
1882 if test "$withval" = "$ol_val" ; then
1886 if test "$ol_arg" = "invalid" ; then
1887 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1889 ol_with_passwd_module="$ol_arg"
1892 ol_with_passwd_module="static"
1894 # end --with-passwd_module
1896 # OpenLDAP --enable-perl
1897 # Check whether --enable-perl or --disable-perl was given.
1898 if test "${enable_perl+set}" = set; then
1899 enableval="$enable_perl"
1902 for ol_val in auto yes no ; do
1903 if test "$enableval" = "$ol_val" ; then
1907 if test "$ol_arg" = "invalid" ; then
1908 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1910 ol_enable_perl="$ol_arg"
1916 # OpenLDAP --with-perl_module
1917 # Check whether --with-perl_module or --without-perl_module was given.
1918 if test "${with_perl_module+set}" = set; then
1919 withval="$with_perl_module"
1922 for ol_val in static dynamic ; do
1923 if test "$withval" = "$ol_val" ; then
1927 if test "$ol_arg" = "invalid" ; then
1928 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1930 ol_with_perl_module="$ol_arg"
1933 ol_with_perl_module="static"
1935 # end --with-perl_module
1937 # OpenLDAP --enable-shell
1938 # Check whether --enable-shell or --disable-shell was given.
1939 if test "${enable_shell+set}" = set; then
1940 enableval="$enable_shell"
1943 for ol_val in auto yes no ; do
1944 if test "$enableval" = "$ol_val" ; then
1948 if test "$ol_arg" = "invalid" ; then
1949 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1951 ol_enable_shell="$ol_arg"
1954 ol_enable_shell="no"
1956 # end --enable-shell
1957 # OpenLDAP --with-shell_module
1958 # Check whether --with-shell_module or --without-shell_module was given.
1959 if test "${with_shell_module+set}" = set; then
1960 withval="$with_shell_module"
1963 for ol_val in static dynamic ; do
1964 if test "$withval" = "$ol_val" ; then
1968 if test "$ol_arg" = "invalid" ; then
1969 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1971 ol_with_shell_module="$ol_arg"
1974 ol_with_shell_module="static"
1976 # end --with-shell_module
1978 # OpenLDAP --enable-tcl
1979 # Check whether --enable-tcl or --disable-tcl was given.
1980 if test "${enable_tcl+set}" = set; then
1981 enableval="$enable_tcl"
1984 for ol_val in auto yes no ; do
1985 if test "$enableval" = "$ol_val" ; then
1989 if test "$ol_arg" = "invalid" ; then
1990 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1992 ol_enable_tcl="$ol_arg"
1998 # OpenLDAP --with-tcl_module
1999 # Check whether --with-tcl_module or --without-tcl_module was given.
2000 if test "${with_tcl_module+set}" = set; then
2001 withval="$with_tcl_module"
2004 for ol_val in static dynamic ; do
2005 if test "$withval" = "$ol_val" ; then
2009 if test "$ol_arg" = "invalid" ; then
2010 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2012 ol_with_tcl_module="$ol_arg"
2015 ol_with_tcl_module="static"
2017 # end --with-tcl_module
2020 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2021 if test "${with_xxslurpdoptions+set}" = set; then
2022 withval="$with_xxslurpdoptions"
2026 # OpenLDAP --enable-slurpd
2027 # Check whether --enable-slurpd or --disable-slurpd was given.
2028 if test "${enable_slurpd+set}" = set; then
2029 enableval="$enable_slurpd"
2032 for ol_val in auto yes no ; do
2033 if test "$enableval" = "$ol_val" ; then
2037 if test "$ol_arg" = "invalid" ; then
2038 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2040 ol_enable_slurpd="$ol_arg"
2043 ol_enable_slurpd="auto"
2045 # end --enable-slurpd
2047 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2048 if test "${with_xxliboptions+set}" = set; then
2049 withval="$with_xxliboptions"
2053 # Check whether --enable-static or --disable-static was given.
2054 if test "${enable_static+set}" = set; then
2055 enableval="$enable_static"
2056 p=${PACKAGE-default}
2057 case "$enableval" in
2058 yes) enable_static=yes ;;
2059 no) enable_static=no ;;
2062 # Look at the argument we got. We use all the common list separators.
2063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2064 for pkg in $enableval; do
2065 if test "X$pkg" = "X$p"; then
2076 # Check whether --enable-shared or --disable-shared was given.
2077 if test "${enable_shared+set}" = set; then
2078 enableval="$enable_shared"
2079 p=${PACKAGE-default}
2080 case "$enableval" in
2081 yes) enable_shared=yes ;;
2082 no) enable_shared=no ;;
2085 # Look at the argument we got. We use all the common list separators.
2086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2087 for pkg in $enableval; do
2088 if test "X$pkg" = "X$p"; then
2101 if test $ol_enable_dns = yes ; then
2102 if test $ol_enable_referrals = no ; then
2103 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2105 if test $ol_enable_referrals = auto ; then
2106 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2107 ol_enable_referrals=yes
2111 if test $ol_enable_slapd = no ; then
2112 if test $ol_enable_bdb2 = yes ; then
2113 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2115 if test $ol_enable_ldap = yes ; then
2116 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2118 if test $ol_enable_ldbm = yes ; then
2119 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2121 if test $ol_enable_passwd = yes ; then
2122 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2124 if test $ol_enable_perl = yes ; then
2125 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2127 if test $ol_enable_shell = yes ; then
2128 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2130 if test $ol_enable_tcl = yes ; then
2131 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2133 if test $ol_enable_modules = yes ; then
2134 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2136 if test $ol_enable_multimaster = yes ; then
2137 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2139 if test $ol_enable_wrappers = yes ; then
2140 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2142 if test $ol_enable_phonetic = yes ; then
2143 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2145 if test $ol_enable_quipu = yes ; then
2146 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2148 if test $ol_enable_rlookups = yes ; then
2149 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2151 if test $ol_with_ldbm_api != auto ; then
2152 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2154 if test $ol_with_ldbm_type != auto ; then
2155 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2157 if test $ol_with_bdb2_module != static ; then
2158 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2160 if test $ol_with_ldap_module != static ; then
2161 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2163 if test $ol_with_ldbm_module != static ; then
2164 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2166 if test $ol_with_passwd_module != static ; then
2167 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2169 if test $ol_with_perl_module != static ; then
2170 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2172 if test $ol_with_shell_module != static ; then
2173 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2175 if test $ol_with_tcl_module != static ; then
2176 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2178 if test $ol_enable_slurpd = yes ; then
2179 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2182 # force settings to no
2191 ol_enable_modules=no
2192 ol_enable_multimaster=no
2193 ol_enable_phonetic=no
2195 ol_enable_rlookups=no
2196 ol_enable_wrappers=no
2199 ol_with_ldbm_type=no
2201 ol_with_bdb2_module=static
2202 ol_with_ldap_module=static
2203 ol_with_ldbm_module=static
2204 ol_with_passwd_module=static
2205 ol_with_perl_module=static
2206 ol_with_shell_module=static
2207 ol_with_tcl_module=static
2211 elif test $ol_enable_ldbm = no ; then
2213 if test $ol_with_ldbm_api != auto ; then
2214 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2217 if test $ol_with_ldbm_type != auto ; then
2218 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2221 if test $ol_with_ldbm_module != static ; then
2222 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2225 if test $ol_enable_bdb2 = yes ; then
2226 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2229 if test $ol_enable_modules != yes -a \
2230 $ol_enable_ldap = no -a \
2231 $ol_enable_passwd = no -a \
2232 $ol_enable_perl = no -a \
2233 $ol_enable_shell = no -a \
2234 $ol_enable_tcl = no ; then
2235 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2239 ol_with_ldbm_type=no
2240 ol_with_ldbm_module=static
2242 elif test $ol_enable_bdb2 = yes ; then
2244 if test $ol_with_ldbm_api != auto -a \
2245 $ol_with_ldbm_api != db2 ; then
2246 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2249 ol_with_ldbm_api=db2
2253 if test $ol_enable_bdb2 != no ; then
2254 if test $ol_with_ldbm_api != auto -a \
2255 $ol_with_ldbm_api != db2 ; then
2256 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2261 if test $ol_with_ldbm_api = gdbm -a \
2262 $ol_with_ldbm_type = btree ; then
2263 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2265 if test $ol_with_ldbm_api = mdbm -a \
2266 $ol_with_ldbm_type = btree ; then
2267 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2269 if test $ol_with_ldbm_api = ndbm -a \
2270 $ol_with_ldbm_type = btree ; then
2271 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2275 if test $ol_enable_slurpd = yes ; then
2276 if test $ol_with_threads = no ; then
2277 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2281 echo "$ac_t""done" 1>&6
2308 BUILD_BDB2_DYNAMIC=static
2309 BUILD_LDAP_DYNAMIC=static
2310 BUILD_LDBM_DYNAMIC=static
2311 BUILD_PASSWD_DYNAMIC=static
2312 BUILD_PERL_DYNAMIC=static
2313 BUILD_SHELL_DYNAMIC=static
2314 BUILD_TCL_DYNAMIC=static
2316 SLAPD_MODULES_LDFLAGS=
2317 SLAPD_MODULES_CPPFLAGS=
2321 SLAPD_PERL_CPPFLAGS=
2332 cat >> confdefs.h <<\EOF
2333 #define HAVE_MKVERSION 1
2342 *-*-aix*) if test -z "$CC" ; then
2343 case "$ol_with_threads" in
2344 auto | yes | posix) ol_aix_threads=yes ;;
2350 if test $ol_aix_threads = yes ; then
2351 if test -z "${CC}" ; then
2352 for ac_prog in cc_r xlc_r cc
2354 # Extract the first word of "$ac_prog", so it can be a program name with args.
2355 set dummy $ac_prog; ac_word=$2
2356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2357 echo "configure:2358: checking for $ac_word" >&5
2358 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2366 for ac_dir in $ac_dummy; do
2367 test -z "$ac_dir" && ac_dir=.
2368 if test -f $ac_dir/$ac_word; then
2369 ac_cv_prog_CC="$ac_prog"
2377 if test -n "$CC"; then
2378 echo "$ac_t""$CC" 1>&6
2380 echo "$ac_t""no" 1>&6
2383 test -n "$CC" && break
2387 if test "$CC" = cc ; then
2388 if test $ol_with_threads != auto ; then
2389 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2391 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2397 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2398 ol_with_threads=posix
2399 ol_cv_pthread_create=yes
2403 if test -z "${CC}"; then
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2409 echo "configure:2410: checking for $ac_word" >&5
2410 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2418 for ac_dir in $ac_dummy; do
2419 test -z "$ac_dir" && ac_dir=.
2420 if test -f $ac_dir/$ac_word; then
2421 ac_cv_prog_CC="$ac_prog"
2429 if test -n "$CC"; then
2430 echo "$ac_t""$CC" 1>&6
2432 echo "$ac_t""no" 1>&6
2435 test -n "$CC" && break
2442 # Check whether --enable-fast-install or --disable-fast-install was given.
2443 if test "${enable_fast_install+set}" = set; then
2444 enableval="$enable_fast_install"
2445 p=${PACKAGE-default}
2446 case "$enableval" in
2447 yes) enable_fast_install=yes ;;
2448 no) enable_fast_install=no ;;
2450 enable_fast_install=no
2451 # Look at the argument we got. We use all the common list separators.
2452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2453 for pkg in $enableval; do
2454 if test "X$pkg" = "X$p"; then
2455 enable_fast_install=yes
2462 enable_fast_install=yes
2465 # Extract the first word of "ranlib", so it can be a program name with args.
2466 set dummy ranlib; ac_word=$2
2467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2468 echo "configure:2469: checking for $ac_word" >&5
2469 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 if test -n "$RANLIB"; then
2473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2477 for ac_dir in $ac_dummy; do
2478 test -z "$ac_dir" && ac_dir=.
2479 if test -f $ac_dir/$ac_word; then
2480 ac_cv_prog_RANLIB="ranlib"
2485 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2488 RANLIB="$ac_cv_prog_RANLIB"
2489 if test -n "$RANLIB"; then
2490 echo "$ac_t""$RANLIB" 1>&6
2492 echo "$ac_t""no" 1>&6
2495 # Extract the first word of "gcc", so it can be a program name with args.
2496 set dummy gcc; ac_word=$2
2497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2498 echo "configure:2499: checking for $ac_word" >&5
2499 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2507 for ac_dir in $ac_dummy; do
2508 test -z "$ac_dir" && ac_dir=.
2509 if test -f $ac_dir/$ac_word; then
2518 if test -n "$CC"; then
2519 echo "$ac_t""$CC" 1>&6
2521 echo "$ac_t""no" 1>&6
2524 if test -z "$CC"; then
2525 # Extract the first word of "cc", so it can be a program name with args.
2526 set dummy cc; ac_word=$2
2527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_word" >&5
2529 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2538 for ac_dir in $ac_dummy; do
2539 test -z "$ac_dir" && ac_dir=.
2540 if test -f $ac_dir/$ac_word; then
2541 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2542 ac_prog_rejected=yes
2550 if test $ac_prog_rejected = yes; then
2551 # We found a bogon in the path, so make sure we never use it.
2552 set dummy $ac_cv_prog_CC
2554 if test $# -gt 0; then
2555 # We chose a different compiler from the bogus one.
2556 # However, it has the same basename, so the bogon will be chosen
2557 # first if we set CC to just the basename; use the full file name.
2559 set dummy "$ac_dir/$ac_word" "$@"
2567 if test -n "$CC"; then
2568 echo "$ac_t""$CC" 1>&6
2570 echo "$ac_t""no" 1>&6
2573 if test -z "$CC"; then
2574 case "`uname -s`" in
2575 *win32* | *WIN32* | *CYGWIN*)
2576 # Extract the first word of "cl", so it can be a program name with args.
2577 set dummy cl; ac_word=$2
2578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_word" >&5
2580 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2588 for ac_dir in $ac_dummy; do
2589 test -z "$ac_dir" && ac_dir=.
2590 if test -f $ac_dir/$ac_word; then
2599 if test -n "$CC"; then
2600 echo "$ac_t""$CC" 1>&6
2602 echo "$ac_t""no" 1>&6
2607 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2610 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2611 echo "configure:2612: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2618 cross_compiling=$ac_cv_prog_cc_cross
2620 cat > conftest.$ac_ext << EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2627 if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2628 ac_cv_prog_cc_works=yes
2629 # If we can't run a trivial program, we are probably using a cross compiler.
2630 if (./conftest; exit) 2>/dev/null; then
2631 ac_cv_prog_cc_cross=no
2633 ac_cv_prog_cc_cross=yes
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 ac_cv_prog_cc_works=no
2642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2643 ac_cpp='$CPP $CPPFLAGS'
2644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2646 cross_compiling=$ac_cv_prog_cc_cross
2648 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2649 if test $ac_cv_prog_cc_works = no; then
2650 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2652 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2653 echo "configure:2654: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2654 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2655 cross_compiling=$ac_cv_prog_cc_cross
2657 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2658 echo "configure:2659: checking whether we are using GNU C" >&5
2659 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.c <<EOF
2667 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2674 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2676 if test $ac_cv_prog_gcc = yes; then
2682 ac_test_CFLAGS="${CFLAGS+set}"
2683 ac_save_CFLAGS="$CFLAGS"
2685 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2686 echo "configure:2687: checking whether ${CC-cc} accepts -g" >&5
2687 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 echo 'void f(){}' > conftest.c
2691 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2700 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2701 if test "$ac_test_CFLAGS" = set; then
2702 CFLAGS="$ac_save_CFLAGS"
2703 elif test $ac_cv_prog_cc_g = yes; then
2704 if test "$GCC" = yes; then
2710 if test "$GCC" = yes; then
2717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2718 if test "${with_gnu_ld+set}" = set; then
2719 withval="$with_gnu_ld"
2720 test "$withval" = no || with_gnu_ld=yes
2726 if test "$ac_cv_prog_gcc" = yes; then
2727 # Check if gcc -print-prog-name=ld gives a path.
2728 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2729 echo "configure:2730: checking for ld used by GCC" >&5
2730 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2732 # Accept absolute paths.
2733 [\\/]* | [A-Za-z]:[\\/]*)
2734 re_direlt='/[^/][^/]*/\.\./'
2735 # Canonicalize the path of ld
2736 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2737 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2738 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2740 test -z "$LD" && LD="$ac_prog"
2743 # If it fails, then pretend we aren't using GCC.
2747 # If it is relative, then search for the first ld in PATH.
2751 elif test "$with_gnu_ld" = yes; then
2752 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2753 echo "configure:2754: checking for GNU ld" >&5
2755 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2756 echo "configure:2757: checking for non-GNU ld" >&5
2758 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 if test -z "$LD"; then
2762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2763 for ac_dir in $PATH; do
2764 test -z "$ac_dir" && ac_dir=.
2765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2766 ac_cv_path_LD="$ac_dir/$ac_prog"
2767 # Check to see if the program is GNU ld. I'd rather use --version,
2768 # but apparently some GNU ld's only accept -v.
2769 # Break only if it was the GNU/non-GNU ld that we prefer.
2770 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2771 test "$with_gnu_ld" != no && break
2773 test "$with_gnu_ld" != yes && break
2779 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2784 if test -n "$LD"; then
2785 echo "$ac_t""$LD" 1>&6
2787 echo "$ac_t""no" 1>&6
2789 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2791 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2792 echo "configure:2793: checking if the linker ($LD) is GNU ld" >&5
2793 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2797 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2798 ac_cv_prog_gnu_ld=yes
2800 ac_cv_prog_gnu_ld=no
2804 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2807 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2808 echo "configure:2809: checking for BSD-compatible nm" >&5
2809 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 if test -n "$NM"; then
2813 # Let the user override the test.
2816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2817 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2818 test -z "$ac_dir" && ac_dir=.
2819 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2820 # Check to see if the nm accepts a BSD-compat flag.
2821 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2822 # nm: unknown option "B" ignored
2823 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2824 ac_cv_path_NM="$ac_dir/nm -B"
2826 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2827 ac_cv_path_NM="$ac_dir/nm -p"
2830 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2831 continue # so that we can try to find one that supports BSD flags
2836 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2841 echo "$ac_t""$NM" 1>&6
2844 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2845 echo "configure:2846: checking whether ln -s works" >&5
2846 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2850 if ln -s X conftestdata 2>/dev/null
2853 ac_cv_prog_LN_S="ln -s"
2858 LN_S="$ac_cv_prog_LN_S"
2859 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2860 echo "$ac_t""yes" 1>&6
2862 echo "$ac_t""no" 1>&6
2866 # Check for any special flags to pass to ltconfig.
2867 libtool_flags="--cache-file=$cache_file"
2868 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2869 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2870 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2871 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2872 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2873 libtool_flags="$libtool_flags --enable-dlopen"
2875 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2876 if test "${enable_libtool_lock+set}" = set; then
2877 enableval="$enable_libtool_lock"
2881 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2882 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2884 # Some flags need to be propagated to the compiler or linker for good
2888 # Find out which ABI we are using.
2889 echo '#line 2890 "configure"' > conftest.$ac_ext
2890 if { (eval echo configure:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2891 case "`/usr/bin/file conftest.o`" in
2907 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2908 SAVE_CFLAGS="$CFLAGS"
2909 CFLAGS="$CFLAGS -belf"
2910 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2911 echo "configure:2912: checking whether the C compiler needs -belf" >&5
2912 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 cat > conftest.$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2925 lt_cv_cc_needs_belf=yes
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2930 lt_cv_cc_needs_belf=no
2935 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2936 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2937 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2938 CFLAGS="$SAVE_CFLAGS"
2946 # Save cache, so that ltconfig can load it
2949 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2950 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2951 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2952 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2953 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2954 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2955 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2956 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2958 # Reload cache, that may have been modified by ltconfig
2961 # This can be used to rebuild libtool when needed
2962 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2964 # Always use our own libtool.
2965 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2967 # Redirect the config.log output again, so that the ltconfig log is not
2968 # clobbered by the next message.
2969 exec 5>>./config.log
2972 for ac_prog in mawk gawk nawk awk
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_word" >&5
2978 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 if test -n "$AWK"; then
2982 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2986 for ac_dir in $ac_dummy; do
2987 test -z "$ac_dir" && ac_dir=.
2988 if test -f $ac_dir/$ac_word; then
2989 ac_cv_prog_AWK="$ac_prog"
2996 AWK="$ac_cv_prog_AWK"
2997 if test -n "$AWK"; then
2998 echo "$ac_t""$AWK" 1>&6
3000 echo "$ac_t""no" 1>&6
3003 test -n "$AWK" && break
3006 # test for ln hardlink support
3007 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3008 echo "configure:3009: checking whether ln works" >&5
3009 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 rm -f conftest.src conftest.dst
3013 echo "conftest" > conftest.src
3014 if ln conftest.src conftest.dst 2>/dev/null
3016 ol_cv_prog_LN_H="ln"
3018 ol_cv_prog_LN_H="cp"
3020 rm -f conftest.src conftest.dst
3023 LN_H="$ol_cv_prog_LN_H"
3024 if test "$ol_cv_prog_LN_H" = "ln"; then
3025 echo "$ac_t""yes" 1>&6
3027 echo "$ac_t""no" 1>&6
3030 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3031 echo "configure:3032: checking whether ln -s works" >&5
3032 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3036 if ln -s X conftestdata 2>/dev/null
3039 ac_cv_prog_LN_S="ln -s"
3044 LN_S="$ac_cv_prog_LN_S"
3045 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3046 echo "$ac_t""yes" 1>&6
3048 echo "$ac_t""no" 1>&6
3052 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3056 # Extract the first word of "sendmail", so it can be a program name with args.
3057 set dummy sendmail; ac_word=$2
3058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3059 echo "configure:3060: checking for $ac_word" >&5
3060 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3065 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3068 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3072 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3073 for ac_dir in $ac_dummy; do
3074 test -z "$ac_dir" && ac_dir=.
3075 if test -f $ac_dir/$ac_word; then
3076 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3081 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3085 SENDMAIL="$ac_cv_path_SENDMAIL"
3086 if test -n "$SENDMAIL"; then
3087 echo "$ac_t""$SENDMAIL" 1>&6
3089 echo "$ac_t""no" 1>&6
3092 # Extract the first word of "vi", so it can be a program name with args.
3093 set dummy vi; ac_word=$2
3094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3095 echo "configure:3096: checking for $ac_word" >&5
3096 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3101 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3104 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3108 ac_dummy="$PATH:/usr/ucb"
3109 for ac_dir in $ac_dummy; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/$ac_word; then
3112 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3117 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3121 EDITOR="$ac_cv_path_EDITOR"
3122 if test -n "$EDITOR"; then
3123 echo "$ac_t""$EDITOR" 1>&6
3125 echo "$ac_t""no" 1>&6
3128 # Extract the first word of "finger", so it can be a program name with args.
3129 set dummy finger; ac_word=$2
3130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3131 echo "configure:3132: checking for $ac_word" >&5
3132 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3137 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3140 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3144 ac_dummy="$PATH:/usr/ucb"
3145 for ac_dir in $ac_dummy; do
3146 test -z "$ac_dir" && ac_dir=.
3147 if test -f $ac_dir/$ac_word; then
3148 ac_cv_path_FINGER="$ac_dir/$ac_word"
3153 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3157 FINGER="$ac_cv_path_FINGER"
3158 if test -n "$FINGER"; then
3159 echo "$ac_t""$FINGER" 1>&6
3161 echo "$ac_t""no" 1>&6
3166 if test $ol_enable_perl != no ; then
3167 # Extract the first word of "perl", so it can be a program name with args.
3168 set dummy perl; ac_word=$2
3169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3170 echo "configure:3171: checking for $ac_word" >&5
3171 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3176 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3179 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3184 for ac_dir in $ac_dummy; do
3185 test -z "$ac_dir" && ac_dir=.
3186 if test -f $ac_dir/$ac_word; then
3187 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3192 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3196 PERLBIN="$ac_cv_path_PERLBIN"
3197 if test -n "$PERLBIN"; then
3198 echo "$ac_t""$PERLBIN" 1>&6
3200 echo "$ac_t""no" 1>&6
3204 if test "no$PERLBIN" = "no" ; then
3205 if test $ol_enable_perl = yes ; then
3206 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3210 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3211 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3217 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3218 echo "configure:3219: checking how to run the C preprocessor" >&5
3219 # On Suns, sometimes $CPP names a directory.
3220 if test -n "$CPP" && test -d "$CPP"; then
3223 if test -z "$CPP"; then
3224 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 # This must be in double quotes, not single quotes, because CPP may get
3228 # substituted into the Makefile and "${CC-cc}" will confuse make.
3230 # On the NeXT, cc -E runs the code through the compiler's parser,
3231 # not just through cpp.
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3239 { (eval echo configure:3240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3241 if test -z "$ac_err"; then
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3248 CPP="${CC-cc} -E -traditional-cpp"
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3256 { (eval echo configure:3257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3258 if test -z "$ac_err"; then
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3265 CPP="${CC-cc} -nologo -E"
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3273 { (eval echo configure:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3275 if test -z "$ac_err"; then
3279 echo "configure: failed program was:" >&5
3280 cat conftest.$ac_ext >&5
3289 ac_cv_prog_CPP="$CPP"
3291 CPP="$ac_cv_prog_CPP"
3293 ac_cv_prog_CPP="$CPP"
3295 echo "$ac_t""$CPP" 1>&6
3298 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3299 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3301 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3302 echo "configure: warning: programs compiled here do run here..." 1>&2
3303 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3305 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3306 echo "configure: warning: programs compiled here do not run here..." 1>&2
3307 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3310 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3311 echo "configure:3312: checking for AIX" >&5
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321 egrep "yes" >/dev/null 2>&1; then
3323 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3324 #define _ALL_SOURCE 1
3329 echo "$ac_t""no" 1>&6
3334 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3335 echo "configure:3336: checking for POSIXized ISC" >&5
3336 if test -d /etc/conf/kconfig.d &&
3337 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3339 echo "$ac_t""yes" 1>&6
3340 ISC=yes # If later tests want to check for ISC.
3341 cat >> confdefs.h <<\EOF
3342 #define _POSIX_SOURCE 1
3345 if test "$GCC" = yes; then
3351 echo "$ac_t""no" 1>&6
3355 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3356 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3357 echo "configure:3358: checking for minix/config.h" >&5
3358 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 #include <minix/config.h>
3366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3367 { (eval echo configure:3368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3369 if test -z "$ac_err"; then
3371 eval "ac_cv_header_$ac_safe=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 eval "ac_cv_header_$ac_safe=no"
3381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3385 echo "$ac_t""no" 1>&6
3389 if test "$MINIX" = yes; then
3390 cat >> confdefs.h <<\EOF
3391 #define _POSIX_SOURCE 1
3394 cat >> confdefs.h <<\EOF
3395 #define _POSIX_1_SOURCE 2
3398 cat >> confdefs.h <<\EOF
3405 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3406 echo "configure:3407: checking for Cygwin environment" >&5
3407 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3417 #define __CYGWIN__ __CYGWIN32__
3422 if { (eval echo configure:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3434 echo "$ac_t""$ac_cv_cygwin" 1>&6
3436 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3437 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3438 echo "configure:3439: checking for mingw32 environment" >&5
3439 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3450 if { (eval echo configure:3451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3462 echo "$ac_t""$ac_cv_mingw32" 1>&6
3464 test "$ac_cv_mingw32" = yes && MINGW32=yes
3465 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3466 echo "configure:3467: checking for EMX OS/2 environment" >&5
3467 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3478 if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3490 echo "$ac_t""$ac_cv_emxos2" 1>&6
3492 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3496 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3497 echo "configure:3498: checking for executable suffix" >&5
3498 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3505 echo 'int main () { return 0; }' > conftest.$ac_ext
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3508 for file in conftest.*; do
3510 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3511 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3515 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3518 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3523 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3524 echo "$ac_t""${ac_cv_exeext}" 1>&6
3527 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3528 echo "configure:3529: checking for object suffix" >&5
3529 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3533 echo 'int i = 1;' > conftest.$ac_ext
3534 if { (eval echo configure:3535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 for ac_file in conftest.*; do
3538 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3542 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3547 echo "$ac_t""$ac_cv_objext" 1>&6
3548 OBJEXT=$ac_cv_objext
3549 ac_objext=$ac_cv_objext
3552 cat >> confdefs.h <<EOF
3553 #define EXEEXT "${EXEEXT}"
3557 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3558 echo "configure:3559: checking for be_app in -lbe" >&5
3559 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3560 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 ac_save_LIBS="$LIBS"
3564 LIBS="-lbe -lroot -lnet $LIBS"
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3577 if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3579 eval "ac_cv_lib_$ac_lib_var=yes"
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3584 eval "ac_cv_lib_$ac_lib_var=no"
3587 LIBS="$ac_save_LIBS"
3590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 LIBS="$LIBS -lbe -lroot -lnet"
3594 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3603 echo "configure:3604: checking for ${CC-cc} option to accept ANSI C" >&5
3604 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 am_cv_prog_cc_stdc=no
3609 # Don't try gcc -ansi; that turns off useful extensions and
3610 # breaks some systems' header files.
3611 # AIX -qlanglvl=ansi
3612 # Ultrix and OSF/1 -std1
3613 # HP-UX 10.20 and later -Ae
3614 # HP-UX older versions -Aa -D_HPUX_SOURCE
3615 # SVR4 -Xc -D__EXTENSIONS__
3616 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 CC="$ac_save_CC $ac_arg"
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3624 #include <sys/types.h>
3625 #include <sys/stat.h>
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3640 s = g (p, va_arg (v,int));
3644 int test (int i, double x);
3645 struct s1 {int (*f) (int a);};
3646 struct s2 {int (*f) (double a);};
3647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3653 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3657 if { (eval echo configure:3658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3659 am_cv_prog_cc_stdc="$ac_arg"; break
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3670 if test -z "$am_cv_prog_cc_stdc"; then
3671 echo "$ac_t""none needed" 1>&6
3673 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3675 case "x$am_cv_prog_cc_stdc" in
3677 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3680 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3681 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3684 # test for make depend flag
3687 if test -z "${MKDEP}"; then
3689 if test -z "${MKDEP_FLAGS}"; then
3690 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3691 echo "configure:3692: checking for ${OL_MKDEP} depend flag" >&5
3692 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3697 for flag in "-M" "-xM"; do
3698 cat > conftest.c <<EOF
3701 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3702 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3704 if test ! -f conftest."${ac_object}" ; then
3706 OL_MKDEP_FLAGS="$flag"
3715 echo "$ac_t""$ol_cv_mkdep" 1>&6
3718 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3723 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3728 if test "${ol_cv_mkdep}" = no ; then
3729 # this will soon become an error
3730 echo "configure: warning: do not know how to generate dependencies" 1>&2
3734 if test $ol_enable_modules != no ; then
3735 for ac_hdr in ltdl.h
3737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3739 echo "configure:3740: checking for $ac_hdr" >&5
3740 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3749 { (eval echo configure:3750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3751 if test -z "$ac_err"; then
3753 eval "ac_cv_header_$ac_safe=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 eval "ac_cv_header_$ac_safe=no"
3763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3764 echo "$ac_t""yes" 1>&6
3765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3766 cat >> confdefs.h <<EOF
3767 #define $ac_tr_hdr 1
3771 echo "$ac_t""no" 1>&6
3776 if test $ac_cv_header_ltdl_h = no ; then
3777 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3781 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3782 echo "configure:3783: checking for lt_dlinit in -lltdl" >&5
3783 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3784 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3787 ac_save_LIBS="$LIBS"
3789 cat > conftest.$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3792 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3801 if { (eval echo configure:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3803 eval "ac_cv_lib_$ac_lib_var=yes"
3805 echo "configure: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3808 eval "ac_cv_lib_$ac_lib_var=no"
3811 LIBS="$ac_save_LIBS"
3814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3817 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3818 cat >> confdefs.h <<EOF
3819 #define $ac_tr_lib 1
3825 echo "$ac_t""no" 1>&6
3828 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3829 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3833 ol_with_bdb2_module=static
3834 ol_with_ldap_module=static
3835 ol_with_ldbm_module=static
3836 ol_with_passwd_module=static
3837 ol_with_perl_module=static
3838 ol_with_shell_module=static
3839 ol_with_tcl_module=static
3843 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3844 echo "configure:3845: checking for EBCDIC" >&5
3845 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3854 #include <__ASCII__/generate_error.h>
3858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3859 { (eval echo configure:3860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3861 if test -z "$ac_err"; then
3863 ol_cv_cpp_ebcdic=yes
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3874 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3875 if test $ol_cv_cpp_ebcdic = yes ; then
3876 cat >> confdefs.h <<\EOF
3877 #define HAVE_EBCDIC 1
3882 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3883 echo "configure:3884: checking for ANSI C header files" >&5
3884 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3896 { (eval echo configure:3897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3898 if test -z "$ac_err"; then
3900 ol_cv_header_stdc=yes
3903 echo "configure: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3906 ol_cv_header_stdc=no
3910 if test $ol_cv_header_stdc = yes; then
3911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 egrep "memchr" >/dev/null 2>&1; then
3922 ol_cv_header_stdc=no
3928 if test $ol_cv_header_stdc = yes; then
3929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 egrep "free" >/dev/null 2>&1; then
3940 ol_cv_header_stdc=no
3946 if test $ol_cv_header_stdc = yes; then
3947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3948 if test "$cross_compiling" = yes; then
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3959 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3960 || ('j' <= (c) && (c) <= 'r') \
3961 || ('s' <= (c) && (c) <= 'z'))
3962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3965 int main () { int i; for (i = 0; i < 256; i++)
3966 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3977 ol_cv_header_stdc=no
3985 echo "$ac_t""$ol_cv_header_stdc" 1>&6
3986 if test $ol_cv_header_stdc = yes; then
3987 cat >> confdefs.h <<\EOF
3988 #define STDC_HEADERS 1
3992 ac_cv_header_stdc=disable
3995 if test $ol_cv_header_stdc != yes; then
3996 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4000 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4003 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_hdr that defines DIR" >&5
4005 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 #include <sys/types.h>
4017 if { (eval echo configure:4018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4019 eval "ac_cv_header_dirent_$ac_safe=yes"
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4024 eval "ac_cv_header_dirent_$ac_safe=no"
4028 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4031 cat >> confdefs.h <<EOF
4032 #define $ac_tr_hdr 1
4034 ac_header_dirent=$ac_hdr; break
4036 echo "$ac_t""no" 1>&6
4039 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4040 if test $ac_header_dirent = dirent.h; then
4041 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4042 echo "configure:4043: checking for opendir in -ldir" >&5
4043 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4044 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 ac_save_LIBS="$LIBS"
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4068 eval "ac_cv_lib_$ac_lib_var=no"
4071 LIBS="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4078 echo "$ac_t""no" 1>&6
4082 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4083 echo "configure:4084: checking for opendir in -lx" >&5
4084 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4085 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 ac_save_LIBS="$LIBS"
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4104 eval "ac_cv_lib_$ac_lib_var=yes"
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4109 eval "ac_cv_lib_$ac_lib_var=no"
4112 LIBS="$ac_save_LIBS"
4115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4116 echo "$ac_t""yes" 1>&6
4119 echo "$ac_t""no" 1>&6
4124 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4125 echo "configure:4126: checking for sys/wait.h that is POSIX.1 compatible" >&5
4126 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 #include <sys/types.h>
4133 #include <sys/wait.h>
4135 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4138 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4143 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4146 if { (eval echo configure:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 ac_cv_header_sys_wait_h=yes
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4153 ac_cv_header_sys_wait_h=no
4158 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4159 if test $ac_cv_header_sys_wait_h = yes; then
4160 cat >> confdefs.h <<\EOF
4161 #define HAVE_SYS_WAIT_H 1
4166 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4167 echo "configure:4168: checking POSIX termios" >&5
4168 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 #include <sys/types.h>
4176 #include <termios.h>
4178 /* SunOS 4.0.3 has termios.h but not the library calls. */
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4184 am_cv_sys_posix_termios=yes
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4189 am_cv_sys_posix_termios=no
4194 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4197 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4198 echo "configure:4199: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4199 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4204 gwinsz_in_termios_h=no
4205 if test $am_cv_sys_posix_termios = yes; then
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 #include <sys/types.h>
4210 # include <termios.h>
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 egrep "yes" >/dev/null 2>&1; then
4219 gwinsz_in_termios_h=yes
4225 if test $gwinsz_in_termios_h = no; then
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 #include <sys/types.h>
4230 # include <sys/ioctl.h>
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 egrep "yes" >/dev/null 2>&1; then
4239 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4247 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4248 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4249 cat >> confdefs.h <<\EOF
4250 #define GWINSZ_IN_SYS_IOCTL 1
4255 if test $am_cv_sys_posix_termios = yes ; then
4256 cat >> confdefs.h <<\EOF
4257 #define HAVE_POSIX_TERMIOS 1
4304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4306 echo "configure:4307: checking for $ac_hdr" >&5
4307 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4316 { (eval echo configure:4317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4318 if test -z "$ac_err"; then
4320 eval "ac_cv_header_$ac_safe=yes"
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4326 eval "ac_cv_header_$ac_safe=no"
4330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4331 echo "$ac_t""yes" 1>&6
4332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4333 cat >> confdefs.h <<EOF
4334 #define $ac_tr_hdr 1
4338 echo "$ac_t""no" 1>&6
4345 echo $ac_n "checking for socket""... $ac_c" 1>&6
4346 echo "configure:4347: checking for socket" >&5
4347 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 /* System header to define __stub macros and hopefully few prototypes,
4354 which can conflict with char socket(); below. */
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4364 /* The GNU C library defines this for functions which it implements
4365 to always fail with ENOSYS. Some functions are actually named
4366 something starting with __ and the normal name is an alias. */
4367 #if defined (__stub_socket) || defined (__stub___socket)
4375 if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4377 eval "ac_cv_func_socket=yes"
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 eval "ac_cv_func_socket=no"
4387 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4388 echo "$ac_t""yes" 1>&6
4391 echo "$ac_t""no" 1>&6
4393 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4394 echo "configure:4395: checking for main in -lsocket" >&5
4395 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4396 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 ac_save_LIBS="$LIBS"
4400 LIBS="-lsocket $LIBS"
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4411 eval "ac_cv_lib_$ac_lib_var=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4416 eval "ac_cv_lib_$ac_lib_var=no"
4419 LIBS="$ac_save_LIBS"
4422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4426 cat >> confdefs.h <<EOF
4427 #define $ac_tr_lib 1
4430 LIBS="-lsocket $LIBS"
4433 echo "$ac_t""no" 1>&6
4436 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4437 echo "configure:4438: checking for main in -lnet" >&5
4438 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4439 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4442 ac_save_LIBS="$LIBS"
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4454 eval "ac_cv_lib_$ac_lib_var=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4459 eval "ac_cv_lib_$ac_lib_var=no"
4462 LIBS="$ac_save_LIBS"
4465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4466 echo "$ac_t""yes" 1>&6
4467 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4468 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4469 cat >> confdefs.h <<EOF
4470 #define $ac_tr_lib 1
4476 echo "$ac_t""no" 1>&6
4479 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4480 echo "configure:4481: checking for socket in -lnet" >&5
4481 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4482 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_save_LIBS="$LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_lib_$ac_lib_var=no"
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_lib 1
4523 echo "$ac_t""no" 1>&6
4526 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4527 echo "configure:4528: checking for main in -lnsl_s" >&5
4528 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 ac_save_LIBS="$LIBS"
4533 LIBS="-lnsl_s $LIBS"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 eval "ac_cv_lib_$ac_lib_var=yes"
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4549 eval "ac_cv_lib_$ac_lib_var=no"
4552 LIBS="$ac_save_LIBS"
4555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4556 echo "$ac_t""yes" 1>&6
4557 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4559 cat >> confdefs.h <<EOF
4560 #define $ac_tr_lib 1
4563 LIBS="-lnsl_s $LIBS"
4566 echo "$ac_t""no" 1>&6
4569 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4570 echo "configure:4571: checking for main in -lnsl" >&5
4571 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4572 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 ac_save_LIBS="$LIBS"
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 eval "ac_cv_lib_$ac_lib_var=yes"
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 eval "ac_cv_lib_$ac_lib_var=no"
4595 LIBS="$ac_save_LIBS"
4598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4601 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4602 cat >> confdefs.h <<EOF
4603 #define $ac_tr_lib 1
4609 echo "$ac_t""no" 1>&6
4612 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4613 echo "configure:4614: checking for socket in -linet" >&5
4614 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4615 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 ac_save_LIBS="$LIBS"
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 eval "ac_cv_lib_$ac_lib_var=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 eval "ac_cv_lib_$ac_lib_var=no"
4642 LIBS="$ac_save_LIBS"
4645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4648 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4649 cat >> confdefs.h <<EOF
4650 #define $ac_tr_lib 1
4656 echo "$ac_t""no" 1>&6
4659 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4660 echo "configure:4661: checking for main in -lgen" >&5
4661 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4662 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 ac_save_LIBS="$LIBS"
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4677 eval "ac_cv_lib_$ac_lib_var=yes"
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4682 eval "ac_cv_lib_$ac_lib_var=no"
4685 LIBS="$ac_save_LIBS"
4688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4689 echo "$ac_t""yes" 1>&6
4690 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4691 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4692 cat >> confdefs.h <<EOF
4693 #define $ac_tr_lib 1
4699 echo "$ac_t""no" 1>&6
4706 echo $ac_n "checking for select""... $ac_c" 1>&6
4707 echo "configure:4708: checking for select" >&5
4708 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4714 /* System header to define __stub macros and hopefully few prototypes,
4715 which can conflict with char select(); below. */
4717 /* Override any gcc2 internal prototype to avoid an error. */
4718 /* We use char because int might match the return type of a gcc2
4719 builtin and then its argument prototype would still apply. */
4725 /* The GNU C library defines this for functions which it implements
4726 to always fail with ENOSYS. Some functions are actually named
4727 something starting with __ and the normal name is an alias. */
4728 #if defined (__stub_select) || defined (__stub___select)
4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4738 eval "ac_cv_func_select=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_func_select=no"
4748 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4752 echo "$ac_t""no" 1>&6
4753 { echo "configure: error: select() required." 1>&2; exit 1; }
4757 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4758 echo "configure:4759: checking types of arguments for select()" >&5
4759 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4769 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4770 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4774 #ifdef HAVE_SYS_TYPES_H
4775 #include <sys/types.h>
4777 #ifdef HAVE_SYS_TIME_H
4778 #include <sys/time.h>
4780 #ifdef HAVE_SYS_SELECT_H
4781 #include <sys/select.h>
4783 #ifdef HAVE_SYS_SOCKET_H
4784 #include <sys/socket.h>
4786 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);
4791 if { (eval echo configure:4792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4793 ac_not_found=no ; break 3
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4810 if test "$ac_not_found" = yes; then
4811 ac_cv_func_select_arg1=int
4812 ac_cv_func_select_arg234='int *'
4813 ac_cv_func_select_arg5='struct timeval *'
4815 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4816 cat >> confdefs.h <<EOF
4817 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4820 cat >> confdefs.h <<EOF
4821 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4824 cat >> confdefs.h <<EOF
4825 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4831 for ac_hdr in regex.h
4833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4835 echo "configure:4836: checking for $ac_hdr" >&5
4836 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4845 { (eval echo configure:4846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4847 if test -z "$ac_err"; then
4849 eval "ac_cv_header_$ac_safe=yes"
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 eval "ac_cv_header_$ac_safe=no"
4859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4860 echo "$ac_t""yes" 1>&6
4861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4862 cat >> confdefs.h <<EOF
4863 #define $ac_tr_hdr 1
4867 echo "$ac_t""no" 1>&6
4871 if test "$ac_cv_header_regex_h" != yes ; then
4872 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4874 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4875 echo "configure:4876: checking for regfree" >&5
4876 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 /* System header to define __stub macros and hopefully few prototypes,
4883 which can conflict with char regfree(); below. */
4885 /* Override any gcc2 internal prototype to avoid an error. */
4886 /* We use char because int might match the return type of a gcc2
4887 builtin and then its argument prototype would still apply. */
4893 /* The GNU C library defines this for functions which it implements
4894 to always fail with ENOSYS. Some functions are actually named
4895 something starting with __ and the normal name is an alias. */
4896 #if defined (__stub_regfree) || defined (__stub___regfree)
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4906 eval "ac_cv_func_regfree=yes"
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 eval "ac_cv_func_regfree=no"
4916 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4917 echo "$ac_t""yes" 1>&6
4920 echo "$ac_t""no" 1>&6
4921 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4926 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4927 echo "configure:4928: checking for compatible POSIX regex" >&5
4928 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4932 if test "$cross_compiling" = yes; then
4933 ol_cv_c_posix_regex=cross
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4939 #include <sys/types.h>
4941 static char *pattern, *string;
4949 if(regcomp(&re, pattern, 0)) {
4953 string = "ALL MATCH";
4955 rc = regexec(&re, string, 0, (void*)0, 0);
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4964 ol_cv_c_posix_regex=yes
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 ol_cv_c_posix_regex=no
4976 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4978 if test "$ol_cv_c_posix_regex" = no ; then
4979 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4983 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4984 echo "configure:4985: checking for sigset in -lV3" >&5
4985 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4986 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 ac_save_LIBS="$LIBS"
4991 cat > conftest.$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4994 /* Override any gcc2 internal prototype to avoid an error. */
4995 /* We use char because int might match the return type of a gcc2
4996 builtin and then its argument prototype would still apply. */
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 eval "ac_cv_lib_$ac_lib_var=yes"
5007 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5010 eval "ac_cv_lib_$ac_lib_var=no"
5013 LIBS="$ac_save_LIBS"
5016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5018 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5019 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5020 cat >> confdefs.h <<EOF
5021 #define $ac_tr_lib 1
5027 echo "$ac_t""no" 1>&6
5033 if test $ol_enable_dns != no ; then
5034 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5035 echo "configure:5036: checking for res_search" >&5
5036 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 /* System header to define __stub macros and hopefully few prototypes,
5043 which can conflict with char res_search(); below. */
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5053 /* The GNU C library defines this for functions which it implements
5054 to always fail with ENOSYS. Some functions are actually named
5055 something starting with __ and the normal name is an alias. */
5056 #if defined (__stub_res_search) || defined (__stub___res_search)
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5066 eval "ac_cv_func_res_search=yes"
5068 echo "configure: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5071 eval "ac_cv_func_res_search=no"
5076 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5080 echo "$ac_t""no" 1>&6
5083 if test $ac_cv_func_res_search = no ; then
5084 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5085 echo "configure:5086: checking for res_search in -lbind" >&5
5086 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 ac_save_LIBS="$LIBS"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 eval "ac_cv_lib_$ac_lib_var=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 eval "ac_cv_lib_$ac_lib_var=no"
5114 LIBS="$ac_save_LIBS"
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_lib 1
5128 echo "$ac_t""no" 1>&6
5131 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5133 if test $ac_cv_func_res_search = no ; then
5134 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5135 echo "configure:5136: checking for __res_search in -lbind" >&5
5136 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 ac_save_LIBS="$LIBS"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5148 char __res_search();
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156 eval "ac_cv_lib_$ac_lib_var=yes"
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5161 eval "ac_cv_lib_$ac_lib_var=no"
5164 LIBS="$ac_save_LIBS"
5167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5171 cat >> confdefs.h <<EOF
5172 #define $ac_tr_lib 1
5178 echo "$ac_t""no" 1>&6
5181 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5183 if test $ac_cv_func_res_search = no ; then
5184 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5185 echo "configure:5186: checking for res_search in -lresolv" >&5
5186 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5187 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 ac_save_LIBS="$LIBS"
5191 LIBS="-lresolv $LIBS"
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
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. */
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5206 eval "ac_cv_lib_$ac_lib_var=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 eval "ac_cv_lib_$ac_lib_var=no"
5214 LIBS="$ac_save_LIBS"
5217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5221 cat >> confdefs.h <<EOF
5222 #define $ac_tr_lib 1
5225 LIBS="-lresolv $LIBS"
5228 echo "$ac_t""no" 1>&6
5231 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5234 if test "$ac_cv_func_res_search" = yes ; then
5235 cat >> confdefs.h <<\EOF
5236 #define HAVE_RES_SEARCH 1
5239 elif test $ol_enable_dns = yes ; then
5240 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5242 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5249 if test $ol_enable_ldapd != no ; then
5250 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5252 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5253 echo "configure:5254: checking for main in -lxtpp" >&5
5254 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5255 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5258 ac_save_LIBS="$LIBS"
5259 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 eval "ac_cv_lib_$ac_lib_var=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_lib_$ac_lib_var=no"
5278 LIBS="$ac_save_LIBS"
5281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5285 cat >> confdefs.h <<\EOF
5289 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5292 echo "$ac_t""no" 1>&6
5296 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5297 echo "configure:5298: checking for main in -ldsap" >&5
5298 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5299 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 ac_save_LIBS="$LIBS"
5303 LIBS="-ldsap -lisode $LIBS"
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5314 eval "ac_cv_lib_$ac_lib_var=yes"
5316 echo "configure: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5319 eval "ac_cv_lib_$ac_lib_var=no"
5322 LIBS="$ac_save_LIBS"
5325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5326 echo "$ac_t""yes" 1>&6
5329 cat >> confdefs.h <<\EOF
5333 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5336 echo "$ac_t""no" 1>&6
5340 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5341 echo "configure:5342: checking for main in -lisode" >&5
5342 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5343 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5346 ac_save_LIBS="$LIBS"
5347 LIBS="-lisode $LIBS"
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5358 eval "ac_cv_lib_$ac_lib_var=yes"
5360 echo "configure: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5363 eval "ac_cv_lib_$ac_lib_var=no"
5366 LIBS="$ac_save_LIBS"
5369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5373 cat >> confdefs.h <<\EOF
5374 #define HAVE_ISODE 1
5377 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5380 echo "$ac_t""no" 1>&6
5386 if test $ol_link_isode != no; then
5387 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5388 echo "configure:5389: checking for main in -lpp" >&5
5389 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5390 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 ac_save_LIBS="$LIBS"
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5403 if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5405 eval "ac_cv_lib_$ac_lib_var=yes"
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 eval "ac_cv_lib_$ac_lib_var=no"
5413 LIBS="$ac_save_LIBS"
5416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5417 echo "$ac_t""yes" 1>&6
5419 cat >> confdefs.h <<\EOF
5423 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5426 echo "$ac_t""no" 1>&6
5431 # Extract the first word of "pepsy", so it can be a program name with args.
5432 set dummy pepsy; ac_word=$2
5433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_word" >&5
5435 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5440 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5443 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5448 for ac_dir in $ac_dummy; do
5449 test -z "$ac_dir" && ac_dir=.
5450 if test -f $ac_dir/$ac_word; then
5451 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5459 PEPSY="$ac_cv_path_PEPSY"
5460 if test -n "$PEPSY"; then
5461 echo "$ac_t""$PEPSY" 1>&6
5463 echo "$ac_t""no" 1>&6
5468 if test $ol_enable_quipu != no ; then
5469 for ac_hdr in quipu/commonarg.h
5471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5473 echo "configure:5474: checking for $ac_hdr" >&5
5474 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5483 { (eval echo configure:5484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5485 if test -z "$ac_err"; then
5487 eval "ac_cv_header_$ac_safe=yes"
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 eval "ac_cv_header_$ac_safe=no"
5497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5498 echo "$ac_t""yes" 1>&6
5499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5500 cat >> confdefs.h <<EOF
5501 #define $ac_tr_hdr 1
5505 echo "$ac_t""no" 1>&6
5510 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5512 elif test $ol_enable_quipu = auto ; then
5513 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5515 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5521 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5522 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5526 echo "configure:5527: checking for $ac_hdr" >&5
5527 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5536 { (eval echo configure:5537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5538 if test -z "$ac_err"; then
5540 eval "ac_cv_header_$ac_safe=yes"
5543 echo "configure: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5546 eval "ac_cv_header_$ac_safe=no"
5550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5551 echo "$ac_t""yes" 1>&6
5552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5553 cat >> confdefs.h <<EOF
5554 #define $ac_tr_hdr 1
5558 echo "$ac_t""no" 1>&6
5563 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5564 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5565 echo "configure:5566: checking for main in -lkrb4" >&5
5566 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5567 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5570 ac_save_LIBS="$LIBS"
5571 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5580 if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582 eval "ac_cv_lib_$ac_lib_var=yes"
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 eval "ac_cv_lib_$ac_lib_var=no"
5590 LIBS="$ac_save_LIBS"
5593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5594 echo "$ac_t""yes" 1>&6
5597 echo "$ac_t""no" 1>&6
5602 if test $have_k5 = yes ; then
5603 ol_with_kerberos=found
5604 ol_link_kerberos=yes
5606 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5608 LIBS="$KRB_LIBS $LIBS"
5610 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5611 echo "configure:5612: checking for des_debug in Kerberos libraries" >&5
5612 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5617 LIBS="$KRB_LIBS $LIBS"
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5622 #include <kerberosIV/krb.h>
5623 #include <kerberosIV/des.h>
5624 extern int des_debug;
5632 if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5634 ol_cv_var_des_debug=yes
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 ol_cv_var_des_debug=no
5646 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5648 if test $ol_cv_var_des_debug = yes ; then
5649 cat >> confdefs.h <<\EOF
5650 #define HAVE_DES_DEBUG 1
5660 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5661 for ac_hdr in krb.h des.h
5663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5665 echo "configure:5666: checking for $ac_hdr" >&5
5666 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5669 cat > conftest.$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5675 { (eval echo configure:5676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5677 if test -z "$ac_err"; then
5679 eval "ac_cv_header_$ac_safe=yes"
5682 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5685 eval "ac_cv_header_$ac_safe=no"
5689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5692 cat >> confdefs.h <<EOF
5693 #define $ac_tr_hdr 1
5697 echo "$ac_t""no" 1>&6
5702 if test $ac_cv_header_krb_h = yes ; then
5703 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5704 echo "configure:5705: checking for main in -lkrb" >&5
5705 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5706 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 ac_save_LIBS="$LIBS"
5710 LIBS="-lkrb -ldes $LIBS"
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5719 if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5721 eval "ac_cv_lib_$ac_lib_var=yes"
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5726 eval "ac_cv_lib_$ac_lib_var=no"
5729 LIBS="$ac_save_LIBS"
5732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5736 echo "$ac_t""no" 1>&6
5741 if test $have_k4 = yes ; then
5742 ol_with_kerberos=found
5743 ol_link_kerberos=yes
5745 KRB_LIBS="-lkrb -ldes"
5750 if test $ol_link_kerberos = yes ; then
5751 cat >> confdefs.h <<\EOF
5752 #define HAVE_KERBEROS 1
5758 if test $ol_with_tls != no ; then
5760 for ac_hdr in openssl/ssl.h ssl.h
5762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_hdr" >&5
5765 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5774 { (eval echo configure:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5776 if test -z "$ac_err"; then
5778 eval "ac_cv_header_$ac_safe=yes"
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5784 eval "ac_cv_header_$ac_safe=no"
5788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5789 echo "$ac_t""yes" 1>&6
5790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5791 cat >> confdefs.h <<EOF
5792 #define $ac_tr_hdr 1
5796 echo "$ac_t""no" 1>&6
5801 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5802 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5803 echo "configure:5804: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5804 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5805 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5806 echo $ac_n "(cached) $ac_c" 1>&6
5808 ac_save_LIBS="$LIBS"
5809 LIBS="-lssl -lcrypto $LIBS"
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5813 /* Override any gcc2 internal prototype to avoid an error. */
5814 /* We use char because int might match the return type of a gcc2
5815 builtin and then its argument prototype would still apply. */
5816 char SSLeay_add_ssl_algorithms();
5819 SSLeay_add_ssl_algorithms()
5822 if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5824 eval "ac_cv_lib_$ac_lib_var=yes"
5826 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5829 eval "ac_cv_lib_$ac_lib_var=no"
5832 LIBS="$ac_save_LIBS"
5835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5836 echo "$ac_t""yes" 1>&6
5840 echo "$ac_t""no" 1>&6
5845 if test $have_ssleay = no ; then
5846 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5847 echo "configure:5848: checking for SSL_library_init in -lssl" >&5
5848 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5849 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 ac_save_LIBS="$LIBS"
5853 LIBS="-lssl -lcrypto $LIBS"
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */
5860 char SSL_library_init();
5866 if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5868 eval "ac_cv_lib_$ac_lib_var=yes"
5870 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5873 eval "ac_cv_lib_$ac_lib_var=no"
5876 LIBS="$ac_save_LIBS"
5879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5880 echo "$ac_t""yes" 1>&6
5884 echo "$ac_t""no" 1>&6
5890 if test $have_ssleay = no ; then
5891 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5892 echo "configure:5893: checking for ssl3_accept in -lssl" >&5
5893 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5894 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5897 ac_save_LIBS="$LIBS"
5898 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5911 if { (eval echo configure:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5913 eval "ac_cv_lib_$ac_lib_var=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5918 eval "ac_cv_lib_$ac_lib_var=no"
5921 LIBS="$ac_save_LIBS"
5924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5925 echo "$ac_t""yes" 1>&6
5929 echo "$ac_t""no" 1>&6
5935 if test $have_ssleay = yes ; then
5939 cat >> confdefs.h <<\EOF
5940 #define HAVE_SSLEAY 1
5944 if test $need_rsaref = yes; then
5945 cat >> confdefs.h <<\EOF
5946 #define HAVE_RSAREF 1
5950 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5952 TLS_LIBS="-lssl -lcrypto"
5958 if test $ol_link_tls = yes ; then
5959 cat >> confdefs.h <<\EOF
5967 gethostbyname_r gethostbyaddr_r \
5970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5971 echo "configure:5972: checking for $ac_func" >&5
5972 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 /* System header to define __stub macros and hopefully few prototypes,
5979 which can conflict with char $ac_func(); below. */
5981 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5989 /* The GNU C library defines this for functions which it implements
5990 to always fail with ENOSYS. Some functions are actually named
5991 something starting with __ and the normal name is an alias. */
5992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6000 if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6002 eval "ac_cv_func_$ac_func=yes"
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6007 eval "ac_cv_func_$ac_func=no"
6012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6013 echo "$ac_t""yes" 1>&6
6014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6015 cat >> confdefs.h <<EOF
6016 #define $ac_tr_func 1
6020 echo "$ac_t""no" 1>&6
6025 if test "$ac_cv_func_ctime_r" = no ; then
6026 ol_cv_func_ctime_r_nargs=0
6028 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6029 echo "configure:6030: checking number of arguments of ctime_r" >&5
6030 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6038 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6041 if { (eval echo configure:6042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6043 ol_cv_func_ctime_r_nargs=3
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6053 time_t ti; char *buffer; ctime_r(&ti,buffer);
6056 if { (eval echo configure:6057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6058 ol_cv_func_ctime_r_nargs=2
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6063 ol_cv_func_ctime_r_nargs=0
6070 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6071 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6072 cat >> confdefs.h <<EOF
6073 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6080 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6081 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6082 echo "configure:6083: checking number of arguments of gethostbyname_r" >&5
6083 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6084 echo $ac_n "(cached) $ac_c" 1>&6
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089 #include <sys/types.h>
6090 #include <sys/socket.h>
6091 #include <netinet/in.h>
6093 #define BUFSIZE (sizeof(struct hostent)+10)
6095 struct hostent hent; char buffer[BUFSIZE];
6096 int bufsize=BUFSIZE;int h_errno;
6097 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6098 buffer, bufsize, &h_errno);
6101 if { (eval echo configure:6102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6103 ol_cv_func_gethostbyname_r_nargs=5
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <sys/types.h>
6112 #include <sys/socket.h>
6113 #include <netinet/in.h>
6115 #define BUFSIZE (sizeof(struct hostent)+10)
6117 struct hostent hent;struct hostent *rhent;
6118 char buffer[BUFSIZE];
6119 int bufsize=BUFSIZE;int h_errno;
6120 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6124 if { (eval echo configure:6125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6126 ol_cv_func_gethostbyname_r_nargs=6
6128 echo "configure: failed program was:" >&5
6129 cat conftest.$ac_ext >&5
6131 ol_cv_func_gethostbyname_r_nargs=0
6138 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6139 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6140 cat >> confdefs.h <<EOF
6141 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6147 ol_cv_func_gethostbyname_r_nargs=0
6150 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6151 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6152 echo "configure:6153: checking number of arguments of gethostbyaddr_r" >&5
6153 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6
6156 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6159 #include <sys/types.h>
6160 #include <sys/socket.h>
6161 #include <netinet/in.h>
6163 #define BUFSIZE (sizeof(struct hostent)+10)
6165 struct hostent hent; char buffer[BUFSIZE];
6167 size_t alen=sizeof(struct in_addr);
6168 int bufsize=BUFSIZE;int h_errno;
6169 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6170 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6173 if { (eval echo configure:6174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6175 ol_cv_func_gethostbyaddr_r_nargs=7
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6183 #include <sys/types.h>
6184 #include <sys/socket.h>
6185 #include <netinet/in.h>
6187 #define BUFSIZE (sizeof(struct hostent)+10)
6189 struct hostent hent;
6190 struct hostent *rhent; char buffer[BUFSIZE];
6192 size_t alen=sizeof(struct in_addr);
6193 int bufsize=BUFSIZE;int h_errno;
6194 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6195 alen, AF_INET, &hent, buffer, bufsize,
6199 if { (eval echo configure:6200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6201 ol_cv_func_gethostbyaddr_r_nargs=8
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6206 ol_cv_func_gethostbyaddr_r_nargs=0
6213 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6214 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6215 cat >> confdefs.h <<EOF
6216 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6222 ol_cv_func_gethostbyaddr_r_nargs=0
6225 if test "$ac_cv_func_ctime_r" = yes \
6226 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6227 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6228 -a "$ac_cv_func_gethostbyname_r" = yes \
6229 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6230 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6231 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6232 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6233 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6236 cat >> confdefs.h <<\EOF
6237 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6243 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6244 -o $ol_with_threads = posix ; then
6246 for ac_hdr in pthread.h sched.h
6248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6250 echo "configure:6251: checking for $ac_hdr" >&5
6251 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6260 { (eval echo configure:6261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6262 if test -z "$ac_err"; then
6264 eval "ac_cv_header_$ac_safe=yes"
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6270 eval "ac_cv_header_$ac_safe=no"
6274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6275 echo "$ac_t""yes" 1>&6
6276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6277 cat >> confdefs.h <<EOF
6278 #define $ac_tr_hdr 1
6282 echo "$ac_t""no" 1>&6
6287 if test $ac_cv_header_pthread_h = yes ; then
6288 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6289 echo "configure:6290: checking POSIX thread version" >&5
6290 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6294 cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6298 # include <pthread.h>
6299 /* this check could be improved */
6300 # ifdef PTHREAD_ONCE_INIT
6301 pthread_version_final
6305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6306 egrep "pthread_version_final" >/dev/null 2>&1; then
6308 ol_pthread_final=yes
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6320 # include <pthread.h>
6321 /* this check could be improved */
6322 # ifdef pthread_once_init
6323 pthread_version_draft4
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6330 ol_pthread_draft4=yes
6333 ol_pthread_draft4=no
6338 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6339 ol_cv_pthread_version=final
6340 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6341 ol_cv_pthread_version=draft4
6343 ol_cv_pthread_version=unknown
6348 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6351 if test $ol_cv_pthread_version = final ; then
6352 cat >> confdefs.h <<\EOF
6353 #define HAVE_PTHREADS_FINAL 1
6356 elif test $ol_cv_pthread_version = draft4 ; then
6357 cat >> confdefs.h <<\EOF
6358 #define HAVE_PTHREADS_D4 1
6362 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6365 # consider threads found
6366 ol_with_threads=found
6369 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6370 echo "configure:6371: checking for LinuxThreads pthread.h" >&5
6371 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6372 echo $ac_n "(cached) $ac_c" 1>&6
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 #include <pthread.h>
6379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6380 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6382 ol_cv_header_linux_threads=yes
6385 ol_cv_header_linux_threads=no
6392 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6393 if test $ol_cv_header_linux_threads = yes; then
6394 cat >> confdefs.h <<\EOF
6395 #define HAVE_LINUX_THREADS 1
6402 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6403 echo "configure:6404: checking for pthread_create in default libraries" >&5
6404 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6408 if test "$cross_compiling" = yes; then
6409 ol_cv_pthread_create=yes
6411 cat > conftest.$ac_ext <<EOF
6412 #line 6413 "configure"
6413 #include "confdefs.h"
6415 #include <pthread.h>
6417 #define NULL (void*)0
6420 static void *task(p)
6423 return (void *) (p == NULL);
6426 int main(argc, argv)
6433 /* make sure pthread_create() isn't just a stub */
6434 #if HAVE_PTHREADS_D4
6435 status = pthread_create(&t, pthread_attr_default, task, NULL);
6437 status = pthread_create(&t, NULL, task, NULL);
6440 if( status ) return status;
6442 /* make sure pthread_detach() isn't just a stub */
6443 #if HAVE_PTHREADS_D4
6444 status = pthread_detach( &t );
6446 status = pthread_detach( t );
6453 if { (eval echo configure:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6455 ol_cv_pthread_create=yes
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6460 ol_cv_pthread_create=no
6467 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6469 if test $ol_cv_pthread_create != no ; then
6470 ol_link_threads=posix
6474 # Pthread try link: -mt (ol_cv_pthread_mt)
6475 if test "$ol_link_threads" = no ; then
6477 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
6478 echo "configure:6479: checking for pthread link with -mt" >&5
6479 if eval "test \"\${ol_cv_pthread_mt+set}\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6491 #include <pthread.h>
6493 #define NULL (void*)0
6500 #if HAVE_PTHREADS_D4
6501 pthread_create(&t, pthread_attr_default, NULL, NULL);
6502 pthread_detach( &t );
6504 pthread_create(&t, NULL, NULL, NULL);
6505 pthread_detach( t );
6507 #ifdef HAVE_LINUX_THREADS
6508 pthread_kill_other_threads_np();
6513 if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6515 ol_cv_pthread_mt=yes
6517 echo "configure: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6529 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
6531 if test $ol_cv_pthread_mt = yes ; then
6532 ol_link_pthreads="-mt"
6533 ol_link_threads=posix
6537 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6538 if test "$ol_link_threads" = no ; then
6540 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6541 echo "configure:6542: checking for pthread link with -kthread" >&5
6542 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6543 echo $ac_n "(cached) $ac_c" 1>&6
6548 LIBS="-kthread $LIBS"
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6554 #include <pthread.h>
6556 #define NULL (void*)0
6563 #if HAVE_PTHREADS_D4
6564 pthread_create(&t, pthread_attr_default, NULL, NULL);
6565 pthread_detach( &t );
6567 pthread_create(&t, NULL, NULL, NULL);
6568 pthread_detach( t );
6570 #ifdef HAVE_LINUX_THREADS
6571 pthread_kill_other_threads_np();
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578 ol_cv_pthread_kthread=yes
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6583 ol_cv_pthread_kthread=no
6592 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6594 if test $ol_cv_pthread_kthread = yes ; then
6595 ol_link_pthreads="-kthread"
6596 ol_link_threads=posix
6600 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6601 if test "$ol_link_threads" = no ; then
6603 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6604 echo "configure:6605: checking for pthread link with -pthread" >&5
6605 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6611 LIBS="-pthread $LIBS"
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6617 #include <pthread.h>
6619 #define NULL (void*)0
6626 #if HAVE_PTHREADS_D4
6627 pthread_create(&t, pthread_attr_default, NULL, NULL);
6628 pthread_detach( &t );
6630 pthread_create(&t, NULL, NULL, NULL);
6631 pthread_detach( t );
6633 #ifdef HAVE_LINUX_THREADS
6634 pthread_kill_other_threads_np();
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641 ol_cv_pthread_pthread=yes
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6646 ol_cv_pthread_pthread=no
6655 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6657 if test $ol_cv_pthread_pthread = yes ; then
6658 ol_link_pthreads="-pthread"
6659 ol_link_threads=posix
6663 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6664 if test "$ol_link_threads" = no ; then
6666 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6667 echo "configure:6668: checking for pthread link with -pthreads" >&5
6668 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6669 echo $ac_n "(cached) $ac_c" 1>&6
6674 LIBS="-pthreads $LIBS"
6676 cat > conftest.$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6680 #include <pthread.h>
6682 #define NULL (void*)0
6689 #if HAVE_PTHREADS_D4
6690 pthread_create(&t, pthread_attr_default, NULL, NULL);
6691 pthread_detach( &t );
6693 pthread_create(&t, NULL, NULL, NULL);
6694 pthread_detach( t );
6696 #ifdef HAVE_LINUX_THREADS
6697 pthread_kill_other_threads_np();
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6704 ol_cv_pthread_pthreads=yes
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6709 ol_cv_pthread_pthreads=no
6718 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
6720 if test $ol_cv_pthread_pthreads = yes ; then
6721 ol_link_pthreads="-pthreads"
6722 ol_link_threads=posix
6726 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
6727 if test "$ol_link_threads" = no ; then
6729 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
6730 echo "configure:6731: checking for pthread link with -mthreads" >&5
6731 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
6732 echo $ac_n "(cached) $ac_c" 1>&6
6737 LIBS="-mthreads $LIBS"
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6743 #include <pthread.h>
6745 #define NULL (void*)0
6752 #if HAVE_PTHREADS_D4
6753 pthread_create(&t, pthread_attr_default, NULL, NULL);
6754 pthread_detach( &t );
6756 pthread_create(&t, NULL, NULL, NULL);
6757 pthread_detach( t );
6759 #ifdef HAVE_LINUX_THREADS
6760 pthread_kill_other_threads_np();
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6767 ol_cv_pthread_mthreads=yes
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 ol_cv_pthread_mthreads=no
6781 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6783 if test $ol_cv_pthread_mthreads = yes ; then
6784 ol_link_pthreads="-mthreads"
6785 ol_link_threads=posix
6789 # Pthread try link: -thread (ol_cv_pthread_thread)
6790 if test "$ol_link_threads" = no ; then
6792 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
6793 echo "configure:6794: checking for pthread link with -thread" >&5
6794 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6800 LIBS="-thread $LIBS"
6802 cat > conftest.$ac_ext <<EOF
6803 #line 6804 "configure"
6804 #include "confdefs.h"
6806 #include <pthread.h>
6808 #define NULL (void*)0
6815 #if HAVE_PTHREADS_D4
6816 pthread_create(&t, pthread_attr_default, NULL, NULL);
6817 pthread_detach( &t );
6819 pthread_create(&t, NULL, NULL, NULL);
6820 pthread_detach( t );
6822 #ifdef HAVE_LINUX_THREADS
6823 pthread_kill_other_threads_np();
6828 if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6830 ol_cv_pthread_thread=yes
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6835 ol_cv_pthread_thread=no
6844 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
6846 if test $ol_cv_pthread_thread = yes ; then
6847 ol_link_pthreads="-thread"
6848 ol_link_threads=posix
6853 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
6854 if test "$ol_link_threads" = no ; then
6855 # try -lpthread -lmach -lexc -lc_r
6856 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
6857 echo "configure:6858: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
6858 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6864 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6870 #include <pthread.h>
6872 #define NULL (void*)0
6879 #if HAVE_PTHREADS_D4
6880 pthread_create(&t, pthread_attr_default, NULL, NULL);
6881 pthread_detach( &t );
6883 pthread_create(&t, NULL, NULL, NULL);
6884 pthread_detach( t );
6886 #ifdef HAVE_LINUX_THREADS
6887 pthread_kill_other_threads_np();
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6894 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
6896 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6899 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
6908 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
6910 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
6911 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
6912 ol_link_threads=posix
6916 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
6917 if test "$ol_link_threads" = no ; then
6918 # try -lpthread -lmach -lexc
6919 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
6920 echo "configure:6921: checking for pthread link with -lpthread -lmach -lexc" >&5
6921 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6
6927 LIBS="-lpthread -lmach -lexc $LIBS"
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6933 #include <pthread.h>
6935 #define NULL (void*)0
6942 #if HAVE_PTHREADS_D4
6943 pthread_create(&t, pthread_attr_default, NULL, NULL);
6944 pthread_detach( &t );
6946 pthread_create(&t, NULL, NULL, NULL);
6947 pthread_detach( t );
6949 #ifdef HAVE_LINUX_THREADS
6950 pthread_kill_other_threads_np();
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6957 ol_cv_pthread_lpthread_lmach_lexc=yes
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 ol_cv_pthread_lpthread_lmach_lexc=no
6971 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
6973 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
6974 ol_link_pthreads="-lpthread -lmach -lexc"
6975 ol_link_threads=posix
6980 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
6981 if test "$ol_link_threads" = no ; then
6982 # try -lpthread -Wl,-woff,85
6983 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
6984 echo "configure:6985: checking for pthread link with -lpthread -Wl,-woff,85" >&5
6985 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
6986 echo $ac_n "(cached) $ac_c" 1>&6
6991 LIBS="-lpthread -Wl,-woff,85 $LIBS"
6993 cat > conftest.$ac_ext <<EOF
6994 #line 6995 "configure"
6995 #include "confdefs.h"
6997 #include <pthread.h>
6999 #define NULL (void*)0
7006 #if HAVE_PTHREADS_D4
7007 pthread_create(&t, pthread_attr_default, NULL, NULL);
7008 pthread_detach( &t );
7010 pthread_create(&t, NULL, NULL, NULL);
7011 pthread_detach( t );
7013 #ifdef HAVE_LINUX_THREADS
7014 pthread_kill_other_threads_np();
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7021 ol_cv_pthread_lib_lpthread_woff=yes
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7026 ol_cv_pthread_lib_lpthread_woff=no
7035 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7037 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7038 ol_link_pthreads="-lpthread -Wl,-woff,85"
7039 ol_link_threads=posix
7044 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7045 if test "$ol_link_threads" = no ; then
7047 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7048 echo "configure:7049: checking for pthread link with -lpthread" >&5
7049 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7055 LIBS="-lpthread $LIBS"
7057 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7061 #include <pthread.h>
7063 #define NULL (void*)0
7070 #if HAVE_PTHREADS_D4
7071 pthread_create(&t, pthread_attr_default, NULL, NULL);
7072 pthread_detach( &t );
7074 pthread_create(&t, NULL, NULL, NULL);
7075 pthread_detach( t );
7077 #ifdef HAVE_LINUX_THREADS
7078 pthread_kill_other_threads_np();
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7085 ol_cv_pthread_lpthread=yes
7087 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7090 ol_cv_pthread_lpthread=no
7099 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7101 if test $ol_cv_pthread_lpthread = yes ; then
7102 ol_link_pthreads="-lpthread"
7103 ol_link_threads=posix
7107 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7108 if test "$ol_link_threads" = no ; then
7110 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7111 echo "configure:7112: checking for pthread link with -lc_r" >&5
7112 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
7113 echo $ac_n "(cached) $ac_c" 1>&6
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7124 #include <pthread.h>
7126 #define NULL (void*)0
7133 #if HAVE_PTHREADS_D4
7134 pthread_create(&t, pthread_attr_default, NULL, NULL);
7135 pthread_detach( &t );
7137 pthread_create(&t, NULL, NULL, NULL);
7138 pthread_detach( t );
7140 #ifdef HAVE_LINUX_THREADS
7141 pthread_kill_other_threads_np();
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7148 ol_cv_pthread_lc_r=yes
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7153 ol_cv_pthread_lc_r=no
7162 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
7164 if test $ol_cv_pthread_lc_r = yes ; then
7165 ol_link_pthreads="-lc_r"
7166 ol_link_threads=posix
7171 # Pthread try link: -threads (ol_cv_pthread_threads)
7172 if test "$ol_link_threads" = no ; then
7174 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
7175 echo "configure:7176: checking for pthread link with -threads" >&5
7176 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
7177 echo $ac_n "(cached) $ac_c" 1>&6
7182 LIBS="-threads $LIBS"
7184 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7188 #include <pthread.h>
7190 #define NULL (void*)0
7197 #if HAVE_PTHREADS_D4
7198 pthread_create(&t, pthread_attr_default, NULL, NULL);
7199 pthread_detach( &t );
7201 pthread_create(&t, NULL, NULL, NULL);
7202 pthread_detach( t );
7204 #ifdef HAVE_LINUX_THREADS
7205 pthread_kill_other_threads_np();
7210 if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7212 ol_cv_pthread_threads=yes
7214 echo "configure: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7217 ol_cv_pthread_threads=no
7226 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
7228 if test $ol_cv_pthread_threads = yes ; then
7229 ol_link_pthreads="-threads"
7230 ol_link_threads=posix
7235 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
7236 if test "$ol_link_threads" = no ; then
7237 # try -lpthreads -lmach -lexc -lc_r
7238 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
7239 echo "configure:7240: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
7240 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
7241 echo $ac_n "(cached) $ac_c" 1>&6
7246 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
7248 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7252 #include <pthread.h>
7254 #define NULL (void*)0
7261 #if HAVE_PTHREADS_D4
7262 pthread_create(&t, pthread_attr_default, NULL, NULL);
7263 pthread_detach( &t );
7265 pthread_create(&t, NULL, NULL, NULL);
7266 pthread_detach( t );
7268 #ifdef HAVE_LINUX_THREADS
7269 pthread_kill_other_threads_np();
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7276 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7281 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
7290 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
7292 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
7293 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
7294 ol_link_threads=posix
7298 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
7299 if test "$ol_link_threads" = no ; then
7300 # try -lpthreads -lmach -lexc
7301 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
7302 echo "configure:7303: checking for pthread link with -lpthreads -lmach -lexc" >&5
7303 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
7304 echo $ac_n "(cached) $ac_c" 1>&6
7309 LIBS="-lpthreads -lmach -lexc $LIBS"
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7315 #include <pthread.h>
7317 #define NULL (void*)0
7324 #if HAVE_PTHREADS_D4
7325 pthread_create(&t, pthread_attr_default, NULL, NULL);
7326 pthread_detach( &t );
7328 pthread_create(&t, NULL, NULL, NULL);
7329 pthread_detach( t );
7331 #ifdef HAVE_LINUX_THREADS
7332 pthread_kill_other_threads_np();
7337 if { (eval echo configure:7338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7339 ol_cv_pthread_lpthreads_lmach_lexc=yes
7341 echo "configure: failed program was:" >&5
7342 cat conftest.$ac_ext >&5
7344 ol_cv_pthread_lpthreads_lmach_lexc=no
7353 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
7355 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
7356 ol_link_pthreads="-lpthreads -lmach -lexc"
7357 ol_link_threads=posix
7361 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
7362 if test "$ol_link_threads" = no ; then
7363 # try -lpthreads -lexc
7364 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
7365 echo "configure:7366: checking for pthread link with -lpthreads -lexc" >&5
7366 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7372 LIBS="-lpthreads -lexc $LIBS"
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7378 #include <pthread.h>
7380 #define NULL (void*)0
7387 #if HAVE_PTHREADS_D4
7388 pthread_create(&t, pthread_attr_default, NULL, NULL);
7389 pthread_detach( &t );
7391 pthread_create(&t, NULL, NULL, NULL);
7392 pthread_detach( t );
7394 #ifdef HAVE_LINUX_THREADS
7395 pthread_kill_other_threads_np();
7400 if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7402 ol_cv_pthread_lpthreads_lexc=yes
7404 echo "configure: failed program was:" >&5
7405 cat conftest.$ac_ext >&5
7407 ol_cv_pthread_lpthreads_lexc=no
7416 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
7418 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
7419 ol_link_pthreads="-lpthreads -lexc"
7420 ol_link_threads=posix
7425 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
7426 if test "$ol_link_threads" = no ; then
7428 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
7429 echo "configure:7430: checking for pthread link with -lpthreads" >&5
7430 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7436 LIBS="-lpthreads $LIBS"
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7442 #include <pthread.h>
7444 #define NULL (void*)0
7451 #if HAVE_PTHREADS_D4
7452 pthread_create(&t, pthread_attr_default, NULL, NULL);
7453 pthread_detach( &t );
7455 pthread_create(&t, NULL, NULL, NULL);
7456 pthread_detach( t );
7458 #ifdef HAVE_LINUX_THREADS
7459 pthread_kill_other_threads_np();
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7466 ol_cv_pthread_lib_lpthreads=yes
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7471 ol_cv_pthread_lib_lpthreads=no
7480 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
7482 if test $ol_cv_pthread_lib_lpthreads = yes ; then
7483 ol_link_pthreads="-lpthreads"
7484 ol_link_threads=posix
7489 if test $ol_link_threads != no ; then
7490 cat >> confdefs.h <<\EOF
7491 #define HAVE_PTHREADS 1
7495 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
7497 save_CPPFLAGS="$CPPFLAGS"
7499 LIBS="$LTHREAD_LIBS $LIBS"
7501 for ac_func in sched_yield pthread_yield
7503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7504 echo "configure:7505: checking for $ac_func" >&5
7505 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7506 echo $ac_n "(cached) $ac_c" 1>&6
7508 cat > conftest.$ac_ext <<EOF
7509 #line 7510 "configure"
7510 #include "confdefs.h"
7511 /* System header to define __stub macros and hopefully few prototypes,
7512 which can conflict with char $ac_func(); below. */
7514 /* Override any gcc2 internal prototype to avoid an error. */
7515 /* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7522 /* The GNU C library defines this for functions which it implements
7523 to always fail with ENOSYS. Some functions are actually named
7524 something starting with __ and the normal name is an alias. */
7525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7535 eval "ac_cv_func_$ac_func=yes"
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7540 eval "ac_cv_func_$ac_func=no"
7545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7548 cat >> confdefs.h <<EOF
7549 #define $ac_tr_func 1
7553 echo "$ac_t""no" 1>&6
7558 if test $ac_cv_func_sched_yield = no -a \
7559 $ac_cv_func_pthread_yield = no ; then
7560 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
7561 echo "configure:7562: checking for sched_yield in -lrt" >&5
7562 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
7563 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 ac_save_LIBS="$LIBS"
7568 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7571 /* Override any gcc2 internal prototype to avoid an error. */
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7582 eval "ac_cv_lib_$ac_lib_var=yes"
7584 echo "configure: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7587 eval "ac_cv_lib_$ac_lib_var=no"
7590 LIBS="$ac_save_LIBS"
7593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7594 echo "$ac_t""yes" 1>&6
7595 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
7596 cat >> confdefs.h <<\EOF
7597 #define HAVE_SCHED_YIELD 1
7600 ac_cv_func_sched_yield=yes
7602 echo "$ac_t""no" 1>&6
7603 ac_cv_func_sched_yield=no
7607 if test $ac_cv_func_sched_yield = no -a \
7608 $ac_cv_func_pthread_yield = no ; then
7609 for ac_func in thr_yield
7611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_func" >&5
7613 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* System header to define __stub macros and hopefully few prototypes,
7620 which can conflict with char $ac_func(); below. */
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7630 /* The GNU C library defines this for functions which it implements
7631 to always fail with ENOSYS. Some functions are actually named
7632 something starting with __ and the normal name is an alias. */
7633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7641 if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7643 eval "ac_cv_func_$ac_func=yes"
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7648 eval "ac_cv_func_$ac_func=no"
7653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7654 echo "$ac_t""yes" 1>&6
7655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7656 cat >> confdefs.h <<EOF
7657 #define $ac_tr_func 1
7661 echo "$ac_t""no" 1>&6
7666 if test $ac_cv_func_sched_yield = no -a \
7667 $ac_cv_func_pthread_yield = no -a \
7668 "$ac_cv_func_thr_yield" = no ; then
7669 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
7672 for ac_func in pthread_kill
7674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7675 echo "configure:7676: checking for $ac_func" >&5
7676 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 /* System header to define __stub macros and hopefully few prototypes,
7683 which can conflict with char $ac_func(); below. */
7685 /* Override any gcc2 internal prototype to avoid an error. */
7686 /* We use char because int might match the return type of a gcc2
7687 builtin and then its argument prototype would still apply. */
7693 /* The GNU C library defines this for functions which it implements
7694 to always fail with ENOSYS. Some functions are actually named
7695 something starting with __ and the normal name is an alias. */
7696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7706 eval "ac_cv_func_$ac_func=yes"
7708 echo "configure: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7711 eval "ac_cv_func_$ac_func=no"
7716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7717 echo "$ac_t""yes" 1>&6
7718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7719 cat >> confdefs.h <<EOF
7720 #define $ac_tr_func 1
7724 echo "$ac_t""no" 1>&6
7729 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
7730 echo "configure:7731: checking for pthread_detach with <pthread.h>" >&5
7731 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7735 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7739 #include <pthread.h>
7741 #define NULL (void*)0
7745 pthread_detach(NULL);
7748 if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7750 ol_cv_func_pthread_detach=yes
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7755 ol_cv_func_pthread_detach=no
7761 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
7763 if test $ol_cv_func_pthread_detach = no ; then
7764 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
7767 cat >> confdefs.h <<\EOF
7768 #define HAVE_PTHREAD_DETACH 1
7773 pthread_setconcurrency \
7774 pthread_getconcurrency \
7775 thr_setconcurrency \
7776 thr_getconcurrency \
7779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7780 echo "configure:7781: checking for $ac_func" >&5
7781 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7784 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7787 /* System header to define __stub macros and hopefully few prototypes,
7788 which can conflict with char $ac_func(); below. */
7790 /* Override any gcc2 internal prototype to avoid an error. */
7791 /* We use char because int might match the return type of a gcc2
7792 builtin and then its argument prototype would still apply. */
7798 /* The GNU C library defines this for functions which it implements
7799 to always fail with ENOSYS. Some functions are actually named
7800 something starting with __ and the normal name is an alias. */
7801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7811 eval "ac_cv_func_$ac_func=yes"
7813 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5
7816 eval "ac_cv_func_$ac_func=no"
7821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7822 echo "$ac_t""yes" 1>&6
7823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7824 cat >> confdefs.h <<EOF
7825 #define $ac_tr_func 1
7829 echo "$ac_t""no" 1>&6
7835 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
7836 echo "configure:7837: checking for pthread_kill_other_threads_np" >&5
7837 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7840 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7843 /* System header to define __stub macros and hopefully few prototypes,
7844 which can conflict with char pthread_kill_other_threads_np(); below. */
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7849 char pthread_kill_other_threads_np();
7854 /* The GNU C library defines this for functions which it implements
7855 to always fail with ENOSYS. Some functions are actually named
7856 something starting with __ and the normal name is an alias. */
7857 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
7860 f = pthread_kill_other_threads_np;
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7867 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 eval "ac_cv_func_pthread_kill_other_threads_np=no"
7877 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
7878 echo "$ac_t""yes" 1>&6
7881 echo "$ac_t""no" 1>&6
7884 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
7885 echo "configure:7886: checking for LinuxThreads implementation" >&5
7886 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7889 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
7892 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
7897 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
7898 echo "configure:7899: checking for LinuxThreads consistency" >&5
7899 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7903 if test $ol_cv_header_linux_threads = yes -a \
7904 $ol_cv_sys_linux_threads = yes; then
7905 ol_cv_linux_threads=yes
7906 elif test $ol_cv_header_linux_threads = no -a \
7907 $ol_cv_sys_linux_threads = no; then
7908 ol_cv_linux_threads=no
7910 ol_cv_linux_threads=error
7915 echo "$ac_t""$ol_cv_linux_threads" 1>&6
7918 if test $ol_cv_linux_threads = error; then
7919 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
7922 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
7923 echo "configure:7924: checking if pthread_create() works" >&5
7924 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7928 if test "$cross_compiling" = yes; then
7929 ol_cv_pthread_create_works=yes
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7935 #include <pthread.h>
7937 #define NULL (void*)0
7940 static void *task(p)
7943 return (void *) (p == NULL);
7946 int main(argc, argv)
7951 #if HAVE_PTHREADS_D4
7952 exit(pthread_create(&t, pthread_attr_default, task, NULL));
7954 exit(pthread_create(&t, NULL, task, NULL));
7959 if { (eval echo configure:7960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7961 ol_cv_pthread_create_works=yes
7963 echo "configure: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7966 ol_cv_pthread_create_works=no
7973 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
7975 if test $ol_cv_pthread_create_works = no ; then
7976 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
7979 if test $ol_with_yielding_select = auto ; then
7980 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
7981 echo "configure:7982: checking if select yields when using pthreads" >&5
7982 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7986 if test "$cross_compiling" = yes; then
7987 ol_cv_pthread_select_yields=cross
7989 cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7993 #include <sys/types.h>
7994 #include <sys/time.h>
7996 #include <pthread.h>
7998 #define NULL (void*) 0
8001 static int fildes[2];
8003 static void *task(p)
8015 FD_SET(fildes[0], &rfds);
8017 /* we're not interested in any fds */
8018 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
8025 exit(0); /* if we exit here, the select blocked the whole process */
8028 int main(argc, argv)
8034 /* create a pipe to select */
8035 if(pipe(&fildes[0])) {
8040 #ifdef HAVE_PTHREAD_SETCONCURRENCY
8041 (void) pthread_setconcurrency(2);
8043 #ifdef HAVE_THR_SETCONCURRENCY
8044 /* Set Solaris LWP concurrency to 2 */
8045 thr_setconcurrency(2);
8049 #if HAVE_PTHREADS_D4
8050 pthread_create(&t, pthread_attr_default, task, NULL);
8052 pthread_create(&t, NULL, task, NULL);
8055 #if HAVE_SCHED_YIELD
8056 sched_yield(); /* make sure task runs first */
8058 #ifdef HAVE_PTHREAD_YIELD
8059 pthread_yield(); /* make sure task runs first */
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8068 ol_cv_pthread_select_yields=no
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 ol_cv_pthread_select_yields=yes
8080 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
8082 if test $ol_cv_pthread_select_yields = cross ; then
8083 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
8086 if test $ol_cv_pthread_select_yields = yes ; then
8087 ol_with_yielding_select=yes
8091 CPPFLAGS="$save_CPPFLAGS"
8094 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
8098 if test $ol_with_threads = posix ; then
8099 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
8103 if test $ol_with_threads = auto -o $ol_with_threads = yes \
8104 -o $ol_with_threads = mach ; then
8106 for ac_hdr in mach/cthreads.h
8108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8110 echo "configure:8111: checking for $ac_hdr" >&5
8111 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8120 { (eval echo configure:8121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8122 if test -z "$ac_err"; then
8124 eval "ac_cv_header_$ac_safe=yes"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 eval "ac_cv_header_$ac_safe=no"
8134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8135 echo "$ac_t""yes" 1>&6
8136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8137 cat >> confdefs.h <<EOF
8138 #define $ac_tr_hdr 1
8142 echo "$ac_t""no" 1>&6
8146 if test $ac_cv_header_mach_cthreads_h = yes ; then
8147 ol_with_threads=found
8149 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
8150 echo "configure:8151: checking for cthread_fork" >&5
8151 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 /* System header to define __stub macros and hopefully few prototypes,
8158 which can conflict with char cthread_fork(); below. */
8160 /* Override any gcc2 internal prototype to avoid an error. */
8161 /* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8163 char cthread_fork();
8168 /* The GNU C library defines this for functions which it implements
8169 to always fail with ENOSYS. Some functions are actually named
8170 something starting with __ and the normal name is an alias. */
8171 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8181 eval "ac_cv_func_cthread_fork=yes"
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8186 eval "ac_cv_func_cthread_fork=no"
8191 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
8192 echo "$ac_t""yes" 1>&6
8195 echo "$ac_t""no" 1>&6
8199 if test $ol_link_threads = no ; then
8200 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
8201 echo "configure:8202: checking for cthread_fork with -all_load" >&5
8202 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8207 LIBS="-all_load $LIBS"
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 #include <mach/cthreads.h>
8214 cthread_fork((void *)0, (void *)0);
8218 if { (eval echo configure:8219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8220 ol_cv_cthread_all_load=yes
8222 echo "configure: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8225 ol_cv_cthread_all_load=no
8232 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
8234 if test $ol_cv_cthread_all_load = yes ; then
8235 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
8236 ol_link_threads=mach
8240 if test $ol_link_threads != no ; then
8241 : check for cthread specific functionality here
8242 cat >> confdefs.h <<\EOF
8243 #define HAVE_MACH_CTHREADS 1
8247 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
8251 if test $ol_with_threads = mach ; then
8252 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
8256 if test $ol_with_threads = auto -o $ol_with_threads = yes \
8257 -o $ol_with_threads = lwp ; then
8259 for ac_hdr in thread.h synch.h
8261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8263 echo "configure:8264: checking for $ac_hdr" >&5
8264 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8273 { (eval echo configure:8274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8275 if test -z "$ac_err"; then
8277 eval "ac_cv_header_$ac_safe=yes"
8280 echo "configure: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8283 eval "ac_cv_header_$ac_safe=no"
8287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8288 echo "$ac_t""yes" 1>&6
8289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8290 cat >> confdefs.h <<EOF
8291 #define $ac_tr_hdr 1
8295 echo "$ac_t""no" 1>&6
8299 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
8300 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
8301 echo "configure:8302: checking for thr_create in -lthread" >&5
8302 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
8303 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8306 ac_save_LIBS="$LIBS"
8307 LIBS="-lthread $LIBS"
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8311 /* Override any gcc2 internal prototype to avoid an error. */
8312 /* We use char because int might match the return type of a gcc2
8313 builtin and then its argument prototype would still apply. */
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8322 eval "ac_cv_lib_$ac_lib_var=yes"
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 eval "ac_cv_lib_$ac_lib_var=no"
8330 LIBS="$ac_save_LIBS"
8333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8334 echo "$ac_t""yes" 1>&6
8337 echo "$ac_t""no" 1>&6
8342 if test $have_thr = yes ; then
8343 cat >> confdefs.h <<\EOF
8347 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
8350 if test $ol_with_yielding_select = auto ; then
8351 ol_with_yielding_select=yes
8355 thr_setconcurrency \
8356 thr_getconcurrency \
8359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8360 echo "configure:8361: checking for $ac_func" >&5
8361 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8362 echo $ac_n "(cached) $ac_c" 1>&6
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8367 /* System header to define __stub macros and hopefully few prototypes,
8368 which can conflict with char $ac_func(); below. */
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8391 eval "ac_cv_func_$ac_func=yes"
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8396 eval "ac_cv_func_$ac_func=no"
8401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8402 echo "$ac_t""yes" 1>&6
8403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8404 cat >> confdefs.h <<EOF
8405 #define $ac_tr_func 1
8409 echo "$ac_t""no" 1>&6
8416 for ac_hdr in lwp/lwp.h
8418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8420 echo "configure:8421: checking for $ac_hdr" >&5
8421 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8422 echo $ac_n "(cached) $ac_c" 1>&6
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8430 { (eval echo configure:8431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8432 if test -z "$ac_err"; then
8434 eval "ac_cv_header_$ac_safe=yes"
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 eval "ac_cv_header_$ac_safe=no"
8444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8445 echo "$ac_t""yes" 1>&6
8446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8447 cat >> confdefs.h <<EOF
8448 #define $ac_tr_hdr 1
8452 echo "$ac_t""no" 1>&6
8456 if test $ac_cv_header_lwp_lwp_h = yes ; then
8457 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
8458 echo "configure:8459: checking for lwp_create in -llwp" >&5
8459 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
8460 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8463 ac_save_LIBS="$LIBS"
8465 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8468 /* Override any gcc2 internal prototype to avoid an error. */
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8479 eval "ac_cv_lib_$ac_lib_var=yes"
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8484 eval "ac_cv_lib_$ac_lib_var=no"
8487 LIBS="$ac_save_LIBS"
8490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8491 echo "$ac_t""yes" 1>&6
8494 echo "$ac_t""no" 1>&6
8499 if test $have_lwp = yes ; then
8500 cat >> confdefs.h <<\EOF
8504 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
8507 if test $ol_with_yielding_select = auto ; then
8508 ol_with_yielding_select=no
8514 if test $ol_with_yielding_select = yes ; then
8515 cat >> confdefs.h <<\EOF
8516 #define HAVE_YIELDING_SELECT 1
8521 if test $ol_with_threads = manual ; then
8524 echo "configure: warning: thread defines and link options must be set manually" 1>&2
8526 for ac_hdr in pthread.h sched.h
8528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8530 echo "configure:8531: checking for $ac_hdr" >&5
8531 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8540 { (eval echo configure:8541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8542 if test -z "$ac_err"; then
8544 eval "ac_cv_header_$ac_safe=yes"
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8550 eval "ac_cv_header_$ac_safe=no"
8554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8555 echo "$ac_t""yes" 1>&6
8556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8557 cat >> confdefs.h <<EOF
8558 #define $ac_tr_hdr 1
8562 echo "$ac_t""no" 1>&6
8566 for ac_func in sched_yield pthread_yield
8568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8569 echo "configure:8570: checking for $ac_func" >&5
8570 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8571 echo $ac_n "(cached) $ac_c" 1>&6
8573 cat > conftest.$ac_ext <<EOF
8574 #line 8575 "configure"
8575 #include "confdefs.h"
8576 /* System header to define __stub macros and hopefully few prototypes,
8577 which can conflict with char $ac_func(); below. */
8579 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8587 /* The GNU C library defines this for functions which it implements
8588 to always fail with ENOSYS. Some functions are actually named
8589 something starting with __ and the normal name is an alias. */
8590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8598 if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8600 eval "ac_cv_func_$ac_func=yes"
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8605 eval "ac_cv_func_$ac_func=no"
8610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8611 echo "$ac_t""yes" 1>&6
8612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8613 cat >> confdefs.h <<EOF
8614 #define $ac_tr_func 1
8618 echo "$ac_t""no" 1>&6
8623 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
8624 echo "configure:8625: checking for LinuxThreads pthread.h" >&5
8625 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 #include <pthread.h>
8633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8634 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
8636 ol_cv_header_linux_threads=yes
8639 ol_cv_header_linux_threads=no
8646 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
8647 if test $ol_cv_header_linux_threads = yes; then
8648 cat >> confdefs.h <<\EOF
8649 #define HAVE_LINUX_THREADS 1
8655 for ac_hdr in mach/cthreads.h
8657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8659 echo "configure:8660: checking for $ac_hdr" >&5
8660 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8663 cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8669 { (eval echo configure:8670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8671 if test -z "$ac_err"; then
8673 eval "ac_cv_header_$ac_safe=yes"
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8679 eval "ac_cv_header_$ac_safe=no"
8683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8684 echo "$ac_t""yes" 1>&6
8685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8686 cat >> confdefs.h <<EOF
8687 #define $ac_tr_hdr 1
8691 echo "$ac_t""no" 1>&6
8695 for ac_hdr in lwp/lwp.h
8697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8699 echo "configure:8700: checking for $ac_hdr" >&5
8700 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8709 { (eval echo configure:8710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8711 if test -z "$ac_err"; then
8713 eval "ac_cv_header_$ac_safe=yes"
8716 echo "configure: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8719 eval "ac_cv_header_$ac_safe=no"
8723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8724 echo "$ac_t""yes" 1>&6
8725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8726 cat >> confdefs.h <<EOF
8727 #define $ac_tr_hdr 1
8731 echo "$ac_t""no" 1>&6
8735 for ac_hdr in thread.h synch.h
8737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8739 echo "configure:8740: checking for $ac_hdr" >&5
8740 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8743 cat > conftest.$ac_ext <<EOF
8744 #line 8745 "configure"
8745 #include "confdefs.h"
8748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8749 { (eval echo configure:8750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8751 if test -z "$ac_err"; then
8753 eval "ac_cv_header_$ac_safe=yes"
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 eval "ac_cv_header_$ac_safe=no"
8763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8764 echo "$ac_t""yes" 1>&6
8765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8766 cat >> confdefs.h <<EOF
8767 #define $ac_tr_hdr 1
8771 echo "$ac_t""no" 1>&6
8777 if test $ol_link_threads != no ; then
8778 cat >> confdefs.h <<\EOF
8782 cat >> confdefs.h <<\EOF
8783 #define _REENTRANT 1
8786 cat >> confdefs.h <<\EOF
8787 #define THREAD_SAFE 1
8790 cat >> confdefs.h <<\EOF
8791 #define _THREAD_SAFE 1
8794 cat >> confdefs.h <<\EOF
8795 #define THREADSAFE 1
8798 cat >> confdefs.h <<\EOF
8799 #define _THREADSAFE 1
8802 cat >> confdefs.h <<\EOF
8803 #define _SGI_MP_SOURCE 1
8807 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
8808 echo "configure:8809: checking for thread specific errno" >&5
8809 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
8810 echo $ac_n "(cached) $ac_c" 1>&6
8813 cat > conftest.$ac_ext <<EOF
8814 #line 8815 "configure"
8815 #include "confdefs.h"
8821 if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8823 ol_cv_errno_thread_specific=yes
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8828 ol_cv_errno_thread_specific=no
8834 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
8836 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
8837 echo "configure:8838: checking for thread specific h_errno" >&5
8838 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8842 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8850 if { (eval echo configure:8851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8852 ol_cv_h_errno_thread_specific=yes
8854 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8857 ol_cv_h_errno_thread_specific=no
8863 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
8865 if test $ol_cv_errno_thread_specific != yes \
8866 -o $ol_cv_h_errno_thread_specific != yes ; then
8867 LIBS="$LTHREAD_LIBS $LIBS"
8873 if test $ol_link_threads = no ; then
8874 if test $ol_with_threads = yes ; then
8875 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
8878 if test $ol_with_threads = auto ; then
8879 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
8883 cat >> confdefs.h <<\EOF
8884 #define NO_THREADS 1
8890 if test $ol_link_threads != no ; then
8891 cat >> confdefs.h <<\EOF
8892 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8899 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
8900 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
8901 echo "configure:8902: checking for DB2 library" >&5
8902 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8906 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
8907 echo "configure:8908: checking for db_open in -ldb" >&5
8908 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
8909 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8912 ac_save_LIBS="$LIBS"
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 /* Override any gcc2 internal prototype to avoid an error. */
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8926 if { (eval echo configure:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8928 eval "ac_cv_lib_$ac_lib_var=yes"
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8933 eval "ac_cv_lib_$ac_lib_var=no"
8936 LIBS="$ac_save_LIBS"
8939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8940 echo "$ac_t""yes" 1>&6
8943 echo "$ac_t""no" 1>&6
8951 echo "$ac_t""$ol_cv_lib_db2" 1>&6
8955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8957 echo "configure:8958: checking for $ac_hdr" >&5
8958 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8959 echo $ac_n "(cached) $ac_c" 1>&6
8961 cat > conftest.$ac_ext <<EOF
8962 #line 8963 "configure"
8963 #include "confdefs.h"
8966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8967 { (eval echo configure:8968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8969 if test -z "$ac_err"; then
8971 eval "ac_cv_header_$ac_safe=yes"
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8977 eval "ac_cv_header_$ac_safe=no"
8981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8982 echo "$ac_t""yes" 1>&6
8983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8984 cat >> confdefs.h <<EOF
8985 #define $ac_tr_hdr 1
8989 echo "$ac_t""no" 1>&6
8993 if test $ac_cv_header_db_h = yes ; then
8994 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
8995 echo "configure:8996: checking if db.h is DB2" >&5
8996 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
8997 echo $ac_n "(cached) $ac_c" 1>&6
9000 cat > conftest.$ac_ext <<EOF
9001 #line 9002 "configure"
9002 #include "confdefs.h"
9005 /* this check could be improved */
9006 # ifdef DB_VERSION_MAJOR
9007 # if DB_VERSION_MAJOR == 2
9013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9014 egrep "__db_version_2" >/dev/null 2>&1; then
9016 ol_cv_header_db2=yes
9025 echo "$ac_t""$ol_cv_header_db2" 1>&6
9032 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
9033 echo "configure:9034: checking for Berkeley DB2" >&5
9034 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9038 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
9039 ol_cv_berkeley_db2=no
9041 ol_cv_berkeley_db2=yes
9046 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
9047 if test $ol_cv_berkeley_db2 = yes ; then
9048 cat >> confdefs.h <<\EOF
9049 #define HAVE_BERKELEY_DB2 1
9055 if test $ol_cv_berkeley_db2 = yes ; then
9057 ol_with_ldbm_api=db2
9059 if test $ol_with_ldbm_type = hash ; then
9060 cat >> confdefs.h <<\EOF
9061 #define LDBM_USE_DBHASH 1
9065 cat >> confdefs.h <<\EOF
9066 #define LDBM_USE_DBBTREE 1
9071 if test $ol_cv_lib_db2 != yes ; then
9072 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
9078 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
9082 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
9083 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
9084 echo "configure:9085: checking for Berkeley DB library" >&5
9085 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9089 for ac_hdr in db1/db.h
9091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9093 echo "configure:9094: checking for $ac_hdr" >&5
9094 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9103 { (eval echo configure:9104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9105 if test -z "$ac_err"; then
9107 eval "ac_cv_header_$ac_safe=yes"
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9113 eval "ac_cv_header_$ac_safe=no"
9117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9118 echo "$ac_t""yes" 1>&6
9119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9120 cat >> confdefs.h <<EOF
9121 #define $ac_tr_hdr 1
9125 echo "$ac_t""no" 1>&6
9130 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9131 echo "configure:9132: checking for dbopen" >&5
9132 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9135 cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9138 /* System header to define __stub macros and hopefully few prototypes,
9139 which can conflict with char dbopen(); below. */
9141 /* Override any gcc2 internal prototype to avoid an error. */
9142 /* We use char because int might match the return type of a gcc2
9143 builtin and then its argument prototype would still apply. */
9149 /* The GNU C library defines this for functions which it implements
9150 to always fail with ENOSYS. Some functions are actually named
9151 something starting with __ and the normal name is an alias. */
9152 #if defined (__stub_dbopen) || defined (__stub___dbopen)
9160 if { (eval echo configure:9161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9162 eval "ac_cv_func_dbopen=yes"
9164 echo "configure: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9167 eval "ac_cv_func_dbopen=no"
9172 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
9173 echo "$ac_t""yes" 1>&6
9176 echo "$ac_t""no" 1>&6
9178 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
9179 echo "configure:9180: checking for dbopen in -ldb1" >&5
9180 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
9181 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9182 echo $ac_n "(cached) $ac_c" 1>&6
9184 ac_save_LIBS="$LIBS"
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 /* Override any gcc2 internal prototype to avoid an error. */
9190 /* We use char because int might match the return type of a gcc2
9191 builtin and then its argument prototype would still apply. */
9198 if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9200 eval "ac_cv_lib_$ac_lib_var=yes"
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9205 eval "ac_cv_lib_$ac_lib_var=no"
9208 LIBS="$ac_save_LIBS"
9211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9212 echo "$ac_t""yes" 1>&6
9215 echo "$ac_t""no" 1>&6
9217 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9218 echo "configure:9219: checking for dbopen in -ldb" >&5
9219 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
9220 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9221 echo $ac_n "(cached) $ac_c" 1>&6
9223 ac_save_LIBS="$LIBS"
9225 cat > conftest.$ac_ext <<EOF
9226 #line 9227 "configure"
9227 #include "confdefs.h"
9228 /* Override any gcc2 internal prototype to avoid an error. */
9229 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9239 eval "ac_cv_lib_$ac_lib_var=yes"
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9244 eval "ac_cv_lib_$ac_lib_var=no"
9247 LIBS="$ac_save_LIBS"
9250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9251 echo "$ac_t""yes" 1>&6
9254 echo "$ac_t""no" 1>&6
9268 echo "$ac_t""$ol_cv_lib_db" 1>&6
9271 for ac_hdr in db_185.h
9273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9275 echo "configure:9276: checking for $ac_hdr" >&5
9276 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9277 echo $ac_n "(cached) $ac_c" 1>&6
9279 cat > conftest.$ac_ext <<EOF
9280 #line 9281 "configure"
9281 #include "confdefs.h"
9284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9285 { (eval echo configure:9286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9287 if test -z "$ac_err"; then
9289 eval "ac_cv_header_$ac_safe=yes"
9292 echo "configure: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9295 eval "ac_cv_header_$ac_safe=no"
9299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9300 echo "$ac_t""yes" 1>&6
9301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9302 cat >> confdefs.h <<EOF
9303 #define $ac_tr_hdr 1
9307 echo "$ac_t""no" 1>&6
9311 if test "$ol_cv_header_db2" = yes ; then
9313 ol_cv_header_db=$ac_cv_header_db_185_h
9315 ol_cv_header_db=$ac_cv_header_db_h
9320 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
9321 echo "configure:9322: checking for Berkeley DB" >&5
9322 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9326 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
9327 ol_cv_berkeley_db=no
9329 ol_cv_berkeley_db=yes
9334 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
9335 if test $ol_cv_berkeley_db = yes ; then
9336 cat >> confdefs.h <<\EOF
9337 #define HAVE_BERKELEY_DB 1
9343 if test $ol_cv_berkeley_db = yes ; then
9347 if test $ol_with_ldbm_type = hash ; then
9348 cat >> confdefs.h <<\EOF
9349 #define LDBM_USE_DBHASH 1
9353 cat >> confdefs.h <<\EOF
9354 #define LDBM_USE_DBBTREE 1
9359 if test $ol_cv_lib_db != yes ; then
9360 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
9365 if test $ol_with_ldbm_api = manual ; then
9368 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
9370 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
9372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9374 echo "configure:9375: checking for $ac_hdr" >&5
9375 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9384 { (eval echo configure:9385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9386 if test -z "$ac_err"; then
9388 eval "ac_cv_header_$ac_safe=yes"
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 eval "ac_cv_header_$ac_safe=no"
9398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9399 echo "$ac_t""yes" 1>&6
9400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9401 cat >> confdefs.h <<EOF
9402 #define $ac_tr_hdr 1
9406 echo "$ac_t""no" 1>&6
9412 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
9413 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
9414 ol_with_ldbm_api=none
9417 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
9418 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
9419 echo "configure:9420: checking for MDBM library" >&5
9420 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
9421 echo $ac_n "(cached) $ac_c" 1>&6
9424 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
9425 echo "configure:9426: checking for mdbm_set_chain" >&5
9426 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
9427 echo $ac_n "(cached) $ac_c" 1>&6
9429 cat > conftest.$ac_ext <<EOF
9430 #line 9431 "configure"
9431 #include "confdefs.h"
9432 /* System header to define __stub macros and hopefully few prototypes,
9433 which can conflict with char mdbm_set_chain(); below. */
9435 /* Override any gcc2 internal prototype to avoid an error. */
9436 /* We use char because int might match the return type of a gcc2
9437 builtin and then its argument prototype would still apply. */
9438 char mdbm_set_chain();
9443 /* The GNU C library defines this for functions which it implements
9444 to always fail with ENOSYS. Some functions are actually named
9445 something starting with __ and the normal name is an alias. */
9446 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456 eval "ac_cv_func_mdbm_set_chain=yes"
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9461 eval "ac_cv_func_mdbm_set_chain=no"
9466 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
9467 echo "$ac_t""yes" 1>&6
9470 echo "$ac_t""no" 1>&6
9472 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
9473 echo "configure:9474: checking for mdbm_set_chain in -lmdbm" >&5
9474 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
9475 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9478 ac_save_LIBS="$LIBS"
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9483 /* Override any gcc2 internal prototype to avoid an error. */
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9486 char mdbm_set_chain();
9492 if { (eval echo configure:9493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9494 eval "ac_cv_lib_$ac_lib_var=yes"
9496 echo "configure: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9499 eval "ac_cv_lib_$ac_lib_var=no"
9502 LIBS="$ac_save_LIBS"
9505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9506 echo "$ac_t""yes" 1>&6
9507 ol_cv_lib_mdbm=-lmdbm
9509 echo "$ac_t""no" 1>&6
9520 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
9523 for ac_hdr in mdbm.h
9525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9527 echo "configure:9528: checking for $ac_hdr" >&5
9528 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9537 { (eval echo configure:9538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9539 if test -z "$ac_err"; then
9541 eval "ac_cv_header_$ac_safe=yes"
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9547 eval "ac_cv_header_$ac_safe=no"
9551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9552 echo "$ac_t""yes" 1>&6
9553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9554 cat >> confdefs.h <<EOF
9555 #define $ac_tr_hdr 1
9559 echo "$ac_t""no" 1>&6
9563 echo $ac_n "checking for db""... $ac_c" 1>&6
9564 echo "configure:9565: checking for db" >&5
9565 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9569 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
9577 echo "$ac_t""$ol_cv_mdbm" 1>&6
9578 if test $ol_cv_mdbm = yes ; then
9579 cat >> confdefs.h <<\EOF
9586 if test $ol_cv_mdbm = yes ; then
9588 ol_with_ldbm_api=mdbm
9589 if test $ol_cv_lib_mdbm != yes ; then
9590 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
9595 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
9596 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
9597 echo "configure:9598: checking for GDBM library" >&5
9598 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
9599 echo $ac_n "(cached) $ac_c" 1>&6
9602 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
9603 echo "configure:9604: checking for gdbm_open" >&5
9604 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
9605 echo $ac_n "(cached) $ac_c" 1>&6
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char gdbm_open(); below. */
9613 /* Override any gcc2 internal prototype to avoid an error. */
9614 /* We use char because int might match the return type of a gcc2
9615 builtin and then its argument prototype would still apply. */
9621 /* The GNU C library defines this for functions which it implements
9622 to always fail with ENOSYS. Some functions are actually named
9623 something starting with __ and the normal name is an alias. */
9624 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
9632 if { (eval echo configure:9633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9634 eval "ac_cv_func_gdbm_open=yes"
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9639 eval "ac_cv_func_gdbm_open=no"
9644 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
9645 echo "$ac_t""yes" 1>&6
9648 echo "$ac_t""no" 1>&6
9650 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
9651 echo "configure:9652: checking for gdbm_open in -lgdbm" >&5
9652 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
9653 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9656 ac_save_LIBS="$LIBS"
9658 cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661 /* Override any gcc2 internal prototype to avoid an error. */
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9672 eval "ac_cv_lib_$ac_lib_var=yes"
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9677 eval "ac_cv_lib_$ac_lib_var=no"
9680 LIBS="$ac_save_LIBS"
9683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9684 echo "$ac_t""yes" 1>&6
9685 ol_cv_lib_gdbm=-lgdbm
9687 echo "$ac_t""no" 1>&6
9698 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
9701 for ac_hdr in gdbm.h
9703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9705 echo "configure:9706: checking for $ac_hdr" >&5
9706 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9707 echo $ac_n "(cached) $ac_c" 1>&6
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9715 { (eval echo configure:9716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9717 if test -z "$ac_err"; then
9719 eval "ac_cv_header_$ac_safe=yes"
9722 echo "configure: failed program was:" >&5
9723 cat conftest.$ac_ext >&5
9725 eval "ac_cv_header_$ac_safe=no"
9729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9730 echo "$ac_t""yes" 1>&6
9731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9732 cat >> confdefs.h <<EOF
9733 #define $ac_tr_hdr 1
9737 echo "$ac_t""no" 1>&6
9741 echo $ac_n "checking for db""... $ac_c" 1>&6
9742 echo "configure:9743: checking for db" >&5
9743 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
9744 echo $ac_n "(cached) $ac_c" 1>&6
9747 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
9755 echo "$ac_t""$ol_cv_gdbm" 1>&6
9756 if test $ol_cv_gdbm = yes ; then
9757 cat >> confdefs.h <<\EOF
9764 if test $ol_cv_gdbm = yes ; then
9766 ol_with_ldbm_api=gdbm
9768 if test $ol_cv_lib_gdbm != yes ; then
9769 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
9774 if test $ol_with_ldbm_api = auto ; then
9775 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
9776 elif test $ol_with_ldbm_api = ndbm ; then
9777 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
9778 echo "configure:9779: checking for NDBM library" >&5
9779 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9783 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9784 echo "configure:9785: checking for dbm_open" >&5
9785 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
9786 echo $ac_n "(cached) $ac_c" 1>&6
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791 /* System header to define __stub macros and hopefully few prototypes,
9792 which can conflict with char dbm_open(); below. */
9794 /* Override any gcc2 internal prototype to avoid an error. */
9795 /* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
9813 if { (eval echo configure:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9815 eval "ac_cv_func_dbm_open=yes"
9817 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9820 eval "ac_cv_func_dbm_open=no"
9825 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
9826 echo "$ac_t""yes" 1>&6
9829 echo "$ac_t""no" 1>&6
9831 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
9832 echo "configure:9833: checking for dbm_open in -lndbm" >&5
9833 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9834 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9835 echo $ac_n "(cached) $ac_c" 1>&6
9837 ac_save_LIBS="$LIBS"
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 /* Override any gcc2 internal prototype to avoid an error. */
9843 /* We use char because int might match the return type of a gcc2
9844 builtin and then its argument prototype would still apply. */
9851 if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9853 eval "ac_cv_lib_$ac_lib_var=yes"
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9858 eval "ac_cv_lib_$ac_lib_var=no"
9861 LIBS="$ac_save_LIBS"
9864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9865 echo "$ac_t""yes" 1>&6
9866 ol_cv_lib_ndbm=-lndbm
9868 echo "$ac_t""no" 1>&6
9870 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9871 echo "configure:9872: checking for dbm_open in -ldbm" >&5
9872 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9873 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9876 ac_save_LIBS="$LIBS"
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9890 if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9892 eval "ac_cv_lib_$ac_lib_var=yes"
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9897 eval "ac_cv_lib_$ac_lib_var=no"
9900 LIBS="$ac_save_LIBS"
9903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
9905 ol_cv_lib_ndbm=-ldbm
9907 echo "$ac_t""no" 1>&6
9920 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
9923 for ac_hdr in ndbm.h
9925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9927 echo "configure:9928: checking for $ac_hdr" >&5
9928 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9937 { (eval echo configure:9938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9939 if test -z "$ac_err"; then
9941 eval "ac_cv_header_$ac_safe=yes"
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9947 eval "ac_cv_header_$ac_safe=no"
9951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9952 echo "$ac_t""yes" 1>&6
9953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9954 cat >> confdefs.h <<EOF
9955 #define $ac_tr_hdr 1
9959 echo "$ac_t""no" 1>&6
9963 echo $ac_n "checking for db""... $ac_c" 1>&6
9964 echo "configure:9965: checking for db" >&5
9965 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
9966 echo $ac_n "(cached) $ac_c" 1>&6
9969 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
9977 echo "$ac_t""$ol_cv_ndbm" 1>&6
9978 if test $ol_cv_ndbm = yes ; then
9979 cat >> confdefs.h <<\EOF
9986 if test $ol_cv_ndbm = yes ; then
9988 ol_with_ldbm_api=ndbm
9990 if test $ol_cv_lib_ndbm != yes ; then
9991 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
9996 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
9997 echo "configure: warning: could not find suitable LDBM backend" 1>&2
9998 if test $ol_enable_ldbm = yes ; then
9999 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
10002 echo "configure: warning: disabling LDBM" 1>&2
10006 if test $ol_enable_wrappers != no ; then
10007 for ac_hdr in tcpd.h
10009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10011 echo "configure:10012: checking for $ac_hdr" >&5
10012 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10015 cat > conftest.$ac_ext <<EOF
10016 #line 10017 "configure"
10017 #include "confdefs.h"
10020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10021 { (eval echo configure:10022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10023 if test -z "$ac_err"; then
10025 eval "ac_cv_header_$ac_safe=yes"
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10031 eval "ac_cv_header_$ac_safe=no"
10035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10036 echo "$ac_t""yes" 1>&6
10037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10038 cat >> confdefs.h <<EOF
10039 #define $ac_tr_hdr 1
10043 echo "$ac_t""no" 1>&6
10048 if test $ac_cv_header_tcpd_h != yes ; then
10051 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
10052 echo "configure:10053: checking for main in -lwrap" >&5
10053 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
10054 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10057 ac_save_LIBS="$LIBS"
10058 LIBS="-lwrap $LIBS"
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10067 if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10069 eval "ac_cv_lib_$ac_lib_var=yes"
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10074 eval "ac_cv_lib_$ac_lib_var=no"
10077 LIBS="$ac_save_LIBS"
10080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10081 echo "$ac_t""yes" 1>&6
10084 echo "$ac_t""no" 1>&6
10090 if test $have_wrappers = yes ; then
10091 cat >> confdefs.h <<\EOF
10092 #define HAVE_TCPD 1
10095 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
10097 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
10098 echo "configure:10099: checking for main in -lnsl" >&5
10099 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
10100 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10103 ac_save_LIBS="$LIBS"
10105 cat > conftest.$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10113 if { (eval echo configure:10114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10115 eval "ac_cv_lib_$ac_lib_var=yes"
10117 echo "configure: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10120 eval "ac_cv_lib_$ac_lib_var=no"
10123 LIBS="$ac_save_LIBS"
10126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10127 echo "$ac_t""yes" 1>&6
10128 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10130 cat >> confdefs.h <<EOF
10131 #define $ac_tr_lib 1
10137 echo "$ac_t""no" 1>&6
10141 echo "configure: warning: could not find -lwrap" 1>&2
10142 if test $ol_enable_wrappers = yes ; then
10143 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
10146 echo "configure: warning: disabling wrappers support" 1>&2
10147 ol_enable_wrappers=no
10151 if test $ol_enable_syslog != no ; then
10152 echo $ac_n "checking for openlog""... $ac_c" 1>&6
10153 echo "configure:10154: checking for openlog" >&5
10154 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
10155 echo $ac_n "(cached) $ac_c" 1>&6
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 /* System header to define __stub macros and hopefully few prototypes,
10161 which can conflict with char openlog(); below. */
10162 #include <assert.h>
10163 /* Override any gcc2 internal prototype to avoid an error. */
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10171 /* The GNU C library defines this for functions which it implements
10172 to always fail with ENOSYS. Some functions are actually named
10173 something starting with __ and the normal name is an alias. */
10174 #if defined (__stub_openlog) || defined (__stub___openlog)
10182 if { (eval echo configure:10183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10184 eval "ac_cv_func_openlog=yes"
10186 echo "configure: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10189 eval "ac_cv_func_openlog=no"
10194 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
10195 echo "$ac_t""yes" 1>&6
10198 echo "$ac_t""no" 1>&6
10201 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
10202 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
10204 ol_enable_syslog=$ac_cv_func_openlog
10207 if test $ol_enable_dmalloc != no ; then
10208 for ac_hdr in dmalloc.h
10210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10212 echo "configure:10213: checking for $ac_hdr" >&5
10213 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10216 cat > conftest.$ac_ext <<EOF
10217 #line 10218 "configure"
10218 #include "confdefs.h"
10221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10222 { (eval echo configure:10223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10224 if test -z "$ac_err"; then
10226 eval "ac_cv_header_$ac_safe=yes"
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10232 eval "ac_cv_header_$ac_safe=no"
10236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10237 echo "$ac_t""yes" 1>&6
10238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10239 cat >> confdefs.h <<EOF
10240 #define $ac_tr_hdr 1
10244 echo "$ac_t""no" 1>&6
10248 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
10249 echo "configure:10250: checking for dmalloc_shutdown in -ldmalloc" >&5
10250 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
10251 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10254 ac_save_LIBS="$LIBS"
10255 LIBS="-ldmalloc $LIBS"
10256 cat > conftest.$ac_ext <<EOF
10257 #line 10258 "configure"
10258 #include "confdefs.h"
10259 /* Override any gcc2 internal prototype to avoid an error. */
10260 /* We use char because int might match the return type of a gcc2
10261 builtin and then its argument prototype would still apply. */
10262 char dmalloc_shutdown();
10268 if { (eval echo configure:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10270 eval "ac_cv_lib_$ac_lib_var=yes"
10272 echo "configure: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10275 eval "ac_cv_lib_$ac_lib_var=no"
10278 LIBS="$ac_save_LIBS"
10281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10282 echo "$ac_t""yes" 1>&6
10283 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10285 cat >> confdefs.h <<EOF
10286 #define $ac_tr_lib 1
10289 LIBS="-ldmalloc $LIBS"
10292 echo "$ac_t""no" 1>&6
10297 if test $ol_enable_tcl != no ; then
10298 for ac_hdr in tcl.h
10300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10302 echo "configure:10303: checking for $ac_hdr" >&5
10303 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10304 echo $ac_n "(cached) $ac_c" 1>&6
10306 cat > conftest.$ac_ext <<EOF
10307 #line 10308 "configure"
10308 #include "confdefs.h"
10311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10312 { (eval echo configure:10313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10314 if test -z "$ac_err"; then
10316 eval "ac_cv_header_$ac_safe=yes"
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10322 eval "ac_cv_header_$ac_safe=no"
10326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10327 echo "$ac_t""yes" 1>&6
10328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10329 cat >> confdefs.h <<EOF
10330 #define $ac_tr_hdr 1
10334 echo "$ac_t""no" 1>&6
10339 if test $ac_cv_header_tcl_h != yes ; then
10342 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
10343 echo "configure:10344: checking for main in -ltcl" >&5
10344 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
10345 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10346 echo $ac_n "(cached) $ac_c" 1>&6
10348 ac_save_LIBS="$LIBS"
10350 cat > conftest.$ac_ext <<EOF
10351 #line 10352 "configure"
10352 #include "confdefs.h"
10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10360 eval "ac_cv_lib_$ac_lib_var=yes"
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10365 eval "ac_cv_lib_$ac_lib_var=no"
10368 LIBS="$ac_save_LIBS"
10371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10372 echo "$ac_t""yes" 1>&6
10373 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
10375 echo "$ac_t""no" 1>&6
10380 if test $have_tcl != yes; then
10381 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
10382 echo "configure:10383: checking for main in -ltcl7.6" >&5
10383 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
10384 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10385 echo $ac_n "(cached) $ac_c" 1>&6
10387 ac_save_LIBS="$LIBS"
10388 LIBS="-ltcl7.6 $LIBS"
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10397 if { (eval echo configure:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10399 eval "ac_cv_lib_$ac_lib_var=yes"
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10404 eval "ac_cv_lib_$ac_lib_var=no"
10407 LIBS="$ac_save_LIBS"
10410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10411 echo "$ac_t""yes" 1>&6
10412 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
10414 echo "$ac_t""no" 1>&6
10420 if test $have_tcl != yes; then
10421 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
10422 echo "configure:10423: checking for main in -ltcl8.0" >&5
10423 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
10424 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10425 echo $ac_n "(cached) $ac_c" 1>&6
10427 ac_save_LIBS="$LIBS"
10428 LIBS="-ltcl8.0 $LIBS"
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10437 if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10439 eval "ac_cv_lib_$ac_lib_var=yes"
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10444 eval "ac_cv_lib_$ac_lib_var=no"
10447 LIBS="$ac_save_LIBS"
10450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10451 echo "$ac_t""yes" 1>&6
10452 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
10454 echo "$ac_t""no" 1>&6
10461 if test $have_tcl != yes ; then
10462 echo "configure: warning: could not find -ltcl" 1>&2
10463 if test $ol_enable_tcl = yes ; then
10464 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
10471 # ud needs termcap (should insert check here)
10473 for ac_hdr in termcap.h ncurses.h
10475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10477 echo "configure:10478: checking for $ac_hdr" >&5
10478 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10479 echo $ac_n "(cached) $ac_c" 1>&6
10481 cat > conftest.$ac_ext <<EOF
10482 #line 10483 "configure"
10483 #include "confdefs.h"
10486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10487 { (eval echo configure:10488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10489 if test -z "$ac_err"; then
10491 eval "ac_cv_header_$ac_safe=yes"
10494 echo "configure: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10497 eval "ac_cv_header_$ac_safe=no"
10501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10502 echo "$ac_t""yes" 1>&6
10503 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10504 cat >> confdefs.h <<EOF
10505 #define $ac_tr_hdr 1
10509 echo "$ac_t""no" 1>&6
10514 if test $ol_link_termcap = no ; then
10515 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
10516 echo "configure:10517: checking for tputs in -ltermcap" >&5
10517 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
10518 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10521 ac_save_LIBS="$LIBS"
10522 LIBS="-ltermcap $LIBS"
10523 cat > conftest.$ac_ext <<EOF
10524 #line 10525 "configure"
10525 #include "confdefs.h"
10526 /* Override any gcc2 internal prototype to avoid an error. */
10527 /* We use char because int might match the return type of a gcc2
10528 builtin and then its argument prototype would still apply. */
10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10537 eval "ac_cv_lib_$ac_lib_var=yes"
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10542 eval "ac_cv_lib_$ac_lib_var=no"
10545 LIBS="$ac_save_LIBS"
10548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10549 echo "$ac_t""yes" 1>&6
10552 echo "$ac_t""no" 1>&6
10556 if test $have_termcap = yes ; then
10557 cat >> confdefs.h <<\EOF
10558 #define HAVE_TERMCAP 1
10561 ol_link_termcap=yes
10562 TERMCAP_LIBS=-ltermcap
10566 if test $ol_link_termcap = no ; then
10567 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
10568 echo "configure:10569: checking for initscr in -lncurses" >&5
10569 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
10570 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10571 echo $ac_n "(cached) $ac_c" 1>&6
10573 ac_save_LIBS="$LIBS"
10574 LIBS="-lncurses $LIBS"
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10578 /* Override any gcc2 internal prototype to avoid an error. */
10579 /* We use char because int might match the return type of a gcc2
10580 builtin and then its argument prototype would still apply. */
10587 if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10589 eval "ac_cv_lib_$ac_lib_var=yes"
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10594 eval "ac_cv_lib_$ac_lib_var=no"
10597 LIBS="$ac_save_LIBS"
10600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10601 echo "$ac_t""yes" 1>&6
10604 echo "$ac_t""no" 1>&6
10608 if test $have_ncurses = yes ; then
10609 cat >> confdefs.h <<\EOF
10610 #define HAVE_NCURSES 1
10613 ol_link_termcap=yes
10614 TERMCAP_LIBS=-lncurses
10618 if test $ol_link_termcap = no ; then
10619 cat >> confdefs.h <<\EOF
10620 #define NO_TERMCAP 1
10627 if test $ol_with_cyrus_sasl != no ; then
10628 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
10629 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
10630 echo "configure:10631: checking for sasl.h" >&5
10631 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10632 echo $ac_n "(cached) $ac_c" 1>&6
10634 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10640 { (eval echo configure:10641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10642 if test -z "$ac_err"; then
10644 eval "ac_cv_header_$ac_safe=yes"
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10650 eval "ac_cv_header_$ac_safe=no"
10654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10655 echo "$ac_t""yes" 1>&6
10658 echo "$ac_t""no" 1>&6
10662 if test $ac_cv_header_sasl_h = yes ; then
10663 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
10664 echo "configure:10665: checking for sasl_client_init in -lsasl" >&5
10665 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
10666 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10667 echo $ac_n "(cached) $ac_c" 1>&6
10669 ac_save_LIBS="$LIBS"
10670 LIBS="-lsasl $LIBS"
10671 cat > conftest.$ac_ext <<EOF
10672 #line 10673 "configure"
10673 #include "confdefs.h"
10674 /* Override any gcc2 internal prototype to avoid an error. */
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10677 char sasl_client_init();
10683 if { (eval echo configure:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10685 eval "ac_cv_lib_$ac_lib_var=yes"
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 eval "ac_cv_lib_$ac_lib_var=no"
10693 LIBS="$ac_save_LIBS"
10696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10697 echo "$ac_t""yes" 1>&6
10698 have_cyrus_sasl=yes
10700 echo "$ac_t""no" 1>&6
10705 if test $have_cyrus_sasl != no ; then
10707 cat >> confdefs.h <<\EOF
10708 #define HAVE_CYRUS_SASL 1
10715 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
10716 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
10721 if test $ol_with_fetch != no ; then
10723 LIBS="-lfetch -lcom_err $LIBS"
10724 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
10725 echo "configure:10726: checking fetch(3) library" >&5
10726 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10730 cat > conftest.$ac_ext <<EOF
10731 #line 10732 "configure"
10732 #include "confdefs.h"
10734 #include <sys/param.h>
10738 struct url *u = fetchParseURL("file:///");
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10743 ol_cv_lib_fetch=yes
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10753 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
10755 if test $ol_cv_lib_fetch != no ; then
10756 ol_link_fetch="-lfetch -lcom_err"
10757 cat >> confdefs.h <<\EOF
10758 #define HAVE_FETCH 1
10764 if test $ol_cv_lib_fetch != no ; then
10765 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
10766 ol_link_fetch=freebsd
10768 elif test $ol_with_fetch != auto ; then
10769 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
10773 ol_link_readline=no
10774 if test $ol_with_readline != no ; then
10775 for ac_hdr in readline/readline.h readline/history.h
10777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10779 echo "configure:10780: checking for $ac_hdr" >&5
10780 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10781 echo $ac_n "(cached) $ac_c" 1>&6
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10789 { (eval echo configure:10790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10791 if test -z "$ac_err"; then
10793 eval "ac_cv_header_$ac_safe=yes"
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10799 eval "ac_cv_header_$ac_safe=no"
10803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10804 echo "$ac_t""yes" 1>&6
10805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10806 cat >> confdefs.h <<EOF
10807 #define $ac_tr_hdr 1
10811 echo "$ac_t""no" 1>&6
10816 if test $ac_cv_header_readline_readline_h = yes ; then
10818 LIBS="$TERMCAP_LIBS $LIBS"
10819 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
10820 echo "configure:10821: checking for readline in -lreadline" >&5
10821 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
10822 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10823 echo $ac_n "(cached) $ac_c" 1>&6
10825 ac_save_LIBS="$LIBS"
10826 LIBS="-lreadline $LIBS"
10827 cat > conftest.$ac_ext <<EOF
10828 #line 10829 "configure"
10829 #include "confdefs.h"
10830 /* Override any gcc2 internal prototype to avoid an error. */
10831 /* We use char because int might match the return type of a gcc2
10832 builtin and then its argument prototype would still apply. */
10839 if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10841 eval "ac_cv_lib_$ac_lib_var=yes"
10843 echo "configure: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10846 eval "ac_cv_lib_$ac_lib_var=no"
10849 LIBS="$ac_save_LIBS"
10852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10853 echo "$ac_t""yes" 1>&6
10856 echo "$ac_t""no" 1>&6
10862 if test $have_readline = yes ; then
10863 ol_with_readline=found
10864 ol_link_readline=yes
10866 READLINE_LIBS="-lreadline"
10871 if test $ol_link_readline = yes ; then
10872 cat >> confdefs.h <<\EOF
10873 #define HAVE_READLINE 1
10879 # FreeBSD (and others) have crypt(3) in -lcrypt
10880 if test $ol_enable_crypt != no ; then
10881 echo $ac_n "checking for crypt""... $ac_c" 1>&6
10882 echo "configure:10883: checking for crypt" >&5
10883 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
10884 echo $ac_n "(cached) $ac_c" 1>&6
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 /* System header to define __stub macros and hopefully few prototypes,
10890 which can conflict with char crypt(); below. */
10891 #include <assert.h>
10892 /* Override any gcc2 internal prototype to avoid an error. */
10893 /* We use char because int might match the return type of a gcc2
10894 builtin and then its argument prototype would still apply. */
10900 /* The GNU C library defines this for functions which it implements
10901 to always fail with ENOSYS. Some functions are actually named
10902 something starting with __ and the normal name is an alias. */
10903 #if defined (__stub_crypt) || defined (__stub___crypt)
10911 if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10913 eval "ac_cv_func_crypt=yes"
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10918 eval "ac_cv_func_crypt=no"
10923 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
10924 echo "$ac_t""yes" 1>&6
10927 echo "$ac_t""no" 1>&6
10929 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10930 echo "configure:10931: checking for crypt in -lcrypt" >&5
10931 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
10932 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10935 ac_save_LIBS="$LIBS"
10936 LIBS="-lcrypt $LIBS"
10937 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 /* Override any gcc2 internal prototype to avoid an error. */
10941 /* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10949 if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10951 eval "ac_cv_lib_$ac_lib_var=yes"
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10956 eval "ac_cv_lib_$ac_lib_var=no"
10959 LIBS="$ac_save_LIBS"
10962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10963 echo "$ac_t""yes" 1>&6
10964 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
10967 echo "$ac_t""no" 1>&6
10974 if test $have_crypt = yes ; then
10975 cat >> confdefs.h <<\EOF
10976 #define HAVE_CRYPT 1
10980 echo "configure: warning: could not find crypt" 1>&2
10981 if test $ol_enable_crypt = yes ; then
10982 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
10985 echo "configure: warning: disabling crypt support" 1>&2
10990 # FreeBSD (and others) have setproctitle(3) in -lutil
10991 if test $ol_enable_proctitle != no ; then
10992 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
10993 echo "configure:10994: checking for setproctitle" >&5
10994 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
10995 echo $ac_n "(cached) $ac_c" 1>&6
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 /* System header to define __stub macros and hopefully few prototypes,
11001 which can conflict with char setproctitle(); below. */
11002 #include <assert.h>
11003 /* Override any gcc2 internal prototype to avoid an error. */
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11006 char setproctitle();
11011 /* The GNU C library defines this for functions which it implements
11012 to always fail with ENOSYS. Some functions are actually named
11013 something starting with __ and the normal name is an alias. */
11014 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
11022 if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11024 eval "ac_cv_func_setproctitle=yes"
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11029 eval "ac_cv_func_setproctitle=no"
11034 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
11035 echo "$ac_t""yes" 1>&6
11036 have_setproctitle=yes
11038 echo "$ac_t""no" 1>&6
11040 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
11041 echo "configure:11042: checking for setproctitle in -lutil" >&5
11042 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
11043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11046 ac_save_LIBS="$LIBS"
11047 LIBS="-lutil $LIBS"
11048 cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11051 /* Override any gcc2 internal prototype to avoid an error. */
11052 /* We use char because int might match the return type of a gcc2
11053 builtin and then its argument prototype would still apply. */
11054 char setproctitle();
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11062 eval "ac_cv_lib_$ac_lib_var=yes"
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11067 eval "ac_cv_lib_$ac_lib_var=no"
11070 LIBS="$ac_save_LIBS"
11073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11074 echo "$ac_t""yes" 1>&6
11075 have_setproctitle=yes
11076 LUTIL_LIBS="$LUTIL_LIBS -lutil"
11078 echo "$ac_t""no" 1>&6
11079 have_setproctitle=no
11080 LIBOBJS="$LIBOBJS setproctitle.o"
11086 if test $have_setproctitle = yes ; then
11087 cat >> confdefs.h <<\EOF
11088 #define HAVE_SETPROCTITLE 1
11094 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11095 echo "configure:11096: checking for uid_t in sys/types.h" >&5
11096 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
11097 echo $ac_n "(cached) $ac_c" 1>&6
11099 cat > conftest.$ac_ext <<EOF
11100 #line 11101 "configure"
11101 #include "confdefs.h"
11102 #include <sys/types.h>
11104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11105 egrep "uid_t" >/dev/null 2>&1; then
11107 ac_cv_type_uid_t=yes
11110 ac_cv_type_uid_t=no
11116 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11117 if test $ac_cv_type_uid_t = no; then
11118 cat >> confdefs.h <<\EOF
11122 cat >> confdefs.h <<\EOF
11128 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
11129 echo "configure:11130: checking type of array argument to getgroups" >&5
11130 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11133 if test "$cross_compiling" = yes; then
11134 ac_cv_type_getgroups=cross
11136 cat > conftest.$ac_ext <<EOF
11137 #line 11138 "configure"
11138 #include "confdefs.h"
11140 /* Thanks to Mike Rendell for this test. */
11141 #include <sys/types.h>
11144 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11147 gid_t gidset[NGID];
11149 union { gid_t gval; long lval; } val;
11152 for (i = 0; i < NGID; i++)
11153 gidset[i] = val.gval;
11154 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11156 /* Exit non-zero if getgroups seems to require an array of ints. This
11157 happens when gid_t is short but getgroups modifies an array of ints. */
11158 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
11162 if { (eval echo configure:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11164 ac_cv_type_getgroups=gid_t
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11169 ac_cv_type_getgroups=int
11174 if test $ac_cv_type_getgroups = cross; then
11175 cat > conftest.$ac_ext <<EOF
11176 #line 11177 "configure"
11177 #include "confdefs.h"
11178 #include <unistd.h>
11180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11181 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
11183 ac_cv_type_getgroups=gid_t
11186 ac_cv_type_getgroups=int
11193 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
11194 cat >> confdefs.h <<EOF
11195 #define GETGROUPS_T $ac_cv_type_getgroups
11198 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11199 echo "configure:11200: checking for ANSI C header files" >&5
11200 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11203 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure"
11205 #include "confdefs.h"
11206 #include <stdlib.h>
11207 #include <stdarg.h>
11208 #include <string.h>
11211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11212 { (eval echo configure:11213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11214 if test -z "$ac_err"; then
11216 ac_cv_header_stdc=yes
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11222 ac_cv_header_stdc=no
11226 if test $ac_cv_header_stdc = yes; then
11227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 #include <string.h>
11233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11234 egrep "memchr" >/dev/null 2>&1; then
11238 ac_cv_header_stdc=no
11244 if test $ac_cv_header_stdc = yes; then
11245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11246 cat > conftest.$ac_ext <<EOF
11247 #line 11248 "configure"
11248 #include "confdefs.h"
11249 #include <stdlib.h>
11251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11252 egrep "free" >/dev/null 2>&1; then
11256 ac_cv_header_stdc=no
11262 if test $ac_cv_header_stdc = yes; then
11263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11264 if test "$cross_compiling" = yes; then
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11271 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11272 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11274 int main () { int i; for (i = 0; i < 256; i++)
11275 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11286 ac_cv_header_stdc=no
11294 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11295 if test $ac_cv_header_stdc = yes; then
11296 cat >> confdefs.h <<\EOF
11297 #define STDC_HEADERS 1
11302 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11303 echo "configure:11304: checking for mode_t" >&5
11304 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
11305 echo $ac_n "(cached) $ac_c" 1>&6
11307 cat > conftest.$ac_ext <<EOF
11308 #line 11309 "configure"
11309 #include "confdefs.h"
11310 #include <sys/types.h>
11312 #include <stdlib.h>
11313 #include <stddef.h>
11316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11317 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11319 eval "ac_cv_type_mode_t=yes"
11322 eval "ac_cv_type_mode_t=no"
11327 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11330 echo "$ac_t""no" 1>&6
11331 cat >> confdefs.h <<EOF
11337 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11338 echo "configure:11339: checking for off_t" >&5
11339 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11345 #include <sys/types.h>
11347 #include <stdlib.h>
11348 #include <stddef.h>
11351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11352 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11354 eval "ac_cv_type_off_t=yes"
11357 eval "ac_cv_type_off_t=no"
11362 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
11363 echo "$ac_t""yes" 1>&6
11365 echo "$ac_t""no" 1>&6
11366 cat >> confdefs.h <<EOF
11372 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11373 echo "configure:11374: checking for pid_t" >&5
11374 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11380 #include <sys/types.h>
11382 #include <stdlib.h>
11383 #include <stddef.h>
11386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11387 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11389 eval "ac_cv_type_pid_t=yes"
11392 eval "ac_cv_type_pid_t=no"
11397 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
11398 echo "$ac_t""yes" 1>&6
11400 echo "$ac_t""no" 1>&6
11401 cat >> confdefs.h <<EOF
11407 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
11408 echo "configure:11409: checking for ptrdiff_t" >&5
11409 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
11410 echo $ac_n "(cached) $ac_c" 1>&6
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 #include <stddef.h>
11420 if { (eval echo configure:11421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11422 am_cv_type_ptrdiff_t=yes
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11427 am_cv_type_ptrdiff_t=no
11432 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
11433 if test $am_cv_type_ptrdiff_t = yes; then
11434 cat >> confdefs.h <<\EOF
11435 #define HAVE_PTRDIFF_T 1
11440 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11441 echo "configure:11442: checking return type of signal handlers" >&5
11442 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
11443 echo $ac_n "(cached) $ac_c" 1>&6
11445 cat > conftest.$ac_ext <<EOF
11446 #line 11447 "configure"
11447 #include "confdefs.h"
11448 #include <sys/types.h>
11449 #include <signal.h>
11454 extern "C" void (*signal (int, void (*)(int)))(int);
11456 void (*signal ()) ();
11463 if { (eval echo configure:11464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11465 ac_cv_type_signal=void
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11470 ac_cv_type_signal=int
11475 echo "$ac_t""$ac_cv_type_signal" 1>&6
11476 cat >> confdefs.h <<EOF
11477 #define RETSIGTYPE $ac_cv_type_signal
11481 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
11482 echo "configure:11483: checking for sig_atomic_t" >&5
11483 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
11484 echo $ac_n "(cached) $ac_c" 1>&6
11486 cat > conftest.$ac_ext <<EOF
11487 #line 11488 "configure"
11488 #include "confdefs.h"
11489 #include <signal.h>
11491 sig_atomic_t atomic;
11494 if { (eval echo configure:11495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11496 ol_cv_type_sig_atomic_t=yes
11498 echo "configure: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11501 ol_cv_type_sig_atomic_t=no
11506 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
11507 if test $ol_cv_type_sig_atomic_t = no; then
11508 cat >> confdefs.h <<\EOF
11509 #define sig_atomic_t int
11514 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11515 echo "configure:11516: checking for size_t" >&5
11516 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
11517 echo $ac_n "(cached) $ac_c" 1>&6
11519 cat > conftest.$ac_ext <<EOF
11520 #line 11521 "configure"
11521 #include "confdefs.h"
11522 #include <sys/types.h>
11524 #include <stdlib.h>
11525 #include <stddef.h>
11528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11529 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11531 eval "ac_cv_type_size_t=yes"
11534 eval "ac_cv_type_size_t=no"
11539 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
11540 echo "$ac_t""yes" 1>&6
11542 echo "$ac_t""no" 1>&6
11543 cat >> confdefs.h <<EOF
11544 #define size_t unsigned
11549 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11550 echo "configure:11551: checking for socklen_t" >&5
11551 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
11552 echo $ac_n "(cached) $ac_c" 1>&6
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11558 #ifdef HAVE_SYS_TYPES_H
11559 #include <sys/types.h>
11561 #ifdef HAVE_SYS_SOCKET_H
11562 #include <sys/socket.h>
11569 if { (eval echo configure:11570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11571 ol_cv_type_socklen_t=yes
11573 echo "configure: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11576 ol_cv_type_socklen_t=no
11581 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
11582 if test $ol_cv_type_socklen_t = no; then
11583 cat >> confdefs.h <<\EOF
11584 #define socklen_t int
11589 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
11590 echo "configure:11591: checking for member st_blksize in aggregate type struct stat" >&5
11591 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11597 #include <sys/types.h>
11598 #include <sys/stat.h>
11600 struct stat foo; foo.st_blksize;
11603 if { (eval echo configure:11604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11605 ac_cv_c_struct_member_st_blksize=yes
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11610 ac_cv_c_struct_member_st_blksize=no
11615 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
11616 st_blksize="$ac_cv_c_struct_member_st_blksize"
11617 if test $ac_cv_c_struct_member_st_blksize = yes; then
11618 cat >> confdefs.h <<\EOF
11619 #define HAVE_ST_BLKSIZE 1
11624 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11625 echo "configure:11626: checking whether time.h and sys/time.h may both be included" >&5
11626 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11632 #include <sys/types.h>
11633 #include <sys/time.h>
11639 if { (eval echo configure:11640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11641 ac_cv_header_time=yes
11643 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5
11646 ac_cv_header_time=no
11651 echo "$ac_t""$ac_cv_header_time" 1>&6
11652 if test $ac_cv_header_time = yes; then
11653 cat >> confdefs.h <<\EOF
11654 #define TIME_WITH_SYS_TIME 1
11659 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
11660 echo "configure:11661: checking whether struct tm is in sys/time.h or time.h" >&5
11661 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
11662 echo $ac_n "(cached) $ac_c" 1>&6
11664 cat > conftest.$ac_ext <<EOF
11665 #line 11666 "configure"
11666 #include "confdefs.h"
11667 #include <sys/types.h>
11670 struct tm *tp; tp->tm_sec;
11673 if { (eval echo configure:11674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11675 ac_cv_struct_tm=time.h
11677 echo "configure: failed program was:" >&5
11678 cat conftest.$ac_ext >&5
11680 ac_cv_struct_tm=sys/time.h
11685 echo "$ac_t""$ac_cv_struct_tm" 1>&6
11686 if test $ac_cv_struct_tm = sys/time.h; then
11687 cat >> confdefs.h <<\EOF
11688 #define TM_IN_SYS_TIME 1
11693 # test for pw_gecos in struct passwd
11694 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
11695 echo "configure:11696: checking struct passwd for pw_gecos" >&5
11696 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
11697 echo $ac_n "(cached) $ac_c" 1>&6
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11707 pwd.pw_gecos = pwd.pw_name;
11711 if { (eval echo configure:11712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11713 ol_cv_struct_passwd_pw_gecos=yes
11715 echo "configure: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11718 ol_cv_struct_passwd_pw_gecos=no
11723 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11724 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11725 cat >> confdefs.h <<\EOF
11726 #define HAVE_PW_GECOS 1
11731 # test for pw_passwd in struct passwd
11732 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
11733 echo "configure:11734: checking struct passwd for pw_passwd" >&5
11734 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11738 cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11745 pwd.pw_passwd = pwd.pw_name;
11749 if { (eval echo configure:11750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11751 ol_cv_struct_passwd_pw_passwd=yes
11753 echo "configure: failed program was:" >&5
11754 cat conftest.$ac_ext >&5
11756 ol_cv_struct_passwd_pw_passwd=no
11761 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11762 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11763 cat >> confdefs.h <<\EOF
11764 #define HAVE_PW_PASSWD 1
11770 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11771 echo "configure:11772: checking if toupper() requires islower()" >&5
11772 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11776 if test "$cross_compiling" = yes; then
11777 ol_cv_c_upper_lower=safe
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11786 if ('C' == toupper('C'))
11792 if { (eval echo configure:11793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11794 ol_cv_c_upper_lower=no
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11799 ol_cv_c_upper_lower=yes
11806 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11807 if test $ol_cv_c_upper_lower != no ; then
11808 cat >> confdefs.h <<\EOF
11809 #define C_UPPER_LOWER 1
11814 echo $ac_n "checking for working const""... $ac_c" 1>&6
11815 echo "configure:11816: checking for working const" >&5
11816 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
11817 echo $ac_n "(cached) $ac_c" 1>&6
11819 cat > conftest.$ac_ext <<EOF
11820 #line 11821 "configure"
11821 #include "confdefs.h"
11825 /* Ultrix mips cc rejects this. */
11826 typedef int charset[2]; const charset x;
11827 /* SunOS 4.1.1 cc rejects this. */
11828 char const *const *ccp;
11830 /* NEC SVR4.0.2 mips cc rejects this. */
11831 struct point {int x, y;};
11832 static struct point const zero = {0,0};
11833 /* AIX XL C 1.02.0.0 rejects this.
11834 It does not let you subtract one const X* pointer from another in an arm
11835 of an if-expression whose if-part is not a constant expression */
11836 const char *g = "string";
11837 ccp = &g + (g ? g-g : 0);
11838 /* HPUX 7.0 cc rejects these. */
11841 ccp = (char const *const *) p;
11842 { /* SCO 3.2v4 cc rejects this. */
11844 char const *s = 0 ? (char *) 0 : (char const *) 0;
11848 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11849 int x[] = {25, 17};
11850 const int *foo = &x[0];
11853 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11854 typedef const int *iptr;
11858 { /* AIX XL C 1.02.0.0 rejects this saying
11859 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11860 struct s { int j; const int *ap[3]; };
11861 struct s *b; b->j = 5;
11863 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11864 const int foo = 10;
11869 if { (eval echo configure:11870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11873 echo "configure: failed program was:" >&5
11874 cat conftest.$ac_ext >&5
11881 echo "$ac_t""$ac_cv_c_const" 1>&6
11882 if test $ac_cv_c_const = no; then
11883 cat >> confdefs.h <<\EOF
11889 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11890 echo "configure:11891: checking if compiler understands volatile" >&5
11891 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
11892 echo $ac_n "(cached) $ac_c" 1>&6
11894 cat > conftest.$ac_ext <<EOF
11895 #line 11896 "configure"
11896 #include "confdefs.h"
11899 volatile int a; int * volatile b = x ? &y : &z;
11900 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11904 if { (eval echo configure:11905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11906 ol_cv_c_volatile=yes
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11911 ol_cv_c_volatile=no
11916 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11917 if test $ol_cv_c_volatile = yes; then
11920 cat >> confdefs.h <<\EOF
11927 if test $cross_compiling = yes ; then
11928 cat >> confdefs.h <<\EOF
11929 #define CROSS_COMPILING 1
11933 cat >> confdefs.h <<\EOF
11934 #define LBER_INT_T long
11937 cat >> confdefs.h <<\EOF
11938 #define LBER_TAG_T long
11941 cat >> confdefs.h <<\EOF
11942 #define LBER_SOCKET_T int
11947 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11948 echo "configure:11949: checking whether byte ordering is bigendian" >&5
11949 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
11950 echo $ac_n "(cached) $ac_c" 1>&6
11952 ac_cv_c_bigendian=unknown
11953 # See if sys/param.h defines the BYTE_ORDER macro.
11954 cat > conftest.$ac_ext <<EOF
11955 #line 11956 "configure"
11956 #include "confdefs.h"
11957 #include <sys/types.h>
11958 #include <sys/param.h>
11961 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11962 bogus endian macros
11966 if { (eval echo configure:11967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11968 # It does; now see whether it defined to BIG_ENDIAN or not.
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11972 #include <sys/types.h>
11973 #include <sys/param.h>
11976 #if BYTE_ORDER != BIG_ENDIAN
11981 if { (eval echo configure:11982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11983 ac_cv_c_bigendian=yes
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11988 ac_cv_c_bigendian=no
11992 echo "configure: failed program was:" >&5
11993 cat conftest.$ac_ext >&5
11996 if test $ac_cv_c_bigendian = unknown; then
11997 if test "$cross_compiling" = yes; then
11998 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12000 cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12004 /* Are we little or big endian? From Harbison&Steele. */
12008 char c[sizeof (long)];
12011 exit (u.c[sizeof (long) - 1] == 1);
12014 if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12016 ac_cv_c_bigendian=no
12018 echo "configure: failed program was:" >&5
12019 cat conftest.$ac_ext >&5
12021 ac_cv_c_bigendian=yes
12029 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12030 if test $ac_cv_c_bigendian = yes; then
12031 cat >> confdefs.h <<\EOF
12032 #define WORDS_BIGENDIAN 1
12037 echo $ac_n "checking size of short""... $ac_c" 1>&6
12038 echo "configure:12039: checking size of short" >&5
12039 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
12040 echo $ac_n "(cached) $ac_c" 1>&6
12042 if test "$cross_compiling" = yes; then
12043 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12045 cat > conftest.$ac_ext <<EOF
12046 #line 12047 "configure"
12047 #include "confdefs.h"
12051 FILE *f=fopen("conftestval", "w");
12053 fprintf(f, "%d\n", sizeof(short));
12057 if { (eval echo configure:12058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12059 ac_cv_sizeof_short=`cat conftestval`
12061 echo "configure: failed program was:" >&5
12062 cat conftest.$ac_ext >&5
12064 ac_cv_sizeof_short=0
12070 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12071 cat >> confdefs.h <<EOF
12072 #define SIZEOF_SHORT $ac_cv_sizeof_short
12076 echo $ac_n "checking size of int""... $ac_c" 1>&6
12077 echo "configure:12078: checking size of int" >&5
12078 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
12079 echo $ac_n "(cached) $ac_c" 1>&6
12081 if test "$cross_compiling" = yes; then
12082 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12084 cat > conftest.$ac_ext <<EOF
12085 #line 12086 "configure"
12086 #include "confdefs.h"
12090 FILE *f=fopen("conftestval", "w");
12092 fprintf(f, "%d\n", sizeof(int));
12096 if { (eval echo configure:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12098 ac_cv_sizeof_int=`cat conftestval`
12100 echo "configure: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12109 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12110 cat >> confdefs.h <<EOF
12111 #define SIZEOF_INT $ac_cv_sizeof_int
12115 echo $ac_n "checking size of long""... $ac_c" 1>&6
12116 echo "configure:12117: checking size of long" >&5
12117 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
12118 echo $ac_n "(cached) $ac_c" 1>&6
12120 if test "$cross_compiling" = yes; then
12121 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12123 cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12129 FILE *f=fopen("conftestval", "w");
12131 fprintf(f, "%d\n", sizeof(long));
12135 if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12137 ac_cv_sizeof_long=`cat conftestval`
12139 echo "configure: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12142 ac_cv_sizeof_long=0
12148 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12149 cat >> confdefs.h <<EOF
12150 #define SIZEOF_LONG $ac_cv_sizeof_long
12155 if test "$ac_cv_sizeof_int" -lt 4 ; then
12156 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
12158 cat >> confdefs.h <<\EOF
12159 #define LBER_INT_T long
12162 cat >> confdefs.h <<\EOF
12163 #define LBER_TAG_T long
12166 cat >> confdefs.h <<\EOF
12167 #define LBER_SOCKET_T int
12171 cat >> confdefs.h <<\EOF
12172 #define LBER_INT_T int
12175 cat >> confdefs.h <<\EOF
12176 #define LBER_TAG_T long
12179 cat >> confdefs.h <<\EOF
12180 #define LBER_SOCKET_T int
12186 cat >> confdefs.h <<\EOF
12187 #define LBER_LEN_T long
12191 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
12192 echo "configure:12193: checking for 8-bit clean memcmp" >&5
12193 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
12194 echo $ac_n "(cached) $ac_c" 1>&6
12196 if test "$cross_compiling" = yes; then
12197 ac_cv_func_memcmp_clean=no
12199 cat > conftest.$ac_ext <<EOF
12200 #line 12201 "configure"
12201 #include "confdefs.h"
12205 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12206 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
12210 if { (eval echo configure:12211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12212 ac_cv_func_memcmp_clean=yes
12214 echo "configure: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12217 ac_cv_func_memcmp_clean=no
12224 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
12225 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
12227 echo $ac_n "checking for strftime""... $ac_c" 1>&6
12228 echo "configure:12229: checking for strftime" >&5
12229 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
12230 echo $ac_n "(cached) $ac_c" 1>&6
12232 cat > conftest.$ac_ext <<EOF
12233 #line 12234 "configure"
12234 #include "confdefs.h"
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char strftime(); below. */
12237 #include <assert.h>
12238 /* Override any gcc2 internal prototype to avoid an error. */
12239 /* We use char because int might match the return type of a gcc2
12240 builtin and then its argument prototype would still apply. */
12246 /* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249 #if defined (__stub_strftime) || defined (__stub___strftime)
12257 if { (eval echo configure:12258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12259 eval "ac_cv_func_strftime=yes"
12261 echo "configure: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12264 eval "ac_cv_func_strftime=no"
12269 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 cat >> confdefs.h <<\EOF
12272 #define HAVE_STRFTIME 1
12276 echo "$ac_t""no" 1>&6
12277 # strftime is in -lintl on SCO UNIX.
12278 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
12279 echo "configure:12280: checking for strftime in -lintl" >&5
12280 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
12281 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12284 ac_save_LIBS="$LIBS"
12285 LIBS="-lintl $LIBS"
12286 cat > conftest.$ac_ext <<EOF
12287 #line 12288 "configure"
12288 #include "confdefs.h"
12289 /* Override any gcc2 internal prototype to avoid an error. */
12290 /* We use char because int might match the return type of a gcc2
12291 builtin and then its argument prototype would still apply. */
12298 if { (eval echo configure:12299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12300 eval "ac_cv_lib_$ac_lib_var=yes"
12302 echo "configure: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12305 eval "ac_cv_lib_$ac_lib_var=no"
12308 LIBS="$ac_save_LIBS"
12311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12312 echo "$ac_t""yes" 1>&6
12313 cat >> confdefs.h <<\EOF
12314 #define HAVE_STRFTIME 1
12317 LIBS="-lintl $LIBS"
12319 echo "$ac_t""no" 1>&6
12325 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
12326 echo "configure:12327: checking for inet_aton()" >&5
12327 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
12328 echo $ac_n "(cached) $ac_c" 1>&6
12330 cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12334 #ifdef HAVE_SYS_TYPES_H
12335 # include <sys/types.h>
12337 #ifdef HAVE_SYS_SOCKET_H
12338 # include <sys/socket.h>
12339 # ifdef HAVE_SYS_SELECT_H
12340 # include <sys/select.h>
12342 # include <netinet/in.h>
12343 # ifdef HAVE_ARPA_INET_H
12344 # include <arpa/inet.h>
12350 int rc = inet_aton( "255.255.255.255", &in );
12353 if { (eval echo configure:12354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12355 ol_cv_func_inet_aton=yes
12357 echo "configure: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12360 ol_cv_func_inet_aton=no
12365 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
12366 if test $ol_cv_func_inet_aton != no; then
12367 cat >> confdefs.h <<\EOF
12368 #define HAVE_INET_ATON 1
12374 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12375 echo "configure:12376: checking for vprintf" >&5
12376 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
12377 echo $ac_n "(cached) $ac_c" 1>&6
12379 cat > conftest.$ac_ext <<EOF
12380 #line 12381 "configure"
12381 #include "confdefs.h"
12382 /* System header to define __stub macros and hopefully few prototypes,
12383 which can conflict with char vprintf(); below. */
12384 #include <assert.h>
12385 /* Override any gcc2 internal prototype to avoid an error. */
12386 /* We use char because int might match the return type of a gcc2
12387 builtin and then its argument prototype would still apply. */
12393 /* The GNU C library defines this for functions which it implements
12394 to always fail with ENOSYS. Some functions are actually named
12395 something starting with __ and the normal name is an alias. */
12396 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12404 if { (eval echo configure:12405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12406 eval "ac_cv_func_vprintf=yes"
12408 echo "configure: failed program was:" >&5
12409 cat conftest.$ac_ext >&5
12411 eval "ac_cv_func_vprintf=no"
12416 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12417 echo "$ac_t""yes" 1>&6
12418 cat >> confdefs.h <<\EOF
12419 #define HAVE_VPRINTF 1
12423 echo "$ac_t""no" 1>&6
12426 if test "$ac_cv_func_vprintf" != yes; then
12427 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12428 echo "configure:12429: checking for _doprnt" >&5
12429 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
12430 echo $ac_n "(cached) $ac_c" 1>&6
12432 cat > conftest.$ac_ext <<EOF
12433 #line 12434 "configure"
12434 #include "confdefs.h"
12435 /* System header to define __stub macros and hopefully few prototypes,
12436 which can conflict with char _doprnt(); below. */
12437 #include <assert.h>
12438 /* Override any gcc2 internal prototype to avoid an error. */
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12446 /* The GNU C library defines this for functions which it implements
12447 to always fail with ENOSYS. Some functions are actually named
12448 something starting with __ and the normal name is an alias. */
12449 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12457 if { (eval echo configure:12458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12459 eval "ac_cv_func__doprnt=yes"
12461 echo "configure: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12464 eval "ac_cv_func__doprnt=no"
12469 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12470 echo "$ac_t""yes" 1>&6
12471 cat >> confdefs.h <<\EOF
12472 #define HAVE_DOPRNT 1
12476 echo "$ac_t""no" 1>&6
12482 if test $ac_cv_func_vprintf = yes ; then
12483 for ac_func in vsnprintf vsprintf
12485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12486 echo "configure:12487: checking for $ac_func" >&5
12487 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12488 echo $ac_n "(cached) $ac_c" 1>&6
12490 cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 /* System header to define __stub macros and hopefully few prototypes,
12494 which can conflict with char $ac_func(); below. */
12495 #include <assert.h>
12496 /* Override any gcc2 internal prototype to avoid an error. */
12497 /* We use char because int might match the return type of a gcc2
12498 builtin and then its argument prototype would still apply. */
12504 /* The GNU C library defines this for functions which it implements
12505 to always fail with ENOSYS. Some functions are actually named
12506 something starting with __ and the normal name is an alias. */
12507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12515 if { (eval echo configure:12516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12517 eval "ac_cv_func_$ac_func=yes"
12519 echo "configure: failed program was:" >&5
12520 cat conftest.$ac_ext >&5
12522 eval "ac_cv_func_$ac_func=no"
12527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12528 echo "$ac_t""yes" 1>&6
12529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12530 cat >> confdefs.h <<EOF
12531 #define $ac_tr_func 1
12535 echo "$ac_t""no" 1>&6
12589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12590 echo "configure:12591: checking for $ac_func" >&5
12591 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12592 echo $ac_n "(cached) $ac_c" 1>&6
12594 cat > conftest.$ac_ext <<EOF
12595 #line 12596 "configure"
12596 #include "confdefs.h"
12597 /* System header to define __stub macros and hopefully few prototypes,
12598 which can conflict with char $ac_func(); below. */
12599 #include <assert.h>
12600 /* Override any gcc2 internal prototype to avoid an error. */
12601 /* We use char because int might match the return type of a gcc2
12602 builtin and then its argument prototype would still apply. */
12608 /* The GNU C library defines this for functions which it implements
12609 to always fail with ENOSYS. Some functions are actually named
12610 something starting with __ and the normal name is an alias. */
12611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12619 if { (eval echo configure:12620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12621 eval "ac_cv_func_$ac_func=yes"
12623 echo "configure: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12626 eval "ac_cv_func_$ac_func=no"
12631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12632 echo "$ac_t""yes" 1>&6
12633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12634 cat >> confdefs.h <<EOF
12635 #define $ac_tr_func 1
12639 echo "$ac_t""no" 1>&6
12644 for ac_func in getopt tempnam
12646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12647 echo "configure:12648: checking for $ac_func" >&5
12648 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12649 echo $ac_n "(cached) $ac_c" 1>&6
12651 cat > conftest.$ac_ext <<EOF
12652 #line 12653 "configure"
12653 #include "confdefs.h"
12654 /* System header to define __stub macros and hopefully few prototypes,
12655 which can conflict with char $ac_func(); below. */
12656 #include <assert.h>
12657 /* Override any gcc2 internal prototype to avoid an error. */
12658 /* We use char because int might match the return type of a gcc2
12659 builtin and then its argument prototype would still apply. */
12665 /* The GNU C library defines this for functions which it implements
12666 to always fail with ENOSYS. Some functions are actually named
12667 something starting with __ and the normal name is an alias. */
12668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12676 if { (eval echo configure:12677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12678 eval "ac_cv_func_$ac_func=yes"
12680 echo "configure: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12683 eval "ac_cv_func_$ac_func=no"
12688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12689 echo "$ac_t""yes" 1>&6
12690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12691 cat >> confdefs.h <<EOF
12692 #define $ac_tr_func 1
12696 echo "$ac_t""no" 1>&6
12697 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
12703 # Check Configuration
12704 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
12705 echo "configure:12706: checking declaration of sys_errlist" >&5
12706 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
12707 echo $ac_n "(cached) $ac_c" 1>&6
12710 cat > conftest.$ac_ext <<EOF
12711 #line 12712 "configure"
12712 #include "confdefs.h"
12715 #include <sys/types.h>
12718 char *c = (char *) *sys_errlist
12721 if { (eval echo configure:12722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12723 ol_cv_dcl_sys_errlist=yes
12724 ol_cv_have_sys_errlist=yes
12726 echo "configure: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12729 ol_cv_dcl_sys_errlist=no
12734 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
12736 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
12737 if test $ol_cv_dcl_sys_errlist = no ; then
12738 cat >> confdefs.h <<\EOF
12739 #define DECL_SYS_ERRLIST 1
12743 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
12744 echo "configure:12745: checking existence of sys_errlist" >&5
12745 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
12746 echo $ac_n "(cached) $ac_c" 1>&6
12749 cat > conftest.$ac_ext <<EOF
12750 #line 12751 "configure"
12751 #include "confdefs.h"
12754 char *c = (char *) *sys_errlist
12757 if { (eval echo configure:12758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12759 ol_cv_have_sys_errlist=yes
12761 echo "configure: failed program was:" >&5
12762 cat conftest.$ac_ext >&5
12764 ol_cv_have_sys_errlist=no
12769 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
12771 if test $ol_cv_have_sys_errlist = yes ; then
12772 cat >> confdefs.h <<\EOF
12773 #define HAVE_SYS_ERRLIST 1
12780 if test "$ol_enable_debug" != no ; then
12781 cat >> confdefs.h <<\EOF
12782 #define LDAP_DEBUG 1
12786 if test "$ol_enable_syslog" = yes ; then
12787 cat >> confdefs.h <<\EOF
12788 #define LDAP_SYSLOG 1
12792 if test "$ol_enable_libui" = yes ; then
12793 cat >> confdefs.h <<\EOF
12794 #define LDAP_LIBUI 1
12798 if test "$ol_enable_cache" = no ; then
12799 cat >> confdefs.h <<\EOF
12800 #define LDAP_NOCACHE 1
12804 if test "$ol_enable_dns" != no ; then
12805 cat >> confdefs.h <<\EOF
12806 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12810 if test "$ol_enable_proctitle" != no ; then
12811 cat >> confdefs.h <<\EOF
12812 #define LDAP_PROCTITLE 1
12816 if test "$ol_enable_referrals" != no ; then
12817 cat >> confdefs.h <<\EOF
12818 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12822 if test "$ol_enable_cldap" != no ; then
12823 cat >> confdefs.h <<\EOF
12824 #define LDAP_CONNECTIONLESS 1
12829 if test "$ol_enable_crypt" != no ; then
12830 cat >> confdefs.h <<\EOF
12831 #define SLAPD_CRYPT 1
12835 if test "$ol_enable_cleartext" != no ; then
12836 cat >> confdefs.h <<\EOF
12837 #define SLAPD_CLEARTEXT 1
12841 if test "$ol_enable_multimaster" != no ; then
12842 cat >> confdefs.h <<\EOF
12843 #define SLAPD_MULTIMASTER 1
12847 if test "$ol_enable_phonetic" != no ; then
12848 cat >> confdefs.h <<\EOF
12849 #define SLAPD_PHONETIC 1
12853 if test "$ol_enable_rlookups" != no ; then
12854 cat >> confdefs.h <<\EOF
12855 #define SLAPD_RLOOKUPS 1
12860 if test "$ol_link_modules" != no ; then
12861 cat >> confdefs.h <<\EOF
12862 #define SLAPD_MODULES 1
12866 MODULES_LIBS=-lltdl
12867 SLAPD_MODULES_LDFLAGS="-dlopen self"
12870 if test "$ol_link_bdb2" != no ; then
12871 cat >> confdefs.h <<\EOF
12872 #define SLAPD_BDB2 1
12877 if test "$ol_with_bdb2_module" != static ; then
12878 cat >> confdefs.h <<\EOF
12879 #define SLAPD_BDB2_DYNAMIC 1
12883 BUILD_BDB2_DYNAMIC=shared
12884 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
12888 if test "$ol_enable_ldap" != no ; then
12889 cat >> confdefs.h <<\EOF
12890 #define SLAPD_LDAP 1
12895 if test "$ol_with_ldap_module" != static ; then
12896 cat >> confdefs.h <<\EOF
12897 #define SLAPD_LDAP_DYNAMIC 1
12901 BUILD_LDAP_DYNAMIC=shared
12902 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
12906 if test "$ol_link_ldbm" != no ; then
12907 cat >> confdefs.h <<\EOF
12908 #define SLAPD_LDBM 1
12913 if test "$ol_with_ldbm_module" != static ; then
12914 cat >> confdefs.h <<\EOF
12915 #define SLAPD_LDBM_DYNAMIC 1
12919 BUILD_LDBM_DYNAMIC=shared
12920 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
12924 if test "$ol_enable_passwd" != no ; then
12925 cat >> confdefs.h <<\EOF
12926 #define SLAPD_PASSWD 1
12931 if test "$ol_with_passwd_module" != static ; then
12932 cat >> confdefs.h <<\EOF
12933 #define SLAPD_PASSWD_DYNAMIC 1
12937 BUILD_PASSWD_DYNAMIC=shared
12938 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
12942 if test "$ol_link_perl" != no ; then
12943 cat >> confdefs.h <<\EOF
12944 #define SLAPD_PERL 1
12949 if test "$ol_with_perl_module" != static ; then
12950 cat >> confdefs.h <<\EOF
12951 #define SLAPD_PERL_DYNAMIC 1
12955 BUILD_PERL_DYNAMIC=shared
12956 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
12960 if test "$ol_enable_shell" != no ; then
12961 cat >> confdefs.h <<\EOF
12962 #define SLAPD_SHELL 1
12967 if test "$ol_with_shell_module" != static ; then
12968 cat >> confdefs.h <<\EOF
12969 #define SLAPD_SHELL_DYNAMIC 1
12973 BUILD_SHELL_DYNAMIC=shared
12974 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
12978 if test "$ol_enable_tcl" != no ; then
12979 cat >> confdefs.h <<\EOF
12980 #define SLAPD_TCL 1
12985 if test "$ol_with_tcl_module" != static; then
12986 cat >> confdefs.h <<\EOF
12987 #define SLAPD_TCL_DYNAMIC 1
12991 BUILD_TCL_DYNAMIC=shared
12992 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
12996 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12997 $BUILD_SLAPD = yes ; then
13001 if test "$ol_link_isode" != no ; then
13051 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13054 # Let make expand exec_prefix.
13055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13057 # Any assignment to VPATH causes Sun make to only execute
13058 # the first set of double-colon rules, so remove it if not needed.
13059 # If there is a colon in the path, we need to keep it.
13060 if test "x$srcdir" = x.; then
13061 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13064 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13066 DEFS=-DHAVE_CONFIG_H
13068 # Without the "./", some shells look in PATH for config.status.
13069 : ${CONFIG_STATUS=./config.status}
13071 echo creating $CONFIG_STATUS
13072 rm -f $CONFIG_STATUS
13073 cat > $CONFIG_STATUS <<EOF
13075 # Generated automatically by configure.
13076 # Run this file to recreate the current configuration.
13077 # This directory was configured as follows,
13078 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13080 # $0 $ac_configure_args
13082 # Compiler output produced by configure, useful for debugging
13083 # configure, is in ./config.log if it exists.
13085 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13088 case "\$ac_option" in
13089 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13090 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13091 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13092 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13093 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
13095 -help | --help | --hel | --he | --h)
13096 echo "\$ac_cs_usage"; exit 0 ;;
13097 *) echo "\$ac_cs_usage"; exit 1 ;;
13101 ac_given_srcdir=$srcdir
13102 ac_given_INSTALL="$INSTALL"
13104 trap 'rm -fr `echo "\
13105 Makefile:build/top.mk:Makefile.in:build/dir.mk \
13106 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
13107 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
13108 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
13109 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
13110 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
13111 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
13112 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
13113 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
13114 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
13115 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
13116 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
13117 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
13118 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
13119 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
13120 include/Makefile:build/top.mk:include/Makefile.in \
13121 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
13122 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
13123 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
13124 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
13125 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
13126 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
13127 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
13128 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
13129 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
13130 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
13131 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
13132 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
13133 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
13134 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
13135 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
13136 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
13137 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
13138 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
13139 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
13140 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
13141 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
13142 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
13143 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
13144 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
13145 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
13146 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
13147 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13149 cat >> $CONFIG_STATUS <<EOF
13151 # Protect against being on the right side of a sed subst in config.status.
13152 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13153 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13157 s%@CFLAGS@%$CFLAGS%g
13158 s%@CPPFLAGS@%$CPPFLAGS%g
13159 s%@CXXFLAGS@%$CXXFLAGS%g
13160 s%@FFLAGS@%$FFLAGS%g
13162 s%@LDFLAGS@%$LDFLAGS%g
13164 s%@exec_prefix@%$exec_prefix%g
13165 s%@prefix@%$prefix%g
13166 s%@program_transform_name@%$program_transform_name%g
13167 s%@bindir@%$bindir%g
13168 s%@sbindir@%$sbindir%g
13169 s%@libexecdir@%$libexecdir%g
13170 s%@datadir@%$datadir%g
13171 s%@sysconfdir@%$sysconfdir%g
13172 s%@sharedstatedir@%$sharedstatedir%g
13173 s%@localstatedir@%$localstatedir%g
13174 s%@libdir@%$libdir%g
13175 s%@includedir@%$includedir%g
13176 s%@oldincludedir@%$oldincludedir%g
13177 s%@infodir@%$infodir%g
13178 s%@mandir@%$mandir%g
13180 s%@host_alias@%$host_alias%g
13181 s%@host_cpu@%$host_cpu%g
13182 s%@host_vendor@%$host_vendor%g
13183 s%@host_os@%$host_os%g
13184 s%@target@%$target%g
13185 s%@target_alias@%$target_alias%g
13186 s%@target_cpu@%$target_cpu%g
13187 s%@target_vendor@%$target_vendor%g
13188 s%@target_os@%$target_os%g
13190 s%@build_alias@%$build_alias%g
13191 s%@build_cpu@%$build_cpu%g
13192 s%@build_vendor@%$build_vendor%g
13193 s%@build_os@%$build_os%g
13194 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13195 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13196 s%@INSTALL_DATA@%$INSTALL_DATA%g
13197 s%@PACKAGE@%$PACKAGE%g
13198 s%@VERSION@%$VERSION%g
13199 s%@ACLOCAL@%$ACLOCAL%g
13200 s%@AUTOCONF@%$AUTOCONF%g
13201 s%@AUTOMAKE@%$AUTOMAKE%g
13202 s%@AUTOHEADER@%$AUTOHEADER%g
13203 s%@MAKEINFO@%$MAKEINFO%g
13204 s%@install_sh@%$install_sh%g
13207 s%@AMTARFLAGS@%$AMTARFLAGS%g
13208 s%@SET_MAKE@%$SET_MAKE%g
13209 s%@top_builddir@%$top_builddir%g
13210 s%@ldap_subdir@%$ldap_subdir%g
13212 s%@RANLIB@%$RANLIB%g
13216 s%@LIBTOOL@%$LIBTOOL%g
13218 s%@SENDMAIL@%$SENDMAIL%g
13219 s%@EDITOR@%$EDITOR%g
13220 s%@FINGER@%$FINGER%g
13221 s%@PERLBIN@%$PERLBIN%g
13223 s%@EXEEXT@%$EXEEXT%g
13224 s%@OBJEXT@%$OBJEXT%g
13225 s%@OL_MKDEP@%$OL_MKDEP%g
13226 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
13228 s%@LIBOBJS@%$LIBOBJS%g
13229 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
13230 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
13231 s%@BUILD_BDB2@%$BUILD_BDB2%g
13232 s%@BUILD_LDAP@%$BUILD_LDAP%g
13233 s%@BUILD_LDBM@%$BUILD_LDBM%g
13234 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
13235 s%@BUILD_PERL@%$BUILD_PERL%g
13236 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
13237 s%@BUILD_SHELL@%$BUILD_SHELL%g
13238 s%@BUILD_TCL@%$BUILD_TCL%g
13239 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
13240 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
13241 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
13242 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
13243 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
13244 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
13245 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
13246 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
13247 s%@LDAP_LIBS@%$LDAP_LIBS%g
13248 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
13249 s%@LDIF_LIBS@%$LDIF_LIBS%g
13250 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
13251 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
13252 s%@LDBM_LIBS@%$LDBM_LIBS%g
13253 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
13254 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
13255 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
13256 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
13257 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
13258 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
13259 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
13260 s%@KRB_LIBS@%$KRB_LIBS%g
13261 s%@READLINE_LIBS@%$READLINE_LIBS%g
13262 s%@SASL_LIBS@%$SASL_LIBS%g
13263 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
13264 s%@TLS_LIBS@%$TLS_LIBS%g
13265 s%@MODULES_LIBS@%$MODULES_LIBS%g
13270 cat >> $CONFIG_STATUS <<\EOF
13272 # Split the substitutions into bite-sized pieces for seds with
13273 # small command number limits, like on Digital OSF/1 and HP-UX.
13274 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13275 ac_file=1 # Number of current file.
13276 ac_beg=1 # First line for current file.
13277 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13280 while $ac_more_lines; do
13281 if test $ac_beg -gt 1; then
13282 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13284 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13286 if test ! -s conftest.s$ac_file; then
13287 ac_more_lines=false
13288 rm -f conftest.s$ac_file
13290 if test -z "$ac_sed_cmds"; then
13291 ac_sed_cmds="sed -f conftest.s$ac_file"
13293 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13295 ac_file=`expr $ac_file + 1`
13297 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13300 if test -z "$ac_sed_cmds"; then
13305 cat >> $CONFIG_STATUS <<EOF
13307 CONFIG_FILES=\${CONFIG_FILES-"\
13308 Makefile:build/top.mk:Makefile.in:build/dir.mk \
13309 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
13310 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
13311 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
13312 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
13313 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
13314 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
13315 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
13316 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
13317 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
13318 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
13319 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
13320 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
13321 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
13322 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
13323 include/Makefile:build/top.mk:include/Makefile.in \
13324 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
13325 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
13326 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
13327 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
13328 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
13329 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
13330 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
13331 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
13332 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
13333 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
13334 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
13335 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
13336 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
13337 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
13338 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
13339 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
13340 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
13341 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
13342 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
13343 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
13344 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
13345 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
13346 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
13347 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
13348 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
13349 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
13352 cat >> $CONFIG_STATUS <<\EOF
13353 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13356 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13357 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13358 *) ac_file_in="${ac_file}.in" ;;
13361 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13363 # Remove last slash and all that follows it. Not all systems have dirname.
13364 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13365 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13366 # The file is in a subdirectory.
13367 test ! -d "$ac_dir" && mkdir "$ac_dir"
13368 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13369 # A "../" for each directory in $ac_dir_suffix.
13370 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13372 ac_dir_suffix= ac_dots=
13375 case "$ac_given_srcdir" in
13377 if test -z "$ac_dots"; then top_srcdir=.
13378 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13379 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13380 *) # Relative path.
13381 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13382 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13385 case "$ac_given_INSTALL" in
13386 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13387 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13390 echo creating "$ac_file"
13392 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13394 *Makefile*) ac_comsub="1i\\
13395 # $configure_input" ;;
13399 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13401 s%@configure_input@%$configure_input%g
13402 s%@srcdir@%$srcdir%g
13403 s%@top_srcdir@%$top_srcdir%g
13404 s%@INSTALL@%$INSTALL%g
13405 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13409 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13410 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13412 # ac_d sets the value in "#define NAME VALUE" lines.
13413 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13414 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13417 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13418 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13419 ac_uB='\([ ]\)%\1#\2define\3'
13422 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13423 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13424 ac_eB='$%\1#\2define\3'
13428 if test "${CONFIG_HEADERS+set}" != set; then
13430 cat >> $CONFIG_STATUS <<EOF
13431 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
13433 cat >> $CONFIG_STATUS <<\EOF
13435 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13438 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13439 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13440 *) ac_file_in="${ac_file}.in" ;;
13443 echo creating $ac_file
13445 rm -f conftest.frag conftest.in conftest.out
13446 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13447 cat $ac_file_inputs > conftest.in
13451 # Transform confdefs.h into a sed script conftest.vals that substitutes
13452 # the proper values into config.h.in to produce config.h. And first:
13453 # Protect against being on the right side of a sed subst in config.status.
13454 # Protect against being in an unquoted here document in config.status.
13455 rm -f conftest.vals
13456 cat > conftest.hdr <<\EOF
13459 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13463 sed -n -f conftest.hdr confdefs.h > conftest.vals
13466 # This sed command replaces #undef with comments. This is necessary, for
13467 # example, in the case of _POSIX_SOURCE, which is predefined and required
13468 # on some systems where configure will not decide to define it.
13469 cat >> conftest.vals <<\EOF
13470 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13473 # Break up conftest.vals because some shells have a limit on
13474 # the size of here documents, and old seds have small limits too.
13476 rm -f conftest.tail
13479 ac_lines=`grep -c . conftest.vals`
13480 # grep -c gives empty output for an empty file on some AIX systems.
13481 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13482 # Write a limited-size here document to conftest.frag.
13483 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13484 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13486 sed -f conftest.frag conftest.in > conftest.out
13488 mv conftest.out conftest.in
13489 ' >> $CONFIG_STATUS
13490 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13491 rm -f conftest.vals
13492 mv conftest.tail conftest.vals
13494 rm -f conftest.vals
13496 cat >> $CONFIG_STATUS <<\EOF
13497 rm -f conftest.frag conftest.h
13498 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13499 cat conftest.in >> conftest.h
13501 if cmp -s $ac_file conftest.h 2>/dev/null; then
13502 echo "$ac_file is unchanged"
13505 # Remove last slash and all that follows it. Not all systems have dirname.
13506 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13508 # The file is in a subdirectory.
13509 test ! -d "$ac_dir" && mkdir "$ac_dir"
13512 mv conftest.h $ac_file
13517 cat >> $CONFIG_STATUS <<EOF
13520 cat >> $CONFIG_STATUS <<\EOF
13523 echo Please \"make depend\" to build dependencies
13527 chmod +x $CONFIG_STATUS
13528 rm -fr confdefs* $ac_clean_files
13529 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1