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 DX Referrals 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)"
50 LDAPD (X.500-to-LDAP Gateway) Options:"
52 --enable-ldapd enable building ldapd (no)"
54 SLAPD (Standalone LDAP Daemon) Options:"
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-aci enable per-object ACIs (no)"
74 --enable-discreteaci enable discrete rights in ACIs (no)"
76 --enable-wrappers enable tcp wrapper support (no)"
78 --enable-bdb2 enable bdb2 backend (no)"
80 --with-bdb2-module module type (static)"
82 --enable-ldap enable ldap backend (no)"
84 --with-ldap-module module type (static)"
86 --enable-ldbm enable ldbm backend (yes)"
88 --with-ldbm-api use LDBM API (auto)"
90 --with-ldbm-module module type (static)"
92 --with-ldbm-type use LDBM type (auto)"
94 --enable-passwd enable passwd backend (no)"
96 --with-passwd-module module type (static)"
98 --enable-perl enable perl backend (no)"
100 --with-perl-module module type (static)"
102 --enable-shell enable shell backend (no)"
104 --with-shell-module module type (static)"
106 --enable-tcl enable tcl backend (no)"
108 --with-tcl-module module type (static)"
110 SLURPD (Replication Daemon) Options:"
112 --enable-slurpd enable building slurpd (auto)"
114 Library Generation & Linking Options"
116 --enable-static[=PKGS] build static libraries [default=yes]"
118 --enable-shared[=PKGS] build shared libraries [default=yes]"
120 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
122 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
124 --disable-libtool-lock avoid locking (might break parallel builds)"
126 # Initialize some variables set by options.
127 # The variables have the same names as the options, with
128 # dashes changed to underlines.
130 cache_file=./config.cache
139 program_transform_name=s,x,x,
147 bindir='${exec_prefix}/bin'
148 sbindir='${exec_prefix}/sbin'
149 libexecdir='${exec_prefix}/libexec'
150 datadir='${prefix}/share'
151 sysconfdir='${prefix}/etc'
152 sharedstatedir='${prefix}/com'
153 localstatedir='${prefix}/var'
154 libdir='${exec_prefix}/lib'
155 includedir='${prefix}/include'
156 oldincludedir='/usr/include'
157 infodir='${prefix}/info'
158 mandir='${prefix}/man'
160 # Initialize some other variables.
163 SHELL=${CONFIG_SHELL-/bin/sh}
164 # Maximum number of lines to put in a shell here document.
171 # If the previous option needs an argument, assign it.
172 if test -n "$ac_prev"; then
173 eval "$ac_prev=\$ac_option"
179 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
183 # Accept the important Cygnus configure options, so we can diagnose typos.
187 -bindir | --bindir | --bindi | --bind | --bin | --bi)
189 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
190 bindir="$ac_optarg" ;;
192 -build | --build | --buil | --bui | --bu)
194 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
195 build="$ac_optarg" ;;
197 -cache-file | --cache-file | --cache-fil | --cache-fi \
198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
199 ac_prev=cache_file ;;
200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
202 cache_file="$ac_optarg" ;;
204 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
206 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
208 datadir="$ac_optarg" ;;
210 -disable-* | --disable-*)
211 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
212 # Reject names that are not valid shell variable names.
213 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
214 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
216 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
217 eval "enable_${ac_feature}=no" ;;
219 -enable-* | --enable-*)
220 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
221 # Reject names that are not valid shell variable names.
222 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
223 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
225 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
230 eval "enable_${ac_feature}='$ac_optarg'" ;;
232 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
233 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
234 | --exec | --exe | --ex)
235 ac_prev=exec_prefix ;;
236 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
237 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
238 | --exec=* | --exe=* | --ex=*)
239 exec_prefix="$ac_optarg" ;;
241 -gas | --gas | --ga | --g)
242 # Obsolete; use --with-gas.
245 -help | --help | --hel | --he)
246 # Omit some internal or obsolete options to make the list less imposing.
247 # This message is too long to be a string in the A/UX 3.1 sh.
249 Usage: configure [options] [host]
250 Options: [defaults in brackets after descriptions]
252 --cache-file=FILE cache test results in FILE
253 --help print this message
254 --no-create do not create output files
255 --quiet, --silent do not print \`checking...' messages
256 --version print the version of autoconf that created configure
257 Directory and file names:
258 --prefix=PREFIX install architecture-independent files in PREFIX
260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
262 --bindir=DIR user executables in DIR [EPREFIX/bin]
263 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
264 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
265 --datadir=DIR read-only architecture-independent data in DIR
267 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
268 --sharedstatedir=DIR modifiable architecture-independent data in DIR
270 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
271 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
272 --includedir=DIR C header files in DIR [PREFIX/include]
273 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
274 --infodir=DIR info documentation in DIR [PREFIX/info]
275 --mandir=DIR man documentation in DIR [PREFIX/man]
276 --srcdir=DIR find the sources in DIR [configure dir or ..]
277 --program-prefix=PREFIX prepend PREFIX to installed program names
278 --program-suffix=SUFFIX append SUFFIX to installed program names
279 --program-transform-name=PROGRAM
280 run sed PROGRAM on installed program names
284 --build=BUILD configure for building on BUILD [BUILD=HOST]
285 --host=HOST configure for HOST [guessed]
286 --target=TARGET configure for TARGET [TARGET=HOST]
287 Features and packages:
288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
290 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
291 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
292 --x-includes=DIR X include files are in DIR
293 --x-libraries=DIR X library files are in DIR
295 if test -n "$ac_help"; then
296 echo "--enable and --with options recognized:$ac_help"
300 -host | --host | --hos | --ho)
302 -host=* | --host=* | --hos=* | --ho=*)
305 -includedir | --includedir | --includedi | --included | --include \
306 | --includ | --inclu | --incl | --inc)
307 ac_prev=includedir ;;
308 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
309 | --includ=* | --inclu=* | --incl=* | --inc=*)
310 includedir="$ac_optarg" ;;
312 -infodir | --infodir | --infodi | --infod | --info | --inf)
314 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
315 infodir="$ac_optarg" ;;
317 -libdir | --libdir | --libdi | --libd)
319 -libdir=* | --libdir=* | --libdi=* | --libd=*)
320 libdir="$ac_optarg" ;;
322 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
323 | --libexe | --libex | --libe)
324 ac_prev=libexecdir ;;
325 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
326 | --libexe=* | --libex=* | --libe=*)
327 libexecdir="$ac_optarg" ;;
329 -localstatedir | --localstatedir | --localstatedi | --localstated \
330 | --localstate | --localstat | --localsta | --localst \
331 | --locals | --local | --loca | --loc | --lo)
332 ac_prev=localstatedir ;;
333 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
334 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
335 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
336 localstatedir="$ac_optarg" ;;
338 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
340 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
341 mandir="$ac_optarg" ;;
344 # Obsolete; use --without-fp.
347 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
351 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
352 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
355 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
356 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
357 | --oldin | --oldi | --old | --ol | --o)
358 ac_prev=oldincludedir ;;
359 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
360 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
361 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
362 oldincludedir="$ac_optarg" ;;
364 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
366 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
367 prefix="$ac_optarg" ;;
369 -program-prefix | --program-prefix | --program-prefi | --program-pref \
370 | --program-pre | --program-pr | --program-p)
371 ac_prev=program_prefix ;;
372 -program-prefix=* | --program-prefix=* | --program-prefi=* \
373 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
374 program_prefix="$ac_optarg" ;;
376 -program-suffix | --program-suffix | --program-suffi | --program-suff \
377 | --program-suf | --program-su | --program-s)
378 ac_prev=program_suffix ;;
379 -program-suffix=* | --program-suffix=* | --program-suffi=* \
380 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
381 program_suffix="$ac_optarg" ;;
383 -program-transform-name | --program-transform-name \
384 | --program-transform-nam | --program-transform-na \
385 | --program-transform-n | --program-transform- \
386 | --program-transform | --program-transfor \
387 | --program-transfo | --program-transf \
388 | --program-trans | --program-tran \
389 | --progr-tra | --program-tr | --program-t)
390 ac_prev=program_transform_name ;;
391 -program-transform-name=* | --program-transform-name=* \
392 | --program-transform-nam=* | --program-transform-na=* \
393 | --program-transform-n=* | --program-transform-=* \
394 | --program-transform=* | --program-transfor=* \
395 | --program-transfo=* | --program-transf=* \
396 | --program-trans=* | --program-tran=* \
397 | --progr-tra=* | --program-tr=* | --program-t=*)
398 program_transform_name="$ac_optarg" ;;
400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
401 | -silent | --silent | --silen | --sile | --sil)
404 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
406 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
408 sbindir="$ac_optarg" ;;
410 -sharedstatedir | --sharedstatedir | --sharedstatedi \
411 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
412 | --sharedst | --shareds | --shared | --share | --shar \
414 ac_prev=sharedstatedir ;;
415 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
416 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
417 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
419 sharedstatedir="$ac_optarg" ;;
421 -site | --site | --sit)
423 -site=* | --site=* | --sit=*)
426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
429 srcdir="$ac_optarg" ;;
431 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
432 | --syscon | --sysco | --sysc | --sys | --sy)
433 ac_prev=sysconfdir ;;
434 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
435 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
436 sysconfdir="$ac_optarg" ;;
438 -target | --target | --targe | --targ | --tar | --ta | --t)
440 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
441 target="$ac_optarg" ;;
443 -v | -verbose | --verbose | --verbos | --verbo | --verb)
446 -version | --version | --versio | --versi | --vers)
447 echo "configure generated by autoconf version 2.13.1"
451 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
452 # Reject names that are not valid shell variable names.
453 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
454 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
456 ac_package=`echo $ac_package| sed 's/-/_/g'`
461 eval "with_${ac_package}='$ac_optarg'" ;;
463 -without-* | --without-*)
464 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
465 # Reject names that are not valid shell variable names.
466 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
469 ac_package=`echo $ac_package| sed 's/-/_/g'`
470 eval "with_${ac_package}=no" ;;
473 # Obsolete; use --with-x.
476 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
477 | --x-incl | --x-inc | --x-in | --x-i)
478 ac_prev=x_includes ;;
479 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
480 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
481 x_includes="$ac_optarg" ;;
483 -x-libraries | --x-libraries | --x-librarie | --x-librari \
484 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
485 ac_prev=x_libraries ;;
486 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
487 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
488 x_libraries="$ac_optarg" ;;
490 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
494 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
495 echo "configure: warning: $ac_option: invalid host type" 1>&2
497 if test "x$nonopt" != xNONE; then
498 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
506 if test -n "$ac_prev"; then
507 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
510 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
512 # File descriptor usage:
515 # 2 errors and warnings
516 # 3 some systems may open it to /dev/tty
517 # 4 used on the Kubota Titan
518 # 6 checking for... messages and results
519 # 5 compiler messages saved in config.log
520 if test "$silent" = yes; then
528 This file contains any messages produced by compilers while
529 running configure, to aid debugging if configure makes a mistake.
532 # Strip out --no-create and --no-recursion so they do not pile up.
533 # Also quote any args containing shell metacharacters.
538 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
539 | --no-cr | --no-c) ;;
540 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
541 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
542 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
543 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
544 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
549 # Only set these to C if already set. These must not be set unconditionally
550 # because not all systems understand e.g. LANG=C (notably SCO).
551 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
552 # Non-C LC_CTYPE values break the ctype check.
553 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
554 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
555 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
556 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
559 rm -rf conftest* confdefs.h
560 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
563 # A filename unique to this package, relative to the directory that
564 # configure is in, which we can look for to find out if srcdir is correct.
565 ac_unique_file=build/version
567 # Find the source files, if location was not specified.
568 if test -z "$srcdir"; then
569 ac_srcdir_defaulted=yes
570 # Try the directory containing this script, then its parent.
572 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
573 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
575 if test ! -r $srcdir/$ac_unique_file; then
579 ac_srcdir_defaulted=no
581 if test ! -r $srcdir/$ac_unique_file; then
582 if test "$ac_srcdir_defaulted" = yes; then
583 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
585 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
588 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
590 # Prefer explicitly selected file to automatically selected ones.
591 if test -z "$CONFIG_SITE"; then
592 if test "x$prefix" != xNONE; then
593 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
595 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
598 for ac_site_file in $CONFIG_SITE; do
599 if test -r "$ac_site_file"; then
600 echo "loading site script $ac_site_file"
607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
608 ac_cpp='$CPP $CPPFLAGS'
609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
611 cross_compiling=$ac_cv_prog_cc_cross
615 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
616 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
617 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
624 ac_n= ac_c='\c' ac_t=
628 for ac_dir in build $srcdir/build; do
629 if test -f $ac_dir/install-sh; then
631 ac_install_sh="$ac_aux_dir/install-sh -c"
633 elif test -f $ac_dir/install.sh; then
635 ac_install_sh="$ac_aux_dir/install.sh -c"
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
642 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
643 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
644 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
646 OL_VERSION=`cat $ac_aux_dir/version`
647 if test -z "$OL_VERSION"; then
648 { echo "configure: error: could not determine version" 1>&2; exit 1; }
652 echo $ac_n "checking host system type""... $ac_c" 1>&6
653 echo "configure:654: checking host system type" >&5
654 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
656 # Make sure we can run config.sub.
657 if $ac_config_sub sun4 >/dev/null 2>&1; then :
658 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
661 ac_cv_host_alias=$host
662 case "$ac_cv_host_alias" in
666 if ac_cv_host_alias=`$ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669 *) ac_cv_host_alias=$nonopt ;;
673 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
674 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo $ac_n "(cached) $ac_c" 1>&6
681 echo "$ac_t""$ac_cv_host" 1>&6
684 host_alias=$ac_cv_host_alias
685 host_cpu=$ac_cv_host_cpu
686 host_vendor=$ac_cv_host_vendor
687 host_os=$ac_cv_host_os
693 echo $ac_n "checking target system type""... $ac_c" 1>&6
694 echo "configure:695: checking target system type" >&5
695 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
697 # Make sure we can run config.sub.
698 if $ac_config_sub sun4 >/dev/null 2>&1; then :
699 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
702 ac_cv_target_alias=$target
703 case "$ac_cv_target_alias" in
707 ac_cv_target_alias=$host_alias ;;
709 *) ac_cv_target_alias=$nonopt ;;
713 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
714 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
718 echo $ac_n "(cached) $ac_c" 1>&6
721 echo "$ac_t""$ac_cv_target" 1>&6
724 target_alias=$ac_cv_target_alias
725 target_cpu=$ac_cv_target_cpu
726 target_vendor=$ac_cv_target_vendor
727 target_os=$ac_cv_target_os
733 echo $ac_n "checking build system type""... $ac_c" 1>&6
734 echo "configure:735: checking build system type" >&5
735 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
737 # Make sure we can run config.sub.
738 if $ac_config_sub sun4 >/dev/null 2>&1; then :
739 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
742 ac_cv_build_alias=$build
743 case "$ac_cv_build_alias" in
747 ac_cv_build_alias=$host_alias ;;
749 *) ac_cv_build_alias=$nonopt ;;
753 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
754 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
755 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
756 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
758 echo $ac_n "(cached) $ac_c" 1>&6
761 echo "$ac_t""$ac_cv_build" 1>&6
764 build_alias=$ac_cv_build_alias
765 build_cpu=$ac_cv_build_cpu
766 build_vendor=$ac_cv_build_vendor
767 build_os=$ac_cv_build_os
773 # Do some error checking and defaulting for the host and target type.
775 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
778 # 1. You are not allowed to specify --host, --target, and nonopt at the
780 # 2. Host defaults to nonopt.
781 # 3. If nonopt is not specified, then host defaults to the current host,
782 # as determined by config.guess.
783 # 4. Target and build default to nonopt.
784 # 5. If nonopt is not specified, then target and build default to host.
786 # The aliases save the names the user supplied, while $host etc.
787 # will get canonicalized.
788 case $host---$target---$nonopt in
789 NONE---*---* | *---NONE---* | *---*---NONE) ;;
790 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
793 test "$host_alias" != "$target_alias" &&
794 test "$program_prefix$program_suffix$program_transform_name" = \
796 program_prefix=${target_alias}-
799 # Find a good install program. We prefer a C program (faster),
800 # so one script is as good as another. But avoid the broken or
801 # incompatible versions:
802 # SysV /etc/install, /usr/sbin/install
803 # SunOS /usr/etc/install
806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
809 # ./install, which can be erroneously created by make from ./install.sh.
810 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
811 echo "configure:812: checking for a BSD compatible install" >&5
812 if test -z "$INSTALL"; then
813 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
817 for ac_dir in $PATH; do
818 # Account for people who put trailing slashes in PATH elements.
820 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
822 # OSF1 and SCO ODT 3.0 have their own names for install.
823 # Don't use installbsd from OSF since it installs stuff as root
825 for ac_prog in ginstall scoinst install; do
826 if test -f $ac_dir/$ac_prog; then
827 if test $ac_prog = install &&
828 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
829 # AIX install. It has an incompatible calling convention.
831 elif test $ac_prog = install &&
832 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
833 # program-specific install script used by HP pwplus--don't use.
836 ac_cv_path_install="$ac_dir/$ac_prog -c"
847 if test "${ac_cv_path_install+set}" = set; then
848 INSTALL="$ac_cv_path_install"
850 # As a last resort, use the slow shell script. We don't cache a
851 # path for INSTALL within a source directory, because that will
852 # break other packages using the cache if that directory is
853 # removed, or if the path is relative.
854 INSTALL="$ac_install_sh"
857 echo "$ac_t""$INSTALL" 1>&6
859 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
860 # It thinks the first close brace ends the variable substitution.
861 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
863 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
865 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
867 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
868 echo "configure:869: checking whether build environment is sane" >&5
871 echo timestamp > conftestfile
872 # Do `set' in a subshell so we don't clobber the current shell's
873 # arguments. Must try -L first in case configure is actually a
874 # symlink; some systems play weird games with the mod time of symlinks
875 # (eg FreeBSD returns the mod time of the symlink's containing
878 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
879 if test "$*" = "X"; then
881 set X `ls -t $srcdir/configure conftestfile`
883 if test "$*" != "X $srcdir/configure conftestfile" \
884 && test "$*" != "X conftestfile $srcdir/configure"; then
886 # If neither matched, then we have a broken ls. This can happen
887 # if, for instance, CONFIG_SHELL is bash and it inherits a
888 # broken ls alias from the environment. This has actually
889 # happened. Such a system could not be considered "sane".
890 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
891 alias in your environment" 1>&2; exit 1; }
894 test "$2" = conftestfile
900 { echo "configure: error: newly created file is older than distributed files!
901 Check your system clock" 1>&2; exit 1; }
904 echo "$ac_t""yes" 1>&6
905 if test "$program_transform_name" = s,x,x,; then
906 program_transform_name=
908 # Double any \ or $. echo might interpret backslashes.
909 cat <<\EOF_SED > conftestsed
910 s,\\,\\\\,g; s,\$,$$,g
912 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
915 test "$program_prefix" != NONE &&
916 program_transform_name="s,^,${program_prefix},;$program_transform_name"
917 # Use a double $ so make ignores it.
918 test "$program_suffix" != NONE &&
919 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
921 # sed with no file args requires a program.
922 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
924 for ac_prog in mawk gawk nawk awk
926 # Extract the first word of "$ac_prog", so it can be a program name with args.
927 set dummy $ac_prog; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$AWK"; then
934 ac_cv_prog_AWK="$AWK" # Let the user override the test.
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
938 for ac_dir in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir=.
940 if test -f $ac_dir/$ac_word; then
941 ac_cv_prog_AWK="$ac_prog"
948 AWK="$ac_cv_prog_AWK"
949 if test -n "$AWK"; then
950 echo "$ac_t""$AWK" 1>&6
952 echo "$ac_t""no" 1>&6
955 test -n "$AWK" && break
958 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
959 echo "configure:960: checking whether ${MAKE-make} sets \${MAKE}" >&5
960 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
961 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 cat > conftestmake <<\EOF
966 @echo 'ac_maketemp="${MAKE}"'
968 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
969 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
970 if test -n "$ac_maketemp"; then
971 eval ac_cv_prog_make_${ac_make}_set=yes
973 eval ac_cv_prog_make_${ac_make}_set=no
977 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
978 echo "$ac_t""yes" 1>&6
981 echo "$ac_t""no" 1>&6
982 SET_MAKE="MAKE=${MAKE-make}"
991 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
992 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
997 missing_dir=`cd $ac_aux_dir && pwd`
998 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
999 echo "configure:1000: checking for working aclocal" >&5
1000 # Run test in a subshell; some versions of sh will print an error if
1001 # an executable is not found, even if stderr is redirected.
1002 # Redirect stdin to placate older versions of autoconf. Sigh.
1003 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1005 echo "$ac_t""found" 1>&6
1007 ACLOCAL="$missing_dir/missing aclocal"
1008 echo "$ac_t""missing" 1>&6
1011 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1012 echo "configure:1013: checking for working autoconf" >&5
1013 # Run test in a subshell; some versions of sh will print an error if
1014 # an executable is not found, even if stderr is redirected.
1015 # Redirect stdin to placate older versions of autoconf. Sigh.
1016 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1018 echo "$ac_t""found" 1>&6
1020 AUTOCONF="$missing_dir/missing autoconf"
1021 echo "$ac_t""missing" 1>&6
1024 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1025 echo "configure:1026: checking for working automake" >&5
1026 # Run test in a subshell; some versions of sh will print an error if
1027 # an executable is not found, even if stderr is redirected.
1028 # Redirect stdin to placate older versions of autoconf. Sigh.
1029 if (automake --version) < /dev/null > /dev/null 2>&1; then
1031 echo "$ac_t""found" 1>&6
1033 AUTOMAKE="$missing_dir/missing automake"
1034 echo "$ac_t""missing" 1>&6
1037 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1038 echo "configure:1039: checking for working autoheader" >&5
1039 # Run test in a subshell; some versions of sh will print an error if
1040 # an executable is not found, even if stderr is redirected.
1041 # Redirect stdin to placate older versions of autoconf. Sigh.
1042 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1043 AUTOHEADER=autoheader
1044 echo "$ac_t""found" 1>&6
1046 AUTOHEADER="$missing_dir/missing autoheader"
1047 echo "$ac_t""missing" 1>&6
1050 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1051 echo "configure:1052: checking for working makeinfo" >&5
1052 # Run test in a subshell; some versions of sh will print an error if
1053 # an executable is not found, even if stderr is redirected.
1054 # Redirect stdin to placate older versions of autoconf. Sigh.
1055 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1057 echo "$ac_t""found" 1>&6
1059 MAKEINFO="$missing_dir/missing makeinfo"
1060 echo "$ac_t""missing" 1>&6
1063 install_sh="$missing_dir/install-sh"
1064 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1066 for ac_prog in gnutar gtar tar
1068 # Extract the first word of "$ac_prog", so it can be a program name with args.
1069 set dummy $ac_prog; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$AMTAR"; then
1076 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_AMTAR="$ac_prog"
1090 AMTAR="$ac_cv_prog_AMTAR"
1091 if test -n "$AMTAR"; then
1092 echo "$ac_t""$AMTAR" 1>&6
1094 echo "$ac_t""no" 1>&6
1097 test -n "$AMTAR" && break
1102 if test -n "$AMTAR"; then
1103 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1110 cat >> confdefs.h <<EOF
1111 #define OPENLDAP_PACKAGE "$PACKAGE"
1114 cat >> confdefs.h <<EOF
1115 #define OPENLDAP_VERSION "$VERSION"
1121 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1122 echo "configure:1123: checking configure arguments" >&5
1127 ldap_subdir="/openldap"
1129 # Check whether --with-subdir or --without-subdir was given.
1130 if test "${with_subdir+set}" = set; then
1131 withval="$with_subdir"
1138 ldap_subdir="$withval"
1141 ldap_subdir="/$withval"
1148 # OpenLDAP --enable-debug
1149 # Check whether --enable-debug or --disable-debug was given.
1150 if test "${enable_debug+set}" = set; then
1151 enableval="$enable_debug"
1154 for ol_val in auto yes no ; do
1155 if test "$enableval" = "$ol_val" ; then
1159 if test "$ol_arg" = "invalid" ; then
1160 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1162 ol_enable_debug="$ol_arg"
1165 ol_enable_debug="yes"
1167 # end --enable-debug
1168 # OpenLDAP --enable-syslog
1169 # Check whether --enable-syslog or --disable-syslog was given.
1170 if test "${enable_syslog+set}" = set; then
1171 enableval="$enable_syslog"
1174 for ol_val in auto yes no ; do
1175 if test "$enableval" = "$ol_val" ; then
1179 if test "$ol_arg" = "invalid" ; then
1180 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1182 ol_enable_syslog="$ol_arg"
1185 ol_enable_syslog="auto"
1187 # end --enable-syslog
1188 # OpenLDAP --enable-proctitle
1189 # Check whether --enable-proctitle or --disable-proctitle was given.
1190 if test "${enable_proctitle+set}" = set; then
1191 enableval="$enable_proctitle"
1194 for ol_val in auto yes no ; do
1195 if test "$enableval" = "$ol_val" ; then
1199 if test "$ol_arg" = "invalid" ; then
1200 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1202 ol_enable_proctitle="$ol_arg"
1205 ol_enable_proctitle="yes"
1207 # end --enable-proctitle
1208 # OpenLDAP --enable-cache
1209 # Check whether --enable-cache or --disable-cache was given.
1210 if test "${enable_cache+set}" = set; then
1211 enableval="$enable_cache"
1214 for ol_val in auto yes no ; do
1215 if test "$enableval" = "$ol_val" ; then
1219 if test "$ol_arg" = "invalid" ; then
1220 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1222 ol_enable_cache="$ol_arg"
1225 ol_enable_cache="yes"
1227 # end --enable-cache
1228 # OpenLDAP --enable-dns
1229 # Check whether --enable-dns or --disable-dns was given.
1230 if test "${enable_dns+set}" = set; then
1231 enableval="$enable_dns"
1234 for ol_val in auto yes no ; do
1235 if test "$enableval" = "$ol_val" ; then
1239 if test "$ol_arg" = "invalid" ; then
1240 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1242 ol_enable_dns="$ol_arg"
1248 # OpenLDAP --enable-referrals
1249 # Check whether --enable-referrals or --disable-referrals was given.
1250 if test "${enable_referrals+set}" = set; then
1251 enableval="$enable_referrals"
1254 for ol_val in auto yes no ; do
1255 if test "$enableval" = "$ol_val" ; then
1259 if test "$ol_arg" = "invalid" ; then
1260 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1262 ol_enable_referrals="$ol_arg"
1265 ol_enable_referrals="yes"
1267 # end --enable-referrals
1268 # OpenLDAP --enable-cldap
1269 # Check whether --enable-cldap or --disable-cldap was given.
1270 if test "${enable_cldap+set}" = set; then
1271 enableval="$enable_cldap"
1274 for ol_val in auto yes no ; do
1275 if test "$enableval" = "$ol_val" ; then
1279 if test "$ol_arg" = "invalid" ; then
1280 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1282 ol_enable_cldap="$ol_arg"
1285 ol_enable_cldap="no"
1287 # end --enable-cldap
1288 # OpenLDAP --enable-x_compile
1289 # Check whether --enable-x_compile or --disable-x_compile was given.
1290 if test "${enable_x_compile+set}" = set; then
1291 enableval="$enable_x_compile"
1294 for ol_val in yes no ; do
1295 if test "$enableval" = "$ol_val" ; then
1299 if test "$ol_arg" = "invalid" ; then
1300 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1302 ol_enable_x_compile="$ol_arg"
1305 ol_enable_x_compile="no"
1307 # end --enable-x_compile
1309 # OpenLDAP --enable-dmalloc
1310 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1311 if test "${enable_dmalloc+set}" = set; then
1312 enableval="$enable_dmalloc"
1315 for ol_val in auto yes no ; do
1316 if test "$enableval" = "$ol_val" ; then
1320 if test "$ol_arg" = "invalid" ; then
1321 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1323 ol_enable_dmalloc="$ol_arg"
1326 ol_enable_dmalloc="no"
1328 # end --enable-dmalloc
1330 # OpenLDAP --with-cyrus_sasl
1331 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1332 if test "${with_cyrus_sasl+set}" = set; then
1333 withval="$with_cyrus_sasl"
1336 for ol_val in auto yes no ; do
1337 if test "$withval" = "$ol_val" ; then
1341 if test "$ol_arg" = "invalid" ; then
1342 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1344 ol_with_cyrus_sasl="$ol_arg"
1347 ol_with_cyrus_sasl="auto"
1349 # end --with-cyrus_sasl
1351 # OpenLDAP --with-fetch
1352 # Check whether --with-fetch or --without-fetch was given.
1353 if test "${with_fetch+set}" = set; then
1354 withval="$with_fetch"
1357 for ol_val in auto yes no ; do
1358 if test "$withval" = "$ol_val" ; then
1362 if test "$ol_arg" = "invalid" ; then
1363 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1365 ol_with_fetch="$ol_arg"
1368 ol_with_fetch="auto"
1372 # OpenLDAP --with-kerberos
1373 # Check whether --with-kerberos or --without-kerberos was given.
1374 if test "${with_kerberos+set}" = set; then
1375 withval="$with_kerberos"
1378 for ol_val in auto k5 k4 afs yes no ; do
1379 if test "$withval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1386 ol_with_kerberos="$ol_arg"
1389 ol_with_kerberos="auto"
1391 # end --with-kerberos
1393 # OpenLDAP --with-readline
1394 # Check whether --with-readline or --without-readline was given.
1395 if test "${with_readline+set}" = set; then
1396 withval="$with_readline"
1399 for ol_val in auto yes no ; do
1400 if test "$withval" = "$ol_val" ; then
1404 if test "$ol_arg" = "invalid" ; then
1405 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1407 ol_with_readline="$ol_arg"
1410 ol_with_readline="auto"
1412 # end --with-readline
1414 # OpenLDAP --with-threads
1415 # Check whether --with-threads or --without-threads was given.
1416 if test "${with_threads+set}" = set; then
1417 withval="$with_threads"
1420 for ol_val in auto posix mach pth lwp yes no manual ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1428 ol_with_threads="$ol_arg"
1431 ol_with_threads="auto"
1433 # end --with-threads
1435 # OpenLDAP --with-tls
1436 # Check whether --with-tls or --without-tls was given.
1437 if test "${with_tls+set}" = set; then
1441 for ol_val in auto ssleay openssl yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1449 ol_with_tls="$ol_arg"
1456 # OpenLDAP --with-yielding_select
1457 # Check whether --with-yielding_select or --without-yielding_select was given.
1458 if test "${with_yielding_select+set}" = set; then
1459 withval="$with_yielding_select"
1462 for ol_val in auto yes no manual ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1470 ol_with_yielding_select="$ol_arg"
1473 ol_with_yielding_select="auto"
1475 # end --with-yielding_select
1479 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1480 if test "${with_xxldapdoptions+set}" = set; then
1481 withval="$with_xxldapdoptions"
1485 # OpenLDAP --enable-ldapd
1486 # Check whether --enable-ldapd or --disable-ldapd was given.
1487 if test "${enable_ldapd+set}" = set; then
1488 enableval="$enable_ldapd"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1499 ol_enable_ldapd="$ol_arg"
1502 ol_enable_ldapd="no"
1504 # end --enable-ldapd
1506 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1507 if test "${with_xxslapdoptions+set}" = set; then
1508 withval="$with_xxslapdoptions"
1512 # OpenLDAP --enable-slapd
1513 # Check whether --enable-slapd or --disable-slapd was given.
1514 if test "${enable_slapd+set}" = set; then
1515 enableval="$enable_slapd"
1518 for ol_val in auto yes no ; do
1519 if test "$enableval" = "$ol_val" ; then
1523 if test "$ol_arg" = "invalid" ; then
1524 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1526 ol_enable_slapd="$ol_arg"
1529 ol_enable_slapd="yes"
1531 # end --enable-slapd
1532 # OpenLDAP --enable-cleartext
1533 # Check whether --enable-cleartext or --disable-cleartext was given.
1534 if test "${enable_cleartext+set}" = set; then
1535 enableval="$enable_cleartext"
1538 for ol_val in auto yes no ; do
1539 if test "$enableval" = "$ol_val" ; then
1543 if test "$ol_arg" = "invalid" ; then
1544 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1546 ol_enable_cleartext="$ol_arg"
1549 ol_enable_cleartext="yes"
1551 # end --enable-cleartext
1552 # OpenLDAP --enable-crypt
1553 # Check whether --enable-crypt or --disable-crypt was given.
1554 if test "${enable_crypt+set}" = set; then
1555 enableval="$enable_crypt"
1558 for ol_val in auto yes no ; do
1559 if test "$enableval" = "$ol_val" ; then
1563 if test "$ol_arg" = "invalid" ; then
1564 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1566 ol_enable_crypt="$ol_arg"
1569 ol_enable_crypt="auto"
1571 # end --enable-crypt
1572 # OpenLDAP --enable-modules
1573 # Check whether --enable-modules or --disable-modules was given.
1574 if test "${enable_modules+set}" = set; then
1575 enableval="$enable_modules"
1578 for ol_val in auto yes no ; do
1579 if test "$enableval" = "$ol_val" ; then
1583 if test "$ol_arg" = "invalid" ; then
1584 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1586 ol_enable_modules="$ol_arg"
1589 ol_enable_modules="no"
1591 # end --enable-modules
1592 # OpenLDAP --enable-multimaster
1593 # Check whether --enable-multimaster or --disable-multimaster was given.
1594 if test "${enable_multimaster+set}" = set; then
1595 enableval="$enable_multimaster"
1598 for ol_val in auto yes no ; do
1599 if test "$enableval" = "$ol_val" ; then
1603 if test "$ol_arg" = "invalid" ; then
1604 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1606 ol_enable_multimaster="$ol_arg"
1609 ol_enable_multimaster="no"
1611 # end --enable-multimaster
1612 # OpenLDAP --enable-phonetic
1613 # Check whether --enable-phonetic or --disable-phonetic was given.
1614 if test "${enable_phonetic+set}" = set; then
1615 enableval="$enable_phonetic"
1618 for ol_val in auto yes no ; do
1619 if test "$enableval" = "$ol_val" ; then
1623 if test "$ol_arg" = "invalid" ; then
1624 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1626 ol_enable_phonetic="$ol_arg"
1629 ol_enable_phonetic="no"
1631 # end --enable-phonetic
1632 # OpenLDAP --enable-quipu
1633 # Check whether --enable-quipu or --disable-quipu was given.
1634 if test "${enable_quipu+set}" = set; then
1635 enableval="$enable_quipu"
1638 for ol_val in auto yes no ; do
1639 if test "$enableval" = "$ol_val" ; then
1643 if test "$ol_arg" = "invalid" ; then
1644 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1646 ol_enable_quipu="$ol_arg"
1649 ol_enable_quipu="no"
1651 # end --enable-quipu
1652 # OpenLDAP --enable-rlookups
1653 # Check whether --enable-rlookups or --disable-rlookups was given.
1654 if test "${enable_rlookups+set}" = set; then
1655 enableval="$enable_rlookups"
1658 for ol_val in auto yes no ; do
1659 if test "$enableval" = "$ol_val" ; then
1663 if test "$ol_arg" = "invalid" ; then
1664 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1666 ol_enable_rlookups="$ol_arg"
1669 ol_enable_rlookups="auto"
1671 # end --enable-rlookups
1672 # OpenLDAP --enable-aci
1673 # Check whether --enable-aci or --disable-aci was given.
1674 if test "${enable_aci+set}" = set; then
1675 enableval="$enable_aci"
1678 for ol_val in auto yes no ; do
1679 if test "$enableval" = "$ol_val" ; then
1683 if test "$ol_arg" = "invalid" ; then
1684 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1686 ol_enable_aci="$ol_arg"
1692 # OpenLDAP --enable-discreteaci
1693 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1694 if test "${enable_discreteaci+set}" = set; then
1695 enableval="$enable_discreteaci"
1698 for ol_val in auto yes no ; do
1699 if test "$enableval" = "$ol_val" ; then
1703 if test "$ol_arg" = "invalid" ; then
1704 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1706 ol_enable_discreteaci="$ol_arg"
1709 ol_enable_discreteaci="no"
1711 # end --enable-discreteaci
1712 # OpenLDAP --enable-wrappers
1713 # Check whether --enable-wrappers or --disable-wrappers was given.
1714 if test "${enable_wrappers+set}" = set; then
1715 enableval="$enable_wrappers"
1718 for ol_val in auto yes no ; do
1719 if test "$enableval" = "$ol_val" ; then
1723 if test "$ol_arg" = "invalid" ; then
1724 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1726 ol_enable_wrappers="$ol_arg"
1729 ol_enable_wrappers="no"
1731 # end --enable-wrappers
1733 # OpenLDAP --enable-bdb2
1734 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1735 if test "${enable_bdb2+set}" = set; then
1736 enableval="$enable_bdb2"
1739 for ol_val in auto yes no ; do
1740 if test "$enableval" = "$ol_val" ; then
1744 if test "$ol_arg" = "invalid" ; then
1745 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1747 ol_enable_bdb2="$ol_arg"
1753 # OpenLDAP --with-bdb2_module
1754 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1755 if test "${with_bdb2_module+set}" = set; then
1756 withval="$with_bdb2_module"
1759 for ol_val in static dynamic ; do
1760 if test "$withval" = "$ol_val" ; then
1764 if test "$ol_arg" = "invalid" ; then
1765 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1767 ol_with_bdb2_module="$ol_arg"
1770 ol_with_bdb2_module="static"
1772 # end --with-bdb2_module
1774 # OpenLDAP --enable-ldap
1775 # Check whether --enable-ldap or --disable-ldap was given.
1776 if test "${enable_ldap+set}" = set; then
1777 enableval="$enable_ldap"
1780 for ol_val in auto yes no ; do
1781 if test "$enableval" = "$ol_val" ; then
1785 if test "$ol_arg" = "invalid" ; then
1786 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1788 ol_enable_ldap="$ol_arg"
1794 # OpenLDAP --with-ldap_module
1795 # Check whether --with-ldap_module or --without-ldap_module was given.
1796 if test "${with_ldap_module+set}" = set; then
1797 withval="$with_ldap_module"
1800 for ol_val in static dynamic ; do
1801 if test "$withval" = "$ol_val" ; then
1805 if test "$ol_arg" = "invalid" ; then
1806 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1808 ol_with_ldap_module="$ol_arg"
1811 ol_with_ldap_module="static"
1813 # end --with-ldap_module
1815 # OpenLDAP --enable-ldbm
1816 # Check whether --enable-ldbm or --disable-ldbm was given.
1817 if test "${enable_ldbm+set}" = set; then
1818 enableval="$enable_ldbm"
1821 for ol_val in auto yes no ; do
1822 if test "$enableval" = "$ol_val" ; then
1826 if test "$ol_arg" = "invalid" ; then
1827 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1829 ol_enable_ldbm="$ol_arg"
1832 ol_enable_ldbm="yes"
1835 # OpenLDAP --with-ldbm_api
1836 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1837 if test "${with_ldbm_api+set}" = set; then
1838 withval="$with_ldbm_api"
1841 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1842 if test "$withval" = "$ol_val" ; then
1846 if test "$ol_arg" = "invalid" ; then
1847 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1849 ol_with_ldbm_api="$ol_arg"
1852 ol_with_ldbm_api="auto"
1854 # end --with-ldbm_api
1856 # OpenLDAP --with-ldbm_module
1857 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1858 if test "${with_ldbm_module+set}" = set; then
1859 withval="$with_ldbm_module"
1862 for ol_val in static dynamic ; do
1863 if test "$withval" = "$ol_val" ; then
1867 if test "$ol_arg" = "invalid" ; then
1868 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1870 ol_with_ldbm_module="$ol_arg"
1873 ol_with_ldbm_module="static"
1875 # end --with-ldbm_module
1877 # OpenLDAP --with-ldbm_type
1878 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1879 if test "${with_ldbm_type+set}" = set; then
1880 withval="$with_ldbm_type"
1883 for ol_val in auto btree hash ; do
1884 if test "$withval" = "$ol_val" ; then
1888 if test "$ol_arg" = "invalid" ; then
1889 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1891 ol_with_ldbm_type="$ol_arg"
1894 ol_with_ldbm_type="auto"
1896 # end --with-ldbm_type
1899 # OpenLDAP --enable-passwd
1900 # Check whether --enable-passwd or --disable-passwd was given.
1901 if test "${enable_passwd+set}" = set; then
1902 enableval="$enable_passwd"
1905 for ol_val in auto yes no ; do
1906 if test "$enableval" = "$ol_val" ; then
1910 if test "$ol_arg" = "invalid" ; then
1911 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1913 ol_enable_passwd="$ol_arg"
1916 ol_enable_passwd="no"
1918 # end --enable-passwd
1919 # OpenLDAP --with-passwd_module
1920 # Check whether --with-passwd_module or --without-passwd_module was given.
1921 if test "${with_passwd_module+set}" = set; then
1922 withval="$with_passwd_module"
1925 for ol_val in static dynamic ; do
1926 if test "$withval" = "$ol_val" ; then
1930 if test "$ol_arg" = "invalid" ; then
1931 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1933 ol_with_passwd_module="$ol_arg"
1936 ol_with_passwd_module="static"
1938 # end --with-passwd_module
1940 # OpenLDAP --enable-perl
1941 # Check whether --enable-perl or --disable-perl was given.
1942 if test "${enable_perl+set}" = set; then
1943 enableval="$enable_perl"
1946 for ol_val in auto yes no ; do
1947 if test "$enableval" = "$ol_val" ; then
1951 if test "$ol_arg" = "invalid" ; then
1952 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1954 ol_enable_perl="$ol_arg"
1960 # OpenLDAP --with-perl_module
1961 # Check whether --with-perl_module or --without-perl_module was given.
1962 if test "${with_perl_module+set}" = set; then
1963 withval="$with_perl_module"
1966 for ol_val in static dynamic ; do
1967 if test "$withval" = "$ol_val" ; then
1971 if test "$ol_arg" = "invalid" ; then
1972 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1974 ol_with_perl_module="$ol_arg"
1977 ol_with_perl_module="static"
1979 # end --with-perl_module
1981 # OpenLDAP --enable-shell
1982 # Check whether --enable-shell or --disable-shell was given.
1983 if test "${enable_shell+set}" = set; then
1984 enableval="$enable_shell"
1987 for ol_val in auto yes no ; do
1988 if test "$enableval" = "$ol_val" ; then
1992 if test "$ol_arg" = "invalid" ; then
1993 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1995 ol_enable_shell="$ol_arg"
1998 ol_enable_shell="no"
2000 # end --enable-shell
2001 # OpenLDAP --with-shell_module
2002 # Check whether --with-shell_module or --without-shell_module was given.
2003 if test "${with_shell_module+set}" = set; then
2004 withval="$with_shell_module"
2007 for ol_val in static dynamic ; do
2008 if test "$withval" = "$ol_val" ; then
2012 if test "$ol_arg" = "invalid" ; then
2013 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2015 ol_with_shell_module="$ol_arg"
2018 ol_with_shell_module="static"
2020 # end --with-shell_module
2022 # OpenLDAP --enable-tcl
2023 # Check whether --enable-tcl or --disable-tcl was given.
2024 if test "${enable_tcl+set}" = set; then
2025 enableval="$enable_tcl"
2028 for ol_val in auto yes no ; do
2029 if test "$enableval" = "$ol_val" ; then
2033 if test "$ol_arg" = "invalid" ; then
2034 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2036 ol_enable_tcl="$ol_arg"
2042 # OpenLDAP --with-tcl_module
2043 # Check whether --with-tcl_module or --without-tcl_module was given.
2044 if test "${with_tcl_module+set}" = set; then
2045 withval="$with_tcl_module"
2048 for ol_val in static dynamic ; do
2049 if test "$withval" = "$ol_val" ; then
2053 if test "$ol_arg" = "invalid" ; then
2054 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2056 ol_with_tcl_module="$ol_arg"
2059 ol_with_tcl_module="static"
2061 # end --with-tcl_module
2064 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2065 if test "${with_xxslurpdoptions+set}" = set; then
2066 withval="$with_xxslurpdoptions"
2070 # OpenLDAP --enable-slurpd
2071 # Check whether --enable-slurpd or --disable-slurpd was given.
2072 if test "${enable_slurpd+set}" = set; then
2073 enableval="$enable_slurpd"
2076 for ol_val in auto yes no ; do
2077 if test "$enableval" = "$ol_val" ; then
2081 if test "$ol_arg" = "invalid" ; then
2082 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2084 ol_enable_slurpd="$ol_arg"
2087 ol_enable_slurpd="auto"
2089 # end --enable-slurpd
2091 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2092 if test "${with_xxliboptions+set}" = set; then
2093 withval="$with_xxliboptions"
2097 # Check whether --enable-static or --disable-static was given.
2098 if test "${enable_static+set}" = set; then
2099 enableval="$enable_static"
2100 p=${PACKAGE-default}
2101 case "$enableval" in
2102 yes) enable_static=yes ;;
2103 no) enable_static=no ;;
2106 # Look at the argument we got. We use all the common list separators.
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2108 for pkg in $enableval; do
2109 if test "X$pkg" = "X$p"; then
2120 # Check whether --enable-shared or --disable-shared was given.
2121 if test "${enable_shared+set}" = set; then
2122 enableval="$enable_shared"
2123 p=${PACKAGE-default}
2124 case "$enableval" in
2125 yes) enable_shared=yes ;;
2126 no) enable_shared=no ;;
2129 # Look at the argument we got. We use all the common list separators.
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2131 for pkg in $enableval; do
2132 if test "X$pkg" = "X$p"; then
2145 if test $ol_enable_dns = yes ; then
2146 if test $ol_enable_referrals = no ; then
2147 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2149 if test $ol_enable_referrals = auto ; then
2150 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2151 ol_enable_referrals=yes
2155 if test $ol_enable_slapd = no ; then
2156 if test $ol_enable_bdb2 = yes ; then
2157 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2159 if test $ol_enable_ldap = yes ; then
2160 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2162 if test $ol_enable_ldbm = yes ; then
2163 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2165 if test $ol_enable_passwd = yes ; then
2166 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2168 if test $ol_enable_perl = yes ; then
2169 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2171 if test $ol_enable_shell = yes ; then
2172 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2174 if test $ol_enable_tcl = yes ; then
2175 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2177 if test $ol_enable_modules = yes ; then
2178 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2180 if test $ol_enable_multimaster = yes ; then
2181 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2183 if test $ol_enable_wrappers = yes ; then
2184 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2186 if test $ol_enable_phonetic = yes ; then
2187 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2189 if test $ol_enable_quipu = yes ; then
2190 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2192 if test $ol_enable_rlookups = yes ; then
2193 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2195 if test $ol_enable_aci = yes ; then
2196 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2198 if test $ol_enable_discreteaci = yes ; then
2199 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2201 if test $ol_with_ldbm_api != auto ; then
2202 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2204 if test $ol_with_ldbm_type != auto ; then
2205 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2207 if test $ol_with_bdb2_module != static ; then
2208 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2210 if test $ol_with_ldap_module != static ; then
2211 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2213 if test $ol_with_ldbm_module != static ; then
2214 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2216 if test $ol_with_passwd_module != static ; then
2217 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2219 if test $ol_with_perl_module != static ; then
2220 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2222 if test $ol_with_shell_module != static ; then
2223 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2225 if test $ol_with_tcl_module != static ; then
2226 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2228 if test $ol_enable_slurpd = yes ; then
2229 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2232 # force settings to no
2241 ol_enable_modules=no
2242 ol_enable_multimaster=no
2243 ol_enable_phonetic=no
2245 ol_enable_rlookups=no
2247 ol_enable_discreteaci=no
2248 ol_enable_wrappers=no
2251 ol_with_ldbm_type=no
2253 ol_with_bdb2_module=static
2254 ol_with_ldap_module=static
2255 ol_with_ldbm_module=static
2256 ol_with_passwd_module=static
2257 ol_with_perl_module=static
2258 ol_with_shell_module=static
2259 ol_with_tcl_module=static
2263 elif test $ol_enable_ldbm = no ; then
2265 if test $ol_with_ldbm_api != auto ; then
2266 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2269 if test $ol_with_ldbm_type != auto ; then
2270 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2273 if test $ol_with_ldbm_module != static ; then
2274 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2277 if test $ol_enable_bdb2 = yes ; then
2278 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2281 if test $ol_enable_modules != yes -a \
2282 $ol_enable_ldap = no -a \
2283 $ol_enable_passwd = no -a \
2284 $ol_enable_perl = no -a \
2285 $ol_enable_shell = no -a \
2286 $ol_enable_tcl = no ; then
2287 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2291 ol_with_ldbm_type=no
2292 ol_with_ldbm_module=static
2294 elif test $ol_enable_bdb2 = yes ; then
2296 if test $ol_with_ldbm_api != auto -a \
2297 $ol_with_ldbm_api != db2 ; then
2298 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2301 ol_with_ldbm_api=db2
2305 if test $ol_enable_bdb2 != no ; then
2306 if test $ol_with_ldbm_api != auto -a \
2307 $ol_with_ldbm_api != db2 ; then
2308 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2313 if test $ol_with_ldbm_api = gdbm -a \
2314 $ol_with_ldbm_type = btree ; then
2315 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2317 if test $ol_with_ldbm_api = mdbm -a \
2318 $ol_with_ldbm_type = btree ; then
2319 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2321 if test $ol_with_ldbm_api = ndbm -a \
2322 $ol_with_ldbm_type = btree ; then
2323 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2327 if test $ol_enable_slurpd = yes ; then
2328 if test $ol_with_threads = no ; then
2329 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2333 echo "$ac_t""done" 1>&6
2360 BUILD_BDB2_DYNAMIC=static
2361 BUILD_LDAP_DYNAMIC=static
2362 BUILD_LDBM_DYNAMIC=static
2363 BUILD_PASSWD_DYNAMIC=static
2364 BUILD_PERL_DYNAMIC=static
2365 BUILD_SHELL_DYNAMIC=static
2366 BUILD_TCL_DYNAMIC=static
2368 SLAPD_MODULES_LDFLAGS=
2369 SLAPD_MODULES_CPPFLAGS=
2373 SLAPD_PERL_CPPFLAGS=
2384 cat >> confdefs.h <<\EOF
2385 #define HAVE_MKVERSION 1
2393 *-*-aix*) if test -z "$CC" ; then
2394 case "$ol_with_threads" in
2395 auto | yes | posix) ol_aix_threads=yes ;;
2401 if test $ol_aix_threads = yes ; then
2402 if test -z "${CC}" ; then
2403 for ac_prog in cc_r xlc_r cc
2405 # Extract the first word of "$ac_prog", so it can be a program name with args.
2406 set dummy $ac_prog; ac_word=$2
2407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_word" >&5
2409 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2417 for ac_dir in $ac_dummy; do
2418 test -z "$ac_dir" && ac_dir=.
2419 if test -f $ac_dir/$ac_word; then
2420 ac_cv_prog_CC="$ac_prog"
2428 if test -n "$CC"; then
2429 echo "$ac_t""$CC" 1>&6
2431 echo "$ac_t""no" 1>&6
2434 test -n "$CC" && break
2438 if test "$CC" = cc ; then
2439 if test $ol_with_threads != auto ; then
2440 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2442 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2448 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2449 ol_with_threads=posix
2450 ol_cv_pthread_create=yes
2454 if test -z "${CC}"; then
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_word" >&5
2461 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2469 for ac_dir in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir=.
2471 if test -f $ac_dir/$ac_word; then
2472 ac_cv_prog_CC="$ac_prog"
2480 if test -n "$CC"; then
2481 echo "$ac_t""$CC" 1>&6
2483 echo "$ac_t""no" 1>&6
2486 test -n "$CC" && break
2493 # Check whether --enable-fast-install or --disable-fast-install was given.
2494 if test "${enable_fast_install+set}" = set; then
2495 enableval="$enable_fast_install"
2496 p=${PACKAGE-default}
2497 case "$enableval" in
2498 yes) enable_fast_install=yes ;;
2499 no) enable_fast_install=no ;;
2501 enable_fast_install=no
2502 # Look at the argument we got. We use all the common list separators.
2503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2504 for pkg in $enableval; do
2505 if test "X$pkg" = "X$p"; then
2506 enable_fast_install=yes
2513 enable_fast_install=yes
2516 # Extract the first word of "ranlib", so it can be a program name with args.
2517 set dummy ranlib; ac_word=$2
2518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_word" >&5
2520 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 if test -n "$RANLIB"; then
2524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2528 for ac_dir in $ac_dummy; do
2529 test -z "$ac_dir" && ac_dir=.
2530 if test -f $ac_dir/$ac_word; then
2531 ac_cv_prog_RANLIB="ranlib"
2536 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2539 RANLIB="$ac_cv_prog_RANLIB"
2540 if test -n "$RANLIB"; then
2541 echo "$ac_t""$RANLIB" 1>&6
2543 echo "$ac_t""no" 1>&6
2546 # Extract the first word of "gcc", so it can be a program name with args.
2547 set dummy gcc; ac_word=$2
2548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2549 echo "configure:2550: checking for $ac_word" >&5
2550 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2558 for ac_dir in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir=.
2560 if test -f $ac_dir/$ac_word; then
2569 if test -n "$CC"; then
2570 echo "$ac_t""$CC" 1>&6
2572 echo "$ac_t""no" 1>&6
2575 if test -z "$CC"; then
2576 # Extract the first word of "cc", so it can be a program name with args.
2577 set dummy cc; 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=":"
2589 for ac_dir in $ac_dummy; do
2590 test -z "$ac_dir" && ac_dir=.
2591 if test -f $ac_dir/$ac_word; then
2592 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2593 ac_prog_rejected=yes
2601 if test $ac_prog_rejected = yes; then
2602 # We found a bogon in the path, so make sure we never use it.
2603 set dummy $ac_cv_prog_CC
2605 if test $# -gt 0; then
2606 # We chose a different compiler from the bogus one.
2607 # However, it has the same basename, so the bogon will be chosen
2608 # first if we set CC to just the basename; use the full file name.
2610 set dummy "$ac_dir/$ac_word" "$@"
2618 if test -n "$CC"; then
2619 echo "$ac_t""$CC" 1>&6
2621 echo "$ac_t""no" 1>&6
2624 if test -z "$CC"; then
2625 case "`uname -s`" in
2626 *win32* | *WIN32* | *CYGWIN*)
2627 # Extract the first word of "cl", so it can be a program name with args.
2628 set dummy cl; ac_word=$2
2629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2630 echo "configure:2631: checking for $ac_word" >&5
2631 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2639 for ac_dir in $ac_dummy; do
2640 test -z "$ac_dir" && ac_dir=.
2641 if test -f $ac_dir/$ac_word; then
2650 if test -n "$CC"; then
2651 echo "$ac_t""$CC" 1>&6
2653 echo "$ac_t""no" 1>&6
2658 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2662 echo "configure:2663: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2669 cross_compiling=$ac_cv_prog_cc_cross
2671 cat > conftest.$ac_ext << EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2678 if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2679 ac_cv_prog_cc_works=yes
2680 # If we can't run a trivial program, we are probably using a cross compiler.
2681 if (./conftest; exit) 2>/dev/null; then
2682 ac_cv_prog_cc_cross=no
2684 ac_cv_prog_cc_cross=yes
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 ac_cv_prog_cc_works=no
2693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2697 cross_compiling=$ac_cv_prog_cc_cross
2699 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2700 if test $ac_cv_prog_cc_works = no; then
2701 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2703 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2704 echo "configure:2705: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2705 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2706 cross_compiling=$ac_cv_prog_cc_cross
2708 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2709 echo "configure:2710: checking whether we are using GNU C" >&5
2710 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.c <<EOF
2718 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2725 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2727 if test $ac_cv_prog_gcc = yes; then
2733 ac_test_CFLAGS="${CFLAGS+set}"
2734 ac_save_CFLAGS="$CFLAGS"
2736 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2737 echo "configure:2738: checking whether ${CC-cc} accepts -g" >&5
2738 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 echo 'void f(){}' > conftest.c
2742 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2751 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2752 if test "$ac_test_CFLAGS" = set; then
2753 CFLAGS="$ac_save_CFLAGS"
2754 elif test $ac_cv_prog_cc_g = yes; then
2755 if test "$GCC" = yes; then
2761 if test "$GCC" = yes; then
2768 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2769 if test "${with_gnu_ld+set}" = set; then
2770 withval="$with_gnu_ld"
2771 test "$withval" = no || with_gnu_ld=yes
2777 if test "$ac_cv_prog_gcc" = yes; then
2778 # Check if gcc -print-prog-name=ld gives a path.
2779 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2780 echo "configure:2781: checking for ld used by GCC" >&5
2781 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2783 # Accept absolute paths.
2784 [\\/]* | [A-Za-z]:[\\/]*)
2785 re_direlt='/[^/][^/]*/\.\./'
2786 # Canonicalize the path of ld
2787 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2788 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2789 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2791 test -z "$LD" && LD="$ac_prog"
2794 # If it fails, then pretend we aren't using GCC.
2798 # If it is relative, then search for the first ld in PATH.
2802 elif test "$with_gnu_ld" = yes; then
2803 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2804 echo "configure:2805: checking for GNU ld" >&5
2806 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2807 echo "configure:2808: checking for non-GNU ld" >&5
2809 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 if test -z "$LD"; then
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2814 for ac_dir in $PATH; do
2815 test -z "$ac_dir" && ac_dir=.
2816 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2817 ac_cv_path_LD="$ac_dir/$ac_prog"
2818 # Check to see if the program is GNU ld. I'd rather use --version,
2819 # but apparently some GNU ld's only accept -v.
2820 # Break only if it was the GNU/non-GNU ld that we prefer.
2821 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2822 test "$with_gnu_ld" != no && break
2824 test "$with_gnu_ld" != yes && break
2830 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2835 if test -n "$LD"; then
2836 echo "$ac_t""$LD" 1>&6
2838 echo "$ac_t""no" 1>&6
2840 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2842 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2843 echo "configure:2844: checking if the linker ($LD) is GNU ld" >&5
2844 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2848 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2849 ac_cv_prog_gnu_ld=yes
2851 ac_cv_prog_gnu_ld=no
2855 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2858 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2859 echo "configure:2860: checking for BSD-compatible nm" >&5
2860 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 if test -n "$NM"; then
2864 # Let the user override the test.
2867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2868 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2869 test -z "$ac_dir" && ac_dir=.
2870 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2871 # Check to see if the nm accepts a BSD-compat flag.
2872 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2873 # nm: unknown option "B" ignored
2874 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2875 ac_cv_path_NM="$ac_dir/nm -B"
2877 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2878 ac_cv_path_NM="$ac_dir/nm -p"
2881 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2882 continue # so that we can try to find one that supports BSD flags
2887 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2892 echo "$ac_t""$NM" 1>&6
2895 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2896 echo "configure:2897: checking whether ln -s works" >&5
2897 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2901 if ln -s X conftestdata 2>/dev/null
2904 ac_cv_prog_LN_S="ln -s"
2909 LN_S="$ac_cv_prog_LN_S"
2910 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2911 echo "$ac_t""yes" 1>&6
2913 echo "$ac_t""no" 1>&6
2917 # Check for any special flags to pass to ltconfig.
2918 libtool_flags="--cache-file=$cache_file"
2919 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2920 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2921 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2922 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2923 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2924 libtool_flags="$libtool_flags --enable-dlopen"
2926 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2927 if test "${enable_libtool_lock+set}" = set; then
2928 enableval="$enable_libtool_lock"
2932 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2933 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2935 # Some flags need to be propagated to the compiler or linker for good
2939 # Find out which ABI we are using.
2940 echo '#line 2941 "configure"' > conftest.$ac_ext
2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2942 case "`/usr/bin/file conftest.o`" in
2958 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2959 SAVE_CFLAGS="$CFLAGS"
2960 CFLAGS="$CFLAGS -belf"
2961 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2962 echo "configure:2963: checking whether the C compiler needs -belf" >&5
2963 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2976 lt_cv_cc_needs_belf=yes
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2981 lt_cv_cc_needs_belf=no
2986 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2989 CFLAGS="$SAVE_CFLAGS"
2997 # Save cache, so that ltconfig can load it
3000 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3001 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3002 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3003 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3004 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3005 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3006 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3007 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3009 # Reload cache, that may have been modified by ltconfig
3012 # This can be used to rebuild libtool when needed
3013 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3015 # Always use our own libtool.
3016 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3018 # Redirect the config.log output again, so that the ltconfig log is not
3019 # clobbered by the next message.
3020 exec 5>>./config.log
3023 for ac_prog in mawk gawk nawk awk
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$AWK"; then
3033 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_AWK="$ac_prog"
3047 AWK="$ac_cv_prog_AWK"
3048 if test -n "$AWK"; then
3049 echo "$ac_t""$AWK" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$AWK" && break
3057 # test for ln hardlink support
3058 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3059 echo "configure:3060: checking whether ln works" >&5
3060 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 rm -f conftest.src conftest.dst
3064 echo "conftest" > conftest.src
3065 if ln conftest.src conftest.dst 2>/dev/null
3067 ol_cv_prog_LN_H="ln"
3069 ol_cv_prog_LN_H="cp"
3071 rm -f conftest.src conftest.dst
3074 LN_H="$ol_cv_prog_LN_H"
3075 if test "$ol_cv_prog_LN_H" = "ln"; then
3076 echo "$ac_t""yes" 1>&6
3078 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3082 echo "configure:3083: checking whether ln -s works" >&5
3083 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3087 if ln -s X conftestdata 2>/dev/null
3090 ac_cv_prog_LN_S="ln -s"
3095 LN_S="$ac_cv_prog_LN_S"
3096 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3097 echo "$ac_t""yes" 1>&6
3099 echo "$ac_t""no" 1>&6
3103 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3107 # Extract the first word of "sendmail", so it can be a program name with args.
3108 set dummy sendmail; ac_word=$2
3109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3110 echo "configure:3111: checking for $ac_word" >&5
3111 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3116 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3119 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3123 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3124 for ac_dir in $ac_dummy; do
3125 test -z "$ac_dir" && ac_dir=.
3126 if test -f $ac_dir/$ac_word; then
3127 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3132 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3136 SENDMAIL="$ac_cv_path_SENDMAIL"
3137 if test -n "$SENDMAIL"; then
3138 echo "$ac_t""$SENDMAIL" 1>&6
3140 echo "$ac_t""no" 1>&6
3143 # Extract the first word of "vi", so it can be a program name with args.
3144 set dummy vi; ac_word=$2
3145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3146 echo "configure:3147: checking for $ac_word" >&5
3147 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3152 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3155 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3159 ac_dummy="$PATH:/usr/ucb"
3160 for ac_dir in $ac_dummy; do
3161 test -z "$ac_dir" && ac_dir=.
3162 if test -f $ac_dir/$ac_word; then
3163 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3168 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3172 EDITOR="$ac_cv_path_EDITOR"
3173 if test -n "$EDITOR"; then
3174 echo "$ac_t""$EDITOR" 1>&6
3176 echo "$ac_t""no" 1>&6
3179 # Extract the first word of "finger", so it can be a program name with args.
3180 set dummy finger; ac_word=$2
3181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3182 echo "configure:3183: checking for $ac_word" >&5
3183 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3188 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3191 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3195 ac_dummy="$PATH:/usr/ucb"
3196 for ac_dir in $ac_dummy; do
3197 test -z "$ac_dir" && ac_dir=.
3198 if test -f $ac_dir/$ac_word; then
3199 ac_cv_path_FINGER="$ac_dir/$ac_word"
3204 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3208 FINGER="$ac_cv_path_FINGER"
3209 if test -n "$FINGER"; then
3210 echo "$ac_t""$FINGER" 1>&6
3212 echo "$ac_t""no" 1>&6
3217 if test $ol_enable_perl != no ; then
3218 # Extract the first word of "perl", so it can be a program name with args.
3219 set dummy perl; ac_word=$2
3220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3221 echo "configure:3222: checking for $ac_word" >&5
3222 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3227 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3230 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3235 for ac_dir in $ac_dummy; do
3236 test -z "$ac_dir" && ac_dir=.
3237 if test -f $ac_dir/$ac_word; then
3238 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3243 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3247 PERLBIN="$ac_cv_path_PERLBIN"
3248 if test -n "$PERLBIN"; then
3249 echo "$ac_t""$PERLBIN" 1>&6
3251 echo "$ac_t""no" 1>&6
3255 if test "no$PERLBIN" = "no" ; then
3256 if test $ol_enable_perl = yes ; then
3257 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3261 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3262 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3268 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3269 echo "configure:3270: checking how to run the C preprocessor" >&5
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3274 if test -z "$CPP"; then
3275 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 # This must be in double quotes, not single quotes, because CPP may get
3279 # substituted into the Makefile and "${CC-cc}" will confuse make.
3281 # On the NeXT, cc -E runs the code through the compiler's parser,
3282 # not just through cpp.
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3290 { (eval echo configure:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3292 if test -z "$ac_err"; then
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 CPP="${CC-cc} -E -traditional-cpp"
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3307 { (eval echo configure:3308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3309 if test -z "$ac_err"; then
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 CPP="${CC-cc} -nologo -E"
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3324 { (eval echo configure:3325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3326 if test -z "$ac_err"; then
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3340 ac_cv_prog_CPP="$CPP"
3342 CPP="$ac_cv_prog_CPP"
3344 ac_cv_prog_CPP="$CPP"
3346 echo "$ac_t""$CPP" 1>&6
3349 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3350 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3352 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3353 echo "configure: warning: programs compiled here do run here..." 1>&2
3354 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3356 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3357 echo "configure: warning: programs compiled here do not run here..." 1>&2
3358 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3361 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3362 echo "configure:3363: checking for AIX" >&5
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3372 egrep "yes" >/dev/null 2>&1; then
3374 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3375 #define _ALL_SOURCE 1
3380 echo "$ac_t""no" 1>&6
3385 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3386 echo "configure:3387: checking for POSIXized ISC" >&5
3387 if test -d /etc/conf/kconfig.d &&
3388 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3390 echo "$ac_t""yes" 1>&6
3391 ISC=yes # If later tests want to check for ISC.
3392 cat >> confdefs.h <<\EOF
3393 #define _POSIX_SOURCE 1
3396 if test "$GCC" = yes; then
3402 echo "$ac_t""no" 1>&6
3406 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3407 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3408 echo "configure:3409: checking for minix/config.h" >&5
3409 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <minix/config.h>
3417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3418 { (eval echo configure:3419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3420 if test -z "$ac_err"; then
3422 eval "ac_cv_header_$ac_safe=yes"
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3428 eval "ac_cv_header_$ac_safe=no"
3432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3433 echo "$ac_t""yes" 1>&6
3436 echo "$ac_t""no" 1>&6
3440 if test "$MINIX" = yes; then
3441 cat >> confdefs.h <<\EOF
3442 #define _POSIX_SOURCE 1
3445 cat >> confdefs.h <<\EOF
3446 #define _POSIX_1_SOURCE 2
3449 cat >> confdefs.h <<\EOF
3456 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3457 echo "configure:3458: checking for Cygwin environment" >&5
3458 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3468 #define __CYGWIN__ __CYGWIN32__
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3485 echo "$ac_t""$ac_cv_cygwin" 1>&6
3487 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3488 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3489 echo "configure:3490: checking for mingw32 environment" >&5
3490 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3513 echo "$ac_t""$ac_cv_mingw32" 1>&6
3515 test "$ac_cv_mingw32" = yes && MINGW32=yes
3516 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3517 echo "configure:3518: checking for EMX OS/2 environment" >&5
3518 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3529 if { (eval echo configure:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3541 echo "$ac_t""$ac_cv_emxos2" 1>&6
3543 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3547 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3548 echo "configure:3549: checking for executable suffix" >&5
3549 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3556 echo 'int main () { return 0; }' > conftest.$ac_ext
3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3559 for file in conftest.*; do
3561 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3562 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3566 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3569 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3574 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3575 echo "$ac_t""${ac_cv_exeext}" 1>&6
3578 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3579 echo "configure:3580: checking for object suffix" >&5
3580 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3584 echo 'int i = 1;' > conftest.$ac_ext
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 for ac_file in conftest.*; do
3589 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3593 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3598 echo "$ac_t""$ac_cv_objext" 1>&6
3599 OBJEXT=$ac_cv_objext
3600 ac_objext=$ac_cv_objext
3603 cat >> confdefs.h <<EOF
3604 #define EXEEXT "${EXEEXT}"
3608 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3609 echo "configure:3610: checking for be_app in -lbe" >&5
3610 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3611 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 ac_save_LIBS="$LIBS"
3615 LIBS="-lbe -lroot -lnet $LIBS"
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3619 /* Override any gcc2 internal prototype to avoid an error. */
3620 /* We use char because int might match the return type of a gcc2
3621 builtin and then its argument prototype would still apply. */
3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630 eval "ac_cv_lib_$ac_lib_var=yes"
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 eval "ac_cv_lib_$ac_lib_var=no"
3638 LIBS="$ac_save_LIBS"
3641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3642 echo "$ac_t""yes" 1>&6
3643 LIBS="$LIBS -lbe -lroot -lnet"
3645 echo "$ac_t""no" 1>&6
3653 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3654 echo "configure:3655: checking for ${CC-cc} option to accept ANSI C" >&5
3655 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 am_cv_prog_cc_stdc=no
3660 # Don't try gcc -ansi; that turns off useful extensions and
3661 # breaks some systems' header files.
3662 # AIX -qlanglvl=ansi
3663 # Ultrix and OSF/1 -std1
3664 # HP-UX 10.20 and later -Ae
3665 # HP-UX older versions -Aa -D_HPUX_SOURCE
3666 # SVR4 -Xc -D__EXTENSIONS__
3667 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669 CC="$ac_save_CC $ac_arg"
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3675 #include <sys/types.h>
3676 #include <sys/stat.h>
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3691 s = g (p, va_arg (v,int));
3695 int test (int i, double x);
3696 struct s1 {int (*f) (int a);};
3697 struct s2 {int (*f) (double a);};
3698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3708 if { (eval echo configure:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3710 am_cv_prog_cc_stdc="$ac_arg"; break
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3721 if test -z "$am_cv_prog_cc_stdc"; then
3722 echo "$ac_t""none needed" 1>&6
3724 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3726 case "x$am_cv_prog_cc_stdc" in
3728 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3731 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3732 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3735 # test for make depend flag
3738 if test -z "${MKDEP}"; then
3740 if test -z "${MKDEP_FLAGS}"; then
3741 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3742 echo "configure:3743: checking for ${OL_MKDEP} depend flag" >&5
3743 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3748 for flag in "-M" "-xM"; do
3749 cat > conftest.c <<EOF
3752 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3753 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3755 if test ! -f conftest."${ac_object}" ; then
3757 OL_MKDEP_FLAGS="$flag"
3766 echo "$ac_t""$ol_cv_mkdep" 1>&6
3769 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3774 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3779 if test "${ol_cv_mkdep}" = no ; then
3780 # this will soon become an error
3781 echo "configure: warning: do not know how to generate dependencies" 1>&2
3785 if test $ol_enable_modules != no ; then
3786 for ac_hdr in ltdl.h
3788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3790 echo "configure:3791: checking for $ac_hdr" >&5
3791 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3800 { (eval echo configure:3801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3802 if test -z "$ac_err"; then
3804 eval "ac_cv_header_$ac_safe=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 eval "ac_cv_header_$ac_safe=no"
3814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3817 cat >> confdefs.h <<EOF
3818 #define $ac_tr_hdr 1
3822 echo "$ac_t""no" 1>&6
3827 if test $ac_cv_header_ltdl_h = no ; then
3828 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3832 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3833 echo "configure:3834: checking for lt_dlinit in -lltdl" >&5
3834 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3835 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3838 ac_save_LIBS="$LIBS"
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3859 eval "ac_cv_lib_$ac_lib_var=no"
3862 LIBS="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3868 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3869 cat >> confdefs.h <<EOF
3870 #define $ac_tr_lib 1
3876 echo "$ac_t""no" 1>&6
3879 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3880 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3884 ol_with_bdb2_module=static
3885 ol_with_ldap_module=static
3886 ol_with_ldbm_module=static
3887 ol_with_passwd_module=static
3888 ol_with_perl_module=static
3889 ol_with_shell_module=static
3890 ol_with_tcl_module=static
3894 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3895 echo "configure:3896: checking for EBCDIC" >&5
3896 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3905 #include <__ASCII__/generate_error.h>
3909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3910 { (eval echo configure:3911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3912 if test -z "$ac_err"; then
3914 ol_cv_cpp_ebcdic=yes
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3925 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3926 if test $ol_cv_cpp_ebcdic = yes ; then
3927 cat >> confdefs.h <<\EOF
3928 #define HAVE_EBCDIC 1
3933 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3934 echo "configure:3935: checking for ANSI C header files" >&5
3935 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3947 { (eval echo configure:3948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3949 if test -z "$ac_err"; then
3951 ol_cv_header_stdc=yes
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3957 ol_cv_header_stdc=no
3961 if test $ol_cv_header_stdc = yes; then
3962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969 egrep "memchr" >/dev/null 2>&1; then
3973 ol_cv_header_stdc=no
3979 if test $ol_cv_header_stdc = yes; then
3980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3987 egrep "free" >/dev/null 2>&1; then
3991 ol_cv_header_stdc=no
3997 if test $ol_cv_header_stdc = yes; then
3998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3999 if test "$cross_compiling" = yes; then
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4010 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4011 || ('j' <= (c) && (c) <= 'r') \
4012 || ('s' <= (c) && (c) <= 'z'))
4013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4016 int main () { int i; for (i = 0; i < 256; i++)
4017 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 ol_cv_header_stdc=no
4036 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4037 if test $ol_cv_header_stdc = yes; then
4038 cat >> confdefs.h <<\EOF
4039 #define STDC_HEADERS 1
4043 ac_cv_header_stdc=disable
4046 if test $ol_cv_header_stdc != yes; then
4047 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4054 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4055 echo "configure:4056: checking for $ac_hdr that defines DIR" >&5
4056 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 #include <sys/types.h>
4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4070 eval "ac_cv_header_dirent_$ac_safe=yes"
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4075 eval "ac_cv_header_dirent_$ac_safe=no"
4079 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4080 echo "$ac_t""yes" 1>&6
4081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4082 cat >> confdefs.h <<EOF
4083 #define $ac_tr_hdr 1
4085 ac_header_dirent=$ac_hdr; break
4087 echo "$ac_t""no" 1>&6
4090 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4091 if test $ac_header_dirent = dirent.h; then
4092 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4093 echo "configure:4094: checking for opendir in -ldir" >&5
4094 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4095 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 ac_save_LIBS="$LIBS"
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 eval "ac_cv_lib_$ac_lib_var=yes"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4119 eval "ac_cv_lib_$ac_lib_var=no"
4122 LIBS="$ac_save_LIBS"
4125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4126 echo "$ac_t""yes" 1>&6
4129 echo "$ac_t""no" 1>&6
4133 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4134 echo "configure:4135: checking for opendir in -lx" >&5
4135 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 ac_save_LIBS="$LIBS"
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* Override any gcc2 internal prototype to avoid an error. */
4145 /* We use char because int might match the return type of a gcc2
4146 builtin and then its argument prototype would still apply. */
4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4155 eval "ac_cv_lib_$ac_lib_var=yes"
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 eval "ac_cv_lib_$ac_lib_var=no"
4163 LIBS="$ac_save_LIBS"
4166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4170 echo "$ac_t""no" 1>&6
4175 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4176 echo "configure:4177: checking for sys/wait.h that is POSIX.1 compatible" >&5
4177 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 #include <sys/types.h>
4184 #include <sys/wait.h>
4186 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4189 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4197 if { (eval echo configure:4198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4199 ac_cv_header_sys_wait_h=yes
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 ac_cv_header_sys_wait_h=no
4209 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4210 if test $ac_cv_header_sys_wait_h = yes; then
4211 cat >> confdefs.h <<\EOF
4212 #define HAVE_SYS_WAIT_H 1
4217 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4218 echo "configure:4219: checking POSIX termios" >&5
4219 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 #include <sys/types.h>
4227 #include <termios.h>
4229 /* SunOS 4.0.3 has termios.h but not the library calls. */
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 am_cv_sys_posix_termios=yes
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 am_cv_sys_posix_termios=no
4245 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4248 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4249 echo "configure:4250: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4250 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4255 gwinsz_in_termios_h=no
4256 if test $am_cv_sys_posix_termios = yes; then
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 #include <sys/types.h>
4261 # include <termios.h>
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 egrep "yes" >/dev/null 2>&1; then
4270 gwinsz_in_termios_h=yes
4276 if test $gwinsz_in_termios_h = no; then
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 #include <sys/types.h>
4281 # include <sys/ioctl.h>
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288 egrep "yes" >/dev/null 2>&1; then
4290 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4298 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4299 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4300 cat >> confdefs.h <<\EOF
4301 #define GWINSZ_IN_SYS_IOCTL 1
4306 if test $am_cv_sys_posix_termios = yes ; then
4307 cat >> confdefs.h <<\EOF
4308 #define HAVE_POSIX_TERMIOS 1
4354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4356 echo "configure:4357: checking for $ac_hdr" >&5
4357 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4366 { (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4368 if test -z "$ac_err"; then
4370 eval "ac_cv_header_$ac_safe=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_header_$ac_safe=no"
4380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4383 cat >> confdefs.h <<EOF
4384 #define $ac_tr_hdr 1
4388 echo "$ac_t""no" 1>&6
4395 echo $ac_n "checking for socket""... $ac_c" 1>&6
4396 echo "configure:4397: checking for socket" >&5
4397 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* System header to define __stub macros and hopefully few prototypes,
4404 which can conflict with char socket(); below. */
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4414 /* The GNU C library defines this for functions which it implements
4415 to always fail with ENOSYS. Some functions are actually named
4416 something starting with __ and the normal name is an alias. */
4417 #if defined (__stub_socket) || defined (__stub___socket)
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 eval "ac_cv_func_socket=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 eval "ac_cv_func_socket=no"
4437 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4441 echo "$ac_t""no" 1>&6
4443 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4444 echo "configure:4445: checking for main in -lsocket" >&5
4445 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 ac_save_LIBS="$LIBS"
4450 LIBS="-lsocket $LIBS"
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461 eval "ac_cv_lib_$ac_lib_var=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 eval "ac_cv_lib_$ac_lib_var=no"
4469 LIBS="$ac_save_LIBS"
4472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4473 echo "$ac_t""yes" 1>&6
4474 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4475 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4476 cat >> confdefs.h <<EOF
4477 #define $ac_tr_lib 1
4480 LIBS="-lsocket $LIBS"
4483 echo "$ac_t""no" 1>&6
4486 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4487 echo "configure:4488: checking for main in -lnet" >&5
4488 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4489 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4492 ac_save_LIBS="$LIBS"
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4502 if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4504 eval "ac_cv_lib_$ac_lib_var=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4509 eval "ac_cv_lib_$ac_lib_var=no"
4512 LIBS="$ac_save_LIBS"
4515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4519 cat >> confdefs.h <<EOF
4520 #define $ac_tr_lib 1
4526 echo "$ac_t""no" 1>&6
4529 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4530 echo "configure:4531: checking for socket in -lnet" >&5
4531 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 ac_save_LIBS="$LIBS"
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 eval "ac_cv_lib_$ac_lib_var=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 eval "ac_cv_lib_$ac_lib_var=no"
4559 LIBS="$ac_save_LIBS"
4562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4566 cat >> confdefs.h <<EOF
4567 #define $ac_tr_lib 1
4573 echo "$ac_t""no" 1>&6
4576 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4577 echo "configure:4578: checking for main in -lnsl_s" >&5
4578 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4582 ac_save_LIBS="$LIBS"
4583 LIBS="-lnsl_s $LIBS"
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4594 eval "ac_cv_lib_$ac_lib_var=yes"
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 eval "ac_cv_lib_$ac_lib_var=no"
4602 LIBS="$ac_save_LIBS"
4605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4607 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4609 cat >> confdefs.h <<EOF
4610 #define $ac_tr_lib 1
4613 LIBS="-lnsl_s $LIBS"
4616 echo "$ac_t""no" 1>&6
4619 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4620 echo "configure:4621: checking for main in -lnsl" >&5
4621 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4622 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 ac_save_LIBS="$LIBS"
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4637 eval "ac_cv_lib_$ac_lib_var=yes"
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4642 eval "ac_cv_lib_$ac_lib_var=no"
4645 LIBS="$ac_save_LIBS"
4648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4650 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_lib 1
4659 echo "$ac_t""no" 1>&6
4662 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4663 echo "configure:4664: checking for socket in -linet" >&5
4664 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4665 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 ac_save_LIBS="$LIBS"
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4684 eval "ac_cv_lib_$ac_lib_var=yes"
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4689 eval "ac_cv_lib_$ac_lib_var=no"
4692 LIBS="$ac_save_LIBS"
4695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4696 echo "$ac_t""yes" 1>&6
4697 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4698 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4699 cat >> confdefs.h <<EOF
4700 #define $ac_tr_lib 1
4706 echo "$ac_t""no" 1>&6
4709 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4710 echo "configure:4711: checking for main in -lgen" >&5
4711 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4712 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 ac_save_LIBS="$LIBS"
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 eval "ac_cv_lib_$ac_lib_var=yes"
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4732 eval "ac_cv_lib_$ac_lib_var=no"
4735 LIBS="$ac_save_LIBS"
4738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4742 cat >> confdefs.h <<EOF
4743 #define $ac_tr_lib 1
4749 echo "$ac_t""no" 1>&6
4756 echo $ac_n "checking for select""... $ac_c" 1>&6
4757 echo "configure:4758: checking for select" >&5
4758 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char select(); below. */
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4775 /* The GNU C library defines this for functions which it implements
4776 to always fail with ENOSYS. Some functions are actually named
4777 something starting with __ and the normal name is an alias. */
4778 #if defined (__stub_select) || defined (__stub___select)
4786 if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4788 eval "ac_cv_func_select=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_func_select=no"
4798 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4802 echo "$ac_t""no" 1>&6
4803 { echo "configure: error: select() required." 1>&2; exit 1; }
4807 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4808 echo "configure:4809: checking types of arguments for select()" >&5
4809 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4816 echo $ac_n "(cached) $ac_c" 1>&6
4818 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4819 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4820 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 #ifdef HAVE_SYS_TYPES_H
4825 #include <sys/types.h>
4827 #ifdef HAVE_SYS_TIME_H
4828 #include <sys/time.h>
4830 #ifdef HAVE_SYS_SELECT_H
4831 #include <sys/select.h>
4833 #ifdef HAVE_SYS_SOCKET_H
4834 #include <sys/socket.h>
4836 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);
4841 if { (eval echo configure:4842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4843 ac_not_found=no ; break 3
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4860 if test "$ac_not_found" = yes; then
4861 ac_cv_func_select_arg1=int
4862 ac_cv_func_select_arg234='int *'
4863 ac_cv_func_select_arg5='struct timeval *'
4865 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4866 cat >> confdefs.h <<EOF
4867 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4870 cat >> confdefs.h <<EOF
4871 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4874 cat >> confdefs.h <<EOF
4875 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4881 for ac_hdr in regex.h
4883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4885 echo "configure:4886: checking for $ac_hdr" >&5
4886 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4895 { (eval echo configure:4896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4897 if test -z "$ac_err"; then
4899 eval "ac_cv_header_$ac_safe=yes"
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 eval "ac_cv_header_$ac_safe=no"
4909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4910 echo "$ac_t""yes" 1>&6
4911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4912 cat >> confdefs.h <<EOF
4913 #define $ac_tr_hdr 1
4917 echo "$ac_t""no" 1>&6
4921 if test "$ac_cv_header_regex_h" != yes ; then
4922 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4924 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4925 echo "configure:4926: checking for regfree" >&5
4926 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 /* System header to define __stub macros and hopefully few prototypes,
4933 which can conflict with char regfree(); below. */
4935 /* Override any gcc2 internal prototype to avoid an error. */
4936 /* We use char because int might match the return type of a gcc2
4937 builtin and then its argument prototype would still apply. */
4943 /* The GNU C library defines this for functions which it implements
4944 to always fail with ENOSYS. Some functions are actually named
4945 something starting with __ and the normal name is an alias. */
4946 #if defined (__stub_regfree) || defined (__stub___regfree)
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4956 eval "ac_cv_func_regfree=yes"
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4961 eval "ac_cv_func_regfree=no"
4966 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4967 echo "$ac_t""yes" 1>&6
4970 echo "$ac_t""no" 1>&6
4971 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4976 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4977 echo "configure:4978: checking for compatible POSIX regex" >&5
4978 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4982 if test "$cross_compiling" = yes; then
4983 ol_cv_c_posix_regex=cross
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4989 #include <sys/types.h>
4991 static char *pattern, *string;
4999 if(regcomp(&re, pattern, 0)) {
5003 string = "ALL MATCH";
5005 rc = regexec(&re, string, 0, (void*)0, 0);
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5014 ol_cv_c_posix_regex=yes
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5019 ol_cv_c_posix_regex=no
5026 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5028 if test "$ol_cv_c_posix_regex" = no ; then
5029 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5032 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5033 echo "configure:5034: checking for sigset in -lV3" >&5
5034 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5035 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 ac_save_LIBS="$LIBS"
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* Override any gcc2 internal prototype to avoid an error. */
5044 /* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5052 if { (eval echo configure:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5054 eval "ac_cv_lib_$ac_lib_var=yes"
5056 echo "configure: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5059 eval "ac_cv_lib_$ac_lib_var=no"
5062 LIBS="$ac_save_LIBS"
5065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5066 echo "$ac_t""yes" 1>&6
5067 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5068 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5069 cat >> confdefs.h <<EOF
5070 #define $ac_tr_lib 1
5076 echo "$ac_t""no" 1>&6
5080 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5081 echo "configure:5082: checking for res_search" >&5
5082 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5088 /* System header to define __stub macros and hopefully few prototypes,
5089 which can conflict with char res_search(); below. */
5091 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5099 /* The GNU C library defines this for functions which it implements
5100 to always fail with ENOSYS. Some functions are actually named
5101 something starting with __ and the normal name is an alias. */
5102 #if defined (__stub_res_search) || defined (__stub___res_search)
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112 eval "ac_cv_func_res_search=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 eval "ac_cv_func_res_search=no"
5122 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5123 echo "$ac_t""yes" 1>&6
5126 echo "$ac_t""no" 1>&6
5129 if test $ac_cv_func_res_search = no ; then
5130 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5131 echo "configure:5132: checking for res_search in -lbind" >&5
5132 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 ac_save_LIBS="$LIBS"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141 /* Override any gcc2 internal prototype to avoid an error. */
5142 /* We use char because int might match the return type of a gcc2
5143 builtin and then its argument prototype would still apply. */
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 eval "ac_cv_lib_$ac_lib_var=yes"
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 eval "ac_cv_lib_$ac_lib_var=no"
5160 LIBS="$ac_save_LIBS"
5163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5164 echo "$ac_t""yes" 1>&6
5165 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5166 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_lib 1
5174 echo "$ac_t""no" 1>&6
5177 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5180 if test $ac_cv_func_res_search = no ; then
5181 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5182 echo "configure:5183: checking for __res_search in -lbind" >&5
5183 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5184 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 ac_save_LIBS="$LIBS"
5189 cat > conftest.$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5195 char __res_search();
5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 eval "ac_cv_lib_$ac_lib_var=yes"
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 eval "ac_cv_lib_$ac_lib_var=no"
5211 LIBS="$ac_save_LIBS"
5214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5215 echo "$ac_t""yes" 1>&6
5216 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5217 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5218 cat >> confdefs.h <<EOF
5219 #define $ac_tr_lib 1
5225 echo "$ac_t""no" 1>&6
5228 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5231 if test $ac_cv_func_res_search = no ; then
5232 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5233 echo "configure:5234: checking for res_search in -lresolv" >&5
5234 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5235 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 ac_save_LIBS="$LIBS"
5239 LIBS="-lresolv $LIBS"
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5243 /* Override any gcc2 internal prototype to avoid an error. */
5244 /* We use char because int might match the return type of a gcc2
5245 builtin and then its argument prototype would still apply. */
5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254 eval "ac_cv_lib_$ac_lib_var=yes"
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5259 eval "ac_cv_lib_$ac_lib_var=no"
5262 LIBS="$ac_save_LIBS"
5265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5269 cat >> confdefs.h <<EOF
5270 #define $ac_tr_lib 1
5273 LIBS="-lresolv $LIBS"
5276 echo "$ac_t""no" 1>&6
5279 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5282 if test "$ac_cv_func_res_search" = yes ; then
5283 cat >> confdefs.h <<\EOF
5284 #define HAVE_RES_SEARCH 1
5287 elif test $ol_enable_dns = yes ; then
5288 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5289 elif test $ol_enable_dns != no ; then
5290 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5296 if test $ol_enable_ldapd != no ; then
5297 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5299 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5300 echo "configure:5301: checking for main in -lxtpp" >&5
5301 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5302 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5305 ac_save_LIBS="$LIBS"
5306 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5307 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5315 if { (eval echo configure:5316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5317 eval "ac_cv_lib_$ac_lib_var=yes"
5319 echo "configure: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5322 eval "ac_cv_lib_$ac_lib_var=no"
5325 LIBS="$ac_save_LIBS"
5328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5329 echo "$ac_t""yes" 1>&6
5332 cat >> confdefs.h <<\EOF
5336 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5339 echo "$ac_t""no" 1>&6
5343 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5344 echo "configure:5345: checking for main in -ldsap" >&5
5345 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5346 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 ac_save_LIBS="$LIBS"
5350 LIBS="-ldsap -lisode $LIBS"
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5361 eval "ac_cv_lib_$ac_lib_var=yes"
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5366 eval "ac_cv_lib_$ac_lib_var=no"
5369 LIBS="$ac_save_LIBS"
5372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5376 cat >> confdefs.h <<\EOF
5380 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5383 echo "$ac_t""no" 1>&6
5387 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5388 echo "configure:5389: checking for main in -lisode" >&5
5389 ac_lib_var=`echo isode'_'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"
5394 LIBS="-lisode $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
5420 cat >> confdefs.h <<\EOF
5421 #define HAVE_ISODE 1
5424 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5427 echo "$ac_t""no" 1>&6
5433 if test $ol_link_isode != no; then
5434 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5435 echo "configure:5436: checking for main in -lpp" >&5
5436 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5437 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 ac_save_LIBS="$LIBS"
5442 cat > conftest.$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452 eval "ac_cv_lib_$ac_lib_var=yes"
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5457 eval "ac_cv_lib_$ac_lib_var=no"
5460 LIBS="$ac_save_LIBS"
5463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5466 cat >> confdefs.h <<\EOF
5470 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5473 echo "$ac_t""no" 1>&6
5478 # Extract the first word of "pepsy", so it can be a program name with args.
5479 set dummy pepsy; ac_word=$2
5480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5481 echo "configure:5482: checking for $ac_word" >&5
5482 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5487 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5490 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5495 for ac_dir in $ac_dummy; do
5496 test -z "$ac_dir" && ac_dir=.
5497 if test -f $ac_dir/$ac_word; then
5498 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5506 PEPSY="$ac_cv_path_PEPSY"
5507 if test -n "$PEPSY"; then
5508 echo "$ac_t""$PEPSY" 1>&6
5510 echo "$ac_t""no" 1>&6
5515 if test $ol_enable_quipu != no ; then
5516 for ac_hdr in quipu/commonarg.h
5518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_hdr" >&5
5521 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5530 { (eval echo configure:5531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5532 if test -z "$ac_err"; then
5534 eval "ac_cv_header_$ac_safe=yes"
5537 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5540 eval "ac_cv_header_$ac_safe=no"
5544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5545 echo "$ac_t""yes" 1>&6
5546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5547 cat >> confdefs.h <<EOF
5548 #define $ac_tr_hdr 1
5552 echo "$ac_t""no" 1>&6
5557 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5559 elif test $ol_enable_quipu = auto ; then
5560 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5562 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5568 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5569 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5573 echo "configure:5574: checking for $ac_hdr" >&5
5574 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5583 { (eval echo configure:5584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5585 if test -z "$ac_err"; then
5587 eval "ac_cv_header_$ac_safe=yes"
5590 echo "configure: failed program was:" >&5
5591 cat conftest.$ac_ext >&5
5593 eval "ac_cv_header_$ac_safe=no"
5597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5598 echo "$ac_t""yes" 1>&6
5599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5600 cat >> confdefs.h <<EOF
5601 #define $ac_tr_hdr 1
5605 echo "$ac_t""no" 1>&6
5610 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5611 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5612 echo "configure:5613: checking for main in -lkrb4" >&5
5613 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5614 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 ac_save_LIBS="$LIBS"
5618 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5629 eval "ac_cv_lib_$ac_lib_var=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 eval "ac_cv_lib_$ac_lib_var=no"
5637 LIBS="$ac_save_LIBS"
5640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5641 echo "$ac_t""yes" 1>&6
5644 echo "$ac_t""no" 1>&6
5649 if test $have_k5 = yes ; then
5650 ol_with_kerberos=found
5651 ol_link_kerberos=yes
5653 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5655 LIBS="$KRB_LIBS $LIBS"
5657 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5658 echo "configure:5659: checking for des_debug in Kerberos libraries" >&5
5659 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5660 echo $ac_n "(cached) $ac_c" 1>&6
5664 LIBS="$KRB_LIBS $LIBS"
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5669 #include <kerberosIV/krb.h>
5670 #include <kerberosIV/des.h>
5671 extern int des_debug;
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681 ol_cv_var_des_debug=yes
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 ol_cv_var_des_debug=no
5693 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5695 if test $ol_cv_var_des_debug = yes ; then
5696 cat >> confdefs.h <<\EOF
5697 #define HAVE_DES_DEBUG 1
5707 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5708 for ac_hdr in krb.h des.h
5710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5712 echo "configure:5713: checking for $ac_hdr" >&5
5713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5714 echo $ac_n "(cached) $ac_c" 1>&6
5716 cat > conftest.$ac_ext <<EOF
5717 #line 5718 "configure"
5718 #include "confdefs.h"
5721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5722 { (eval echo configure:5723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5724 if test -z "$ac_err"; then
5726 eval "ac_cv_header_$ac_safe=yes"
5729 echo "configure: failed program was:" >&5
5730 cat conftest.$ac_ext >&5
5732 eval "ac_cv_header_$ac_safe=no"
5736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5739 cat >> confdefs.h <<EOF
5740 #define $ac_tr_hdr 1
5744 echo "$ac_t""no" 1>&6
5749 if test $ac_cv_header_krb_h = yes ; then
5750 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5751 echo "configure:5752: checking for main in -lkrb" >&5
5752 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5753 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5756 ac_save_LIBS="$LIBS"
5757 LIBS="-lkrb -ldes $LIBS"
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5766 if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5768 eval "ac_cv_lib_$ac_lib_var=yes"
5770 echo "configure: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5773 eval "ac_cv_lib_$ac_lib_var=no"
5776 LIBS="$ac_save_LIBS"
5779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5780 echo "$ac_t""yes" 1>&6
5783 echo "$ac_t""no" 1>&6
5788 if test $have_k4 = yes ; then
5789 ol_with_kerberos=found
5790 ol_link_kerberos=yes
5792 KRB_LIBS="-lkrb -ldes"
5797 if test $ol_link_kerberos = yes ; then
5798 cat >> confdefs.h <<\EOF
5799 #define HAVE_KERBEROS 1
5805 if test $ol_with_tls != no ; then
5807 for ac_hdr in openssl/ssl.h ssl.h
5809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5811 echo "configure:5812: checking for $ac_hdr" >&5
5812 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5821 { (eval echo configure:5822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5823 if test -z "$ac_err"; then
5825 eval "ac_cv_header_$ac_safe=yes"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 eval "ac_cv_header_$ac_safe=no"
5835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5836 echo "$ac_t""yes" 1>&6
5837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5838 cat >> confdefs.h <<EOF
5839 #define $ac_tr_hdr 1
5843 echo "$ac_t""no" 1>&6
5848 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5849 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5850 echo "configure:5851: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5851 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5852 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5855 ac_save_LIBS="$LIBS"
5856 LIBS="-lssl -lcrypto $LIBS"
5857 cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 /* Override any gcc2 internal prototype to avoid an error. */
5861 /* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5863 char SSLeay_add_ssl_algorithms();
5866 SSLeay_add_ssl_algorithms()
5869 if { (eval echo configure:5870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5871 eval "ac_cv_lib_$ac_lib_var=yes"
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5876 eval "ac_cv_lib_$ac_lib_var=no"
5879 LIBS="$ac_save_LIBS"
5882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5883 echo "$ac_t""yes" 1>&6
5887 echo "$ac_t""no" 1>&6
5892 if test $have_ssleay = no ; then
5893 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5894 echo "configure:5895: checking for SSL_library_init in -lssl" >&5
5895 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5896 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5899 ac_save_LIBS="$LIBS"
5900 LIBS="-lssl -lcrypto $LIBS"
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 /* Override any gcc2 internal prototype to avoid an error. */
5905 /* We use char because int might match the return type of a gcc2
5906 builtin and then its argument prototype would still apply. */
5907 char SSL_library_init();
5913 if { (eval echo configure:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5915 eval "ac_cv_lib_$ac_lib_var=yes"
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5920 eval "ac_cv_lib_$ac_lib_var=no"
5923 LIBS="$ac_save_LIBS"
5926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5931 echo "$ac_t""no" 1>&6
5937 if test $have_ssleay = no ; then
5938 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5939 echo "configure:5940: checking for ssl3_accept in -lssl" >&5
5940 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5941 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5942 echo $ac_n "(cached) $ac_c" 1>&6
5944 ac_save_LIBS="$LIBS"
5945 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 eval "ac_cv_lib_$ac_lib_var=yes"
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 eval "ac_cv_lib_$ac_lib_var=no"
5968 LIBS="$ac_save_LIBS"
5971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5976 echo "$ac_t""no" 1>&6
5982 if test $have_ssleay = yes ; then
5986 cat >> confdefs.h <<\EOF
5987 #define HAVE_SSLEAY 1
5991 if test $need_rsaref = yes; then
5992 cat >> confdefs.h <<\EOF
5993 #define HAVE_RSAREF 1
5997 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5999 TLS_LIBS="-lssl -lcrypto"
6005 if test $ol_link_tls = yes ; then
6006 cat >> confdefs.h <<\EOF
6014 gethostbyname_r gethostbyaddr_r \
6017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6018 echo "configure:6019: checking for $ac_func" >&5
6019 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6020 echo $ac_n "(cached) $ac_c" 1>&6
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6025 /* System header to define __stub macros and hopefully few prototypes,
6026 which can conflict with char $ac_func(); below. */
6028 /* Override any gcc2 internal prototype to avoid an error. */
6029 /* We use char because int might match the return type of a gcc2
6030 builtin and then its argument prototype would still apply. */
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049 eval "ac_cv_func_$ac_func=yes"
6051 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6054 eval "ac_cv_func_$ac_func=no"
6059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6062 cat >> confdefs.h <<EOF
6063 #define $ac_tr_func 1
6067 echo "$ac_t""no" 1>&6
6072 if test "$ac_cv_func_ctime_r" = no ; then
6073 ol_cv_func_ctime_r_nargs=0
6075 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6076 echo "configure:6077: checking number of arguments of ctime_r" >&5
6077 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6085 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6088 if { (eval echo configure:6089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6090 ol_cv_func_ctime_r_nargs=3
6092 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6100 time_t ti; char *buffer; ctime_r(&ti,buffer);
6103 if { (eval echo configure:6104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6105 ol_cv_func_ctime_r_nargs=2
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6110 ol_cv_func_ctime_r_nargs=0
6117 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6118 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6119 cat >> confdefs.h <<EOF
6120 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6127 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6128 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6129 echo "configure:6130: checking number of arguments of gethostbyname_r" >&5
6130 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6136 #include <sys/types.h>
6137 #include <sys/socket.h>
6138 #include <netinet/in.h>
6140 #define BUFSIZE (sizeof(struct hostent)+10)
6142 struct hostent hent; char buffer[BUFSIZE];
6143 int bufsize=BUFSIZE;int h_errno;
6144 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6145 buffer, bufsize, &h_errno);
6148 if { (eval echo configure:6149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6150 ol_cv_func_gethostbyname_r_nargs=5
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 #include <sys/types.h>
6159 #include <sys/socket.h>
6160 #include <netinet/in.h>
6162 #define BUFSIZE (sizeof(struct hostent)+10)
6164 struct hostent hent;struct hostent *rhent;
6165 char buffer[BUFSIZE];
6166 int bufsize=BUFSIZE;int h_errno;
6167 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6171 if { (eval echo configure:6172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6173 ol_cv_func_gethostbyname_r_nargs=6
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6178 ol_cv_func_gethostbyname_r_nargs=0
6185 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6186 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6187 cat >> confdefs.h <<EOF
6188 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6194 ol_cv_func_gethostbyname_r_nargs=0
6197 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6198 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6199 echo "configure:6200: checking number of arguments of gethostbyaddr_r" >&5
6200 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 #include <sys/types.h>
6207 #include <sys/socket.h>
6208 #include <netinet/in.h>
6210 #define BUFSIZE (sizeof(struct hostent)+10)
6212 struct hostent hent; char buffer[BUFSIZE];
6214 size_t alen=sizeof(struct in_addr);
6215 int bufsize=BUFSIZE;int h_errno;
6216 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6217 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6220 if { (eval echo configure:6221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6222 ol_cv_func_gethostbyaddr_r_nargs=7
6224 echo "configure: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 #include <sys/types.h>
6231 #include <sys/socket.h>
6232 #include <netinet/in.h>
6234 #define BUFSIZE (sizeof(struct hostent)+10)
6236 struct hostent hent;
6237 struct hostent *rhent; char buffer[BUFSIZE];
6239 size_t alen=sizeof(struct in_addr);
6240 int bufsize=BUFSIZE;int h_errno;
6241 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6242 alen, AF_INET, &hent, buffer, bufsize,
6246 if { (eval echo configure:6247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6248 ol_cv_func_gethostbyaddr_r_nargs=8
6250 echo "configure: failed program was:" >&5
6251 cat conftest.$ac_ext >&5
6253 ol_cv_func_gethostbyaddr_r_nargs=0
6260 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6261 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6262 cat >> confdefs.h <<EOF
6263 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6269 ol_cv_func_gethostbyaddr_r_nargs=0
6272 if test "$ac_cv_func_ctime_r" = yes \
6273 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6274 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6275 -a "$ac_cv_func_gethostbyname_r" = yes \
6276 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6277 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6278 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6279 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6280 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6283 cat >> confdefs.h <<\EOF
6284 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6290 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6291 -o $ol_with_threads = posix ; then
6293 for ac_hdr in pthread.h
6295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6297 echo "configure:6298: checking for $ac_hdr" >&5
6298 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6299 echo $ac_n "(cached) $ac_c" 1>&6
6301 cat > conftest.$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6307 { (eval echo configure:6308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6309 if test -z "$ac_err"; then
6311 eval "ac_cv_header_$ac_safe=yes"
6314 echo "configure: failed program was:" >&5
6315 cat conftest.$ac_ext >&5
6317 eval "ac_cv_header_$ac_safe=no"
6321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6322 echo "$ac_t""yes" 1>&6
6323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6324 cat >> confdefs.h <<EOF
6325 #define $ac_tr_hdr 1
6329 echo "$ac_t""no" 1>&6
6334 if test $ac_cv_header_pthread_h = yes ; then
6335 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6336 echo "configure:6337: checking POSIX thread version" >&5
6337 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6345 # include <pthread.h>
6346 /* this check could be improved */
6347 # ifdef PTHREAD_ONCE_INIT
6348 pthread_version_final
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353 egrep "pthread_version_final" >/dev/null 2>&1; then
6355 ol_pthread_final=yes
6363 cat > conftest.$ac_ext <<EOF
6364 #line 6365 "configure"
6365 #include "confdefs.h"
6367 # include <pthread.h>
6368 /* this check could be improved */
6369 # ifdef pthread_once_init
6370 pthread_version_draft4
6374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6377 ol_pthread_draft4=yes
6380 ol_pthread_draft4=no
6385 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6386 ol_cv_pthread_version=final
6387 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6388 ol_cv_pthread_version=draft4
6390 ol_cv_pthread_version=unknown
6395 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6398 if test $ol_cv_pthread_version = final ; then
6399 cat >> confdefs.h <<\EOF
6400 #define HAVE_PTHREADS_FINAL 1
6403 elif test $ol_cv_pthread_version = draft4 ; then
6404 cat >> confdefs.h <<\EOF
6405 #define HAVE_PTHREADS_D4 1
6409 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6412 # consider threads found
6413 ol_with_threads=found
6416 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6417 echo "configure:6418: checking for LinuxThreads pthread.h" >&5
6418 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 #include <pthread.h>
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6429 ol_cv_header_linux_threads=yes
6432 ol_cv_header_linux_threads=no
6439 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6440 if test $ol_cv_header_linux_threads = yes; then
6441 cat >> confdefs.h <<\EOF
6442 #define HAVE_LINUX_THREADS 1
6448 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6449 echo "configure:6450: checking for GNU Pth pthread.h" >&5
6450 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6453 cat > conftest.$ac_ext <<EOF
6454 #line 6455 "configure"
6455 #include "confdefs.h"
6456 #include <pthread.h>
6457 #ifdef _POSIX_THREAD_IS_GNU_PTH
6462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463 egrep "__gnu_pth__" >/dev/null 2>&1; then
6465 ol_cv_header_gnu_pth_pthread_h=yes
6468 ol_cv_header_gnu_pth_pthread_h=no
6475 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6478 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6479 for ac_hdr in sched.h
6481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6483 echo "configure:6484: checking for $ac_hdr" >&5
6484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6493 { (eval echo configure:6494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6495 if test -z "$ac_err"; then
6497 eval "ac_cv_header_$ac_safe=yes"
6500 echo "configure: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6503 eval "ac_cv_header_$ac_safe=no"
6507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6508 echo "$ac_t""yes" 1>&6
6509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6510 cat >> confdefs.h <<EOF
6511 #define $ac_tr_hdr 1
6515 echo "$ac_t""no" 1>&6
6522 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6523 echo "configure:6524: checking for pthread_create in default libraries" >&5
6524 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6528 if test "$cross_compiling" = yes; then
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* pthread test headers */
6533 #include <pthread.h>
6535 #define NULL (void*)0
6538 static void *task(p)
6541 return (void *) (p == NULL);
6546 /* pthread test function */
6550 /* make sure pthread_create() isn't just a stub */
6551 #if HAVE_PTHREADS_D4
6552 status = pthread_create(&t, pthread_attr_default, task, NULL);
6554 status = pthread_create(&t, NULL, task, NULL);
6557 if( status ) exit( status );
6559 /* make sure pthread_detach() isn't just a stub */
6560 #if HAVE_PTHREADS_D4
6561 status = pthread_detach( &t );
6563 status = pthread_detach( t );
6566 #ifdef HAVE_LINUX_THREADS
6567 pthread_kill_other_threads_np();
6574 if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6576 ol_cv_pthread_create=yes
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 ol_cv_pthread_create=no
6585 cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* pthread test headers */
6589 #include <pthread.h>
6591 #define NULL (void*)0
6594 static void *task(p)
6597 return (void *) (p == NULL);
6601 int main(argc, argv)
6606 /* pthread test function */
6610 /* make sure pthread_create() isn't just a stub */
6611 #if HAVE_PTHREADS_D4
6612 status = pthread_create(&t, pthread_attr_default, task, NULL);
6614 status = pthread_create(&t, NULL, task, NULL);
6617 if( status ) exit( status );
6619 /* make sure pthread_detach() isn't just a stub */
6620 #if HAVE_PTHREADS_D4
6621 status = pthread_detach( &t );
6623 status = pthread_detach( t );
6626 #ifdef HAVE_LINUX_THREADS
6627 pthread_kill_other_threads_np();
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6637 ol_cv_pthread_create=yes
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6642 ol_cv_pthread_create=no
6649 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6651 if test $ol_cv_pthread_create != no ; then
6652 ol_link_threads=posix
6656 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6657 if test "$ol_link_threads" = no ; then
6659 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6660 echo "configure:6661: checking for pthread link with -kthread" >&5
6661 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6667 LIBS="-kthread $LIBS"
6669 if test "$cross_compiling" = yes; then
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 /* pthread test headers */
6674 #include <pthread.h>
6676 #define NULL (void*)0
6679 static void *task(p)
6682 return (void *) (p == NULL);
6687 /* pthread test function */
6691 /* make sure pthread_create() isn't just a stub */
6692 #if HAVE_PTHREADS_D4
6693 status = pthread_create(&t, pthread_attr_default, task, NULL);
6695 status = pthread_create(&t, NULL, task, NULL);
6698 if( status ) exit( status );
6700 /* make sure pthread_detach() isn't just a stub */
6701 #if HAVE_PTHREADS_D4
6702 status = pthread_detach( &t );
6704 status = pthread_detach( t );
6707 #ifdef HAVE_LINUX_THREADS
6708 pthread_kill_other_threads_np();
6715 if { (eval echo configure:6716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6717 ol_cv_pthread_kthread=yes
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6722 ol_cv_pthread_kthread=no
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 /* pthread test headers */
6730 #include <pthread.h>
6732 #define NULL (void*)0
6735 static void *task(p)
6738 return (void *) (p == NULL);
6742 int main(argc, argv)
6747 /* pthread test function */
6751 /* make sure pthread_create() isn't just a stub */
6752 #if HAVE_PTHREADS_D4
6753 status = pthread_create(&t, pthread_attr_default, task, NULL);
6755 status = pthread_create(&t, NULL, task, NULL);
6758 if( status ) exit( status );
6760 /* make sure pthread_detach() isn't just a stub */
6761 #if HAVE_PTHREADS_D4
6762 status = pthread_detach( &t );
6764 status = pthread_detach( t );
6767 #ifdef HAVE_LINUX_THREADS
6768 pthread_kill_other_threads_np();
6776 if { (eval echo configure:6777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6778 ol_cv_pthread_kthread=yes
6780 echo "configure: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6783 ol_cv_pthread_kthread=no
6794 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6796 if test $ol_cv_pthread_kthread = yes ; then
6797 ol_link_pthreads="-kthread"
6798 ol_link_threads=posix
6802 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6803 if test "$ol_link_threads" = no ; then
6805 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6806 echo "configure:6807: checking for pthread link with -pthread" >&5
6807 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6813 LIBS="-pthread $LIBS"
6815 if test "$cross_compiling" = yes; then
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 /* pthread test headers */
6820 #include <pthread.h>
6822 #define NULL (void*)0
6825 static void *task(p)
6828 return (void *) (p == NULL);
6833 /* pthread test function */
6837 /* make sure pthread_create() isn't just a stub */
6838 #if HAVE_PTHREADS_D4
6839 status = pthread_create(&t, pthread_attr_default, task, NULL);
6841 status = pthread_create(&t, NULL, task, NULL);
6844 if( status ) exit( status );
6846 /* make sure pthread_detach() isn't just a stub */
6847 #if HAVE_PTHREADS_D4
6848 status = pthread_detach( &t );
6850 status = pthread_detach( t );
6853 #ifdef HAVE_LINUX_THREADS
6854 pthread_kill_other_threads_np();
6861 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6863 ol_cv_pthread_pthread=yes
6865 echo "configure: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6868 ol_cv_pthread_pthread=no
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* pthread test headers */
6876 #include <pthread.h>
6878 #define NULL (void*)0
6881 static void *task(p)
6884 return (void *) (p == NULL);
6888 int main(argc, argv)
6893 /* pthread test function */
6897 /* make sure pthread_create() isn't just a stub */
6898 #if HAVE_PTHREADS_D4
6899 status = pthread_create(&t, pthread_attr_default, task, NULL);
6901 status = pthread_create(&t, NULL, task, NULL);
6904 if( status ) exit( status );
6906 /* make sure pthread_detach() isn't just a stub */
6907 #if HAVE_PTHREADS_D4
6908 status = pthread_detach( &t );
6910 status = pthread_detach( t );
6913 #ifdef HAVE_LINUX_THREADS
6914 pthread_kill_other_threads_np();
6922 if { (eval echo configure:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6924 ol_cv_pthread_pthread=yes
6926 echo "configure: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6929 ol_cv_pthread_pthread=no
6940 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6942 if test $ol_cv_pthread_pthread = yes ; then
6943 ol_link_pthreads="-pthread"
6944 ol_link_threads=posix
6948 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6949 if test "$ol_link_threads" = no ; then
6951 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6952 echo "configure:6953: checking for pthread link with -pthreads" >&5
6953 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6959 LIBS="-pthreads $LIBS"
6961 if test "$cross_compiling" = yes; then
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6965 /* pthread test headers */
6966 #include <pthread.h>
6968 #define NULL (void*)0
6971 static void *task(p)
6974 return (void *) (p == NULL);
6979 /* pthread test function */
6983 /* make sure pthread_create() isn't just a stub */
6984 #if HAVE_PTHREADS_D4
6985 status = pthread_create(&t, pthread_attr_default, task, NULL);
6987 status = pthread_create(&t, NULL, task, NULL);
6990 if( status ) exit( status );
6992 /* make sure pthread_detach() isn't just a stub */
6993 #if HAVE_PTHREADS_D4
6994 status = pthread_detach( &t );
6996 status = pthread_detach( t );
6999 #ifdef HAVE_LINUX_THREADS
7000 pthread_kill_other_threads_np();
7007 if { (eval echo configure:7008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7009 ol_cv_pthread_pthreads=yes
7011 echo "configure: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7014 ol_cv_pthread_pthreads=no
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7021 /* pthread test headers */
7022 #include <pthread.h>
7024 #define NULL (void*)0
7027 static void *task(p)
7030 return (void *) (p == NULL);
7034 int main(argc, argv)
7039 /* pthread test function */
7043 /* make sure pthread_create() isn't just a stub */
7044 #if HAVE_PTHREADS_D4
7045 status = pthread_create(&t, pthread_attr_default, task, NULL);
7047 status = pthread_create(&t, NULL, task, NULL);
7050 if( status ) exit( status );
7052 /* make sure pthread_detach() isn't just a stub */
7053 #if HAVE_PTHREADS_D4
7054 status = pthread_detach( &t );
7056 status = pthread_detach( t );
7059 #ifdef HAVE_LINUX_THREADS
7060 pthread_kill_other_threads_np();
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7070 ol_cv_pthread_pthreads=yes
7072 echo "configure: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7075 ol_cv_pthread_pthreads=no
7086 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7088 if test $ol_cv_pthread_pthreads = yes ; then
7089 ol_link_pthreads="-pthreads"
7090 ol_link_threads=posix
7094 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7095 if test "$ol_link_threads" = no ; then
7097 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7098 echo "configure:7099: checking for pthread link with -mthreads" >&5
7099 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7105 LIBS="-mthreads $LIBS"
7107 if test "$cross_compiling" = yes; then
7108 cat > conftest.$ac_ext <<EOF
7109 #line 7110 "configure"
7110 #include "confdefs.h"
7111 /* pthread test headers */
7112 #include <pthread.h>
7114 #define NULL (void*)0
7117 static void *task(p)
7120 return (void *) (p == NULL);
7125 /* pthread test function */
7129 /* make sure pthread_create() isn't just a stub */
7130 #if HAVE_PTHREADS_D4
7131 status = pthread_create(&t, pthread_attr_default, task, NULL);
7133 status = pthread_create(&t, NULL, task, NULL);
7136 if( status ) exit( status );
7138 /* make sure pthread_detach() isn't just a stub */
7139 #if HAVE_PTHREADS_D4
7140 status = pthread_detach( &t );
7142 status = pthread_detach( t );
7145 #ifdef HAVE_LINUX_THREADS
7146 pthread_kill_other_threads_np();
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 ol_cv_pthread_mthreads=yes
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 ol_cv_pthread_mthreads=no
7164 cat > conftest.$ac_ext <<EOF
7165 #line 7166 "configure"
7166 #include "confdefs.h"
7167 /* pthread test headers */
7168 #include <pthread.h>
7170 #define NULL (void*)0
7173 static void *task(p)
7176 return (void *) (p == NULL);
7180 int main(argc, argv)
7185 /* pthread test function */
7189 /* make sure pthread_create() isn't just a stub */
7190 #if HAVE_PTHREADS_D4
7191 status = pthread_create(&t, pthread_attr_default, task, NULL);
7193 status = pthread_create(&t, NULL, task, NULL);
7196 if( status ) exit( status );
7198 /* make sure pthread_detach() isn't just a stub */
7199 #if HAVE_PTHREADS_D4
7200 status = pthread_detach( &t );
7202 status = pthread_detach( t );
7205 #ifdef HAVE_LINUX_THREADS
7206 pthread_kill_other_threads_np();
7214 if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7216 ol_cv_pthread_mthreads=yes
7218 echo "configure: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7221 ol_cv_pthread_mthreads=no
7232 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7234 if test $ol_cv_pthread_mthreads = yes ; then
7235 ol_link_pthreads="-mthreads"
7236 ol_link_threads=posix
7240 # Pthread try link: -thread (ol_cv_pthread_thread)
7241 if test "$ol_link_threads" = no ; then
7243 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7244 echo "configure:7245: checking for pthread link with -thread" >&5
7245 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7246 echo $ac_n "(cached) $ac_c" 1>&6
7251 LIBS="-thread $LIBS"
7253 if test "$cross_compiling" = yes; then
7254 cat > conftest.$ac_ext <<EOF
7255 #line 7256 "configure"
7256 #include "confdefs.h"
7257 /* pthread test headers */
7258 #include <pthread.h>
7260 #define NULL (void*)0
7263 static void *task(p)
7266 return (void *) (p == NULL);
7271 /* pthread test function */
7275 /* make sure pthread_create() isn't just a stub */
7276 #if HAVE_PTHREADS_D4
7277 status = pthread_create(&t, pthread_attr_default, task, NULL);
7279 status = pthread_create(&t, NULL, task, NULL);
7282 if( status ) exit( status );
7284 /* make sure pthread_detach() isn't just a stub */
7285 #if HAVE_PTHREADS_D4
7286 status = pthread_detach( &t );
7288 status = pthread_detach( t );
7291 #ifdef HAVE_LINUX_THREADS
7292 pthread_kill_other_threads_np();
7299 if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7301 ol_cv_pthread_thread=yes
7303 echo "configure: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7306 ol_cv_pthread_thread=no
7310 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 /* pthread test headers */
7314 #include <pthread.h>
7316 #define NULL (void*)0
7319 static void *task(p)
7322 return (void *) (p == NULL);
7326 int main(argc, argv)
7331 /* pthread test function */
7335 /* make sure pthread_create() isn't just a stub */
7336 #if HAVE_PTHREADS_D4
7337 status = pthread_create(&t, pthread_attr_default, task, NULL);
7339 status = pthread_create(&t, NULL, task, NULL);
7342 if( status ) exit( status );
7344 /* make sure pthread_detach() isn't just a stub */
7345 #if HAVE_PTHREADS_D4
7346 status = pthread_detach( &t );
7348 status = pthread_detach( t );
7351 #ifdef HAVE_LINUX_THREADS
7352 pthread_kill_other_threads_np();
7360 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7362 ol_cv_pthread_thread=yes
7364 echo "configure: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7367 ol_cv_pthread_thread=no
7378 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7380 if test $ol_cv_pthread_thread = yes ; then
7381 ol_link_pthreads="-thread"
7382 ol_link_threads=posix
7387 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7388 if test "$ol_link_threads" = no ; then
7389 # try -lpthread -lmach -lexc -lc_r
7390 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7391 echo "configure:7392: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7392 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7398 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7400 if test "$cross_compiling" = yes; then
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 /* pthread test headers */
7405 #include <pthread.h>
7407 #define NULL (void*)0
7410 static void *task(p)
7413 return (void *) (p == NULL);
7418 /* pthread test function */
7422 /* make sure pthread_create() isn't just a stub */
7423 #if HAVE_PTHREADS_D4
7424 status = pthread_create(&t, pthread_attr_default, task, NULL);
7426 status = pthread_create(&t, NULL, task, NULL);
7429 if( status ) exit( status );
7431 /* make sure pthread_detach() isn't just a stub */
7432 #if HAVE_PTHREADS_D4
7433 status = pthread_detach( &t );
7435 status = pthread_detach( t );
7438 #ifdef HAVE_LINUX_THREADS
7439 pthread_kill_other_threads_np();
7446 if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7448 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7450 echo "configure: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7453 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* pthread test headers */
7461 #include <pthread.h>
7463 #define NULL (void*)0
7466 static void *task(p)
7469 return (void *) (p == NULL);
7473 int main(argc, argv)
7478 /* pthread test function */
7482 /* make sure pthread_create() isn't just a stub */
7483 #if HAVE_PTHREADS_D4
7484 status = pthread_create(&t, pthread_attr_default, task, NULL);
7486 status = pthread_create(&t, NULL, task, NULL);
7489 if( status ) exit( status );
7491 /* make sure pthread_detach() isn't just a stub */
7492 #if HAVE_PTHREADS_D4
7493 status = pthread_detach( &t );
7495 status = pthread_detach( t );
7498 #ifdef HAVE_LINUX_THREADS
7499 pthread_kill_other_threads_np();
7507 if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7509 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7511 echo "configure: failed program was:" >&5
7512 cat conftest.$ac_ext >&5
7514 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7525 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7527 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7528 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7529 ol_link_threads=posix
7533 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7534 if test "$ol_link_threads" = no ; then
7535 # try -lpthread -lmach -lexc
7536 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7537 echo "configure:7538: checking for pthread link with -lpthread -lmach -lexc" >&5
7538 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7544 LIBS="-lpthread -lmach -lexc $LIBS"
7546 if test "$cross_compiling" = yes; then
7547 cat > conftest.$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7550 /* pthread test headers */
7551 #include <pthread.h>
7553 #define NULL (void*)0
7556 static void *task(p)
7559 return (void *) (p == NULL);
7564 /* pthread test function */
7568 /* make sure pthread_create() isn't just a stub */
7569 #if HAVE_PTHREADS_D4
7570 status = pthread_create(&t, pthread_attr_default, task, NULL);
7572 status = pthread_create(&t, NULL, task, NULL);
7575 if( status ) exit( status );
7577 /* make sure pthread_detach() isn't just a stub */
7578 #if HAVE_PTHREADS_D4
7579 status = pthread_detach( &t );
7581 status = pthread_detach( t );
7584 #ifdef HAVE_LINUX_THREADS
7585 pthread_kill_other_threads_np();
7592 if { (eval echo configure:7593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7594 ol_cv_pthread_lpthread_lmach_lexc=yes
7596 echo "configure: failed program was:" >&5
7597 cat conftest.$ac_ext >&5
7599 ol_cv_pthread_lpthread_lmach_lexc=no
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7606 /* pthread test headers */
7607 #include <pthread.h>
7609 #define NULL (void*)0
7612 static void *task(p)
7615 return (void *) (p == NULL);
7619 int main(argc, argv)
7624 /* pthread test function */
7628 /* make sure pthread_create() isn't just a stub */
7629 #if HAVE_PTHREADS_D4
7630 status = pthread_create(&t, pthread_attr_default, task, NULL);
7632 status = pthread_create(&t, NULL, task, NULL);
7635 if( status ) exit( status );
7637 /* make sure pthread_detach() isn't just a stub */
7638 #if HAVE_PTHREADS_D4
7639 status = pthread_detach( &t );
7641 status = pthread_detach( t );
7644 #ifdef HAVE_LINUX_THREADS
7645 pthread_kill_other_threads_np();
7653 if { (eval echo configure:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7655 ol_cv_pthread_lpthread_lmach_lexc=yes
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7660 ol_cv_pthread_lpthread_lmach_lexc=no
7671 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
7673 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
7674 ol_link_pthreads="-lpthread -lmach -lexc"
7675 ol_link_threads=posix
7680 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
7681 if test "$ol_link_threads" = no ; then
7682 # try -lpthread -Wl,-woff,85
7683 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
7684 echo "configure:7685: checking for pthread link with -lpthread -Wl,-woff,85" >&5
7685 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7691 LIBS="-lpthread -Wl,-woff,85 $LIBS"
7693 if test "$cross_compiling" = yes; then
7694 cat > conftest.$ac_ext <<EOF
7695 #line 7696 "configure"
7696 #include "confdefs.h"
7697 /* pthread test headers */
7698 #include <pthread.h>
7700 #define NULL (void*)0
7703 static void *task(p)
7706 return (void *) (p == NULL);
7711 /* pthread test function */
7715 /* make sure pthread_create() isn't just a stub */
7716 #if HAVE_PTHREADS_D4
7717 status = pthread_create(&t, pthread_attr_default, task, NULL);
7719 status = pthread_create(&t, NULL, task, NULL);
7722 if( status ) exit( status );
7724 /* make sure pthread_detach() isn't just a stub */
7725 #if HAVE_PTHREADS_D4
7726 status = pthread_detach( &t );
7728 status = pthread_detach( t );
7731 #ifdef HAVE_LINUX_THREADS
7732 pthread_kill_other_threads_np();
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7741 ol_cv_pthread_lib_lpthread_woff=yes
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 ol_cv_pthread_lib_lpthread_woff=no
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7753 /* pthread test headers */
7754 #include <pthread.h>
7756 #define NULL (void*)0
7759 static void *task(p)
7762 return (void *) (p == NULL);
7766 int main(argc, argv)
7771 /* pthread test function */
7775 /* make sure pthread_create() isn't just a stub */
7776 #if HAVE_PTHREADS_D4
7777 status = pthread_create(&t, pthread_attr_default, task, NULL);
7779 status = pthread_create(&t, NULL, task, NULL);
7782 if( status ) exit( status );
7784 /* make sure pthread_detach() isn't just a stub */
7785 #if HAVE_PTHREADS_D4
7786 status = pthread_detach( &t );
7788 status = pthread_detach( t );
7791 #ifdef HAVE_LINUX_THREADS
7792 pthread_kill_other_threads_np();
7800 if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7802 ol_cv_pthread_lib_lpthread_woff=yes
7804 echo "configure: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7807 ol_cv_pthread_lib_lpthread_woff=no
7818 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7820 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7821 ol_link_pthreads="-lpthread -Wl,-woff,85"
7822 ol_link_threads=posix
7827 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7828 if test "$ol_link_threads" = no ; then
7830 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7831 echo "configure:7832: checking for pthread link with -lpthread" >&5
7832 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7838 LIBS="-lpthread $LIBS"
7840 if test "$cross_compiling" = yes; then
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7844 /* pthread test headers */
7845 #include <pthread.h>
7847 #define NULL (void*)0
7850 static void *task(p)
7853 return (void *) (p == NULL);
7858 /* pthread test function */
7862 /* make sure pthread_create() isn't just a stub */
7863 #if HAVE_PTHREADS_D4
7864 status = pthread_create(&t, pthread_attr_default, task, NULL);
7866 status = pthread_create(&t, NULL, task, NULL);
7869 if( status ) exit( status );
7871 /* make sure pthread_detach() isn't just a stub */
7872 #if HAVE_PTHREADS_D4
7873 status = pthread_detach( &t );
7875 status = pthread_detach( t );
7878 #ifdef HAVE_LINUX_THREADS
7879 pthread_kill_other_threads_np();
7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 ol_cv_pthread_lpthread=yes
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7893 ol_cv_pthread_lpthread=no
7897 cat > conftest.$ac_ext <<EOF
7898 #line 7899 "configure"
7899 #include "confdefs.h"
7900 /* pthread test headers */
7901 #include <pthread.h>
7903 #define NULL (void*)0
7906 static void *task(p)
7909 return (void *) (p == NULL);
7913 int main(argc, argv)
7918 /* pthread test function */
7922 /* make sure pthread_create() isn't just a stub */
7923 #if HAVE_PTHREADS_D4
7924 status = pthread_create(&t, pthread_attr_default, task, NULL);
7926 status = pthread_create(&t, NULL, task, NULL);
7929 if( status ) exit( status );
7931 /* make sure pthread_detach() isn't just a stub */
7932 #if HAVE_PTHREADS_D4
7933 status = pthread_detach( &t );
7935 status = pthread_detach( t );
7938 #ifdef HAVE_LINUX_THREADS
7939 pthread_kill_other_threads_np();
7947 if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7949 ol_cv_pthread_lpthread=yes
7951 echo "configure: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7954 ol_cv_pthread_lpthread=no
7965 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7967 if test $ol_cv_pthread_lpthread = yes ; then
7968 ol_link_pthreads="-lpthread"
7969 ol_link_threads=posix
7973 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7974 if test "$ol_link_threads" = no ; then
7976 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7977 echo "configure:7978: checking for pthread link with -lc_r" >&5
7978 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7986 if test "$cross_compiling" = yes; then
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 /* pthread test headers */
7991 #include <pthread.h>
7993 #define NULL (void*)0
7996 static void *task(p)
7999 return (void *) (p == NULL);
8004 /* pthread test function */
8008 /* make sure pthread_create() isn't just a stub */
8009 #if HAVE_PTHREADS_D4
8010 status = pthread_create(&t, pthread_attr_default, task, NULL);
8012 status = pthread_create(&t, NULL, task, NULL);
8015 if( status ) exit( status );
8017 /* make sure pthread_detach() isn't just a stub */
8018 #if HAVE_PTHREADS_D4
8019 status = pthread_detach( &t );
8021 status = pthread_detach( t );
8024 #ifdef HAVE_LINUX_THREADS
8025 pthread_kill_other_threads_np();
8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 ol_cv_pthread_lc_r=yes
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 ol_cv_pthread_lc_r=no
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* pthread test headers */
8047 #include <pthread.h>
8049 #define NULL (void*)0
8052 static void *task(p)
8055 return (void *) (p == NULL);
8059 int main(argc, argv)
8064 /* pthread test function */
8068 /* make sure pthread_create() isn't just a stub */
8069 #if HAVE_PTHREADS_D4
8070 status = pthread_create(&t, pthread_attr_default, task, NULL);
8072 status = pthread_create(&t, NULL, task, NULL);
8075 if( status ) exit( status );
8077 /* make sure pthread_detach() isn't just a stub */
8078 #if HAVE_PTHREADS_D4
8079 status = pthread_detach( &t );
8081 status = pthread_detach( t );
8084 #ifdef HAVE_LINUX_THREADS
8085 pthread_kill_other_threads_np();
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8095 ol_cv_pthread_lc_r=yes
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8100 ol_cv_pthread_lc_r=no
8111 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8113 if test $ol_cv_pthread_lc_r = yes ; then
8114 ol_link_pthreads="-lc_r"
8115 ol_link_threads=posix
8120 # Pthread try link: -threads (ol_cv_pthread_threads)
8121 if test "$ol_link_threads" = no ; then
8123 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8124 echo "configure:8125: checking for pthread link with -threads" >&5
8125 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
8131 LIBS="-threads $LIBS"
8133 if test "$cross_compiling" = yes; then
8134 cat > conftest.$ac_ext <<EOF
8135 #line 8136 "configure"
8136 #include "confdefs.h"
8137 /* pthread test headers */
8138 #include <pthread.h>
8140 #define NULL (void*)0
8143 static void *task(p)
8146 return (void *) (p == NULL);
8151 /* pthread test function */
8155 /* make sure pthread_create() isn't just a stub */
8156 #if HAVE_PTHREADS_D4
8157 status = pthread_create(&t, pthread_attr_default, task, NULL);
8159 status = pthread_create(&t, NULL, task, NULL);
8162 if( status ) exit( status );
8164 /* make sure pthread_detach() isn't just a stub */
8165 #if HAVE_PTHREADS_D4
8166 status = pthread_detach( &t );
8168 status = pthread_detach( t );
8171 #ifdef HAVE_LINUX_THREADS
8172 pthread_kill_other_threads_np();
8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8181 ol_cv_pthread_threads=yes
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8186 ol_cv_pthread_threads=no
8190 cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8193 /* pthread test headers */
8194 #include <pthread.h>
8196 #define NULL (void*)0
8199 static void *task(p)
8202 return (void *) (p == NULL);
8206 int main(argc, argv)
8211 /* pthread test function */
8215 /* make sure pthread_create() isn't just a stub */
8216 #if HAVE_PTHREADS_D4
8217 status = pthread_create(&t, pthread_attr_default, task, NULL);
8219 status = pthread_create(&t, NULL, task, NULL);
8222 if( status ) exit( status );
8224 /* make sure pthread_detach() isn't just a stub */
8225 #if HAVE_PTHREADS_D4
8226 status = pthread_detach( &t );
8228 status = pthread_detach( t );
8231 #ifdef HAVE_LINUX_THREADS
8232 pthread_kill_other_threads_np();
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8242 ol_cv_pthread_threads=yes
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 ol_cv_pthread_threads=no
8258 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8260 if test $ol_cv_pthread_threads = yes ; then
8261 ol_link_pthreads="-threads"
8262 ol_link_threads=posix
8267 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8268 if test "$ol_link_threads" = no ; then
8269 # try -lpthreads -lmach -lexc -lc_r
8270 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8271 echo "configure:8272: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8272 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8278 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8280 if test "$cross_compiling" = yes; then
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 /* pthread test headers */
8285 #include <pthread.h>
8287 #define NULL (void*)0
8290 static void *task(p)
8293 return (void *) (p == NULL);
8298 /* pthread test function */
8302 /* make sure pthread_create() isn't just a stub */
8303 #if HAVE_PTHREADS_D4
8304 status = pthread_create(&t, pthread_attr_default, task, NULL);
8306 status = pthread_create(&t, NULL, task, NULL);
8309 if( status ) exit( status );
8311 /* make sure pthread_detach() isn't just a stub */
8312 #if HAVE_PTHREADS_D4
8313 status = pthread_detach( &t );
8315 status = pthread_detach( t );
8318 #ifdef HAVE_LINUX_THREADS
8319 pthread_kill_other_threads_np();
8326 if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8328 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8333 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 /* pthread test headers */
8341 #include <pthread.h>
8343 #define NULL (void*)0
8346 static void *task(p)
8349 return (void *) (p == NULL);
8353 int main(argc, argv)
8358 /* pthread test function */
8362 /* make sure pthread_create() isn't just a stub */
8363 #if HAVE_PTHREADS_D4
8364 status = pthread_create(&t, pthread_attr_default, task, NULL);
8366 status = pthread_create(&t, NULL, task, NULL);
8369 if( status ) exit( status );
8371 /* make sure pthread_detach() isn't just a stub */
8372 #if HAVE_PTHREADS_D4
8373 status = pthread_detach( &t );
8375 status = pthread_detach( t );
8378 #ifdef HAVE_LINUX_THREADS
8379 pthread_kill_other_threads_np();
8387 if { (eval echo configure:8388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8389 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8394 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8405 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8407 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8408 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8409 ol_link_threads=posix
8413 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8414 if test "$ol_link_threads" = no ; then
8415 # try -lpthreads -lmach -lexc
8416 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8417 echo "configure:8418: checking for pthread link with -lpthreads -lmach -lexc" >&5
8418 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8424 LIBS="-lpthreads -lmach -lexc $LIBS"
8426 if test "$cross_compiling" = yes; then
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8430 /* pthread test headers */
8431 #include <pthread.h>
8433 #define NULL (void*)0
8436 static void *task(p)
8439 return (void *) (p == NULL);
8444 /* pthread test function */
8448 /* make sure pthread_create() isn't just a stub */
8449 #if HAVE_PTHREADS_D4
8450 status = pthread_create(&t, pthread_attr_default, task, NULL);
8452 status = pthread_create(&t, NULL, task, NULL);
8455 if( status ) exit( status );
8457 /* make sure pthread_detach() isn't just a stub */
8458 #if HAVE_PTHREADS_D4
8459 status = pthread_detach( &t );
8461 status = pthread_detach( t );
8464 #ifdef HAVE_LINUX_THREADS
8465 pthread_kill_other_threads_np();
8472 if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8474 ol_cv_pthread_lpthreads_lmach_lexc=yes
8476 echo "configure: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8479 ol_cv_pthread_lpthreads_lmach_lexc=no
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8486 /* pthread test headers */
8487 #include <pthread.h>
8489 #define NULL (void*)0
8492 static void *task(p)
8495 return (void *) (p == NULL);
8499 int main(argc, argv)
8504 /* pthread test function */
8508 /* make sure pthread_create() isn't just a stub */
8509 #if HAVE_PTHREADS_D4
8510 status = pthread_create(&t, pthread_attr_default, task, NULL);
8512 status = pthread_create(&t, NULL, task, NULL);
8515 if( status ) exit( status );
8517 /* make sure pthread_detach() isn't just a stub */
8518 #if HAVE_PTHREADS_D4
8519 status = pthread_detach( &t );
8521 status = pthread_detach( t );
8524 #ifdef HAVE_LINUX_THREADS
8525 pthread_kill_other_threads_np();
8533 if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8535 ol_cv_pthread_lpthreads_lmach_lexc=yes
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8540 ol_cv_pthread_lpthreads_lmach_lexc=no
8551 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8553 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8554 ol_link_pthreads="-lpthreads -lmach -lexc"
8555 ol_link_threads=posix
8559 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8560 if test "$ol_link_threads" = no ; then
8561 # try -lpthreads -lexc
8562 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8563 echo "configure:8564: checking for pthread link with -lpthreads -lexc" >&5
8564 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8565 echo $ac_n "(cached) $ac_c" 1>&6
8570 LIBS="-lpthreads -lexc $LIBS"
8572 if test "$cross_compiling" = yes; then
8573 cat > conftest.$ac_ext <<EOF
8574 #line 8575 "configure"
8575 #include "confdefs.h"
8576 /* pthread test headers */
8577 #include <pthread.h>
8579 #define NULL (void*)0
8582 static void *task(p)
8585 return (void *) (p == NULL);
8590 /* pthread test function */
8594 /* make sure pthread_create() isn't just a stub */
8595 #if HAVE_PTHREADS_D4
8596 status = pthread_create(&t, pthread_attr_default, task, NULL);
8598 status = pthread_create(&t, NULL, task, NULL);
8601 if( status ) exit( status );
8603 /* make sure pthread_detach() isn't just a stub */
8604 #if HAVE_PTHREADS_D4
8605 status = pthread_detach( &t );
8607 status = pthread_detach( t );
8610 #ifdef HAVE_LINUX_THREADS
8611 pthread_kill_other_threads_np();
8618 if { (eval echo configure:8619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8620 ol_cv_pthread_lpthreads_lexc=yes
8622 echo "configure: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8625 ol_cv_pthread_lpthreads_lexc=no
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 /* pthread test headers */
8633 #include <pthread.h>
8635 #define NULL (void*)0
8638 static void *task(p)
8641 return (void *) (p == NULL);
8645 int main(argc, argv)
8650 /* pthread test function */
8654 /* make sure pthread_create() isn't just a stub */
8655 #if HAVE_PTHREADS_D4
8656 status = pthread_create(&t, pthread_attr_default, task, NULL);
8658 status = pthread_create(&t, NULL, task, NULL);
8661 if( status ) exit( status );
8663 /* make sure pthread_detach() isn't just a stub */
8664 #if HAVE_PTHREADS_D4
8665 status = pthread_detach( &t );
8667 status = pthread_detach( t );
8670 #ifdef HAVE_LINUX_THREADS
8671 pthread_kill_other_threads_np();
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8681 ol_cv_pthread_lpthreads_lexc=yes
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 ol_cv_pthread_lpthreads_lexc=no
8697 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
8699 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
8700 ol_link_pthreads="-lpthreads -lexc"
8701 ol_link_threads=posix
8706 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
8707 if test "$ol_link_threads" = no ; then
8709 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
8710 echo "configure:8711: checking for pthread link with -lpthreads" >&5
8711 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
8712 echo $ac_n "(cached) $ac_c" 1>&6
8717 LIBS="-lpthreads $LIBS"
8719 if test "$cross_compiling" = yes; then
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8723 /* pthread test headers */
8724 #include <pthread.h>
8726 #define NULL (void*)0
8729 static void *task(p)
8732 return (void *) (p == NULL);
8737 /* pthread test function */
8741 /* make sure pthread_create() isn't just a stub */
8742 #if HAVE_PTHREADS_D4
8743 status = pthread_create(&t, pthread_attr_default, task, NULL);
8745 status = pthread_create(&t, NULL, task, NULL);
8748 if( status ) exit( status );
8750 /* make sure pthread_detach() isn't just a stub */
8751 #if HAVE_PTHREADS_D4
8752 status = pthread_detach( &t );
8754 status = pthread_detach( t );
8757 #ifdef HAVE_LINUX_THREADS
8758 pthread_kill_other_threads_np();
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8767 ol_cv_pthread_lib_lpthreads=yes
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8772 ol_cv_pthread_lib_lpthreads=no
8776 cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure"
8778 #include "confdefs.h"
8779 /* pthread test headers */
8780 #include <pthread.h>
8782 #define NULL (void*)0
8785 static void *task(p)
8788 return (void *) (p == NULL);
8792 int main(argc, argv)
8797 /* pthread test function */
8801 /* make sure pthread_create() isn't just a stub */
8802 #if HAVE_PTHREADS_D4
8803 status = pthread_create(&t, pthread_attr_default, task, NULL);
8805 status = pthread_create(&t, NULL, task, NULL);
8808 if( status ) exit( status );
8810 /* make sure pthread_detach() isn't just a stub */
8811 #if HAVE_PTHREADS_D4
8812 status = pthread_detach( &t );
8814 status = pthread_detach( t );
8817 #ifdef HAVE_LINUX_THREADS
8818 pthread_kill_other_threads_np();
8826 if { (eval echo configure:8827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8828 ol_cv_pthread_lib_lpthreads=yes
8830 echo "configure: failed program was:" >&5
8831 cat conftest.$ac_ext >&5
8833 ol_cv_pthread_lib_lpthreads=no
8844 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
8846 if test $ol_cv_pthread_lib_lpthreads = yes ; then
8847 ol_link_pthreads="-lpthreads"
8848 ol_link_threads=posix
8853 if test $ol_link_threads != no ; then
8854 cat >> confdefs.h <<\EOF
8855 #define HAVE_PTHREADS 1
8859 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
8861 save_CPPFLAGS="$CPPFLAGS"
8863 LIBS="$LTHREAD_LIBS $LIBS"
8865 for ac_func in sched_yield pthread_yield
8867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8868 echo "configure:8869: checking for $ac_func" >&5
8869 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8870 echo $ac_n "(cached) $ac_c" 1>&6
8872 cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8875 /* System header to define __stub macros and hopefully few prototypes,
8876 which can conflict with char $ac_func(); below. */
8878 /* Override any gcc2 internal prototype to avoid an error. */
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8886 /* The GNU C library defines this for functions which it implements
8887 to always fail with ENOSYS. Some functions are actually named
8888 something starting with __ and the normal name is an alias. */
8889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8899 eval "ac_cv_func_$ac_func=yes"
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8904 eval "ac_cv_func_$ac_func=no"
8909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8910 echo "$ac_t""yes" 1>&6
8911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8912 cat >> confdefs.h <<EOF
8913 #define $ac_tr_func 1
8917 echo "$ac_t""no" 1>&6
8922 if test $ac_cv_func_sched_yield = no -a \
8923 $ac_cv_func_pthread_yield = no ; then
8924 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
8925 echo "configure:8926: checking for sched_yield in -lrt" >&5
8926 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
8927 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8928 echo $ac_n "(cached) $ac_c" 1>&6
8930 ac_save_LIBS="$LIBS"
8932 cat > conftest.$ac_ext <<EOF
8933 #line 8934 "configure"
8934 #include "confdefs.h"
8935 /* Override any gcc2 internal prototype to avoid an error. */
8936 /* We use char because int might match the return type of a gcc2
8937 builtin and then its argument prototype would still apply. */
8944 if { (eval echo configure:8945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8946 eval "ac_cv_lib_$ac_lib_var=yes"
8948 echo "configure: failed program was:" >&5
8949 cat conftest.$ac_ext >&5
8951 eval "ac_cv_lib_$ac_lib_var=no"
8954 LIBS="$ac_save_LIBS"
8957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8958 echo "$ac_t""yes" 1>&6
8959 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
8960 cat >> confdefs.h <<\EOF
8961 #define HAVE_SCHED_YIELD 1
8964 ac_cv_func_sched_yield=yes
8966 echo "$ac_t""no" 1>&6
8967 ac_cv_func_sched_yield=no
8971 if test $ac_cv_func_sched_yield = no -a \
8972 $ac_cv_func_pthread_yield = no ; then
8973 for ac_func in thr_yield
8975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8976 echo "configure:8977: checking for $ac_func" >&5
8977 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8980 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8983 /* System header to define __stub macros and hopefully few prototypes,
8984 which can conflict with char $ac_func(); below. */
8986 /* Override any gcc2 internal prototype to avoid an error. */
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8994 /* The GNU C library defines this for functions which it implements
8995 to always fail with ENOSYS. Some functions are actually named
8996 something starting with __ and the normal name is an alias. */
8997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9005 if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9007 eval "ac_cv_func_$ac_func=yes"
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9012 eval "ac_cv_func_$ac_func=no"
9017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
9019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9020 cat >> confdefs.h <<EOF
9021 #define $ac_tr_func 1
9025 echo "$ac_t""no" 1>&6
9030 if test $ac_cv_func_sched_yield = no -a \
9031 $ac_cv_func_pthread_yield = no -a \
9032 "$ac_cv_func_thr_yield" = no ; then
9033 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9036 for ac_func in pthread_kill
9038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9039 echo "configure:9040: checking for $ac_func" >&5
9040 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9041 echo $ac_n "(cached) $ac_c" 1>&6
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9046 /* System header to define __stub macros and hopefully few prototypes,
9047 which can conflict with char $ac_func(); below. */
9049 /* Override any gcc2 internal prototype to avoid an error. */
9050 /* We use char because int might match the return type of a gcc2
9051 builtin and then its argument prototype would still apply. */
9057 /* The GNU C library defines this for functions which it implements
9058 to always fail with ENOSYS. Some functions are actually named
9059 something starting with __ and the normal name is an alias. */
9060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9068 if { (eval echo configure:9069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9070 eval "ac_cv_func_$ac_func=yes"
9072 echo "configure: failed program was:" >&5
9073 cat conftest.$ac_ext >&5
9075 eval "ac_cv_func_$ac_func=no"
9080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9081 echo "$ac_t""yes" 1>&6
9082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9083 cat >> confdefs.h <<EOF
9084 #define $ac_tr_func 1
9088 echo "$ac_t""no" 1>&6
9093 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9094 echo "configure:9095: checking for pthread_detach with <pthread.h>" >&5
9095 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9103 #include <pthread.h>
9105 #define NULL (void*)0
9109 pthread_detach(NULL);
9112 if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9114 ol_cv_func_pthread_detach=yes
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9119 ol_cv_func_pthread_detach=no
9125 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9127 if test $ol_cv_func_pthread_detach = no ; then
9128 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9131 cat >> confdefs.h <<\EOF
9132 #define HAVE_PTHREAD_DETACH 1
9137 pthread_setconcurrency \
9138 pthread_getconcurrency \
9139 thr_setconcurrency \
9140 thr_getconcurrency \
9143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9144 echo "configure:9145: checking for $ac_func" >&5
9145 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9146 echo $ac_n "(cached) $ac_c" 1>&6
9148 cat > conftest.$ac_ext <<EOF
9149 #line 9150 "configure"
9150 #include "confdefs.h"
9151 /* System header to define __stub macros and hopefully few prototypes,
9152 which can conflict with char $ac_func(); below. */
9154 /* Override any gcc2 internal prototype to avoid an error. */
9155 /* We use char because int might match the return type of a gcc2
9156 builtin and then its argument prototype would still apply. */
9162 /* The GNU C library defines this for functions which it implements
9163 to always fail with ENOSYS. Some functions are actually named
9164 something starting with __ and the normal name is an alias. */
9165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9173 if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9175 eval "ac_cv_func_$ac_func=yes"
9177 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9180 eval "ac_cv_func_$ac_func=no"
9185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9186 echo "$ac_t""yes" 1>&6
9187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9188 cat >> confdefs.h <<EOF
9189 #define $ac_tr_func 1
9193 echo "$ac_t""no" 1>&6
9199 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9200 echo "configure:9201: checking for pthread_kill_other_threads_np" >&5
9201 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9204 cat > conftest.$ac_ext <<EOF
9205 #line 9206 "configure"
9206 #include "confdefs.h"
9207 /* System header to define __stub macros and hopefully few prototypes,
9208 which can conflict with char pthread_kill_other_threads_np(); below. */
9210 /* Override any gcc2 internal prototype to avoid an error. */
9211 /* We use char because int might match the return type of a gcc2
9212 builtin and then its argument prototype would still apply. */
9213 char pthread_kill_other_threads_np();
9218 /* The GNU C library defines this for functions which it implements
9219 to always fail with ENOSYS. Some functions are actually named
9220 something starting with __ and the normal name is an alias. */
9221 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9224 f = pthread_kill_other_threads_np;
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9231 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9241 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9245 echo "$ac_t""no" 1>&6
9248 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9249 echo "configure:9250: checking for LinuxThreads implementation" >&5
9250 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9253 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9256 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9261 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9262 echo "configure:9263: checking for LinuxThreads consistency" >&5
9263 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9264 echo $ac_n "(cached) $ac_c" 1>&6
9267 if test $ol_cv_header_linux_threads = yes -a \
9268 $ol_cv_sys_linux_threads = yes; then
9269 ol_cv_linux_threads=yes
9270 elif test $ol_cv_header_linux_threads = no -a \
9271 $ol_cv_sys_linux_threads = no; then
9272 ol_cv_linux_threads=no
9274 ol_cv_linux_threads=error
9279 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9282 if test $ol_cv_linux_threads = error; then
9283 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9286 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9287 echo "configure:9288: checking if pthread_create() works" >&5
9288 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9292 if test "$cross_compiling" = yes; then
9293 ol_cv_pthread_create_works=yes
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9298 /* pthread test headers */
9299 #include <pthread.h>
9301 #define NULL (void*)0
9304 static void *task(p)
9307 return (void *) (p == NULL);
9311 int main(argc, argv)
9316 /* pthread test function */
9320 /* make sure pthread_create() isn't just a stub */
9321 #if HAVE_PTHREADS_D4
9322 status = pthread_create(&t, pthread_attr_default, task, NULL);
9324 status = pthread_create(&t, NULL, task, NULL);
9327 if( status ) exit( status );
9329 /* make sure pthread_detach() isn't just a stub */
9330 #if HAVE_PTHREADS_D4
9331 status = pthread_detach( &t );
9333 status = pthread_detach( t );
9336 #ifdef HAVE_LINUX_THREADS
9337 pthread_kill_other_threads_np();
9345 if { (eval echo configure:9346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9347 ol_cv_pthread_create_works=yes
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9352 ol_cv_pthread_create_works=no
9359 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9361 if test $ol_cv_pthread_create_works = no ; then
9362 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9365 if test $ol_with_yielding_select = auto ; then
9366 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9367 echo "configure:9368: checking if select yields when using pthreads" >&5
9368 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9372 if test "$cross_compiling" = yes; then
9373 ol_cv_pthread_select_yields=cross
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9379 #include <sys/types.h>
9380 #include <sys/time.h>
9382 #include <pthread.h>
9384 #define NULL (void*) 0
9387 static int fildes[2];
9389 static void *task(p)
9401 FD_SET(fildes[0], &rfds);
9403 /* we're not interested in any fds */
9404 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9411 exit(0); /* if we exit here, the select blocked the whole process */
9414 int main(argc, argv)
9420 /* create a pipe to select */
9421 if(pipe(&fildes[0])) {
9426 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9427 (void) pthread_setconcurrency(2);
9429 #ifdef HAVE_THR_SETCONCURRENCY
9430 /* Set Solaris LWP concurrency to 2 */
9431 thr_setconcurrency(2);
9435 #if HAVE_PTHREADS_D4
9436 pthread_create(&t, pthread_attr_default, task, NULL);
9438 pthread_create(&t, NULL, task, NULL);
9441 #if HAVE_SCHED_YIELD
9442 sched_yield(); /* make sure task runs first */
9444 #ifdef HAVE_PTHREAD_YIELD
9445 pthread_yield(); /* make sure task runs first */
9452 if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9454 ol_cv_pthread_select_yields=no
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9459 ol_cv_pthread_select_yields=yes
9466 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9468 if test $ol_cv_pthread_select_yields = cross ; then
9469 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9472 if test $ol_cv_pthread_select_yields = yes ; then
9473 ol_with_yielding_select=yes
9477 CPPFLAGS="$save_CPPFLAGS"
9480 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9484 if test $ol_with_threads = posix ; then
9485 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9489 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9490 -o $ol_with_threads = mach ; then
9492 for ac_hdr in mach/cthreads.h
9494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9496 echo "configure:9497: checking for $ac_hdr" >&5
9497 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9500 cat > conftest.$ac_ext <<EOF
9501 #line 9502 "configure"
9502 #include "confdefs.h"
9505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9506 { (eval echo configure:9507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9508 if test -z "$ac_err"; then
9510 eval "ac_cv_header_$ac_safe=yes"
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 eval "ac_cv_header_$ac_safe=no"
9520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9521 echo "$ac_t""yes" 1>&6
9522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9523 cat >> confdefs.h <<EOF
9524 #define $ac_tr_hdr 1
9528 echo "$ac_t""no" 1>&6
9532 if test $ac_cv_header_mach_cthreads_h = yes ; then
9533 ol_with_threads=found
9535 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9536 echo "configure:9537: checking for cthread_fork" >&5
9537 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 /* System header to define __stub macros and hopefully few prototypes,
9544 which can conflict with char cthread_fork(); below. */
9546 /* Override any gcc2 internal prototype to avoid an error. */
9547 /* We use char because int might match the return type of a gcc2
9548 builtin and then its argument prototype would still apply. */
9549 char cthread_fork();
9554 /* The GNU C library defines this for functions which it implements
9555 to always fail with ENOSYS. Some functions are actually named
9556 something starting with __ and the normal name is an alias. */
9557 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9565 if { (eval echo configure:9566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9567 eval "ac_cv_func_cthread_fork=yes"
9569 echo "configure: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9572 eval "ac_cv_func_cthread_fork=no"
9577 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9578 echo "$ac_t""yes" 1>&6
9581 echo "$ac_t""no" 1>&6
9585 if test $ol_link_threads = no ; then
9586 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9587 echo "configure:9588: checking for cthread_fork with -all_load" >&5
9588 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9593 LIBS="-all_load $LIBS"
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9597 #include <mach/cthreads.h>
9600 cthread_fork((void *)0, (void *)0);
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9606 ol_cv_cthread_all_load=yes
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9611 ol_cv_cthread_all_load=no
9618 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
9620 if test $ol_cv_cthread_all_load = yes ; then
9621 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
9622 ol_link_threads=mach
9626 if test $ol_link_threads != no ; then
9627 : check for cthread specific functionality here
9628 cat >> confdefs.h <<\EOF
9629 #define HAVE_MACH_CTHREADS 1
9633 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
9637 if test $ol_with_threads = mach ; then
9638 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
9642 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9643 -o $ol_with_threads = pth ; then
9647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9649 echo "configure:9650: checking for $ac_hdr" >&5
9650 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9659 { (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9661 if test -z "$ac_err"; then
9663 eval "ac_cv_header_$ac_safe=yes"
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9669 eval "ac_cv_header_$ac_safe=no"
9673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9674 echo "$ac_t""yes" 1>&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9676 cat >> confdefs.h <<EOF
9677 #define $ac_tr_hdr 1
9681 echo "$ac_t""no" 1>&6
9686 if test $ac_cv_header_pth_h = yes ; then
9687 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
9688 echo "configure:9689: checking for pth_version in -lpth" >&5
9689 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
9690 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9693 ac_save_LIBS="$LIBS"
9695 cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 /* Override any gcc2 internal prototype to avoid an error. */
9699 /* We use char because int might match the return type of a gcc2
9700 builtin and then its argument prototype would still apply. */
9707 if { (eval echo configure:9708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9709 eval "ac_cv_lib_$ac_lib_var=yes"
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9714 eval "ac_cv_lib_$ac_lib_var=no"
9717 LIBS="$ac_save_LIBS"
9720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9721 echo "$ac_t""yes" 1>&6
9724 echo "$ac_t""no" 1>&6
9729 if test $have_pth = yes ; then
9730 cat >> confdefs.h <<\EOF
9731 #define HAVE_GNU_PTH 1
9734 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
9737 if test $ol_with_yielding_select = auto ; then
9738 ol_with_yielding_select=yes
9744 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9745 -o $ol_with_threads = lwp ; then
9747 for ac_hdr in thread.h synch.h
9749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9751 echo "configure:9752: checking for $ac_hdr" >&5
9752 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9761 { (eval echo configure:9762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9763 if test -z "$ac_err"; then
9765 eval "ac_cv_header_$ac_safe=yes"
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 eval "ac_cv_header_$ac_safe=no"
9775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
9777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9778 cat >> confdefs.h <<EOF
9779 #define $ac_tr_hdr 1
9783 echo "$ac_t""no" 1>&6
9787 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
9788 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
9789 echo "configure:9790: checking for thr_create in -lthread" >&5
9790 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
9791 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9794 ac_save_LIBS="$LIBS"
9795 LIBS="-lthread $LIBS"
9796 cat > conftest.$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9799 /* Override any gcc2 internal prototype to avoid an error. */
9800 /* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9808 if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9810 eval "ac_cv_lib_$ac_lib_var=yes"
9812 echo "configure: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9815 eval "ac_cv_lib_$ac_lib_var=no"
9818 LIBS="$ac_save_LIBS"
9821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9822 echo "$ac_t""yes" 1>&6
9825 echo "$ac_t""no" 1>&6
9830 if test $have_thr = yes ; then
9831 cat >> confdefs.h <<\EOF
9835 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
9838 if test $ol_with_yielding_select = auto ; then
9839 ol_with_yielding_select=yes
9843 thr_setconcurrency \
9844 thr_getconcurrency \
9847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9848 echo "configure:9849: checking for $ac_func" >&5
9849 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 /* System header to define __stub macros and hopefully few prototypes,
9856 which can conflict with char $ac_func(); below. */
9858 /* Override any gcc2 internal prototype to avoid an error. */
9859 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9866 /* The GNU C library defines this for functions which it implements
9867 to always fail with ENOSYS. Some functions are actually named
9868 something starting with __ and the normal name is an alias. */
9869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9877 if { (eval echo configure:9878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9879 eval "ac_cv_func_$ac_func=yes"
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9884 eval "ac_cv_func_$ac_func=no"
9889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9890 echo "$ac_t""yes" 1>&6
9891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9892 cat >> confdefs.h <<EOF
9893 #define $ac_tr_func 1
9897 echo "$ac_t""no" 1>&6
9904 for ac_hdr in lwp/lwp.h
9906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9908 echo "configure:9909: checking for $ac_hdr" >&5
9909 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9918 { (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9920 if test -z "$ac_err"; then
9922 eval "ac_cv_header_$ac_safe=yes"
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9928 eval "ac_cv_header_$ac_safe=no"
9932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6
9934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9935 cat >> confdefs.h <<EOF
9936 #define $ac_tr_hdr 1
9940 echo "$ac_t""no" 1>&6
9944 if test $ac_cv_header_lwp_lwp_h = yes ; then
9945 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
9946 echo "configure:9947: checking for lwp_create in -llwp" >&5
9947 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
9948 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9951 ac_save_LIBS="$LIBS"
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9956 /* Override any gcc2 internal prototype to avoid an error. */
9957 /* We use char because int might match the return type of a gcc2
9958 builtin and then its argument prototype would still apply. */
9965 if { (eval echo configure:9966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9967 eval "ac_cv_lib_$ac_lib_var=yes"
9969 echo "configure: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9972 eval "ac_cv_lib_$ac_lib_var=no"
9975 LIBS="$ac_save_LIBS"
9978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9979 echo "$ac_t""yes" 1>&6
9982 echo "$ac_t""no" 1>&6
9987 if test $have_lwp = yes ; then
9988 cat >> confdefs.h <<\EOF
9992 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
9995 if test $ol_with_yielding_select = auto ; then
9996 ol_with_yielding_select=no
10002 if test $ol_with_yielding_select = yes ; then
10003 cat >> confdefs.h <<\EOF
10004 #define HAVE_YIELDING_SELECT 1
10009 if test $ol_with_threads = manual ; then
10010 ol_link_threads=yes
10012 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10014 for ac_hdr in pthread.h sched.h
10016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10018 echo "configure:10019: checking for $ac_hdr" >&5
10019 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10022 cat > conftest.$ac_ext <<EOF
10023 #line 10024 "configure"
10024 #include "confdefs.h"
10027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10028 { (eval echo configure:10029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10030 if test -z "$ac_err"; then
10032 eval "ac_cv_header_$ac_safe=yes"
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10038 eval "ac_cv_header_$ac_safe=no"
10042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10043 echo "$ac_t""yes" 1>&6
10044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10045 cat >> confdefs.h <<EOF
10046 #define $ac_tr_hdr 1
10050 echo "$ac_t""no" 1>&6
10054 for ac_func in sched_yield pthread_yield
10056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10057 echo "configure:10058: checking for $ac_func" >&5
10058 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10061 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10064 /* System header to define __stub macros and hopefully few prototypes,
10065 which can conflict with char $ac_func(); below. */
10066 #include <assert.h>
10067 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10075 /* The GNU C library defines this for functions which it implements
10076 to always fail with ENOSYS. Some functions are actually named
10077 something starting with __ and the normal name is an alias. */
10078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10086 if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10088 eval "ac_cv_func_$ac_func=yes"
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10093 eval "ac_cv_func_$ac_func=no"
10098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10099 echo "$ac_t""yes" 1>&6
10100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10101 cat >> confdefs.h <<EOF
10102 #define $ac_tr_func 1
10106 echo "$ac_t""no" 1>&6
10111 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10112 echo "configure:10113: checking for LinuxThreads pthread.h" >&5
10113 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10116 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 #include <pthread.h>
10121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10122 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10124 ol_cv_header_linux_threads=yes
10127 ol_cv_header_linux_threads=no
10134 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10135 if test $ol_cv_header_linux_threads = yes; then
10136 cat >> confdefs.h <<\EOF
10137 #define HAVE_LINUX_THREADS 1
10143 for ac_hdr in mach/cthreads.h
10145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10147 echo "configure:10148: checking for $ac_hdr" >&5
10148 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10157 { (eval echo configure:10158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10159 if test -z "$ac_err"; then
10161 eval "ac_cv_header_$ac_safe=yes"
10164 echo "configure: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10167 eval "ac_cv_header_$ac_safe=no"
10171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10172 echo "$ac_t""yes" 1>&6
10173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10174 cat >> confdefs.h <<EOF
10175 #define $ac_tr_hdr 1
10179 echo "$ac_t""no" 1>&6
10183 for ac_hdr in lwp/lwp.h
10185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10187 echo "configure:10188: checking for $ac_hdr" >&5
10188 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10189 echo $ac_n "(cached) $ac_c" 1>&6
10191 cat > conftest.$ac_ext <<EOF
10192 #line 10193 "configure"
10193 #include "confdefs.h"
10196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10197 { (eval echo configure:10198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10199 if test -z "$ac_err"; then
10201 eval "ac_cv_header_$ac_safe=yes"
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10207 eval "ac_cv_header_$ac_safe=no"
10211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10212 echo "$ac_t""yes" 1>&6
10213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10214 cat >> confdefs.h <<EOF
10215 #define $ac_tr_hdr 1
10219 echo "$ac_t""no" 1>&6
10223 for ac_hdr in thread.h synch.h
10225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10227 echo "configure:10228: checking for $ac_hdr" >&5
10228 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10229 echo $ac_n "(cached) $ac_c" 1>&6
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10237 { (eval echo configure:10238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10239 if test -z "$ac_err"; then
10241 eval "ac_cv_header_$ac_safe=yes"
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10247 eval "ac_cv_header_$ac_safe=no"
10251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10252 echo "$ac_t""yes" 1>&6
10253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10254 cat >> confdefs.h <<EOF
10255 #define $ac_tr_hdr 1
10259 echo "$ac_t""no" 1>&6
10265 if test $ol_link_threads != no ; then
10266 cat >> confdefs.h <<\EOF
10267 #define REENTRANT 1
10270 cat >> confdefs.h <<\EOF
10271 #define _REENTRANT 1
10274 cat >> confdefs.h <<\EOF
10275 #define THREAD_SAFE 1
10278 cat >> confdefs.h <<\EOF
10279 #define _THREAD_SAFE 1
10282 cat >> confdefs.h <<\EOF
10283 #define THREADSAFE 1
10286 cat >> confdefs.h <<\EOF
10287 #define _THREADSAFE 1
10290 cat >> confdefs.h <<\EOF
10291 #define _SGI_MP_SOURCE 1
10295 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10296 echo "configure:10297: checking for thread specific errno" >&5
10297 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10311 ol_cv_errno_thread_specific=yes
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10316 ol_cv_errno_thread_specific=no
10322 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10324 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10325 echo "configure:10326: checking for thread specific h_errno" >&5
10326 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10338 if { (eval echo configure:10339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10340 ol_cv_h_errno_thread_specific=yes
10342 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10345 ol_cv_h_errno_thread_specific=no
10351 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10353 if test $ol_cv_errno_thread_specific != yes \
10354 -o $ol_cv_h_errno_thread_specific != yes ; then
10355 LIBS="$LTHREAD_LIBS $LIBS"
10361 if test $ol_link_threads = no ; then
10362 if test $ol_with_threads = yes ; then
10363 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10366 if test $ol_with_threads = auto ; then
10367 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10371 cat >> confdefs.h <<\EOF
10372 #define NO_THREADS 1
10378 if test $ol_link_threads != no ; then
10379 cat >> confdefs.h <<\EOF
10380 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10387 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10388 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10389 echo "configure:10390: checking for DB2 library" >&5
10390 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10391 echo $ac_n "(cached) $ac_c" 1>&6
10394 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
10395 echo "configure:10396: checking for db_open in -ldb" >&5
10396 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
10397 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10398 echo $ac_n "(cached) $ac_c" 1>&6
10400 ac_save_LIBS="$LIBS"
10402 cat > conftest.$ac_ext <<EOF
10403 #line 10404 "configure"
10404 #include "confdefs.h"
10405 /* Override any gcc2 internal prototype to avoid an error. */
10406 /* We use char because int might match the return type of a gcc2
10407 builtin and then its argument prototype would still apply. */
10414 if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 eval "ac_cv_lib_$ac_lib_var=yes"
10418 echo "configure: failed program was:" >&5
10419 cat conftest.$ac_ext >&5
10421 eval "ac_cv_lib_$ac_lib_var=no"
10424 LIBS="$ac_save_LIBS"
10427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10428 echo "$ac_t""yes" 1>&6
10431 echo "$ac_t""no" 1>&6
10439 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10445 echo "configure:10446: checking for $ac_hdr" >&5
10446 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
10449 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10455 { (eval echo configure:10456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10457 if test -z "$ac_err"; then
10459 eval "ac_cv_header_$ac_safe=yes"
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10465 eval "ac_cv_header_$ac_safe=no"
10469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10470 echo "$ac_t""yes" 1>&6
10471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10472 cat >> confdefs.h <<EOF
10473 #define $ac_tr_hdr 1
10477 echo "$ac_t""no" 1>&6
10481 if test $ac_cv_header_db_h = yes ; then
10482 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10483 echo "configure:10484: checking if db.h is DB2" >&5
10484 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10485 echo $ac_n "(cached) $ac_c" 1>&6
10488 cat > conftest.$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10493 /* this check could be improved */
10494 # ifdef DB_VERSION_MAJOR
10495 # if DB_VERSION_MAJOR == 2
10501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10502 egrep "__db_version_2" >/dev/null 2>&1; then
10504 ol_cv_header_db2=yes
10507 ol_cv_header_db2=no
10513 echo "$ac_t""$ol_cv_header_db2" 1>&6
10515 ol_cv_header_db2=no
10520 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10521 echo "configure:10522: checking for Berkeley DB2" >&5
10522 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10523 echo $ac_n "(cached) $ac_c" 1>&6
10526 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10527 ol_cv_berkeley_db2=no
10529 ol_cv_berkeley_db2=yes
10534 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10535 if test $ol_cv_berkeley_db2 = yes ; then
10536 cat >> confdefs.h <<\EOF
10537 #define HAVE_BERKELEY_DB2 1
10543 if test $ol_cv_berkeley_db2 = yes ; then
10545 ol_with_ldbm_api=db2
10547 if test $ol_with_ldbm_type = hash ; then
10548 cat >> confdefs.h <<\EOF
10549 #define LDBM_USE_DBHASH 1
10553 cat >> confdefs.h <<\EOF
10554 #define LDBM_USE_DBBTREE 1
10559 if test $ol_cv_lib_db2 != yes ; then
10560 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
10566 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
10570 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
10571 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
10572 echo "configure:10573: checking for Berkeley DB library" >&5
10573 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
10574 echo $ac_n "(cached) $ac_c" 1>&6
10577 for ac_hdr in db1/db.h
10579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10581 echo "configure:10582: checking for $ac_hdr" >&5
10582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10583 echo $ac_n "(cached) $ac_c" 1>&6
10585 cat > conftest.$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10591 { (eval echo configure:10592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10593 if test -z "$ac_err"; then
10595 eval "ac_cv_header_$ac_safe=yes"
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10601 eval "ac_cv_header_$ac_safe=no"
10605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10606 echo "$ac_t""yes" 1>&6
10607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10608 cat >> confdefs.h <<EOF
10609 #define $ac_tr_hdr 1
10613 echo "$ac_t""no" 1>&6
10618 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10619 echo "configure:10620: checking for dbopen" >&5
10620 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
10621 echo $ac_n "(cached) $ac_c" 1>&6
10623 cat > conftest.$ac_ext <<EOF
10624 #line 10625 "configure"
10625 #include "confdefs.h"
10626 /* System header to define __stub macros and hopefully few prototypes,
10627 which can conflict with char dbopen(); below. */
10628 #include <assert.h>
10629 /* Override any gcc2 internal prototype to avoid an error. */
10630 /* We use char because int might match the return type of a gcc2
10631 builtin and then its argument prototype would still apply. */
10637 /* The GNU C library defines this for functions which it implements
10638 to always fail with ENOSYS. Some functions are actually named
10639 something starting with __ and the normal name is an alias. */
10640 #if defined (__stub_dbopen) || defined (__stub___dbopen)
10648 if { (eval echo configure:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10650 eval "ac_cv_func_dbopen=yes"
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10655 eval "ac_cv_func_dbopen=no"
10660 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
10661 echo "$ac_t""yes" 1>&6
10664 echo "$ac_t""no" 1>&6
10666 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
10667 echo "configure:10668: checking for dbopen in -ldb1" >&5
10668 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
10669 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10670 echo $ac_n "(cached) $ac_c" 1>&6
10672 ac_save_LIBS="$LIBS"
10674 cat > conftest.$ac_ext <<EOF
10675 #line 10676 "configure"
10676 #include "confdefs.h"
10677 /* Override any gcc2 internal prototype to avoid an error. */
10678 /* We use char because int might match the return type of a gcc2
10679 builtin and then its argument prototype would still apply. */
10686 if { (eval echo configure:10687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10688 eval "ac_cv_lib_$ac_lib_var=yes"
10690 echo "configure: failed program was:" >&5
10691 cat conftest.$ac_ext >&5
10693 eval "ac_cv_lib_$ac_lib_var=no"
10696 LIBS="$ac_save_LIBS"
10699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10700 echo "$ac_t""yes" 1>&6
10703 echo "$ac_t""no" 1>&6
10705 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10706 echo "configure:10707: checking for dbopen in -ldb" >&5
10707 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
10708 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10711 ac_save_LIBS="$LIBS"
10713 cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10716 /* Override any gcc2 internal prototype to avoid an error. */
10717 /* We use char because int might match the return type of a gcc2
10718 builtin and then its argument prototype would still apply. */
10725 if { (eval echo configure:10726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10727 eval "ac_cv_lib_$ac_lib_var=yes"
10729 echo "configure: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10732 eval "ac_cv_lib_$ac_lib_var=no"
10735 LIBS="$ac_save_LIBS"
10738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10739 echo "$ac_t""yes" 1>&6
10742 echo "$ac_t""no" 1>&6
10756 echo "$ac_t""$ol_cv_lib_db" 1>&6
10759 for ac_hdr in db_185.h
10761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10763 echo "configure:10764: checking for $ac_hdr" >&5
10764 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10765 echo $ac_n "(cached) $ac_c" 1>&6
10767 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10773 { (eval echo configure:10774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10775 if test -z "$ac_err"; then
10777 eval "ac_cv_header_$ac_safe=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_header_$ac_safe=no"
10787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10788 echo "$ac_t""yes" 1>&6
10789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10790 cat >> confdefs.h <<EOF
10791 #define $ac_tr_hdr 1
10795 echo "$ac_t""no" 1>&6
10799 if test "$ol_cv_header_db2" = yes ; then
10801 ol_cv_header_db=$ac_cv_header_db_185_h
10803 ol_cv_header_db=$ac_cv_header_db_h
10808 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
10809 echo "configure:10810: checking for Berkeley DB" >&5
10810 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
10811 echo $ac_n "(cached) $ac_c" 1>&6
10814 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
10815 ol_cv_berkeley_db=no
10817 ol_cv_berkeley_db=yes
10822 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
10823 if test $ol_cv_berkeley_db = yes ; then
10824 cat >> confdefs.h <<\EOF
10825 #define HAVE_BERKELEY_DB 1
10831 if test $ol_cv_berkeley_db = yes ; then
10833 ol_with_ldbm_api=db
10835 if test $ol_with_ldbm_type = hash ; then
10836 cat >> confdefs.h <<\EOF
10837 #define LDBM_USE_DBHASH 1
10841 cat >> confdefs.h <<\EOF
10842 #define LDBM_USE_DBBTREE 1
10847 if test $ol_cv_lib_db != yes ; then
10848 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
10853 if test $ol_with_ldbm_api = manual ; then
10856 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
10858 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
10860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10862 echo "configure:10863: checking for $ac_hdr" >&5
10863 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10872 { (eval echo configure:10873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10874 if test -z "$ac_err"; then
10876 eval "ac_cv_header_$ac_safe=yes"
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10882 eval "ac_cv_header_$ac_safe=no"
10886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10887 echo "$ac_t""yes" 1>&6
10888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10889 cat >> confdefs.h <<EOF
10890 #define $ac_tr_hdr 1
10894 echo "$ac_t""no" 1>&6
10900 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
10901 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
10902 ol_with_ldbm_api=none
10905 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
10906 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
10907 echo "configure:10908: checking for MDBM library" >&5
10908 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10912 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
10913 echo "configure:10914: checking for mdbm_set_chain" >&5
10914 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10917 cat > conftest.$ac_ext <<EOF
10918 #line 10919 "configure"
10919 #include "confdefs.h"
10920 /* System header to define __stub macros and hopefully few prototypes,
10921 which can conflict with char mdbm_set_chain(); below. */
10922 #include <assert.h>
10923 /* Override any gcc2 internal prototype to avoid an error. */
10924 /* We use char because int might match the return type of a gcc2
10925 builtin and then its argument prototype would still apply. */
10926 char mdbm_set_chain();
10931 /* The GNU C library defines this for functions which it implements
10932 to always fail with ENOSYS. Some functions are actually named
10933 something starting with __ and the normal name is an alias. */
10934 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
10937 f = mdbm_set_chain;
10942 if { (eval echo configure:10943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10944 eval "ac_cv_func_mdbm_set_chain=yes"
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10949 eval "ac_cv_func_mdbm_set_chain=no"
10954 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
10955 echo "$ac_t""yes" 1>&6
10958 echo "$ac_t""no" 1>&6
10960 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
10961 echo "configure:10962: checking for mdbm_set_chain in -lmdbm" >&5
10962 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
10963 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10966 ac_save_LIBS="$LIBS"
10967 LIBS="-lmdbm $LIBS"
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10971 /* Override any gcc2 internal prototype to avoid an error. */
10972 /* We use char because int might match the return type of a gcc2
10973 builtin and then its argument prototype would still apply. */
10974 char mdbm_set_chain();
10980 if { (eval echo configure:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10982 eval "ac_cv_lib_$ac_lib_var=yes"
10984 echo "configure: failed program was:" >&5
10985 cat conftest.$ac_ext >&5
10987 eval "ac_cv_lib_$ac_lib_var=no"
10990 LIBS="$ac_save_LIBS"
10993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10994 echo "$ac_t""yes" 1>&6
10995 ol_cv_lib_mdbm=-lmdbm
10997 echo "$ac_t""no" 1>&6
11008 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11011 for ac_hdr in mdbm.h
11013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11015 echo "configure:11016: checking for $ac_hdr" >&5
11016 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11025 { (eval echo configure:11026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11027 if test -z "$ac_err"; then
11029 eval "ac_cv_header_$ac_safe=yes"
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11035 eval "ac_cv_header_$ac_safe=no"
11039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11040 echo "$ac_t""yes" 1>&6
11041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11042 cat >> confdefs.h <<EOF
11043 #define $ac_tr_hdr 1
11047 echo "$ac_t""no" 1>&6
11051 echo $ac_n "checking for db""... $ac_c" 1>&6
11052 echo "configure:11053: checking for db" >&5
11053 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11057 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11065 echo "$ac_t""$ol_cv_mdbm" 1>&6
11066 if test $ol_cv_mdbm = yes ; then
11067 cat >> confdefs.h <<\EOF
11068 #define HAVE_MDBM 1
11074 if test $ol_cv_mdbm = yes ; then
11076 ol_with_ldbm_api=mdbm
11077 if test $ol_cv_lib_mdbm != yes ; then
11078 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11083 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11084 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11085 echo "configure:11086: checking for GDBM library" >&5
11086 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11090 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11091 echo "configure:11092: checking for gdbm_open" >&5
11092 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11093 echo $ac_n "(cached) $ac_c" 1>&6
11095 cat > conftest.$ac_ext <<EOF
11096 #line 11097 "configure"
11097 #include "confdefs.h"
11098 /* System header to define __stub macros and hopefully few prototypes,
11099 which can conflict with char gdbm_open(); below. */
11100 #include <assert.h>
11101 /* Override any gcc2 internal prototype to avoid an error. */
11102 /* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11109 /* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11120 if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11122 eval "ac_cv_func_gdbm_open=yes"
11124 echo "configure: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11127 eval "ac_cv_func_gdbm_open=no"
11132 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11136 echo "$ac_t""no" 1>&6
11138 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11139 echo "configure:11140: checking for gdbm_open in -lgdbm" >&5
11140 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11141 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11142 echo $ac_n "(cached) $ac_c" 1>&6
11144 ac_save_LIBS="$LIBS"
11145 LIBS="-lgdbm $LIBS"
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11149 /* Override any gcc2 internal prototype to avoid an error. */
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11158 if { (eval echo configure:11159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11160 eval "ac_cv_lib_$ac_lib_var=yes"
11162 echo "configure: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11165 eval "ac_cv_lib_$ac_lib_var=no"
11168 LIBS="$ac_save_LIBS"
11171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11172 echo "$ac_t""yes" 1>&6
11173 ol_cv_lib_gdbm=-lgdbm
11175 echo "$ac_t""no" 1>&6
11186 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11189 for ac_hdr in gdbm.h
11191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11193 echo "configure:11194: checking for $ac_hdr" >&5
11194 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11203 { (eval echo configure:11204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11205 if test -z "$ac_err"; then
11207 eval "ac_cv_header_$ac_safe=yes"
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11213 eval "ac_cv_header_$ac_safe=no"
11217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11218 echo "$ac_t""yes" 1>&6
11219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11220 cat >> confdefs.h <<EOF
11221 #define $ac_tr_hdr 1
11225 echo "$ac_t""no" 1>&6
11229 echo $ac_n "checking for db""... $ac_c" 1>&6
11230 echo "configure:11231: checking for db" >&5
11231 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
11232 echo $ac_n "(cached) $ac_c" 1>&6
11235 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11243 echo "$ac_t""$ol_cv_gdbm" 1>&6
11244 if test $ol_cv_gdbm = yes ; then
11245 cat >> confdefs.h <<\EOF
11246 #define HAVE_GDBM 1
11252 if test $ol_cv_gdbm = yes ; then
11254 ol_with_ldbm_api=gdbm
11256 if test $ol_cv_lib_gdbm != yes ; then
11257 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11262 if test $ol_with_ldbm_api = auto ; then
11263 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11264 elif test $ol_with_ldbm_api = ndbm ; then
11265 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11266 echo "configure:11267: checking for NDBM library" >&5
11267 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11268 echo $ac_n "(cached) $ac_c" 1>&6
11271 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11272 echo "configure:11273: checking for dbm_open" >&5
11273 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11274 echo $ac_n "(cached) $ac_c" 1>&6
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11279 /* System header to define __stub macros and hopefully few prototypes,
11280 which can conflict with char dbm_open(); below. */
11281 #include <assert.h>
11282 /* Override any gcc2 internal prototype to avoid an error. */
11283 /* We use char because int might match the return type of a gcc2
11284 builtin and then its argument prototype would still apply. */
11290 /* The GNU C library defines this for functions which it implements
11291 to always fail with ENOSYS. Some functions are actually named
11292 something starting with __ and the normal name is an alias. */
11293 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11301 if { (eval echo configure:11302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11303 eval "ac_cv_func_dbm_open=yes"
11305 echo "configure: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11308 eval "ac_cv_func_dbm_open=no"
11313 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11314 echo "$ac_t""yes" 1>&6
11317 echo "$ac_t""no" 1>&6
11319 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11320 echo "configure:11321: checking for dbm_open in -lndbm" >&5
11321 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11322 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11323 echo $ac_n "(cached) $ac_c" 1>&6
11325 ac_save_LIBS="$LIBS"
11326 LIBS="-lndbm $LIBS"
11327 cat > conftest.$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11330 /* Override any gcc2 internal prototype to avoid an error. */
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11339 if { (eval echo configure:11340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11341 eval "ac_cv_lib_$ac_lib_var=yes"
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11346 eval "ac_cv_lib_$ac_lib_var=no"
11349 LIBS="$ac_save_LIBS"
11352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11353 echo "$ac_t""yes" 1>&6
11354 ol_cv_lib_ndbm=-lndbm
11356 echo "$ac_t""no" 1>&6
11358 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11359 echo "configure:11360: checking for dbm_open in -ldbm" >&5
11360 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11361 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11362 echo $ac_n "(cached) $ac_c" 1>&6
11364 ac_save_LIBS="$LIBS"
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11369 /* Override any gcc2 internal prototype to avoid an error. */
11370 /* We use char because int might match the return type of a gcc2
11371 builtin and then its argument prototype would still apply. */
11378 if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11380 eval "ac_cv_lib_$ac_lib_var=yes"
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11385 eval "ac_cv_lib_$ac_lib_var=no"
11388 LIBS="$ac_save_LIBS"
11391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11392 echo "$ac_t""yes" 1>&6
11393 ol_cv_lib_ndbm=-ldbm
11395 echo "$ac_t""no" 1>&6
11408 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11411 for ac_hdr in ndbm.h
11413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11415 echo "configure:11416: checking for $ac_hdr" >&5
11416 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11417 echo $ac_n "(cached) $ac_c" 1>&6
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11425 { (eval echo configure:11426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11427 if test -z "$ac_err"; then
11429 eval "ac_cv_header_$ac_safe=yes"
11432 echo "configure: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11435 eval "ac_cv_header_$ac_safe=no"
11439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11440 echo "$ac_t""yes" 1>&6
11441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11442 cat >> confdefs.h <<EOF
11443 #define $ac_tr_hdr 1
11447 echo "$ac_t""no" 1>&6
11451 echo $ac_n "checking for db""... $ac_c" 1>&6
11452 echo "configure:11453: checking for db" >&5
11453 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11454 echo $ac_n "(cached) $ac_c" 1>&6
11457 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11465 echo "$ac_t""$ol_cv_ndbm" 1>&6
11466 if test $ol_cv_ndbm = yes ; then
11467 cat >> confdefs.h <<\EOF
11468 #define HAVE_NDBM 1
11474 if test $ol_cv_ndbm = yes ; then
11476 ol_with_ldbm_api=ndbm
11478 if test $ol_cv_lib_ndbm != yes ; then
11479 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11484 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11485 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11486 if test $ol_enable_ldbm = yes ; then
11487 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11490 echo "configure: warning: disabling LDBM" 1>&2
11494 if test $ol_enable_wrappers != no ; then
11495 for ac_hdr in tcpd.h
11497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11499 echo "configure:11500: checking for $ac_hdr" >&5
11500 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11501 echo $ac_n "(cached) $ac_c" 1>&6
11503 cat > conftest.$ac_ext <<EOF
11504 #line 11505 "configure"
11505 #include "confdefs.h"
11508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11509 { (eval echo configure:11510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11511 if test -z "$ac_err"; then
11513 eval "ac_cv_header_$ac_safe=yes"
11516 echo "configure: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11519 eval "ac_cv_header_$ac_safe=no"
11523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11524 echo "$ac_t""yes" 1>&6
11525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11526 cat >> confdefs.h <<EOF
11527 #define $ac_tr_hdr 1
11531 echo "$ac_t""no" 1>&6
11536 if test $ac_cv_header_tcpd_h != yes ; then
11539 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
11540 echo "configure:11541: checking for main in -lwrap" >&5
11541 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
11542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11545 ac_save_LIBS="$LIBS"
11546 LIBS="-lwrap $LIBS"
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11555 if { (eval echo configure:11556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11557 eval "ac_cv_lib_$ac_lib_var=yes"
11559 echo "configure: failed program was:" >&5
11560 cat conftest.$ac_ext >&5
11562 eval "ac_cv_lib_$ac_lib_var=no"
11565 LIBS="$ac_save_LIBS"
11568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11569 echo "$ac_t""yes" 1>&6
11572 echo "$ac_t""no" 1>&6
11578 if test $have_wrappers = yes ; then
11579 cat >> confdefs.h <<\EOF
11580 #define HAVE_TCPD 1
11583 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
11585 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
11586 echo "configure:11587: checking for main in -lnsl" >&5
11587 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
11588 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11589 echo $ac_n "(cached) $ac_c" 1>&6
11591 ac_save_LIBS="$LIBS"
11593 cat > conftest.$ac_ext <<EOF
11594 #line 11595 "configure"
11595 #include "confdefs.h"
11601 if { (eval echo configure:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11603 eval "ac_cv_lib_$ac_lib_var=yes"
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11608 eval "ac_cv_lib_$ac_lib_var=no"
11611 LIBS="$ac_save_LIBS"
11614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11615 echo "$ac_t""yes" 1>&6
11616 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11618 cat >> confdefs.h <<EOF
11619 #define $ac_tr_lib 1
11625 echo "$ac_t""no" 1>&6
11629 echo "configure: warning: could not find -lwrap" 1>&2
11630 if test $ol_enable_wrappers = yes ; then
11631 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
11634 echo "configure: warning: disabling wrappers support" 1>&2
11635 ol_enable_wrappers=no
11639 if test $ol_enable_syslog != no ; then
11640 echo $ac_n "checking for openlog""... $ac_c" 1>&6
11641 echo "configure:11642: checking for openlog" >&5
11642 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
11643 echo $ac_n "(cached) $ac_c" 1>&6
11645 cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11648 /* System header to define __stub macros and hopefully few prototypes,
11649 which can conflict with char openlog(); below. */
11650 #include <assert.h>
11651 /* Override any gcc2 internal prototype to avoid an error. */
11652 /* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11659 /* The GNU C library defines this for functions which it implements
11660 to always fail with ENOSYS. Some functions are actually named
11661 something starting with __ and the normal name is an alias. */
11662 #if defined (__stub_openlog) || defined (__stub___openlog)
11670 if { (eval echo configure:11671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11672 eval "ac_cv_func_openlog=yes"
11674 echo "configure: failed program was:" >&5
11675 cat conftest.$ac_ext >&5
11677 eval "ac_cv_func_openlog=no"
11682 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
11683 echo "$ac_t""yes" 1>&6
11686 echo "$ac_t""no" 1>&6
11689 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
11690 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
11692 ol_enable_syslog=$ac_cv_func_openlog
11695 if test $ol_enable_dmalloc != no ; then
11696 for ac_hdr in dmalloc.h
11698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11700 echo "configure:11701: checking for $ac_hdr" >&5
11701 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11702 echo $ac_n "(cached) $ac_c" 1>&6
11704 cat > conftest.$ac_ext <<EOF
11705 #line 11706 "configure"
11706 #include "confdefs.h"
11709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11710 { (eval echo configure:11711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11712 if test -z "$ac_err"; then
11714 eval "ac_cv_header_$ac_safe=yes"
11717 echo "configure: failed program was:" >&5
11718 cat conftest.$ac_ext >&5
11720 eval "ac_cv_header_$ac_safe=no"
11724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11725 echo "$ac_t""yes" 1>&6
11726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11727 cat >> confdefs.h <<EOF
11728 #define $ac_tr_hdr 1
11732 echo "$ac_t""no" 1>&6
11736 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
11737 echo "configure:11738: checking for dmalloc_shutdown in -ldmalloc" >&5
11738 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
11739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11740 echo $ac_n "(cached) $ac_c" 1>&6
11742 ac_save_LIBS="$LIBS"
11743 LIBS="-ldmalloc $LIBS"
11744 cat > conftest.$ac_ext <<EOF
11745 #line 11746 "configure"
11746 #include "confdefs.h"
11747 /* Override any gcc2 internal prototype to avoid an error. */
11748 /* We use char because int might match the return type of a gcc2
11749 builtin and then its argument prototype would still apply. */
11750 char dmalloc_shutdown();
11756 if { (eval echo configure:11757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11758 eval "ac_cv_lib_$ac_lib_var=yes"
11760 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5
11763 eval "ac_cv_lib_$ac_lib_var=no"
11766 LIBS="$ac_save_LIBS"
11769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11770 echo "$ac_t""yes" 1>&6
11771 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11772 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11773 cat >> confdefs.h <<EOF
11774 #define $ac_tr_lib 1
11777 LIBS="-ldmalloc $LIBS"
11780 echo "$ac_t""no" 1>&6
11785 if test $ol_enable_tcl != no ; then
11786 for ac_hdr in tcl.h
11788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11790 echo "configure:11791: checking for $ac_hdr" >&5
11791 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11800 { (eval echo configure:11801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11802 if test -z "$ac_err"; then
11804 eval "ac_cv_header_$ac_safe=yes"
11807 echo "configure: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11810 eval "ac_cv_header_$ac_safe=no"
11814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11817 cat >> confdefs.h <<EOF
11818 #define $ac_tr_hdr 1
11822 echo "$ac_t""no" 1>&6
11827 if test $ac_cv_header_tcl_h != yes ; then
11830 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
11831 echo "configure:11832: checking for main in -ltcl" >&5
11832 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
11833 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11834 echo $ac_n "(cached) $ac_c" 1>&6
11836 ac_save_LIBS="$LIBS"
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11846 if { (eval echo configure:11847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11848 eval "ac_cv_lib_$ac_lib_var=yes"
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11853 eval "ac_cv_lib_$ac_lib_var=no"
11856 LIBS="$ac_save_LIBS"
11859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11860 echo "$ac_t""yes" 1>&6
11861 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
11863 echo "$ac_t""no" 1>&6
11868 if test $have_tcl != yes; then
11869 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
11870 echo "configure:11871: checking for main in -ltcl7.6" >&5
11871 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
11872 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11873 echo $ac_n "(cached) $ac_c" 1>&6
11875 ac_save_LIBS="$LIBS"
11876 LIBS="-ltcl7.6 $LIBS"
11877 cat > conftest.$ac_ext <<EOF
11878 #line 11879 "configure"
11879 #include "confdefs.h"
11885 if { (eval echo configure:11886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11887 eval "ac_cv_lib_$ac_lib_var=yes"
11889 echo "configure: failed program was:" >&5
11890 cat conftest.$ac_ext >&5
11892 eval "ac_cv_lib_$ac_lib_var=no"
11895 LIBS="$ac_save_LIBS"
11898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11899 echo "$ac_t""yes" 1>&6
11900 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
11902 echo "$ac_t""no" 1>&6
11908 if test $have_tcl != yes; then
11909 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
11910 echo "configure:11911: checking for main in -ltcl8.0" >&5
11911 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
11912 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11913 echo $ac_n "(cached) $ac_c" 1>&6
11915 ac_save_LIBS="$LIBS"
11916 LIBS="-ltcl8.0 $LIBS"
11917 cat > conftest.$ac_ext <<EOF
11918 #line 11919 "configure"
11919 #include "confdefs.h"
11925 if { (eval echo configure:11926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11927 eval "ac_cv_lib_$ac_lib_var=yes"
11929 echo "configure: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11932 eval "ac_cv_lib_$ac_lib_var=no"
11935 LIBS="$ac_save_LIBS"
11938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11939 echo "$ac_t""yes" 1>&6
11940 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
11942 echo "$ac_t""no" 1>&6
11949 if test $have_tcl != yes ; then
11950 echo "configure: warning: could not find -ltcl" 1>&2
11951 if test $ol_enable_tcl = yes ; then
11952 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
11959 # ud needs termcap (should insert check here)
11961 for ac_hdr in termcap.h ncurses.h
11963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11965 echo "configure:11966: checking for $ac_hdr" >&5
11966 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11967 echo $ac_n "(cached) $ac_c" 1>&6
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11975 { (eval echo configure:11976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11977 if test -z "$ac_err"; then
11979 eval "ac_cv_header_$ac_safe=yes"
11982 echo "configure: failed program was:" >&5
11983 cat conftest.$ac_ext >&5
11985 eval "ac_cv_header_$ac_safe=no"
11989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11990 echo "$ac_t""yes" 1>&6
11991 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11992 cat >> confdefs.h <<EOF
11993 #define $ac_tr_hdr 1
11997 echo "$ac_t""no" 1>&6
12002 if test $ol_link_termcap = no ; then
12003 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12004 echo "configure:12005: checking for tputs in -ltermcap" >&5
12005 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12006 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12007 echo $ac_n "(cached) $ac_c" 1>&6
12009 ac_save_LIBS="$LIBS"
12010 LIBS="-ltermcap $LIBS"
12011 cat > conftest.$ac_ext <<EOF
12012 #line 12013 "configure"
12013 #include "confdefs.h"
12014 /* Override any gcc2 internal prototype to avoid an error. */
12015 /* We use char because int might match the return type of a gcc2
12016 builtin and then its argument prototype would still apply. */
12023 if { (eval echo configure:12024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12025 eval "ac_cv_lib_$ac_lib_var=yes"
12027 echo "configure: failed program was:" >&5
12028 cat conftest.$ac_ext >&5
12030 eval "ac_cv_lib_$ac_lib_var=no"
12033 LIBS="$ac_save_LIBS"
12036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12037 echo "$ac_t""yes" 1>&6
12040 echo "$ac_t""no" 1>&6
12044 if test $have_termcap = yes ; then
12045 cat >> confdefs.h <<\EOF
12046 #define HAVE_TERMCAP 1
12049 ol_link_termcap=yes
12050 TERMCAP_LIBS=-ltermcap
12054 if test $ol_link_termcap = no ; then
12055 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12056 echo "configure:12057: checking for initscr in -lncurses" >&5
12057 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12058 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12059 echo $ac_n "(cached) $ac_c" 1>&6
12061 ac_save_LIBS="$LIBS"
12062 LIBS="-lncurses $LIBS"
12063 cat > conftest.$ac_ext <<EOF
12064 #line 12065 "configure"
12065 #include "confdefs.h"
12066 /* Override any gcc2 internal prototype to avoid an error. */
12067 /* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12075 if { (eval echo configure:12076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12077 eval "ac_cv_lib_$ac_lib_var=yes"
12079 echo "configure: failed program was:" >&5
12080 cat conftest.$ac_ext >&5
12082 eval "ac_cv_lib_$ac_lib_var=no"
12085 LIBS="$ac_save_LIBS"
12088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12089 echo "$ac_t""yes" 1>&6
12092 echo "$ac_t""no" 1>&6
12096 if test $have_ncurses = yes ; then
12097 cat >> confdefs.h <<\EOF
12098 #define HAVE_NCURSES 1
12101 ol_link_termcap=yes
12102 TERMCAP_LIBS=-lncurses
12106 if test $ol_link_termcap = no ; then
12107 cat >> confdefs.h <<\EOF
12108 #define NO_TERMCAP 1
12115 if test $ol_with_cyrus_sasl != no ; then
12116 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12117 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12118 echo "configure:12119: checking for sasl.h" >&5
12119 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12120 echo $ac_n "(cached) $ac_c" 1>&6
12122 cat > conftest.$ac_ext <<EOF
12123 #line 12124 "configure"
12124 #include "confdefs.h"
12127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12128 { (eval echo configure:12129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12130 if test -z "$ac_err"; then
12132 eval "ac_cv_header_$ac_safe=yes"
12135 echo "configure: failed program was:" >&5
12136 cat conftest.$ac_ext >&5
12138 eval "ac_cv_header_$ac_safe=no"
12142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12143 echo "$ac_t""yes" 1>&6
12146 echo "$ac_t""no" 1>&6
12150 if test $ac_cv_header_sasl_h = yes ; then
12151 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12152 echo "configure:12153: checking for sasl_client_init in -lsasl" >&5
12153 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12155 echo $ac_n "(cached) $ac_c" 1>&6
12157 ac_save_LIBS="$LIBS"
12158 LIBS="-lsasl $LIBS"
12159 cat > conftest.$ac_ext <<EOF
12160 #line 12161 "configure"
12161 #include "confdefs.h"
12162 /* Override any gcc2 internal prototype to avoid an error. */
12163 /* We use char because int might match the return type of a gcc2
12164 builtin and then its argument prototype would still apply. */
12165 char sasl_client_init();
12171 if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12173 eval "ac_cv_lib_$ac_lib_var=yes"
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12178 eval "ac_cv_lib_$ac_lib_var=no"
12181 LIBS="$ac_save_LIBS"
12184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12185 echo "$ac_t""yes" 1>&6
12186 have_cyrus_sasl=yes
12188 echo "$ac_t""no" 1>&6
12193 if test $have_cyrus_sasl != no ; then
12195 cat >> confdefs.h <<\EOF
12196 #define HAVE_CYRUS_SASL 1
12203 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12204 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12209 if test $ol_with_fetch != no ; then
12211 LIBS="-lfetch -lcom_err $LIBS"
12212 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12213 echo "configure:12214: checking fetch(3) library" >&5
12214 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12215 echo $ac_n "(cached) $ac_c" 1>&6
12218 cat > conftest.$ac_ext <<EOF
12219 #line 12220 "configure"
12220 #include "confdefs.h"
12222 #include <sys/param.h>
12226 struct url *u = fetchParseURL("file:///");
12229 if { (eval echo configure:12230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12231 ol_cv_lib_fetch=yes
12233 echo "configure: failed program was:" >&5
12234 cat conftest.$ac_ext >&5
12241 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12243 if test $ol_cv_lib_fetch != no ; then
12244 ol_link_fetch="-lfetch -lcom_err"
12245 cat >> confdefs.h <<\EOF
12246 #define HAVE_FETCH 1
12252 if test $ol_cv_lib_fetch != no ; then
12253 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12254 ol_link_fetch=freebsd
12256 elif test $ol_with_fetch != auto ; then
12257 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12261 ol_link_readline=no
12262 if test $ol_with_readline != no ; then
12263 for ac_hdr in readline/readline.h readline/history.h
12265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12267 echo "configure:12268: checking for $ac_hdr" >&5
12268 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
12271 cat > conftest.$ac_ext <<EOF
12272 #line 12273 "configure"
12273 #include "confdefs.h"
12276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12277 { (eval echo configure:12278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12279 if test -z "$ac_err"; then
12281 eval "ac_cv_header_$ac_safe=yes"
12284 echo "configure: failed program was:" >&5
12285 cat conftest.$ac_ext >&5
12287 eval "ac_cv_header_$ac_safe=no"
12291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12292 echo "$ac_t""yes" 1>&6
12293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12294 cat >> confdefs.h <<EOF
12295 #define $ac_tr_hdr 1
12299 echo "$ac_t""no" 1>&6
12304 if test $ac_cv_header_readline_readline_h = yes ; then
12306 LIBS="$TERMCAP_LIBS $LIBS"
12307 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12308 echo "configure:12309: checking for readline in -lreadline" >&5
12309 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12311 echo $ac_n "(cached) $ac_c" 1>&6
12313 ac_save_LIBS="$LIBS"
12314 LIBS="-lreadline $LIBS"
12315 cat > conftest.$ac_ext <<EOF
12316 #line 12317 "configure"
12317 #include "confdefs.h"
12318 /* Override any gcc2 internal prototype to avoid an error. */
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12327 if { (eval echo configure:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12329 eval "ac_cv_lib_$ac_lib_var=yes"
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12334 eval "ac_cv_lib_$ac_lib_var=no"
12337 LIBS="$ac_save_LIBS"
12340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12341 echo "$ac_t""yes" 1>&6
12344 echo "$ac_t""no" 1>&6
12350 if test $have_readline = yes ; then
12351 ol_with_readline=found
12352 ol_link_readline=yes
12354 READLINE_LIBS="-lreadline"
12359 if test $ol_link_readline = yes ; then
12360 cat >> confdefs.h <<\EOF
12361 #define HAVE_READLINE 1
12367 # FreeBSD (and others) have crypt(3) in -lcrypt
12368 if test $ol_enable_crypt != no ; then
12369 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12370 echo "configure:12371: checking for crypt" >&5
12371 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12374 cat > conftest.$ac_ext <<EOF
12375 #line 12376 "configure"
12376 #include "confdefs.h"
12377 /* System header to define __stub macros and hopefully few prototypes,
12378 which can conflict with char crypt(); below. */
12379 #include <assert.h>
12380 /* Override any gcc2 internal prototype to avoid an error. */
12381 /* We use char because int might match the return type of a gcc2
12382 builtin and then its argument prototype would still apply. */
12388 /* The GNU C library defines this for functions which it implements
12389 to always fail with ENOSYS. Some functions are actually named
12390 something starting with __ and the normal name is an alias. */
12391 #if defined (__stub_crypt) || defined (__stub___crypt)
12399 if { (eval echo configure:12400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12401 eval "ac_cv_func_crypt=yes"
12403 echo "configure: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12406 eval "ac_cv_func_crypt=no"
12411 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12412 echo "$ac_t""yes" 1>&6
12415 echo "$ac_t""no" 1>&6
12417 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12418 echo "configure:12419: checking for crypt in -lcrypt" >&5
12419 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12420 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12421 echo $ac_n "(cached) $ac_c" 1>&6
12423 ac_save_LIBS="$LIBS"
12424 LIBS="-lcrypt $LIBS"
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12428 /* Override any gcc2 internal prototype to avoid an error. */
12429 /* We use char because int might match the return type of a gcc2
12430 builtin and then its argument prototype would still apply. */
12437 if { (eval echo configure:12438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12439 eval "ac_cv_lib_$ac_lib_var=yes"
12441 echo "configure: failed program was:" >&5
12442 cat conftest.$ac_ext >&5
12444 eval "ac_cv_lib_$ac_lib_var=no"
12447 LIBS="$ac_save_LIBS"
12450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12451 echo "$ac_t""yes" 1>&6
12452 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12455 echo "$ac_t""no" 1>&6
12462 if test $have_crypt = yes ; then
12463 cat >> confdefs.h <<\EOF
12464 #define HAVE_CRYPT 1
12468 echo "configure: warning: could not find crypt" 1>&2
12469 if test $ol_enable_crypt = yes ; then
12470 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12473 echo "configure: warning: disabling crypt support" 1>&2
12478 # FreeBSD (and others) have setproctitle(3) in -lutil
12479 if test $ol_enable_proctitle != no ; then
12480 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12481 echo "configure:12482: checking for setproctitle" >&5
12482 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12483 echo $ac_n "(cached) $ac_c" 1>&6
12485 cat > conftest.$ac_ext <<EOF
12486 #line 12487 "configure"
12487 #include "confdefs.h"
12488 /* System header to define __stub macros and hopefully few prototypes,
12489 which can conflict with char setproctitle(); below. */
12490 #include <assert.h>
12491 /* Override any gcc2 internal prototype to avoid an error. */
12492 /* We use char because int might match the return type of a gcc2
12493 builtin and then its argument prototype would still apply. */
12494 char setproctitle();
12499 /* The GNU C library defines this for functions which it implements
12500 to always fail with ENOSYS. Some functions are actually named
12501 something starting with __ and the normal name is an alias. */
12502 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12510 if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12512 eval "ac_cv_func_setproctitle=yes"
12514 echo "configure: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12517 eval "ac_cv_func_setproctitle=no"
12522 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12523 echo "$ac_t""yes" 1>&6
12524 have_setproctitle=yes
12526 echo "$ac_t""no" 1>&6
12528 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12529 echo "configure:12530: checking for setproctitle in -lutil" >&5
12530 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12531 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12532 echo $ac_n "(cached) $ac_c" 1>&6
12534 ac_save_LIBS="$LIBS"
12535 LIBS="-lutil $LIBS"
12536 cat > conftest.$ac_ext <<EOF
12537 #line 12538 "configure"
12538 #include "confdefs.h"
12539 /* Override any gcc2 internal prototype to avoid an error. */
12540 /* We use char because int might match the return type of a gcc2
12541 builtin and then its argument prototype would still apply. */
12542 char setproctitle();
12548 if { (eval echo configure:12549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12550 eval "ac_cv_lib_$ac_lib_var=yes"
12552 echo "configure: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12555 eval "ac_cv_lib_$ac_lib_var=no"
12558 LIBS="$ac_save_LIBS"
12561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12562 echo "$ac_t""yes" 1>&6
12563 have_setproctitle=yes
12564 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12566 echo "$ac_t""no" 1>&6
12567 have_setproctitle=no
12568 LIBOBJS="$LIBOBJS setproctitle.o"
12574 if test $have_setproctitle = yes ; then
12575 cat >> confdefs.h <<\EOF
12576 #define HAVE_SETPROCTITLE 1
12582 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12583 echo "configure:12584: checking for uid_t in sys/types.h" >&5
12584 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
12585 echo $ac_n "(cached) $ac_c" 1>&6
12587 cat > conftest.$ac_ext <<EOF
12588 #line 12589 "configure"
12589 #include "confdefs.h"
12590 #include <sys/types.h>
12592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12593 egrep "uid_t" >/dev/null 2>&1; then
12595 ac_cv_type_uid_t=yes
12598 ac_cv_type_uid_t=no
12604 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12605 if test $ac_cv_type_uid_t = no; then
12606 cat >> confdefs.h <<\EOF
12610 cat >> confdefs.h <<\EOF
12616 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
12617 echo "configure:12618: checking type of array argument to getgroups" >&5
12618 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12621 if test "$cross_compiling" = yes; then
12622 ac_cv_type_getgroups=cross
12624 cat > conftest.$ac_ext <<EOF
12625 #line 12626 "configure"
12626 #include "confdefs.h"
12628 /* Thanks to Mike Rendell for this test. */
12629 #include <sys/types.h>
12632 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12635 gid_t gidset[NGID];
12637 union { gid_t gval; long lval; } val;
12640 for (i = 0; i < NGID; i++)
12641 gidset[i] = val.gval;
12642 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12644 /* Exit non-zero if getgroups seems to require an array of ints. This
12645 happens when gid_t is short but getgroups modifies an array of ints. */
12646 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12650 if { (eval echo configure:12651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12652 ac_cv_type_getgroups=gid_t
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12657 ac_cv_type_getgroups=int
12662 if test $ac_cv_type_getgroups = cross; then
12663 cat > conftest.$ac_ext <<EOF
12664 #line 12665 "configure"
12665 #include "confdefs.h"
12666 #include <unistd.h>
12668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12669 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12671 ac_cv_type_getgroups=gid_t
12674 ac_cv_type_getgroups=int
12681 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
12682 cat >> confdefs.h <<EOF
12683 #define GETGROUPS_T $ac_cv_type_getgroups
12686 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12687 echo "configure:12688: checking for ANSI C header files" >&5
12688 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
12689 echo $ac_n "(cached) $ac_c" 1>&6
12691 cat > conftest.$ac_ext <<EOF
12692 #line 12693 "configure"
12693 #include "confdefs.h"
12694 #include <stdlib.h>
12695 #include <stdarg.h>
12696 #include <string.h>
12699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12700 { (eval echo configure:12701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12702 if test -z "$ac_err"; then
12704 ac_cv_header_stdc=yes
12707 echo "configure: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12710 ac_cv_header_stdc=no
12714 if test $ac_cv_header_stdc = yes; then
12715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719 #include <string.h>
12721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12722 egrep "memchr" >/dev/null 2>&1; then
12726 ac_cv_header_stdc=no
12732 if test $ac_cv_header_stdc = yes; then
12733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12734 cat > conftest.$ac_ext <<EOF
12735 #line 12736 "configure"
12736 #include "confdefs.h"
12737 #include <stdlib.h>
12739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12740 egrep "free" >/dev/null 2>&1; then
12744 ac_cv_header_stdc=no
12750 if test $ac_cv_header_stdc = yes; then
12751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12752 if test "$cross_compiling" = yes; then
12755 cat > conftest.$ac_ext <<EOF
12756 #line 12757 "configure"
12757 #include "confdefs.h"
12759 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12760 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12762 int main () { int i; for (i = 0; i < 256; i++)
12763 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12767 if { (eval echo configure:12768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12771 echo "configure: failed program was:" >&5
12772 cat conftest.$ac_ext >&5
12774 ac_cv_header_stdc=no
12782 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12783 if test $ac_cv_header_stdc = yes; then
12784 cat >> confdefs.h <<\EOF
12785 #define STDC_HEADERS 1
12790 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12791 echo "configure:12792: checking for mode_t" >&5
12792 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
12793 echo $ac_n "(cached) $ac_c" 1>&6
12795 cat > conftest.$ac_ext <<EOF
12796 #line 12797 "configure"
12797 #include "confdefs.h"
12798 #include <sys/types.h>
12800 #include <stdlib.h>
12801 #include <stddef.h>
12804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12805 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12807 eval "ac_cv_type_mode_t=yes"
12810 eval "ac_cv_type_mode_t=no"
12815 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
12816 echo "$ac_t""yes" 1>&6
12818 echo "$ac_t""no" 1>&6
12819 cat >> confdefs.h <<EOF
12825 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12826 echo "configure:12827: checking for off_t" >&5
12827 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
12828 echo $ac_n "(cached) $ac_c" 1>&6
12830 cat > conftest.$ac_ext <<EOF
12831 #line 12832 "configure"
12832 #include "confdefs.h"
12833 #include <sys/types.h>
12835 #include <stdlib.h>
12836 #include <stddef.h>
12839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12840 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12842 eval "ac_cv_type_off_t=yes"
12845 eval "ac_cv_type_off_t=no"
12850 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
12851 echo "$ac_t""yes" 1>&6
12853 echo "$ac_t""no" 1>&6
12854 cat >> confdefs.h <<EOF
12860 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12861 echo "configure:12862: checking for pid_t" >&5
12862 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
12863 echo $ac_n "(cached) $ac_c" 1>&6
12865 cat > conftest.$ac_ext <<EOF
12866 #line 12867 "configure"
12867 #include "confdefs.h"
12868 #include <sys/types.h>
12870 #include <stdlib.h>
12871 #include <stddef.h>
12874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12875 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12877 eval "ac_cv_type_pid_t=yes"
12880 eval "ac_cv_type_pid_t=no"
12885 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
12886 echo "$ac_t""yes" 1>&6
12888 echo "$ac_t""no" 1>&6
12889 cat >> confdefs.h <<EOF
12895 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
12896 echo "configure:12897: checking for ptrdiff_t" >&5
12897 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
12898 echo $ac_n "(cached) $ac_c" 1>&6
12900 cat > conftest.$ac_ext <<EOF
12901 #line 12902 "configure"
12902 #include "confdefs.h"
12903 #include <stddef.h>
12908 if { (eval echo configure:12909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12910 am_cv_type_ptrdiff_t=yes
12912 echo "configure: failed program was:" >&5
12913 cat conftest.$ac_ext >&5
12915 am_cv_type_ptrdiff_t=no
12920 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
12921 if test $am_cv_type_ptrdiff_t = yes; then
12922 cat >> confdefs.h <<\EOF
12923 #define HAVE_PTRDIFF_T 1
12928 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
12929 echo "configure:12930: checking return type of signal handlers" >&5
12930 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
12931 echo $ac_n "(cached) $ac_c" 1>&6
12933 cat > conftest.$ac_ext <<EOF
12934 #line 12935 "configure"
12935 #include "confdefs.h"
12936 #include <sys/types.h>
12937 #include <signal.h>
12942 extern "C" void (*signal (int, void (*)(int)))(int);
12944 void (*signal ()) ();
12951 if { (eval echo configure:12952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12953 ac_cv_type_signal=void
12955 echo "configure: failed program was:" >&5
12956 cat conftest.$ac_ext >&5
12958 ac_cv_type_signal=int
12963 echo "$ac_t""$ac_cv_type_signal" 1>&6
12964 cat >> confdefs.h <<EOF
12965 #define RETSIGTYPE $ac_cv_type_signal
12969 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
12970 echo "configure:12971: checking for sig_atomic_t" >&5
12971 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
12972 echo $ac_n "(cached) $ac_c" 1>&6
12974 cat > conftest.$ac_ext <<EOF
12975 #line 12976 "configure"
12976 #include "confdefs.h"
12977 #include <signal.h>
12979 sig_atomic_t atomic;
12982 if { (eval echo configure:12983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12984 ol_cv_type_sig_atomic_t=yes
12986 echo "configure: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12989 ol_cv_type_sig_atomic_t=no
12994 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
12995 if test $ol_cv_type_sig_atomic_t = no; then
12996 cat >> confdefs.h <<\EOF
12997 #define sig_atomic_t int
13002 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13003 echo "configure:13004: checking for size_t" >&5
13004 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13005 echo $ac_n "(cached) $ac_c" 1>&6
13007 cat > conftest.$ac_ext <<EOF
13008 #line 13009 "configure"
13009 #include "confdefs.h"
13010 #include <sys/types.h>
13012 #include <stdlib.h>
13013 #include <stddef.h>
13016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13017 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13019 eval "ac_cv_type_size_t=yes"
13022 eval "ac_cv_type_size_t=no"
13027 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13028 echo "$ac_t""yes" 1>&6
13030 echo "$ac_t""no" 1>&6
13031 cat >> confdefs.h <<EOF
13032 #define size_t unsigned
13037 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13038 echo "configure:13039: checking for socklen_t" >&5
13039 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13040 echo $ac_n "(cached) $ac_c" 1>&6
13042 cat > conftest.$ac_ext <<EOF
13043 #line 13044 "configure"
13044 #include "confdefs.h"
13046 #ifdef HAVE_SYS_TYPES_H
13047 #include <sys/types.h>
13049 #ifdef HAVE_SYS_SOCKET_H
13050 #include <sys/socket.h>
13057 if { (eval echo configure:13058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13059 ol_cv_type_socklen_t=yes
13061 echo "configure: failed program was:" >&5
13062 cat conftest.$ac_ext >&5
13064 ol_cv_type_socklen_t=no
13069 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13070 if test $ol_cv_type_socklen_t = no; then
13071 cat >> confdefs.h <<\EOF
13072 #define socklen_t int
13077 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13078 echo "configure:13079: checking for member st_blksize in aggregate type struct stat" >&5
13079 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13080 echo $ac_n "(cached) $ac_c" 1>&6
13082 cat > conftest.$ac_ext <<EOF
13083 #line 13084 "configure"
13084 #include "confdefs.h"
13085 #include <sys/types.h>
13086 #include <sys/stat.h>
13088 struct stat foo; foo.st_blksize;
13091 if { (eval echo configure:13092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13093 ac_cv_c_struct_member_st_blksize=yes
13095 echo "configure: failed program was:" >&5
13096 cat conftest.$ac_ext >&5
13098 ac_cv_c_struct_member_st_blksize=no
13103 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13104 st_blksize="$ac_cv_c_struct_member_st_blksize"
13105 if test $ac_cv_c_struct_member_st_blksize = yes; then
13106 cat >> confdefs.h <<\EOF
13107 #define HAVE_ST_BLKSIZE 1
13112 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13113 echo "configure:13114: checking whether time.h and sys/time.h may both be included" >&5
13114 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13117 cat > conftest.$ac_ext <<EOF
13118 #line 13119 "configure"
13119 #include "confdefs.h"
13120 #include <sys/types.h>
13121 #include <sys/time.h>
13127 if { (eval echo configure:13128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13129 ac_cv_header_time=yes
13131 echo "configure: failed program was:" >&5
13132 cat conftest.$ac_ext >&5
13134 ac_cv_header_time=no
13139 echo "$ac_t""$ac_cv_header_time" 1>&6
13140 if test $ac_cv_header_time = yes; then
13141 cat >> confdefs.h <<\EOF
13142 #define TIME_WITH_SYS_TIME 1
13147 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13148 echo "configure:13149: checking whether struct tm is in sys/time.h or time.h" >&5
13149 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13150 echo $ac_n "(cached) $ac_c" 1>&6
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 #include <sys/types.h>
13158 struct tm *tp; tp->tm_sec;
13161 if { (eval echo configure:13162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13163 ac_cv_struct_tm=time.h
13165 echo "configure: failed program was:" >&5
13166 cat conftest.$ac_ext >&5
13168 ac_cv_struct_tm=sys/time.h
13173 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13174 if test $ac_cv_struct_tm = sys/time.h; then
13175 cat >> confdefs.h <<\EOF
13176 #define TM_IN_SYS_TIME 1
13181 # test for pw_gecos in struct passwd
13182 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13183 echo "configure:13184: checking struct passwd for pw_gecos" >&5
13184 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
13188 cat > conftest.$ac_ext <<EOF
13189 #line 13190 "configure"
13190 #include "confdefs.h"
13195 pwd.pw_gecos = pwd.pw_name;
13199 if { (eval echo configure:13200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13201 ol_cv_struct_passwd_pw_gecos=yes
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13206 ol_cv_struct_passwd_pw_gecos=no
13211 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13212 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13213 cat >> confdefs.h <<\EOF
13214 #define HAVE_PW_GECOS 1
13219 # test for pw_passwd in struct passwd
13220 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13221 echo "configure:13222: checking struct passwd for pw_passwd" >&5
13222 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13226 cat > conftest.$ac_ext <<EOF
13227 #line 13228 "configure"
13228 #include "confdefs.h"
13233 pwd.pw_passwd = pwd.pw_name;
13237 if { (eval echo configure:13238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13239 ol_cv_struct_passwd_pw_passwd=yes
13241 echo "configure: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13244 ol_cv_struct_passwd_pw_passwd=no
13249 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13250 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13251 cat >> confdefs.h <<\EOF
13252 #define HAVE_PW_PASSWD 1
13258 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13259 echo "configure:13260: checking if toupper() requires islower()" >&5
13260 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13261 echo $ac_n "(cached) $ac_c" 1>&6
13264 if test "$cross_compiling" = yes; then
13265 ol_cv_c_upper_lower=safe
13267 cat > conftest.$ac_ext <<EOF
13268 #line 13269 "configure"
13269 #include "confdefs.h"
13274 if ('C' == toupper('C'))
13280 if { (eval echo configure:13281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13282 ol_cv_c_upper_lower=no
13284 echo "configure: failed program was:" >&5
13285 cat conftest.$ac_ext >&5
13287 ol_cv_c_upper_lower=yes
13294 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13295 if test $ol_cv_c_upper_lower != no ; then
13296 cat >> confdefs.h <<\EOF
13297 #define C_UPPER_LOWER 1
13302 echo $ac_n "checking for working const""... $ac_c" 1>&6
13303 echo "configure:13304: checking for working const" >&5
13304 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13305 echo $ac_n "(cached) $ac_c" 1>&6
13307 cat > conftest.$ac_ext <<EOF
13308 #line 13309 "configure"
13309 #include "confdefs.h"
13313 /* Ultrix mips cc rejects this. */
13314 typedef int charset[2]; const charset x;
13315 /* SunOS 4.1.1 cc rejects this. */
13316 char const *const *ccp;
13318 /* NEC SVR4.0.2 mips cc rejects this. */
13319 struct point {int x, y;};
13320 static struct point const zero = {0,0};
13321 /* AIX XL C 1.02.0.0 rejects this.
13322 It does not let you subtract one const X* pointer from another in an arm
13323 of an if-expression whose if-part is not a constant expression */
13324 const char *g = "string";
13325 ccp = &g + (g ? g-g : 0);
13326 /* HPUX 7.0 cc rejects these. */
13329 ccp = (char const *const *) p;
13330 { /* SCO 3.2v4 cc rejects this. */
13332 char const *s = 0 ? (char *) 0 : (char const *) 0;
13336 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13337 int x[] = {25, 17};
13338 const int *foo = &x[0];
13341 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13342 typedef const int *iptr;
13346 { /* AIX XL C 1.02.0.0 rejects this saying
13347 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13348 struct s { int j; const int *ap[3]; };
13349 struct s *b; b->j = 5;
13351 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13352 const int foo = 10;
13357 if { (eval echo configure:13358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13361 echo "configure: failed program was:" >&5
13362 cat conftest.$ac_ext >&5
13369 echo "$ac_t""$ac_cv_c_const" 1>&6
13370 if test $ac_cv_c_const = no; then
13371 cat >> confdefs.h <<\EOF
13377 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13378 echo "configure:13379: checking if compiler understands volatile" >&5
13379 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
13382 cat > conftest.$ac_ext <<EOF
13383 #line 13384 "configure"
13384 #include "confdefs.h"
13387 volatile int a; int * volatile b = x ? &y : &z;
13388 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13392 if { (eval echo configure:13393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13394 ol_cv_c_volatile=yes
13396 echo "configure: failed program was:" >&5
13397 cat conftest.$ac_ext >&5
13399 ol_cv_c_volatile=no
13404 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13405 if test $ol_cv_c_volatile = yes; then
13408 cat >> confdefs.h <<\EOF
13415 if test $cross_compiling = yes ; then
13416 cat >> confdefs.h <<\EOF
13417 #define CROSS_COMPILING 1
13421 cat >> confdefs.h <<\EOF
13422 #define LBER_INT_T long
13425 cat >> confdefs.h <<\EOF
13426 #define LBER_TAG_T long
13429 cat >> confdefs.h <<\EOF
13430 #define LBER_SOCKET_T int
13435 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13436 echo "configure:13437: checking whether byte ordering is bigendian" >&5
13437 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13438 echo $ac_n "(cached) $ac_c" 1>&6
13440 ac_cv_c_bigendian=unknown
13441 # See if sys/param.h defines the BYTE_ORDER macro.
13442 cat > conftest.$ac_ext <<EOF
13443 #line 13444 "configure"
13444 #include "confdefs.h"
13445 #include <sys/types.h>
13446 #include <sys/param.h>
13449 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13450 bogus endian macros
13454 if { (eval echo configure:13455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13456 # It does; now see whether it defined to BIG_ENDIAN or not.
13457 cat > conftest.$ac_ext <<EOF
13458 #line 13459 "configure"
13459 #include "confdefs.h"
13460 #include <sys/types.h>
13461 #include <sys/param.h>
13464 #if BYTE_ORDER != BIG_ENDIAN
13469 if { (eval echo configure:13470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13471 ac_cv_c_bigendian=yes
13473 echo "configure: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13476 ac_cv_c_bigendian=no
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13484 if test $ac_cv_c_bigendian = unknown; then
13485 if test "$cross_compiling" = yes; then
13486 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13488 cat > conftest.$ac_ext <<EOF
13489 #line 13490 "configure"
13490 #include "confdefs.h"
13492 /* Are we little or big endian? From Harbison&Steele. */
13496 char c[sizeof (long)];
13499 exit (u.c[sizeof (long) - 1] == 1);
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13504 ac_cv_c_bigendian=no
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13509 ac_cv_c_bigendian=yes
13517 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13518 if test $ac_cv_c_bigendian = yes; then
13519 cat >> confdefs.h <<\EOF
13520 #define WORDS_BIGENDIAN 1
13525 echo $ac_n "checking size of short""... $ac_c" 1>&6
13526 echo "configure:13527: checking size of short" >&5
13527 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13528 echo $ac_n "(cached) $ac_c" 1>&6
13530 if test "$cross_compiling" = yes; then
13531 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13533 cat > conftest.$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13539 FILE *f=fopen("conftestval", "w");
13541 fprintf(f, "%d\n", sizeof(short));
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13547 ac_cv_sizeof_short=`cat conftestval`
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13552 ac_cv_sizeof_short=0
13558 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13559 cat >> confdefs.h <<EOF
13560 #define SIZEOF_SHORT $ac_cv_sizeof_short
13564 echo $ac_n "checking size of int""... $ac_c" 1>&6
13565 echo "configure:13566: checking size of int" >&5
13566 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13567 echo $ac_n "(cached) $ac_c" 1>&6
13569 if test "$cross_compiling" = yes; then
13570 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13578 FILE *f=fopen("conftestval", "w");
13580 fprintf(f, "%d\n", sizeof(int));
13584 if { (eval echo configure:13585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13586 ac_cv_sizeof_int=`cat conftestval`
13588 echo "configure: failed program was:" >&5
13589 cat conftest.$ac_ext >&5
13597 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13598 cat >> confdefs.h <<EOF
13599 #define SIZEOF_INT $ac_cv_sizeof_int
13603 echo $ac_n "checking size of long""... $ac_c" 1>&6
13604 echo "configure:13605: checking size of long" >&5
13605 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
13606 echo $ac_n "(cached) $ac_c" 1>&6
13608 if test "$cross_compiling" = yes; then
13609 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13611 cat > conftest.$ac_ext <<EOF
13612 #line 13613 "configure"
13613 #include "confdefs.h"
13617 FILE *f=fopen("conftestval", "w");
13619 fprintf(f, "%d\n", sizeof(long));
13623 if { (eval echo configure:13624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13625 ac_cv_sizeof_long=`cat conftestval`
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13630 ac_cv_sizeof_long=0
13636 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13637 cat >> confdefs.h <<EOF
13638 #define SIZEOF_LONG $ac_cv_sizeof_long
13643 if test "$ac_cv_sizeof_int" -lt 4 ; then
13644 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
13646 cat >> confdefs.h <<\EOF
13647 #define LBER_INT_T long
13650 cat >> confdefs.h <<\EOF
13651 #define LBER_TAG_T long
13654 cat >> confdefs.h <<\EOF
13655 #define LBER_SOCKET_T int
13659 cat >> confdefs.h <<\EOF
13660 #define LBER_INT_T int
13663 cat >> confdefs.h <<\EOF
13664 #define LBER_TAG_T long
13667 cat >> confdefs.h <<\EOF
13668 #define LBER_SOCKET_T int
13674 cat >> confdefs.h <<\EOF
13675 #define LBER_LEN_T long
13679 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
13680 echo "configure:13681: checking for 8-bit clean memcmp" >&5
13681 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
13682 echo $ac_n "(cached) $ac_c" 1>&6
13684 if test "$cross_compiling" = yes; then
13685 ac_cv_func_memcmp_clean=no
13687 cat > conftest.$ac_ext <<EOF
13688 #line 13689 "configure"
13689 #include "confdefs.h"
13693 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13694 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
13698 if { (eval echo configure:13699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13700 ac_cv_func_memcmp_clean=yes
13702 echo "configure: failed program was:" >&5
13703 cat conftest.$ac_ext >&5
13705 ac_cv_func_memcmp_clean=no
13712 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
13713 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
13715 echo $ac_n "checking for strftime""... $ac_c" 1>&6
13716 echo "configure:13717: checking for strftime" >&5
13717 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
13718 echo $ac_n "(cached) $ac_c" 1>&6
13720 cat > conftest.$ac_ext <<EOF
13721 #line 13722 "configure"
13722 #include "confdefs.h"
13723 /* System header to define __stub macros and hopefully few prototypes,
13724 which can conflict with char strftime(); below. */
13725 #include <assert.h>
13726 /* Override any gcc2 internal prototype to avoid an error. */
13727 /* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */
13734 /* The GNU C library defines this for functions which it implements
13735 to always fail with ENOSYS. Some functions are actually named
13736 something starting with __ and the normal name is an alias. */
13737 #if defined (__stub_strftime) || defined (__stub___strftime)
13745 if { (eval echo configure:13746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13747 eval "ac_cv_func_strftime=yes"
13749 echo "configure: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13752 eval "ac_cv_func_strftime=no"
13757 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
13758 echo "$ac_t""yes" 1>&6
13759 cat >> confdefs.h <<\EOF
13760 #define HAVE_STRFTIME 1
13764 echo "$ac_t""no" 1>&6
13765 # strftime is in -lintl on SCO UNIX.
13766 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
13767 echo "configure:13768: checking for strftime in -lintl" >&5
13768 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
13769 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13770 echo $ac_n "(cached) $ac_c" 1>&6
13772 ac_save_LIBS="$LIBS"
13773 LIBS="-lintl $LIBS"
13774 cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13777 /* Override any gcc2 internal prototype to avoid an error. */
13778 /* We use char because int might match the return type of a gcc2
13779 builtin and then its argument prototype would still apply. */
13786 if { (eval echo configure:13787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13788 eval "ac_cv_lib_$ac_lib_var=yes"
13790 echo "configure: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13793 eval "ac_cv_lib_$ac_lib_var=no"
13796 LIBS="$ac_save_LIBS"
13799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13800 echo "$ac_t""yes" 1>&6
13801 cat >> confdefs.h <<\EOF
13802 #define HAVE_STRFTIME 1
13805 LIBS="-lintl $LIBS"
13807 echo "$ac_t""no" 1>&6
13813 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
13814 echo "configure:13815: checking for inet_aton()" >&5
13815 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
13816 echo $ac_n "(cached) $ac_c" 1>&6
13818 cat > conftest.$ac_ext <<EOF
13819 #line 13820 "configure"
13820 #include "confdefs.h"
13822 #ifdef HAVE_SYS_TYPES_H
13823 # include <sys/types.h>
13825 #ifdef HAVE_SYS_SOCKET_H
13826 # include <sys/socket.h>
13827 # ifdef HAVE_SYS_SELECT_H
13828 # include <sys/select.h>
13830 # include <netinet/in.h>
13831 # ifdef HAVE_ARPA_INET_H
13832 # include <arpa/inet.h>
13838 int rc = inet_aton( "255.255.255.255", &in );
13841 if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13843 ol_cv_func_inet_aton=yes
13845 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13848 ol_cv_func_inet_aton=no
13853 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
13854 if test $ol_cv_func_inet_aton != no; then
13855 cat >> confdefs.h <<\EOF
13856 #define HAVE_INET_ATON 1
13862 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13863 echo "configure:13864: checking for vprintf" >&5
13864 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
13865 echo $ac_n "(cached) $ac_c" 1>&6
13867 cat > conftest.$ac_ext <<EOF
13868 #line 13869 "configure"
13869 #include "confdefs.h"
13870 /* System header to define __stub macros and hopefully few prototypes,
13871 which can conflict with char vprintf(); below. */
13872 #include <assert.h>
13873 /* Override any gcc2 internal prototype to avoid an error. */
13874 /* We use char because int might match the return type of a gcc2
13875 builtin and then its argument prototype would still apply. */
13881 /* The GNU C library defines this for functions which it implements
13882 to always fail with ENOSYS. Some functions are actually named
13883 something starting with __ and the normal name is an alias. */
13884 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13892 if { (eval echo configure:13893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13894 eval "ac_cv_func_vprintf=yes"
13896 echo "configure: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13899 eval "ac_cv_func_vprintf=no"
13904 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13905 echo "$ac_t""yes" 1>&6
13906 cat >> confdefs.h <<\EOF
13907 #define HAVE_VPRINTF 1
13911 echo "$ac_t""no" 1>&6
13914 if test "$ac_cv_func_vprintf" != yes; then
13915 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13916 echo "configure:13917: checking for _doprnt" >&5
13917 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
13918 echo $ac_n "(cached) $ac_c" 1>&6
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13923 /* System header to define __stub macros and hopefully few prototypes,
13924 which can conflict with char _doprnt(); below. */
13925 #include <assert.h>
13926 /* Override any gcc2 internal prototype to avoid an error. */
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13934 /* The GNU C library defines this for functions which it implements
13935 to always fail with ENOSYS. Some functions are actually named
13936 something starting with __ and the normal name is an alias. */
13937 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13945 if { (eval echo configure:13946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13947 eval "ac_cv_func__doprnt=yes"
13949 echo "configure: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13952 eval "ac_cv_func__doprnt=no"
13957 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13958 echo "$ac_t""yes" 1>&6
13959 cat >> confdefs.h <<\EOF
13960 #define HAVE_DOPRNT 1
13964 echo "$ac_t""no" 1>&6
13970 if test $ac_cv_func_vprintf = yes ; then
13971 for ac_func in vsnprintf vsprintf
13973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13974 echo "configure:13975: checking for $ac_func" >&5
13975 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13976 echo $ac_n "(cached) $ac_c" 1>&6
13978 cat > conftest.$ac_ext <<EOF
13979 #line 13980 "configure"
13980 #include "confdefs.h"
13981 /* System header to define __stub macros and hopefully few prototypes,
13982 which can conflict with char $ac_func(); below. */
13983 #include <assert.h>
13984 /* Override any gcc2 internal prototype to avoid an error. */
13985 /* We use char because int might match the return type of a gcc2
13986 builtin and then its argument prototype would still apply. */
13992 /* The GNU C library defines this for functions which it implements
13993 to always fail with ENOSYS. Some functions are actually named
13994 something starting with __ and the normal name is an alias. */
13995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14003 if { (eval echo configure:14004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14005 eval "ac_cv_func_$ac_func=yes"
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14010 eval "ac_cv_func_$ac_func=no"
14015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14016 echo "$ac_t""yes" 1>&6
14017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14018 cat >> confdefs.h <<EOF
14019 #define $ac_tr_func 1
14023 echo "$ac_t""no" 1>&6
14079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14080 echo "configure:14081: checking for $ac_func" >&5
14081 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14082 echo $ac_n "(cached) $ac_c" 1>&6
14084 cat > conftest.$ac_ext <<EOF
14085 #line 14086 "configure"
14086 #include "confdefs.h"
14087 /* System header to define __stub macros and hopefully few prototypes,
14088 which can conflict with char $ac_func(); below. */
14089 #include <assert.h>
14090 /* Override any gcc2 internal prototype to avoid an error. */
14091 /* We use char because int might match the return type of a gcc2
14092 builtin and then its argument prototype would still apply. */
14098 /* The GNU C library defines this for functions which it implements
14099 to always fail with ENOSYS. Some functions are actually named
14100 something starting with __ and the normal name is an alias. */
14101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14111 eval "ac_cv_func_$ac_func=yes"
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14116 eval "ac_cv_func_$ac_func=no"
14121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14122 echo "$ac_t""yes" 1>&6
14123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14124 cat >> confdefs.h <<EOF
14125 #define $ac_tr_func 1
14129 echo "$ac_t""no" 1>&6
14134 for ac_func in getopt tempnam
14136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14137 echo "configure:14138: checking for $ac_func" >&5
14138 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14139 echo $ac_n "(cached) $ac_c" 1>&6
14141 cat > conftest.$ac_ext <<EOF
14142 #line 14143 "configure"
14143 #include "confdefs.h"
14144 /* System header to define __stub macros and hopefully few prototypes,
14145 which can conflict with char $ac_func(); below. */
14146 #include <assert.h>
14147 /* Override any gcc2 internal prototype to avoid an error. */
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14168 eval "ac_cv_func_$ac_func=yes"
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14173 eval "ac_cv_func_$ac_func=no"
14178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14179 echo "$ac_t""yes" 1>&6
14180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14181 cat >> confdefs.h <<EOF
14182 #define $ac_tr_func 1
14186 echo "$ac_t""no" 1>&6
14187 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14193 # Check Configuration
14194 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14195 echo "configure:14196: checking declaration of sys_errlist" >&5
14196 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
14197 echo $ac_n "(cached) $ac_c" 1>&6
14200 cat > conftest.$ac_ext <<EOF
14201 #line 14202 "configure"
14202 #include "confdefs.h"
14205 #include <sys/types.h>
14208 char *c = (char *) *sys_errlist
14211 if { (eval echo configure:14212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14213 ol_cv_dcl_sys_errlist=yes
14214 ol_cv_have_sys_errlist=yes
14216 echo "configure: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14219 ol_cv_dcl_sys_errlist=no
14224 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14226 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14227 if test $ol_cv_dcl_sys_errlist = no ; then
14228 cat >> confdefs.h <<\EOF
14229 #define DECL_SYS_ERRLIST 1
14233 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14234 echo "configure:14235: checking existence of sys_errlist" >&5
14235 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
14236 echo $ac_n "(cached) $ac_c" 1>&6
14239 cat > conftest.$ac_ext <<EOF
14240 #line 14241 "configure"
14241 #include "confdefs.h"
14244 char *c = (char *) *sys_errlist
14247 if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14249 ol_cv_have_sys_errlist=yes
14251 echo "configure: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14254 ol_cv_have_sys_errlist=no
14259 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14261 if test $ol_cv_have_sys_errlist = yes ; then
14262 cat >> confdefs.h <<\EOF
14263 #define HAVE_SYS_ERRLIST 1
14270 if test "$ol_enable_debug" != no ; then
14271 cat >> confdefs.h <<\EOF
14272 #define LDAP_DEBUG 1
14276 if test "$ol_enable_syslog" = yes ; then
14277 cat >> confdefs.h <<\EOF
14278 #define LDAP_SYSLOG 1
14282 if test "$ol_enable_libui" = yes ; then
14283 cat >> confdefs.h <<\EOF
14284 #define LDAP_LIBUI 1
14288 if test "$ol_enable_cache" = no ; then
14289 cat >> confdefs.h <<\EOF
14290 #define LDAP_NOCACHE 1
14294 if test "$ol_enable_dns" != no ; then
14295 cat >> confdefs.h <<\EOF
14296 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14300 if test "$ol_enable_proctitle" != no ; then
14301 cat >> confdefs.h <<\EOF
14302 #define LDAP_PROCTITLE 1
14306 if test "$ol_enable_referrals" != no ; then
14307 cat >> confdefs.h <<\EOF
14308 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14312 if test "$ol_enable_cldap" != no ; then
14313 cat >> confdefs.h <<\EOF
14314 #define LDAP_CONNECTIONLESS 1
14319 if test "$ol_enable_crypt" != no ; then
14320 cat >> confdefs.h <<\EOF
14321 #define SLAPD_CRYPT 1
14325 if test "$ol_enable_cleartext" != no ; then
14326 cat >> confdefs.h <<\EOF
14327 #define SLAPD_CLEARTEXT 1
14331 if test "$ol_enable_multimaster" != no ; then
14332 cat >> confdefs.h <<\EOF
14333 #define SLAPD_MULTIMASTER 1
14337 if test "$ol_enable_phonetic" != no ; then
14338 cat >> confdefs.h <<\EOF
14339 #define SLAPD_PHONETIC 1
14343 if test "$ol_enable_rlookups" != no ; then
14344 cat >> confdefs.h <<\EOF
14345 #define SLAPD_RLOOKUPS 1
14349 if test "$ol_enable_aci" != no ; then
14350 cat >> confdefs.h <<\EOF
14351 #define SLAPD_ACI_ENABLED 1
14355 if test "$ol_enable_discreteaci" != no ; then
14356 cat >> confdefs.h <<\EOF
14357 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14362 if test "$ol_link_modules" != no ; then
14363 cat >> confdefs.h <<\EOF
14364 #define SLAPD_MODULES 1
14368 MODULES_LIBS=-lltdl
14369 SLAPD_MODULES_LDFLAGS="-dlopen self"
14372 if test "$ol_link_bdb2" != no ; then
14373 cat >> confdefs.h <<\EOF
14374 #define SLAPD_BDB2 1
14379 if test "$ol_with_bdb2_module" != static ; then
14380 cat >> confdefs.h <<\EOF
14381 #define SLAPD_BDB2_DYNAMIC 1
14385 BUILD_BDB2_DYNAMIC=shared
14386 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14390 if test "$ol_enable_ldap" != no ; then
14391 cat >> confdefs.h <<\EOF
14392 #define SLAPD_LDAP 1
14397 if test "$ol_with_ldap_module" != static ; then
14398 cat >> confdefs.h <<\EOF
14399 #define SLAPD_LDAP_DYNAMIC 1
14403 BUILD_LDAP_DYNAMIC=shared
14404 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
14408 if test "$ol_link_ldbm" != no ; then
14409 cat >> confdefs.h <<\EOF
14410 #define SLAPD_LDBM 1
14415 if test "$ol_with_ldbm_module" != static ; then
14416 cat >> confdefs.h <<\EOF
14417 #define SLAPD_LDBM_DYNAMIC 1
14421 BUILD_LDBM_DYNAMIC=shared
14422 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
14426 if test "$ol_enable_passwd" != no ; then
14427 cat >> confdefs.h <<\EOF
14428 #define SLAPD_PASSWD 1
14433 if test "$ol_with_passwd_module" != static ; then
14434 cat >> confdefs.h <<\EOF
14435 #define SLAPD_PASSWD_DYNAMIC 1
14439 BUILD_PASSWD_DYNAMIC=shared
14440 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
14444 if test "$ol_link_perl" != no ; then
14445 cat >> confdefs.h <<\EOF
14446 #define SLAPD_PERL 1
14451 if test "$ol_with_perl_module" != static ; then
14452 cat >> confdefs.h <<\EOF
14453 #define SLAPD_PERL_DYNAMIC 1
14457 BUILD_PERL_DYNAMIC=shared
14458 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
14462 if test "$ol_enable_shell" != no ; then
14463 cat >> confdefs.h <<\EOF
14464 #define SLAPD_SHELL 1
14469 if test "$ol_with_shell_module" != static ; then
14470 cat >> confdefs.h <<\EOF
14471 #define SLAPD_SHELL_DYNAMIC 1
14475 BUILD_SHELL_DYNAMIC=shared
14476 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
14480 if test "$ol_enable_tcl" != no ; then
14481 cat >> confdefs.h <<\EOF
14482 #define SLAPD_TCL 1
14487 if test "$ol_with_tcl_module" != static; then
14488 cat >> confdefs.h <<\EOF
14489 #define SLAPD_TCL_DYNAMIC 1
14493 BUILD_TCL_DYNAMIC=shared
14494 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
14498 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
14499 $BUILD_SLAPD = yes ; then
14503 if test "$ol_link_isode" != no ; then
14553 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14556 # Let make expand exec_prefix.
14557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14559 # Any assignment to VPATH causes Sun make to only execute
14560 # the first set of double-colon rules, so remove it if not needed.
14561 # If there is a colon in the path, we need to keep it.
14562 if test "x$srcdir" = x.; then
14563 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14566 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14568 DEFS=-DHAVE_CONFIG_H
14570 # Without the "./", some shells look in PATH for config.status.
14571 : ${CONFIG_STATUS=./config.status}
14573 echo creating $CONFIG_STATUS
14574 rm -f $CONFIG_STATUS
14575 cat > $CONFIG_STATUS <<EOF
14577 # Generated automatically by configure.
14578 # Run this file to recreate the current configuration.
14579 # This directory was configured as follows,
14580 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14582 # $0 $ac_configure_args
14584 # Compiler output produced by configure, useful for debugging
14585 # configure, is in ./config.log if it exists.
14587 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14590 case "\$ac_option" in
14591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14592 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14593 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14594 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14595 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
14597 -help | --help | --hel | --he | --h)
14598 echo "\$ac_cs_usage"; exit 0 ;;
14599 *) echo "\$ac_cs_usage"; exit 1 ;;
14603 ac_given_srcdir=$srcdir
14604 ac_given_INSTALL="$INSTALL"
14606 trap 'rm -fr `echo "\
14607 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14608 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14609 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14610 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14611 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14612 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14613 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14614 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14615 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14616 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14617 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14618 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14619 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14620 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14621 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14622 include/Makefile:build/top.mk:include/Makefile.in \
14623 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14624 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14625 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14626 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14627 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14628 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14629 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14630 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14631 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14632 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14633 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14634 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14635 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14636 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14637 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14638 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14639 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14640 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14641 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14642 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14643 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14644 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14645 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14646 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14647 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14648 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14649 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14651 cat >> $CONFIG_STATUS <<EOF
14653 # Protect against being on the right side of a sed subst in config.status.
14654 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14655 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14659 s%@CFLAGS@%$CFLAGS%g
14660 s%@CPPFLAGS@%$CPPFLAGS%g
14661 s%@CXXFLAGS@%$CXXFLAGS%g
14662 s%@FFLAGS@%$FFLAGS%g
14664 s%@LDFLAGS@%$LDFLAGS%g
14666 s%@exec_prefix@%$exec_prefix%g
14667 s%@prefix@%$prefix%g
14668 s%@program_transform_name@%$program_transform_name%g
14669 s%@bindir@%$bindir%g
14670 s%@sbindir@%$sbindir%g
14671 s%@libexecdir@%$libexecdir%g
14672 s%@datadir@%$datadir%g
14673 s%@sysconfdir@%$sysconfdir%g
14674 s%@sharedstatedir@%$sharedstatedir%g
14675 s%@localstatedir@%$localstatedir%g
14676 s%@libdir@%$libdir%g
14677 s%@includedir@%$includedir%g
14678 s%@oldincludedir@%$oldincludedir%g
14679 s%@infodir@%$infodir%g
14680 s%@mandir@%$mandir%g
14682 s%@host_alias@%$host_alias%g
14683 s%@host_cpu@%$host_cpu%g
14684 s%@host_vendor@%$host_vendor%g
14685 s%@host_os@%$host_os%g
14686 s%@target@%$target%g
14687 s%@target_alias@%$target_alias%g
14688 s%@target_cpu@%$target_cpu%g
14689 s%@target_vendor@%$target_vendor%g
14690 s%@target_os@%$target_os%g
14692 s%@build_alias@%$build_alias%g
14693 s%@build_cpu@%$build_cpu%g
14694 s%@build_vendor@%$build_vendor%g
14695 s%@build_os@%$build_os%g
14696 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14697 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14698 s%@INSTALL_DATA@%$INSTALL_DATA%g
14699 s%@PACKAGE@%$PACKAGE%g
14700 s%@VERSION@%$VERSION%g
14701 s%@ACLOCAL@%$ACLOCAL%g
14702 s%@AUTOCONF@%$AUTOCONF%g
14703 s%@AUTOMAKE@%$AUTOMAKE%g
14704 s%@AUTOHEADER@%$AUTOHEADER%g
14705 s%@MAKEINFO@%$MAKEINFO%g
14706 s%@install_sh@%$install_sh%g
14709 s%@AMTARFLAGS@%$AMTARFLAGS%g
14710 s%@SET_MAKE@%$SET_MAKE%g
14711 s%@top_builddir@%$top_builddir%g
14712 s%@ldap_subdir@%$ldap_subdir%g
14714 s%@RANLIB@%$RANLIB%g
14718 s%@LIBTOOL@%$LIBTOOL%g
14720 s%@SENDMAIL@%$SENDMAIL%g
14721 s%@EDITOR@%$EDITOR%g
14722 s%@FINGER@%$FINGER%g
14723 s%@PERLBIN@%$PERLBIN%g
14725 s%@EXEEXT@%$EXEEXT%g
14726 s%@OBJEXT@%$OBJEXT%g
14727 s%@OL_MKDEP@%$OL_MKDEP%g
14728 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
14730 s%@LIBOBJS@%$LIBOBJS%g
14731 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
14732 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
14733 s%@BUILD_BDB2@%$BUILD_BDB2%g
14734 s%@BUILD_LDAP@%$BUILD_LDAP%g
14735 s%@BUILD_LDBM@%$BUILD_LDBM%g
14736 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
14737 s%@BUILD_PERL@%$BUILD_PERL%g
14738 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
14739 s%@BUILD_SHELL@%$BUILD_SHELL%g
14740 s%@BUILD_TCL@%$BUILD_TCL%g
14741 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
14742 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
14743 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
14744 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
14745 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
14746 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
14747 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
14748 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
14749 s%@LDAP_LIBS@%$LDAP_LIBS%g
14750 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
14751 s%@LDIF_LIBS@%$LDIF_LIBS%g
14752 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
14753 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
14754 s%@LDBM_LIBS@%$LDBM_LIBS%g
14755 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
14756 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
14757 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
14758 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
14759 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
14760 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
14761 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
14762 s%@KRB_LIBS@%$KRB_LIBS%g
14763 s%@READLINE_LIBS@%$READLINE_LIBS%g
14764 s%@SASL_LIBS@%$SASL_LIBS%g
14765 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
14766 s%@TLS_LIBS@%$TLS_LIBS%g
14767 s%@MODULES_LIBS@%$MODULES_LIBS%g
14772 cat >> $CONFIG_STATUS <<\EOF
14774 # Split the substitutions into bite-sized pieces for seds with
14775 # small command number limits, like on Digital OSF/1 and HP-UX.
14776 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14777 ac_file=1 # Number of current file.
14778 ac_beg=1 # First line for current file.
14779 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14782 while $ac_more_lines; do
14783 if test $ac_beg -gt 1; then
14784 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14786 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14788 if test ! -s conftest.s$ac_file; then
14789 ac_more_lines=false
14790 rm -f conftest.s$ac_file
14792 if test -z "$ac_sed_cmds"; then
14793 ac_sed_cmds="sed -f conftest.s$ac_file"
14795 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14797 ac_file=`expr $ac_file + 1`
14799 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14802 if test -z "$ac_sed_cmds"; then
14807 cat >> $CONFIG_STATUS <<EOF
14809 CONFIG_FILES=\${CONFIG_FILES-"\
14810 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14811 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14812 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14813 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14814 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14815 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14816 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14817 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14818 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14819 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14820 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14821 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14822 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14823 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14824 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14825 include/Makefile:build/top.mk:include/Makefile.in \
14826 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14827 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14828 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14829 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14830 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14831 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14832 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14833 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14834 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14835 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14836 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14837 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14838 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14839 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14840 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14841 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14842 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14843 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14844 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14845 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14846 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14847 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14848 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14849 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14850 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14851 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14854 cat >> $CONFIG_STATUS <<\EOF
14855 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14856 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14858 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14859 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14860 *) ac_file_in="${ac_file}.in" ;;
14863 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14865 # Remove last slash and all that follows it. Not all systems have dirname.
14866 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14867 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14868 # The file is in a subdirectory.
14869 test ! -d "$ac_dir" && mkdir "$ac_dir"
14870 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14871 # A "../" for each directory in $ac_dir_suffix.
14872 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14874 ac_dir_suffix= ac_dots=
14877 case "$ac_given_srcdir" in
14879 if test -z "$ac_dots"; then top_srcdir=.
14880 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14881 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14882 *) # Relative path.
14883 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14884 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14887 case "$ac_given_INSTALL" in
14888 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14889 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14892 echo creating "$ac_file"
14894 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14896 *Makefile*) ac_comsub="1i\\
14897 # $configure_input" ;;
14901 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14903 s%@configure_input@%$configure_input%g
14904 s%@srcdir@%$srcdir%g
14905 s%@top_srcdir@%$top_srcdir%g
14906 s%@INSTALL@%$INSTALL%g
14907 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14911 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14912 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14914 # ac_d sets the value in "#define NAME VALUE" lines.
14915 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14916 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14919 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14920 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14921 ac_uB='\([ ]\)%\1#\2define\3'
14924 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14925 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14926 ac_eB='$%\1#\2define\3'
14930 if test "${CONFIG_HEADERS+set}" != set; then
14932 cat >> $CONFIG_STATUS <<EOF
14933 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
14935 cat >> $CONFIG_STATUS <<\EOF
14937 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14940 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14941 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14942 *) ac_file_in="${ac_file}.in" ;;
14945 echo creating $ac_file
14947 rm -f conftest.frag conftest.in conftest.out
14948 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14949 cat $ac_file_inputs > conftest.in
14953 # Transform confdefs.h into a sed script conftest.vals that substitutes
14954 # the proper values into config.h.in to produce config.h. And first:
14955 # Protect against being on the right side of a sed subst in config.status.
14956 # Protect against being in an unquoted here document in config.status.
14957 rm -f conftest.vals
14958 cat > conftest.hdr <<\EOF
14961 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14965 sed -n -f conftest.hdr confdefs.h > conftest.vals
14968 # This sed command replaces #undef with comments. This is necessary, for
14969 # example, in the case of _POSIX_SOURCE, which is predefined and required
14970 # on some systems where configure will not decide to define it.
14971 cat >> conftest.vals <<\EOF
14972 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14975 # Break up conftest.vals because some shells have a limit on
14976 # the size of here documents, and old seds have small limits too.
14978 rm -f conftest.tail
14981 ac_lines=`grep -c . conftest.vals`
14982 # grep -c gives empty output for an empty file on some AIX systems.
14983 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14984 # Write a limited-size here document to conftest.frag.
14985 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14986 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14988 sed -f conftest.frag conftest.in > conftest.out
14990 mv conftest.out conftest.in
14991 ' >> $CONFIG_STATUS
14992 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14993 rm -f conftest.vals
14994 mv conftest.tail conftest.vals
14996 rm -f conftest.vals
14998 cat >> $CONFIG_STATUS <<\EOF
14999 rm -f conftest.frag conftest.h
15000 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15001 cat conftest.in >> conftest.h
15003 if cmp -s $ac_file conftest.h 2>/dev/null; then
15004 echo "$ac_file is unchanged"
15007 # Remove last slash and all that follows it. Not all systems have dirname.
15008 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15009 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15010 # The file is in a subdirectory.
15011 test ! -d "$ac_dir" && mkdir "$ac_dir"
15014 mv conftest.h $ac_file
15019 cat >> $CONFIG_STATUS <<EOF
15022 cat >> $CONFIG_STATUS <<\EOF
15025 echo Please \"make depend\" to build dependencies
15029 chmod +x $CONFIG_STATUS
15030 rm -fr confdefs* $ac_clean_files
15031 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1