3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-cyrus-sasl with Cyrus SASL support (auto)"
38 --with-fetch with fetch URL support (auto)"
40 --with-kerberos with Kerberos support (auto)"
42 --with-readline with readline support (auto)"
44 --with-threads use threads (auto)"
46 --with-tls with TLS/SSL support (auto)"
48 --with-yielding-select with implicitly yielding select (auto)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-cleartext enable cleartext passwords (yes)"
56 --enable-crypt enable crypt(3) passwords (auto)"
58 --enable-modules enable dynamic module support (no)"
60 --enable-multimaster enable multimaster replication (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-quipu build quipu migration tools (no)"
66 --enable-rlookups enable reverse lookups (auto)"
68 --enable-wrappers enable tcp wrapper support (no)"
70 --enable-bdb2 enable bdb2 backend (no)"
72 --with-bdb2-module module type (static)"
74 --enable-ldap enable ldap backend (no)"
76 --with-ldap-module module type (static)"
78 --enable-ldbm enable ldbm backend (yes)"
80 --with-ldbm-module module type (static)"
82 --with-ldbm-api use LDBM API (auto)"
84 --with-ldbm-type use LDBM type (auto)"
86 --enable-passwd enable passwd backend (no)"
88 --with-passwd-module module type (static)"
90 --enable-perl enable perl backend (no)"
92 --with-perl-module module type (static)"
94 --enable-shell enable shell backend (no)"
96 --with-shell-module module type (static)"
98 --enable-tcl enable tcl backend (no)"
100 --with-tcl-module module type (static)"
104 --enable-slurpd enable building slurpd (auto)"
106 Library Generation & Linking Options"
108 --enable-static[=PKGS] build static libraries [default=yes]"
110 --enable-shared[=PKGS] build shared libraries [default=yes]"
112 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
114 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
116 --disable-libtool-lock avoid locking (might break parallel builds)"
118 # Initialize some variables set by options.
119 # The variables have the same names as the options, with
120 # dashes changed to underlines.
122 cache_file=./config.cache
131 program_transform_name=s,x,x,
139 bindir='${exec_prefix}/bin'
140 sbindir='${exec_prefix}/sbin'
141 libexecdir='${exec_prefix}/libexec'
142 datadir='${prefix}/share'
143 sysconfdir='${prefix}/etc'
144 sharedstatedir='${prefix}/com'
145 localstatedir='${prefix}/var'
146 libdir='${exec_prefix}/lib'
147 includedir='${prefix}/include'
148 oldincludedir='/usr/include'
149 infodir='${prefix}/info'
150 mandir='${prefix}/man'
152 # Initialize some other variables.
155 SHELL=${CONFIG_SHELL-/bin/sh}
156 # Maximum number of lines to put in a shell here document.
163 # If the previous option needs an argument, assign it.
164 if test -n "$ac_prev"; then
165 eval "$ac_prev=\$ac_option"
171 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
175 # Accept the important Cygnus configure options, so we can diagnose typos.
179 -bindir | --bindir | --bindi | --bind | --bin | --bi)
181 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
182 bindir="$ac_optarg" ;;
184 -build | --build | --buil | --bui | --bu)
186 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
187 build="$ac_optarg" ;;
189 -cache-file | --cache-file | --cache-fil | --cache-fi \
190 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
191 ac_prev=cache_file ;;
192 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
193 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
194 cache_file="$ac_optarg" ;;
196 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
198 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
200 datadir="$ac_optarg" ;;
202 -disable-* | --disable-*)
203 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
209 eval "enable_${ac_feature}=no" ;;
211 -enable-* | --enable-*)
212 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
213 # Reject names that are not valid shell variable names.
214 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
215 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
217 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}='$ac_optarg'" ;;
224 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
225 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
226 | --exec | --exe | --ex)
227 ac_prev=exec_prefix ;;
228 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
229 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
230 | --exec=* | --exe=* | --ex=*)
231 exec_prefix="$ac_optarg" ;;
233 -gas | --gas | --ga | --g)
234 # Obsolete; use --with-gas.
237 -help | --help | --hel | --he)
238 # Omit some internal or obsolete options to make the list less imposing.
239 # This message is too long to be a string in the A/UX 3.1 sh.
241 Usage: configure [options] [host]
242 Options: [defaults in brackets after descriptions]
244 --cache-file=FILE cache test results in FILE
245 --help print this message
246 --no-create do not create output files
247 --quiet, --silent do not print \`checking...' messages
248 --version print the version of autoconf that created configure
249 Directory and file names:
250 --prefix=PREFIX install architecture-independent files in PREFIX
252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
254 --bindir=DIR user executables in DIR [EPREFIX/bin]
255 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
256 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
257 --datadir=DIR read-only architecture-independent data in DIR
259 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
260 --sharedstatedir=DIR modifiable architecture-independent data in DIR
262 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
263 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
264 --includedir=DIR C header files in DIR [PREFIX/include]
265 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
266 --infodir=DIR info documentation in DIR [PREFIX/info]
267 --mandir=DIR man documentation in DIR [PREFIX/man]
268 --srcdir=DIR find the sources in DIR [configure dir or ..]
269 --program-prefix=PREFIX prepend PREFIX to installed program names
270 --program-suffix=SUFFIX append SUFFIX to installed program names
271 --program-transform-name=PROGRAM
272 run sed PROGRAM on installed program names
276 --build=BUILD configure for building on BUILD [BUILD=HOST]
277 --host=HOST configure for HOST [guessed]
278 --target=TARGET configure for TARGET [TARGET=HOST]
279 Features and packages:
280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
282 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
283 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
284 --x-includes=DIR X include files are in DIR
285 --x-libraries=DIR X library files are in DIR
287 if test -n "$ac_help"; then
288 echo "--enable and --with options recognized:$ac_help"
292 -host | --host | --hos | --ho)
294 -host=* | --host=* | --hos=* | --ho=*)
297 -includedir | --includedir | --includedi | --included | --include \
298 | --includ | --inclu | --incl | --inc)
299 ac_prev=includedir ;;
300 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
301 | --includ=* | --inclu=* | --incl=* | --inc=*)
302 includedir="$ac_optarg" ;;
304 -infodir | --infodir | --infodi | --infod | --info | --inf)
306 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
307 infodir="$ac_optarg" ;;
309 -libdir | --libdir | --libdi | --libd)
311 -libdir=* | --libdir=* | --libdi=* | --libd=*)
312 libdir="$ac_optarg" ;;
314 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
315 | --libexe | --libex | --libe)
316 ac_prev=libexecdir ;;
317 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
318 | --libexe=* | --libex=* | --libe=*)
319 libexecdir="$ac_optarg" ;;
321 -localstatedir | --localstatedir | --localstatedi | --localstated \
322 | --localstate | --localstat | --localsta | --localst \
323 | --locals | --local | --loca | --loc | --lo)
324 ac_prev=localstatedir ;;
325 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
326 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
327 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
328 localstatedir="$ac_optarg" ;;
330 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
332 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
333 mandir="$ac_optarg" ;;
336 # Obsolete; use --without-fp.
339 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
343 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
344 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
347 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
348 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
349 | --oldin | --oldi | --old | --ol | --o)
350 ac_prev=oldincludedir ;;
351 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
352 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
353 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
354 oldincludedir="$ac_optarg" ;;
356 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
358 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
359 prefix="$ac_optarg" ;;
361 -program-prefix | --program-prefix | --program-prefi | --program-pref \
362 | --program-pre | --program-pr | --program-p)
363 ac_prev=program_prefix ;;
364 -program-prefix=* | --program-prefix=* | --program-prefi=* \
365 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
366 program_prefix="$ac_optarg" ;;
368 -program-suffix | --program-suffix | --program-suffi | --program-suff \
369 | --program-suf | --program-su | --program-s)
370 ac_prev=program_suffix ;;
371 -program-suffix=* | --program-suffix=* | --program-suffi=* \
372 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
373 program_suffix="$ac_optarg" ;;
375 -program-transform-name | --program-transform-name \
376 | --program-transform-nam | --program-transform-na \
377 | --program-transform-n | --program-transform- \
378 | --program-transform | --program-transfor \
379 | --program-transfo | --program-transf \
380 | --program-trans | --program-tran \
381 | --progr-tra | --program-tr | --program-t)
382 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
393 | -silent | --silent | --silen | --sile | --sil)
396 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
398 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
400 sbindir="$ac_optarg" ;;
402 -sharedstatedir | --sharedstatedir | --sharedstatedi \
403 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
404 | --sharedst | --shareds | --shared | --share | --shar \
406 ac_prev=sharedstatedir ;;
407 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
408 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
409 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
411 sharedstatedir="$ac_optarg" ;;
413 -site | --site | --sit)
415 -site=* | --site=* | --sit=*)
418 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
420 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
421 srcdir="$ac_optarg" ;;
423 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
424 | --syscon | --sysco | --sysc | --sys | --sy)
425 ac_prev=sysconfdir ;;
426 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
427 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
428 sysconfdir="$ac_optarg" ;;
430 -target | --target | --targe | --targ | --tar | --ta | --t)
432 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
433 target="$ac_optarg" ;;
435 -v | -verbose | --verbose | --verbos | --verbo | --verb)
438 -version | --version | --versio | --versi | --vers)
439 echo "configure generated by autoconf version 2.13.1"
443 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
446 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package=`echo $ac_package| sed 's/-/_/g'`
462 eval "with_${ac_package}=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes="$ac_optarg" ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries="$ac_optarg" ;;
482 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
486 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
487 echo "configure: warning: $ac_option: invalid host type" 1>&2
489 if test "x$nonopt" != xNONE; then
490 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
498 if test -n "$ac_prev"; then
499 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
504 # File descriptor usage:
507 # 2 errors and warnings
508 # 3 some systems may open it to /dev/tty
509 # 4 used on the Kubota Titan
510 # 6 checking for... messages and results
511 # 5 compiler messages saved in config.log
512 if test "$silent" = yes; then
520 This file contains any messages produced by compilers while
521 running configure, to aid debugging if configure makes a mistake.
524 # Strip out --no-create and --no-recursion so they do not pile up.
525 # Also quote any args containing shell metacharacters.
530 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
531 | --no-cr | --no-c) ;;
532 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
533 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
534 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
535 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
536 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
541 # Only set these to C if already set. These must not be set unconditionally
542 # because not all systems understand e.g. LANG=C (notably SCO).
543 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
544 # Non-C LC_CTYPE values break the ctype check.
545 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
546 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
547 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
548 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
551 rm -rf conftest* confdefs.h
552 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
555 # A filename unique to this package, relative to the directory that
556 # configure is in, which we can look for to find out if srcdir is correct.
557 ac_unique_file=build/version
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
577 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
580 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
582 # Prefer explicitly selected file to automatically selected ones.
583 if test -z "$CONFIG_SITE"; then
584 if test "x$prefix" != xNONE; then
585 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
587 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
590 for ac_site_file in $CONFIG_SITE; do
591 if test -r "$ac_site_file"; then
592 echo "loading site script $ac_site_file"
599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
600 ac_cpp='$CPP $CPPFLAGS'
601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
603 cross_compiling=$ac_cv_prog_cc_cross
607 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
608 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
609 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
616 ac_n= ac_c='\c' ac_t=
620 for ac_dir in build $srcdir/build; do
621 if test -f $ac_dir/install-sh; then
623 ac_install_sh="$ac_aux_dir/install-sh -c"
625 elif test -f $ac_dir/install.sh; then
627 ac_install_sh="$ac_aux_dir/install.sh -c"
631 if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
634 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
635 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
636 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
638 OL_VERSION=`cat $ac_aux_dir/version`
639 if test -z "$OL_VERSION"; then
640 { echo "configure: error: could not determine version" 1>&2; exit 1; }
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:646: checking host system type" >&5
646 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
648 # Make sure we can run config.sub.
649 if $ac_config_sub sun4 >/dev/null 2>&1; then :
650 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
653 ac_cv_host_alias=$host
654 case "$ac_cv_host_alias" in
658 if ac_cv_host_alias=`$ac_config_guess`; then :
659 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
661 *) ac_cv_host_alias=$nonopt ;;
665 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
666 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670 echo $ac_n "(cached) $ac_c" 1>&6
673 echo "$ac_t""$ac_cv_host" 1>&6
676 host_alias=$ac_cv_host_alias
677 host_cpu=$ac_cv_host_cpu
678 host_vendor=$ac_cv_host_vendor
679 host_os=$ac_cv_host_os
685 echo $ac_n "checking target system type""... $ac_c" 1>&6
686 echo "configure:687: checking target system type" >&5
687 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
689 # Make sure we can run config.sub.
690 if $ac_config_sub sun4 >/dev/null 2>&1; then :
691 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
694 ac_cv_target_alias=$target
695 case "$ac_cv_target_alias" in
699 ac_cv_target_alias=$host_alias ;;
701 *) ac_cv_target_alias=$nonopt ;;
705 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
706 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo $ac_n "(cached) $ac_c" 1>&6
713 echo "$ac_t""$ac_cv_target" 1>&6
716 target_alias=$ac_cv_target_alias
717 target_cpu=$ac_cv_target_cpu
718 target_vendor=$ac_cv_target_vendor
719 target_os=$ac_cv_target_os
725 echo $ac_n "checking build system type""... $ac_c" 1>&6
726 echo "configure:727: checking build system type" >&5
727 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
729 # Make sure we can run config.sub.
730 if $ac_config_sub sun4 >/dev/null 2>&1; then :
731 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 ac_cv_build_alias=$build
735 case "$ac_cv_build_alias" in
739 ac_cv_build_alias=$host_alias ;;
741 *) ac_cv_build_alias=$nonopt ;;
745 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
746 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo $ac_n "(cached) $ac_c" 1>&6
753 echo "$ac_t""$ac_cv_build" 1>&6
756 build_alias=$ac_cv_build_alias
757 build_cpu=$ac_cv_build_cpu
758 build_vendor=$ac_cv_build_vendor
759 build_os=$ac_cv_build_os
765 # Do some error checking and defaulting for the host and target type.
767 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
770 # 1. You are not allowed to specify --host, --target, and nonopt at the
772 # 2. Host defaults to nonopt.
773 # 3. If nonopt is not specified, then host defaults to the current host,
774 # as determined by config.guess.
775 # 4. Target and build default to nonopt.
776 # 5. If nonopt is not specified, then target and build default to host.
778 # The aliases save the names the user supplied, while $host etc.
779 # will get canonicalized.
780 case $host---$target---$nonopt in
781 NONE---*---* | *---NONE---* | *---*---NONE) ;;
782 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
785 test "$host_alias" != "$target_alias" &&
786 test "$program_prefix$program_suffix$program_transform_name" = \
788 program_prefix=${target_alias}-
791 # Find a good install program. We prefer a C program (faster),
792 # so one script is as good as another. But avoid the broken or
793 # incompatible versions:
794 # SysV /etc/install, /usr/sbin/install
795 # SunOS /usr/etc/install
798 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
799 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
800 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
801 # ./install, which can be erroneously created by make from ./install.sh.
802 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
803 echo "configure:804: checking for a BSD compatible install" >&5
804 if test -z "$INSTALL"; then
805 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
809 for ac_dir in $PATH; do
810 # Account for people who put trailing slashes in PATH elements.
812 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
814 # OSF1 and SCO ODT 3.0 have their own names for install.
815 # Don't use installbsd from OSF since it installs stuff as root
817 for ac_prog in ginstall scoinst install; do
818 if test -f $ac_dir/$ac_prog; then
819 if test $ac_prog = install &&
820 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
821 # AIX install. It has an incompatible calling convention.
823 elif test $ac_prog = install &&
824 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
825 # program-specific install script used by HP pwplus--don't use.
828 ac_cv_path_install="$ac_dir/$ac_prog -c"
839 if test "${ac_cv_path_install+set}" = set; then
840 INSTALL="$ac_cv_path_install"
842 # As a last resort, use the slow shell script. We don't cache a
843 # path for INSTALL within a source directory, because that will
844 # break other packages using the cache if that directory is
845 # removed, or if the path is relative.
846 INSTALL="$ac_install_sh"
849 echo "$ac_t""$INSTALL" 1>&6
851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
852 # It thinks the first close brace ends the variable substitution.
853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
855 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
857 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
859 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
860 echo "configure:861: checking whether build environment is sane" >&5
863 echo timestamp > conftestfile
864 # Do `set' in a subshell so we don't clobber the current shell's
865 # arguments. Must try -L first in case configure is actually a
866 # symlink; some systems play weird games with the mod time of symlinks
867 # (eg FreeBSD returns the mod time of the symlink's containing
870 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
871 if test "$*" = "X"; then
873 set X `ls -t $srcdir/configure conftestfile`
875 if test "$*" != "X $srcdir/configure conftestfile" \
876 && test "$*" != "X conftestfile $srcdir/configure"; then
878 # If neither matched, then we have a broken ls. This can happen
879 # if, for instance, CONFIG_SHELL is bash and it inherits a
880 # broken ls alias from the environment. This has actually
881 # happened. Such a system could not be considered "sane".
882 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
883 alias in your environment" 1>&2; exit 1; }
886 test "$2" = conftestfile
892 { echo "configure: error: newly created file is older than distributed files!
893 Check your system clock" 1>&2; exit 1; }
896 echo "$ac_t""yes" 1>&6
897 if test "$program_transform_name" = s,x,x,; then
898 program_transform_name=
900 # Double any \ or $. echo might interpret backslashes.
901 cat <<\EOF_SED > conftestsed
902 s,\\,\\\\,g; s,\$,$$,g
904 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
907 test "$program_prefix" != NONE &&
908 program_transform_name="s,^,${program_prefix},;$program_transform_name"
909 # Use a double $ so make ignores it.
910 test "$program_suffix" != NONE &&
911 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
913 # sed with no file args requires a program.
914 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
916 for ac_prog in mawk gawk nawk awk
918 # Extract the first word of "$ac_prog", so it can be a program name with args.
919 set dummy $ac_prog; ac_word=$2
920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
921 echo "configure:922: checking for $ac_word" >&5
922 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 if test -n "$AWK"; then
926 ac_cv_prog_AWK="$AWK" # Let the user override the test.
928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
930 for ac_dir in $ac_dummy; do
931 test -z "$ac_dir" && ac_dir=.
932 if test -f $ac_dir/$ac_word; then
933 ac_cv_prog_AWK="$ac_prog"
940 AWK="$ac_cv_prog_AWK"
941 if test -n "$AWK"; then
942 echo "$ac_t""$AWK" 1>&6
944 echo "$ac_t""no" 1>&6
947 test -n "$AWK" && break
950 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
951 echo "configure:952: checking whether ${MAKE-make} sets \${MAKE}" >&5
952 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
953 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 cat > conftestmake <<\EOF
958 @echo 'ac_maketemp="${MAKE}"'
960 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
961 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
962 if test -n "$ac_maketemp"; then
963 eval ac_cv_prog_make_${ac_make}_set=yes
965 eval ac_cv_prog_make_${ac_make}_set=no
969 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
970 echo "$ac_t""yes" 1>&6
973 echo "$ac_t""no" 1>&6
974 SET_MAKE="MAKE=${MAKE-make}"
983 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
984 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
989 missing_dir=`cd $ac_aux_dir && pwd`
990 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
991 echo "configure:992: checking for working aclocal" >&5
992 # Run test in a subshell; some versions of sh will print an error if
993 # an executable is not found, even if stderr is redirected.
994 # Redirect stdin to placate older versions of autoconf. Sigh.
995 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
997 echo "$ac_t""found" 1>&6
999 ACLOCAL="$missing_dir/missing aclocal"
1000 echo "$ac_t""missing" 1>&6
1003 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1004 echo "configure:1005: checking for working autoconf" >&5
1005 # Run test in a subshell; some versions of sh will print an error if
1006 # an executable is not found, even if stderr is redirected.
1007 # Redirect stdin to placate older versions of autoconf. Sigh.
1008 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1010 echo "$ac_t""found" 1>&6
1012 AUTOCONF="$missing_dir/missing autoconf"
1013 echo "$ac_t""missing" 1>&6
1016 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1017 echo "configure:1018: checking for working automake" >&5
1018 # Run test in a subshell; some versions of sh will print an error if
1019 # an executable is not found, even if stderr is redirected.
1020 # Redirect stdin to placate older versions of autoconf. Sigh.
1021 if (automake --version) < /dev/null > /dev/null 2>&1; then
1023 echo "$ac_t""found" 1>&6
1025 AUTOMAKE="$missing_dir/missing automake"
1026 echo "$ac_t""missing" 1>&6
1029 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1030 echo "configure:1031: checking for working autoheader" >&5
1031 # Run test in a subshell; some versions of sh will print an error if
1032 # an executable is not found, even if stderr is redirected.
1033 # Redirect stdin to placate older versions of autoconf. Sigh.
1034 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1035 AUTOHEADER=autoheader
1036 echo "$ac_t""found" 1>&6
1038 AUTOHEADER="$missing_dir/missing autoheader"
1039 echo "$ac_t""missing" 1>&6
1042 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1043 echo "configure:1044: checking for working makeinfo" >&5
1044 # Run test in a subshell; some versions of sh will print an error if
1045 # an executable is not found, even if stderr is redirected.
1046 # Redirect stdin to placate older versions of autoconf. Sigh.
1047 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1049 echo "$ac_t""found" 1>&6
1051 MAKEINFO="$missing_dir/missing makeinfo"
1052 echo "$ac_t""missing" 1>&6
1055 install_sh="$missing_dir/install-sh"
1056 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1058 for ac_prog in gnutar gtar tar
1060 # Extract the first word of "$ac_prog", so it can be a program name with args.
1061 set dummy $ac_prog; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$AMTAR"; then
1068 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1072 for ac_dir in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 ac_cv_prog_AMTAR="$ac_prog"
1082 AMTAR="$ac_cv_prog_AMTAR"
1083 if test -n "$AMTAR"; then
1084 echo "$ac_t""$AMTAR" 1>&6
1086 echo "$ac_t""no" 1>&6
1089 test -n "$AMTAR" && break
1094 if test -n "$AMTAR"; then
1095 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1102 cat >> confdefs.h <<EOF
1103 #define OPENLDAP_PACKAGE "$PACKAGE"
1106 cat >> confdefs.h <<EOF
1107 #define OPENLDAP_VERSION "$VERSION"
1113 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1114 echo "configure:1115: checking configure arguments" >&5
1119 ldap_subdir="/openldap"
1121 # Check whether --with-subdir or --without-subdir was given.
1122 if test "${with_subdir+set}" = set; then
1123 withval="$with_subdir"
1130 ldap_subdir="$withval"
1133 ldap_subdir="/$withval"
1140 # OpenLDAP --enable-debug
1141 # Check whether --enable-debug or --disable-debug was given.
1142 if test "${enable_debug+set}" = set; then
1143 enableval="$enable_debug"
1146 for ol_val in auto yes no ; do
1147 if test "$enableval" = "$ol_val" ; then
1151 if test "$ol_arg" = "invalid" ; then
1152 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1154 ol_enable_debug="$ol_arg"
1157 ol_enable_debug="yes"
1159 # end --enable-debug
1160 # OpenLDAP --enable-syslog
1161 # Check whether --enable-syslog or --disable-syslog was given.
1162 if test "${enable_syslog+set}" = set; then
1163 enableval="$enable_syslog"
1166 for ol_val in auto yes no ; do
1167 if test "$enableval" = "$ol_val" ; then
1171 if test "$ol_arg" = "invalid" ; then
1172 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1174 ol_enable_syslog="$ol_arg"
1177 ol_enable_syslog="auto"
1179 # end --enable-syslog
1180 # OpenLDAP --enable-proctitle
1181 # Check whether --enable-proctitle or --disable-proctitle was given.
1182 if test "${enable_proctitle+set}" = set; then
1183 enableval="$enable_proctitle"
1186 for ol_val in auto yes no ; do
1187 if test "$enableval" = "$ol_val" ; then
1191 if test "$ol_arg" = "invalid" ; then
1192 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1194 ol_enable_proctitle="$ol_arg"
1197 ol_enable_proctitle="yes"
1199 # end --enable-proctitle
1200 # OpenLDAP --enable-cache
1201 # Check whether --enable-cache or --disable-cache was given.
1202 if test "${enable_cache+set}" = set; then
1203 enableval="$enable_cache"
1206 for ol_val in auto yes no ; do
1207 if test "$enableval" = "$ol_val" ; then
1211 if test "$ol_arg" = "invalid" ; then
1212 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1214 ol_enable_cache="$ol_arg"
1217 ol_enable_cache="yes"
1219 # end --enable-cache
1220 # OpenLDAP --enable-dns
1221 # Check whether --enable-dns or --disable-dns was given.
1222 if test "${enable_dns+set}" = set; then
1223 enableval="$enable_dns"
1226 for ol_val in auto yes no ; do
1227 if test "$enableval" = "$ol_val" ; then
1231 if test "$ol_arg" = "invalid" ; then
1232 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1234 ol_enable_dns="$ol_arg"
1240 # OpenLDAP --enable-referrals
1241 # Check whether --enable-referrals or --disable-referrals was given.
1242 if test "${enable_referrals+set}" = set; then
1243 enableval="$enable_referrals"
1246 for ol_val in auto yes no ; do
1247 if test "$enableval" = "$ol_val" ; then
1251 if test "$ol_arg" = "invalid" ; then
1252 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1254 ol_enable_referrals="$ol_arg"
1257 ol_enable_referrals="yes"
1259 # end --enable-referrals
1260 # OpenLDAP --enable-cldap
1261 # Check whether --enable-cldap or --disable-cldap was given.
1262 if test "${enable_cldap+set}" = set; then
1263 enableval="$enable_cldap"
1266 for ol_val in auto yes no ; do
1267 if test "$enableval" = "$ol_val" ; then
1271 if test "$ol_arg" = "invalid" ; then
1272 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1274 ol_enable_cldap="$ol_arg"
1277 ol_enable_cldap="no"
1279 # end --enable-cldap
1280 # OpenLDAP --enable-x_compile
1281 # Check whether --enable-x_compile or --disable-x_compile was given.
1282 if test "${enable_x_compile+set}" = set; then
1283 enableval="$enable_x_compile"
1286 for ol_val in yes no ; do
1287 if test "$enableval" = "$ol_val" ; then
1291 if test "$ol_arg" = "invalid" ; then
1292 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1294 ol_enable_x_compile="$ol_arg"
1297 ol_enable_x_compile="no"
1299 # end --enable-x_compile
1301 # OpenLDAP --enable-dmalloc
1302 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1303 if test "${enable_dmalloc+set}" = set; then
1304 enableval="$enable_dmalloc"
1307 for ol_val in auto yes no ; do
1308 if test "$enableval" = "$ol_val" ; then
1312 if test "$ol_arg" = "invalid" ; then
1313 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1315 ol_enable_dmalloc="$ol_arg"
1318 ol_enable_dmalloc="no"
1320 # end --enable-dmalloc
1322 # OpenLDAP --with-cyrus_sasl
1323 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1324 if test "${with_cyrus_sasl+set}" = set; then
1325 withval="$with_cyrus_sasl"
1328 for ol_val in auto yes no ; do
1329 if test "$withval" = "$ol_val" ; then
1333 if test "$ol_arg" = "invalid" ; then
1334 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1336 ol_with_cyrus_sasl="$ol_arg"
1339 ol_with_cyrus_sasl="auto"
1341 # end --with-cyrus_sasl
1343 # OpenLDAP --with-fetch
1344 # Check whether --with-fetch or --without-fetch was given.
1345 if test "${with_fetch+set}" = set; then
1346 withval="$with_fetch"
1349 for ol_val in auto yes no ; do
1350 if test "$withval" = "$ol_val" ; then
1354 if test "$ol_arg" = "invalid" ; then
1355 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1357 ol_with_fetch="$ol_arg"
1360 ol_with_fetch="auto"
1364 # OpenLDAP --with-kerberos
1365 # Check whether --with-kerberos or --without-kerberos was given.
1366 if test "${with_kerberos+set}" = set; then
1367 withval="$with_kerberos"
1370 for ol_val in auto k5 k4 afs yes no ; do
1371 if test "$withval" = "$ol_val" ; then
1375 if test "$ol_arg" = "invalid" ; then
1376 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1378 ol_with_kerberos="$ol_arg"
1381 ol_with_kerberos="auto"
1383 # end --with-kerberos
1385 # OpenLDAP --with-readline
1386 # Check whether --with-readline or --without-readline was given.
1387 if test "${with_readline+set}" = set; then
1388 withval="$with_readline"
1391 for ol_val in auto yes no ; do
1392 if test "$withval" = "$ol_val" ; then
1396 if test "$ol_arg" = "invalid" ; then
1397 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1399 ol_with_readline="$ol_arg"
1402 ol_with_readline="auto"
1404 # end --with-readline
1406 # OpenLDAP --with-threads
1407 # Check whether --with-threads or --without-threads was given.
1408 if test "${with_threads+set}" = set; then
1409 withval="$with_threads"
1412 for ol_val in auto posix mach lwp yes no manual ; do
1413 if test "$withval" = "$ol_val" ; then
1417 if test "$ol_arg" = "invalid" ; then
1418 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1420 ol_with_threads="$ol_arg"
1423 ol_with_threads="auto"
1425 # end --with-threads
1427 # OpenLDAP --with-tls
1428 # Check whether --with-tls or --without-tls was given.
1429 if test "${with_tls+set}" = set; then
1433 for ol_val in auto ssleay openssl yes no ; do
1434 if test "$withval" = "$ol_val" ; then
1438 if test "$ol_arg" = "invalid" ; then
1439 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1441 ol_with_tls="$ol_arg"
1448 # OpenLDAP --with-yielding_select
1449 # Check whether --with-yielding_select or --without-yielding_select was given.
1450 if test "${with_yielding_select+set}" = set; then
1451 withval="$with_yielding_select"
1454 for ol_val in auto yes no manual ; do
1455 if test "$withval" = "$ol_val" ; then
1459 if test "$ol_arg" = "invalid" ; then
1460 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1462 ol_with_yielding_select="$ol_arg"
1465 ol_with_yielding_select="auto"
1467 # end --with-yielding_select
1471 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1472 if test "${with_xxslapdoptions+set}" = set; then
1473 withval="$with_xxslapdoptions"
1477 # OpenLDAP --enable-slapd
1478 # Check whether --enable-slapd or --disable-slapd was given.
1479 if test "${enable_slapd+set}" = set; then
1480 enableval="$enable_slapd"
1483 for ol_val in auto yes no ; do
1484 if test "$enableval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1491 ol_enable_slapd="$ol_arg"
1494 ol_enable_slapd="yes"
1496 # end --enable-slapd
1497 # OpenLDAP --enable-cleartext
1498 # Check whether --enable-cleartext or --disable-cleartext was given.
1499 if test "${enable_cleartext+set}" = set; then
1500 enableval="$enable_cleartext"
1503 for ol_val in auto yes no ; do
1504 if test "$enableval" = "$ol_val" ; then
1508 if test "$ol_arg" = "invalid" ; then
1509 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1511 ol_enable_cleartext="$ol_arg"
1514 ol_enable_cleartext="yes"
1516 # end --enable-cleartext
1517 # OpenLDAP --enable-crypt
1518 # Check whether --enable-crypt or --disable-crypt was given.
1519 if test "${enable_crypt+set}" = set; then
1520 enableval="$enable_crypt"
1523 for ol_val in auto yes no ; do
1524 if test "$enableval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1531 ol_enable_crypt="$ol_arg"
1534 ol_enable_crypt="auto"
1536 # end --enable-crypt
1537 # OpenLDAP --enable-modules
1538 # Check whether --enable-modules or --disable-modules was given.
1539 if test "${enable_modules+set}" = set; then
1540 enableval="$enable_modules"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1551 ol_enable_modules="$ol_arg"
1554 ol_enable_modules="no"
1556 # end --enable-modules
1557 # OpenLDAP --enable-multimaster
1558 # Check whether --enable-multimaster or --disable-multimaster was given.
1559 if test "${enable_multimaster+set}" = set; then
1560 enableval="$enable_multimaster"
1563 for ol_val in auto yes no ; do
1564 if test "$enableval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1571 ol_enable_multimaster="$ol_arg"
1574 ol_enable_multimaster="no"
1576 # end --enable-multimaster
1577 # OpenLDAP --enable-phonetic
1578 # Check whether --enable-phonetic or --disable-phonetic was given.
1579 if test "${enable_phonetic+set}" = set; then
1580 enableval="$enable_phonetic"
1583 for ol_val in auto yes no ; do
1584 if test "$enableval" = "$ol_val" ; then
1588 if test "$ol_arg" = "invalid" ; then
1589 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1591 ol_enable_phonetic="$ol_arg"
1594 ol_enable_phonetic="no"
1596 # end --enable-phonetic
1597 # OpenLDAP --enable-quipu
1598 # Check whether --enable-quipu or --disable-quipu was given.
1599 if test "${enable_quipu+set}" = set; then
1600 enableval="$enable_quipu"
1603 for ol_val in auto yes no ; do
1604 if test "$enableval" = "$ol_val" ; then
1608 if test "$ol_arg" = "invalid" ; then
1609 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1611 ol_enable_quipu="$ol_arg"
1614 ol_enable_quipu="no"
1616 # end --enable-quipu
1617 # OpenLDAP --enable-rlookups
1618 # Check whether --enable-rlookups or --disable-rlookups was given.
1619 if test "${enable_rlookups+set}" = set; then
1620 enableval="$enable_rlookups"
1623 for ol_val in auto yes no ; do
1624 if test "$enableval" = "$ol_val" ; then
1628 if test "$ol_arg" = "invalid" ; then
1629 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1631 ol_enable_rlookups="$ol_arg"
1634 ol_enable_rlookups="auto"
1636 # end --enable-rlookups
1637 # OpenLDAP --enable-wrappers
1638 # Check whether --enable-wrappers or --disable-wrappers was given.
1639 if test "${enable_wrappers+set}" = set; then
1640 enableval="$enable_wrappers"
1643 for ol_val in auto yes no ; do
1644 if test "$enableval" = "$ol_val" ; then
1648 if test "$ol_arg" = "invalid" ; then
1649 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1651 ol_enable_wrappers="$ol_arg"
1654 ol_enable_wrappers="no"
1656 # end --enable-wrappers
1658 # OpenLDAP --enable-bdb2
1659 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1660 if test "${enable_bdb2+set}" = set; then
1661 enableval="$enable_bdb2"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1672 ol_enable_bdb2="$ol_arg"
1678 # OpenLDAP --with-bdb2_module
1679 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1680 if test "${with_bdb2_module+set}" = set; then
1681 withval="$with_bdb2_module"
1684 for ol_val in static dynamic ; do
1685 if test "$withval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1692 ol_with_bdb2_module="$ol_arg"
1695 ol_with_bdb2_module="static"
1697 # end --with-bdb2_module
1699 # OpenLDAP --enable-ldap
1700 # Check whether --enable-ldap or --disable-ldap was given.
1701 if test "${enable_ldap+set}" = set; then
1702 enableval="$enable_ldap"
1705 for ol_val in auto yes no ; do
1706 if test "$enableval" = "$ol_val" ; then
1710 if test "$ol_arg" = "invalid" ; then
1711 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1713 ol_enable_ldap="$ol_arg"
1719 # OpenLDAP --with-ldap_module
1720 # Check whether --with-ldap_module or --without-ldap_module was given.
1721 if test "${with_ldap_module+set}" = set; then
1722 withval="$with_ldap_module"
1725 for ol_val in static dynamic ; do
1726 if test "$withval" = "$ol_val" ; then
1730 if test "$ol_arg" = "invalid" ; then
1731 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1733 ol_with_ldap_module="$ol_arg"
1736 ol_with_ldap_module="static"
1738 # end --with-ldap_module
1740 # OpenLDAP --enable-ldbm
1741 # Check whether --enable-ldbm or --disable-ldbm was given.
1742 if test "${enable_ldbm+set}" = set; then
1743 enableval="$enable_ldbm"
1746 for ol_val in auto yes no ; do
1747 if test "$enableval" = "$ol_val" ; then
1751 if test "$ol_arg" = "invalid" ; then
1752 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1754 ol_enable_ldbm="$ol_arg"
1757 ol_enable_ldbm="yes"
1760 # OpenLDAP --with-ldbm_module
1761 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1762 if test "${with_ldbm_module+set}" = set; then
1763 withval="$with_ldbm_module"
1766 for ol_val in static dynamic ; do
1767 if test "$withval" = "$ol_val" ; then
1771 if test "$ol_arg" = "invalid" ; then
1772 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1774 ol_with_ldbm_module="$ol_arg"
1777 ol_with_ldbm_module="static"
1779 # end --with-ldbm_module
1781 # OpenLDAP --with-ldbm_api
1782 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1783 if test "${with_ldbm_api+set}" = set; then
1784 withval="$with_ldbm_api"
1787 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1788 if test "$withval" = "$ol_val" ; then
1792 if test "$ol_arg" = "invalid" ; then
1793 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1795 ol_with_ldbm_api="$ol_arg"
1798 ol_with_ldbm_api="auto"
1800 # end --with-ldbm_api
1802 # OpenLDAP --with-ldbm_type
1803 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1804 if test "${with_ldbm_type+set}" = set; then
1805 withval="$with_ldbm_type"
1808 for ol_val in auto btree hash ; do
1809 if test "$withval" = "$ol_val" ; then
1813 if test "$ol_arg" = "invalid" ; then
1814 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1816 ol_with_ldbm_type="$ol_arg"
1819 ol_with_ldbm_type="auto"
1821 # end --with-ldbm_type
1824 # OpenLDAP --enable-passwd
1825 # Check whether --enable-passwd or --disable-passwd was given.
1826 if test "${enable_passwd+set}" = set; then
1827 enableval="$enable_passwd"
1830 for ol_val in auto yes no ; do
1831 if test "$enableval" = "$ol_val" ; then
1835 if test "$ol_arg" = "invalid" ; then
1836 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1838 ol_enable_passwd="$ol_arg"
1841 ol_enable_passwd="no"
1843 # end --enable-passwd
1844 # OpenLDAP --with-passwd_module
1845 # Check whether --with-passwd_module or --without-passwd_module was given.
1846 if test "${with_passwd_module+set}" = set; then
1847 withval="$with_passwd_module"
1850 for ol_val in static dynamic ; do
1851 if test "$withval" = "$ol_val" ; then
1855 if test "$ol_arg" = "invalid" ; then
1856 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1858 ol_with_passwd_module="$ol_arg"
1861 ol_with_passwd_module="static"
1863 # end --with-passwd_module
1865 # OpenLDAP --enable-perl
1866 # Check whether --enable-perl or --disable-perl was given.
1867 if test "${enable_perl+set}" = set; then
1868 enableval="$enable_perl"
1871 for ol_val in auto yes no ; do
1872 if test "$enableval" = "$ol_val" ; then
1876 if test "$ol_arg" = "invalid" ; then
1877 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1879 ol_enable_perl="$ol_arg"
1885 # OpenLDAP --with-perl_module
1886 # Check whether --with-perl_module or --without-perl_module was given.
1887 if test "${with_perl_module+set}" = set; then
1888 withval="$with_perl_module"
1891 for ol_val in static dynamic ; do
1892 if test "$withval" = "$ol_val" ; then
1896 if test "$ol_arg" = "invalid" ; then
1897 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1899 ol_with_perl_module="$ol_arg"
1902 ol_with_perl_module="static"
1904 # end --with-perl_module
1906 # OpenLDAP --enable-shell
1907 # Check whether --enable-shell or --disable-shell was given.
1908 if test "${enable_shell+set}" = set; then
1909 enableval="$enable_shell"
1912 for ol_val in auto yes no ; do
1913 if test "$enableval" = "$ol_val" ; then
1917 if test "$ol_arg" = "invalid" ; then
1918 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1920 ol_enable_shell="$ol_arg"
1923 ol_enable_shell="no"
1925 # end --enable-shell
1926 # OpenLDAP --with-shell_module
1927 # Check whether --with-shell_module or --without-shell_module was given.
1928 if test "${with_shell_module+set}" = set; then
1929 withval="$with_shell_module"
1932 for ol_val in static dynamic ; do
1933 if test "$withval" = "$ol_val" ; then
1937 if test "$ol_arg" = "invalid" ; then
1938 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1940 ol_with_shell_module="$ol_arg"
1943 ol_with_shell_module="static"
1945 # end --with-shell_module
1947 # OpenLDAP --enable-tcl
1948 # Check whether --enable-tcl or --disable-tcl was given.
1949 if test "${enable_tcl+set}" = set; then
1950 enableval="$enable_tcl"
1953 for ol_val in auto yes no ; do
1954 if test "$enableval" = "$ol_val" ; then
1958 if test "$ol_arg" = "invalid" ; then
1959 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1961 ol_enable_tcl="$ol_arg"
1967 # OpenLDAP --with-tcl_module
1968 # Check whether --with-tcl_module or --without-tcl_module was given.
1969 if test "${with_tcl_module+set}" = set; then
1970 withval="$with_tcl_module"
1973 for ol_val in static dynamic ; do
1974 if test "$withval" = "$ol_val" ; then
1978 if test "$ol_arg" = "invalid" ; then
1979 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1981 ol_with_tcl_module="$ol_arg"
1984 ol_with_tcl_module="static"
1986 # end --with-tcl_module
1989 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1990 if test "${with_xxslurpdoptions+set}" = set; then
1991 withval="$with_xxslurpdoptions"
1995 # OpenLDAP --enable-slurpd
1996 # Check whether --enable-slurpd or --disable-slurpd was given.
1997 if test "${enable_slurpd+set}" = set; then
1998 enableval="$enable_slurpd"
2001 for ol_val in auto yes no ; do
2002 if test "$enableval" = "$ol_val" ; then
2006 if test "$ol_arg" = "invalid" ; then
2007 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2009 ol_enable_slurpd="$ol_arg"
2012 ol_enable_slurpd="auto"
2014 # end --enable-slurpd
2016 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2017 if test "${with_xxliboptions+set}" = set; then
2018 withval="$with_xxliboptions"
2022 # Check whether --enable-static or --disable-static was given.
2023 if test "${enable_static+set}" = set; then
2024 enableval="$enable_static"
2025 p=${PACKAGE-default}
2026 case "$enableval" in
2027 yes) enable_static=yes ;;
2028 no) enable_static=no ;;
2031 # Look at the argument we got. We use all the common list separators.
2032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2033 for pkg in $enableval; do
2034 if test "X$pkg" = "X$p"; then
2045 # Check whether --enable-shared or --disable-shared was given.
2046 if test "${enable_shared+set}" = set; then
2047 enableval="$enable_shared"
2048 p=${PACKAGE-default}
2049 case "$enableval" in
2050 yes) enable_shared=yes ;;
2051 no) enable_shared=no ;;
2054 # Look at the argument we got. We use all the common list separators.
2055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2056 for pkg in $enableval; do
2057 if test "X$pkg" = "X$p"; then
2070 if test $ol_enable_dns = yes ; then
2071 if test $ol_enable_referrals = no ; then
2072 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2074 if test $ol_enable_referrals = auto ; then
2075 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2076 ol_enable_referrals=yes
2080 if test $ol_enable_slapd = no ; then
2081 if test $ol_enable_bdb2 = yes ; then
2082 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2084 if test $ol_enable_ldap = yes ; then
2085 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2087 if test $ol_enable_ldbm = yes ; then
2088 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2090 if test $ol_enable_passwd = yes ; then
2091 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2093 if test $ol_enable_perl = yes ; then
2094 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2096 if test $ol_enable_shell = yes ; then
2097 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2099 if test $ol_enable_tcl = yes ; then
2100 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2102 if test $ol_enable_modules = yes ; then
2103 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2105 if test $ol_enable_multimaster = yes ; then
2106 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2108 if test $ol_enable_wrappers = yes ; then
2109 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2111 if test $ol_enable_phonetic = yes ; then
2112 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2114 if test $ol_enable_quipu = yes ; then
2115 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2117 if test $ol_enable_rlookups = yes ; then
2118 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2120 if test $ol_with_ldbm_api != auto ; then
2121 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2123 if test $ol_with_ldbm_type != auto ; then
2124 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2126 if test $ol_with_bdb2_module != static ; then
2127 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2129 if test $ol_with_ldap_module != static ; then
2130 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2132 if test $ol_with_ldbm_module != static ; then
2133 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2135 if test $ol_with_passwd_module != static ; then
2136 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2138 if test $ol_with_perl_module != static ; then
2139 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2141 if test $ol_with_shell_module != static ; then
2142 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2144 if test $ol_with_tcl_module != static ; then
2145 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2147 if test $ol_enable_slurpd = yes ; then
2148 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2151 # force settings to no
2160 ol_enable_modules=no
2161 ol_enable_multimaster=no
2162 ol_enable_phonetic=no
2164 ol_enable_rlookups=no
2165 ol_enable_wrappers=no
2168 ol_with_ldbm_type=no
2170 ol_with_bdb2_module=static
2171 ol_with_ldap_module=static
2172 ol_with_ldbm_module=static
2173 ol_with_passwd_module=static
2174 ol_with_perl_module=static
2175 ol_with_shell_module=static
2176 ol_with_tcl_module=static
2180 elif test $ol_enable_ldbm = no ; then
2182 if test $ol_with_ldbm_api != auto ; then
2183 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2186 if test $ol_with_ldbm_type != auto ; then
2187 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2190 if test $ol_with_ldbm_module != static ; then
2191 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2194 if test $ol_enable_bdb2 = yes ; then
2195 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2198 if test $ol_enable_modules != yes -a \
2199 $ol_enable_ldap = no -a \
2200 $ol_enable_passwd = no -a \
2201 $ol_enable_perl = no -a \
2202 $ol_enable_shell = no -a \
2203 $ol_enable_tcl = no ; then
2204 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2208 ol_with_ldbm_type=no
2209 ol_with_ldbm_module=static
2211 elif test $ol_enable_bdb2 = yes ; then
2213 if test $ol_with_ldbm_api != auto -a \
2214 $ol_with_ldbm_api != db2 ; then
2215 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2218 ol_with_ldbm_api=db2
2222 if test $ol_enable_bdb2 != no ; then
2223 if test $ol_with_ldbm_api != auto -a \
2224 $ol_with_ldbm_api != db2 ; then
2225 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2230 if test $ol_with_ldbm_api = gdbm -a \
2231 $ol_with_ldbm_type = btree ; then
2232 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2234 if test $ol_with_ldbm_api = mdbm -a \
2235 $ol_with_ldbm_type = btree ; then
2236 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2238 if test $ol_with_ldbm_api = ndbm -a \
2239 $ol_with_ldbm_type = btree ; then
2240 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2244 if test $ol_enable_slurpd = yes ; then
2245 if test $ol_with_threads = no ; then
2246 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2250 echo "$ac_t""done" 1>&6
2275 BUILD_BDB2_DYNAMIC=static
2276 BUILD_LDAP_DYNAMIC=static
2277 BUILD_LDBM_DYNAMIC=static
2278 BUILD_PASSWD_DYNAMIC=static
2279 BUILD_PERL_DYNAMIC=static
2280 BUILD_SHELL_DYNAMIC=static
2281 BUILD_TCL_DYNAMIC=static
2283 SLAPD_MODULES_LDFLAGS=
2284 SLAPD_MODULES_CPPFLAGS=
2288 SLAPD_PERL_CPPFLAGS=
2299 cat >> confdefs.h <<\EOF
2300 #define HAVE_MKVERSION 1
2309 *-*-aix*) if test -z "$CC" ; then
2310 case "$ol_with_threads" in
2311 auto | yes | posix) ol_aix_threads=yes ;;
2317 if test $ol_aix_threads = yes ; then
2318 if test -z "${CC}" ; then
2319 for ac_prog in cc_r xlc_r cc
2321 # Extract the first word of "$ac_prog", so it can be a program name with args.
2322 set dummy $ac_prog; ac_word=$2
2323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_word" >&5
2325 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2333 for ac_dir in $ac_dummy; do
2334 test -z "$ac_dir" && ac_dir=.
2335 if test -f $ac_dir/$ac_word; then
2336 ac_cv_prog_CC="$ac_prog"
2344 if test -n "$CC"; then
2345 echo "$ac_t""$CC" 1>&6
2347 echo "$ac_t""no" 1>&6
2350 test -n "$CC" && break
2354 if test "$CC" = cc ; then
2355 if test $ol_with_threads != auto ; then
2356 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2358 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2364 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2365 ol_with_threads=posix
2366 ol_cv_pthread_create=yes
2370 if test -z "${CC}"; then
2373 # Extract the first word of "$ac_prog", so it can be a program name with args.
2374 set dummy $ac_prog; ac_word=$2
2375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2376 echo "configure:2377: checking for $ac_word" >&5
2377 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2385 for ac_dir in $ac_dummy; do
2386 test -z "$ac_dir" && ac_dir=.
2387 if test -f $ac_dir/$ac_word; then
2388 ac_cv_prog_CC="$ac_prog"
2396 if test -n "$CC"; then
2397 echo "$ac_t""$CC" 1>&6
2399 echo "$ac_t""no" 1>&6
2402 test -n "$CC" && break
2409 # Check whether --enable-fast-install or --disable-fast-install was given.
2410 if test "${enable_fast_install+set}" = set; then
2411 enableval="$enable_fast_install"
2412 p=${PACKAGE-default}
2413 case "$enableval" in
2414 yes) enable_fast_install=yes ;;
2415 no) enable_fast_install=no ;;
2417 enable_fast_install=no
2418 # Look at the argument we got. We use all the common list separators.
2419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2420 for pkg in $enableval; do
2421 if test "X$pkg" = "X$p"; then
2422 enable_fast_install=yes
2429 enable_fast_install=yes
2432 # Extract the first word of "ranlib", so it can be a program name with args.
2433 set dummy ranlib; ac_word=$2
2434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_word" >&5
2436 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 if test -n "$RANLIB"; then
2440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2444 for ac_dir in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir=.
2446 if test -f $ac_dir/$ac_word; then
2447 ac_cv_prog_RANLIB="ranlib"
2452 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2455 RANLIB="$ac_cv_prog_RANLIB"
2456 if test -n "$RANLIB"; then
2457 echo "$ac_t""$RANLIB" 1>&6
2459 echo "$ac_t""no" 1>&6
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc; ac_word=$2
2464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2465 echo "configure:2466: checking for $ac_word" >&5
2466 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2474 for ac_dir in $ac_dummy; do
2475 test -z "$ac_dir" && ac_dir=.
2476 if test -f $ac_dir/$ac_word; then
2485 if test -n "$CC"; then
2486 echo "$ac_t""$CC" 1>&6
2488 echo "$ac_t""no" 1>&6
2491 if test -z "$CC"; then
2492 # Extract the first word of "cc", so it can be a program name with args.
2493 set dummy cc; ac_word=$2
2494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_word" >&5
2496 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2505 for ac_dir in $ac_dummy; do
2506 test -z "$ac_dir" && ac_dir=.
2507 if test -f $ac_dir/$ac_word; then
2508 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2509 ac_prog_rejected=yes
2517 if test $ac_prog_rejected = yes; then
2518 # We found a bogon in the path, so make sure we never use it.
2519 set dummy $ac_cv_prog_CC
2521 if test $# -gt 0; then
2522 # We chose a different compiler from the bogus one.
2523 # However, it has the same basename, so the bogon will be chosen
2524 # first if we set CC to just the basename; use the full file name.
2526 set dummy "$ac_dir/$ac_word" "$@"
2534 if test -n "$CC"; then
2535 echo "$ac_t""$CC" 1>&6
2537 echo "$ac_t""no" 1>&6
2540 if test -z "$CC"; then
2541 case "`uname -s`" in
2542 *win32* | *WIN32* | *CYGWIN*)
2543 # Extract the first word of "cl", so it can be a program name with args.
2544 set dummy cl; ac_word=$2
2545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_word" >&5
2547 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2555 for ac_dir in $ac_dummy; do
2556 test -z "$ac_dir" && ac_dir=.
2557 if test -f $ac_dir/$ac_word; then
2566 if test -n "$CC"; then
2567 echo "$ac_t""$CC" 1>&6
2569 echo "$ac_t""no" 1>&6
2574 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2577 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2578 echo "configure:2579: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2585 cross_compiling=$ac_cv_prog_cc_cross
2587 cat > conftest.$ac_ext << EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2595 ac_cv_prog_cc_works=yes
2596 # If we can't run a trivial program, we are probably using a cross compiler.
2597 if (./conftest; exit) 2>/dev/null; then
2598 ac_cv_prog_cc_cross=no
2600 ac_cv_prog_cc_cross=yes
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 ac_cv_prog_cc_works=no
2609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2613 cross_compiling=$ac_cv_prog_cc_cross
2615 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2616 if test $ac_cv_prog_cc_works = no; then
2617 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2619 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2620 echo "configure:2621: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2621 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2622 cross_compiling=$ac_cv_prog_cc_cross
2624 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2625 echo "configure:2626: checking whether we are using GNU C" >&5
2626 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.c <<EOF
2634 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2641 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2643 if test $ac_cv_prog_gcc = yes; then
2649 ac_test_CFLAGS="${CFLAGS+set}"
2650 ac_save_CFLAGS="$CFLAGS"
2652 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2653 echo "configure:2654: checking whether ${CC-cc} accepts -g" >&5
2654 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 echo 'void f(){}' > conftest.c
2658 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2667 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2668 if test "$ac_test_CFLAGS" = set; then
2669 CFLAGS="$ac_save_CFLAGS"
2670 elif test $ac_cv_prog_cc_g = yes; then
2671 if test "$GCC" = yes; then
2677 if test "$GCC" = yes; then
2684 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2685 if test "${with_gnu_ld+set}" = set; then
2686 withval="$with_gnu_ld"
2687 test "$withval" = no || with_gnu_ld=yes
2693 if test "$ac_cv_prog_gcc" = yes; then
2694 # Check if gcc -print-prog-name=ld gives a path.
2695 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2696 echo "configure:2697: checking for ld used by GCC" >&5
2697 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2699 # Accept absolute paths.
2700 [\\/]* | [A-Za-z]:[\\/]*)
2701 re_direlt='/[^/][^/]*/\.\./'
2702 # Canonicalize the path of ld
2703 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2704 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2705 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2707 test -z "$LD" && LD="$ac_prog"
2710 # If it fails, then pretend we aren't using GCC.
2714 # If it is relative, then search for the first ld in PATH.
2718 elif test "$with_gnu_ld" = yes; then
2719 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2720 echo "configure:2721: checking for GNU ld" >&5
2722 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2723 echo "configure:2724: checking for non-GNU ld" >&5
2725 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 if test -z "$LD"; then
2729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2730 for ac_dir in $PATH; do
2731 test -z "$ac_dir" && ac_dir=.
2732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2733 ac_cv_path_LD="$ac_dir/$ac_prog"
2734 # Check to see if the program is GNU ld. I'd rather use --version,
2735 # but apparently some GNU ld's only accept -v.
2736 # Break only if it was the GNU/non-GNU ld that we prefer.
2737 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2738 test "$with_gnu_ld" != no && break
2740 test "$with_gnu_ld" != yes && break
2746 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2751 if test -n "$LD"; then
2752 echo "$ac_t""$LD" 1>&6
2754 echo "$ac_t""no" 1>&6
2756 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2758 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2759 echo "configure:2760: checking if the linker ($LD) is GNU ld" >&5
2760 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2764 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2765 ac_cv_prog_gnu_ld=yes
2767 ac_cv_prog_gnu_ld=no
2771 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2774 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2775 echo "configure:2776: checking for BSD-compatible nm" >&5
2776 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 if test -n "$NM"; then
2780 # Let the user override the test.
2783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2784 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2785 test -z "$ac_dir" && ac_dir=.
2786 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2787 # Check to see if the nm accepts a BSD-compat flag.
2788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2789 # nm: unknown option "B" ignored
2790 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2791 ac_cv_path_NM="$ac_dir/nm -B"
2793 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2794 ac_cv_path_NM="$ac_dir/nm -p"
2797 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2798 continue # so that we can try to find one that supports BSD flags
2803 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2808 echo "$ac_t""$NM" 1>&6
2811 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2812 echo "configure:2813: checking whether ln -s works" >&5
2813 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2817 if ln -s X conftestdata 2>/dev/null
2820 ac_cv_prog_LN_S="ln -s"
2825 LN_S="$ac_cv_prog_LN_S"
2826 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2827 echo "$ac_t""yes" 1>&6
2829 echo "$ac_t""no" 1>&6
2833 # Check for any special flags to pass to ltconfig.
2834 libtool_flags="--cache-file=$cache_file"
2835 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2836 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2837 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2838 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2839 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2840 libtool_flags="$libtool_flags --enable-dlopen"
2842 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2843 if test "${enable_libtool_lock+set}" = set; then
2844 enableval="$enable_libtool_lock"
2848 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2849 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2851 # Some flags need to be propagated to the compiler or linker for good
2855 # Find out which ABI we are using.
2856 echo '#line 2857 "configure"' > conftest.$ac_ext
2857 if { (eval echo configure:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2858 case "`/usr/bin/file conftest.o`" in
2874 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2875 SAVE_CFLAGS="$CFLAGS"
2876 CFLAGS="$CFLAGS -belf"
2877 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2878 echo "configure:2879: checking whether the C compiler needs -belf" >&5
2879 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2892 lt_cv_cc_needs_belf=yes
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 lt_cv_cc_needs_belf=no
2902 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2903 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2904 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2905 CFLAGS="$SAVE_CFLAGS"
2913 # Save cache, so that ltconfig can load it
2916 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2917 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2918 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2919 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2920 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2921 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2922 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2923 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2925 # Reload cache, that may have been modified by ltconfig
2928 # This can be used to rebuild libtool when needed
2929 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2931 # Always use our own libtool.
2932 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2934 # Redirect the config.log output again, so that the ltconfig log is not
2935 # clobbered by the next message.
2936 exec 5>>./config.log
2939 for ac_prog in mawk gawk nawk awk
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_word" >&5
2945 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 if test -n "$AWK"; then
2949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2953 for ac_dir in $ac_dummy; do
2954 test -z "$ac_dir" && ac_dir=.
2955 if test -f $ac_dir/$ac_word; then
2956 ac_cv_prog_AWK="$ac_prog"
2963 AWK="$ac_cv_prog_AWK"
2964 if test -n "$AWK"; then
2965 echo "$ac_t""$AWK" 1>&6
2967 echo "$ac_t""no" 1>&6
2970 test -n "$AWK" && break
2973 # test for ln hardlink support
2974 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2975 echo "configure:2976: checking whether ln works" >&5
2976 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 rm -f conftest.src conftest.dst
2980 echo "conftest" > conftest.src
2981 if ln conftest.src conftest.dst 2>/dev/null
2983 ol_cv_prog_LN_H="ln"
2985 ol_cv_prog_LN_H="cp"
2987 rm -f conftest.src conftest.dst
2990 LN_H="$ol_cv_prog_LN_H"
2991 if test "$ol_cv_prog_LN_H" = "ln"; then
2992 echo "$ac_t""yes" 1>&6
2994 echo "$ac_t""no" 1>&6
2997 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2998 echo "configure:2999: checking whether ln -s works" >&5
2999 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3003 if ln -s X conftestdata 2>/dev/null
3006 ac_cv_prog_LN_S="ln -s"
3011 LN_S="$ac_cv_prog_LN_S"
3012 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3013 echo "$ac_t""yes" 1>&6
3015 echo "$ac_t""no" 1>&6
3019 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3023 # Extract the first word of "sendmail", so it can be a program name with args.
3024 set dummy sendmail; ac_word=$2
3025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3026 echo "configure:3027: checking for $ac_word" >&5
3027 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3032 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3035 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3039 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3040 for ac_dir in $ac_dummy; do
3041 test -z "$ac_dir" && ac_dir=.
3042 if test -f $ac_dir/$ac_word; then
3043 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3048 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3052 SENDMAIL="$ac_cv_path_SENDMAIL"
3053 if test -n "$SENDMAIL"; then
3054 echo "$ac_t""$SENDMAIL" 1>&6
3056 echo "$ac_t""no" 1>&6
3059 # Extract the first word of "vi", so it can be a program name with args.
3060 set dummy vi; ac_word=$2
3061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3062 echo "configure:3063: checking for $ac_word" >&5
3063 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3068 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3071 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3075 ac_dummy="$PATH:/usr/ucb"
3076 for ac_dir in $ac_dummy; do
3077 test -z "$ac_dir" && ac_dir=.
3078 if test -f $ac_dir/$ac_word; then
3079 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3084 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3088 EDITOR="$ac_cv_path_EDITOR"
3089 if test -n "$EDITOR"; then
3090 echo "$ac_t""$EDITOR" 1>&6
3092 echo "$ac_t""no" 1>&6
3095 # Extract the first word of "finger", so it can be a program name with args.
3096 set dummy finger; ac_word=$2
3097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3098 echo "configure:3099: checking for $ac_word" >&5
3099 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3104 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3107 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3111 ac_dummy="$PATH:/usr/ucb"
3112 for ac_dir in $ac_dummy; do
3113 test -z "$ac_dir" && ac_dir=.
3114 if test -f $ac_dir/$ac_word; then
3115 ac_cv_path_FINGER="$ac_dir/$ac_word"
3120 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3124 FINGER="$ac_cv_path_FINGER"
3125 if test -n "$FINGER"; then
3126 echo "$ac_t""$FINGER" 1>&6
3128 echo "$ac_t""no" 1>&6
3133 if test $ol_enable_perl != no ; then
3134 # Extract the first word of "perl", so it can be a program name with args.
3135 set dummy perl; ac_word=$2
3136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_word" >&5
3138 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3143 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3146 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3151 for ac_dir in $ac_dummy; do
3152 test -z "$ac_dir" && ac_dir=.
3153 if test -f $ac_dir/$ac_word; then
3154 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3159 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3163 PERLBIN="$ac_cv_path_PERLBIN"
3164 if test -n "$PERLBIN"; then
3165 echo "$ac_t""$PERLBIN" 1>&6
3167 echo "$ac_t""no" 1>&6
3171 if test "no$PERLBIN" = "no" ; then
3172 if test $ol_enable_perl = yes ; then
3173 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3177 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3178 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3184 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3185 echo "configure:3186: checking how to run the C preprocessor" >&5
3186 # On Suns, sometimes $CPP names a directory.
3187 if test -n "$CPP" && test -d "$CPP"; then
3190 if test -z "$CPP"; then
3191 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 # This must be in double quotes, not single quotes, because CPP may get
3195 # substituted into the Makefile and "${CC-cc}" will confuse make.
3197 # On the NeXT, cc -E runs the code through the compiler's parser,
3198 # not just through cpp.
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3206 { (eval echo configure:3207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3208 if test -z "$ac_err"; then
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3215 CPP="${CC-cc} -E -traditional-cpp"
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3223 { (eval echo configure:3224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3225 if test -z "$ac_err"; then
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 CPP="${CC-cc} -nologo -E"
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3240 { (eval echo configure:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3242 if test -z "$ac_err"; then
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3256 ac_cv_prog_CPP="$CPP"
3258 CPP="$ac_cv_prog_CPP"
3260 ac_cv_prog_CPP="$CPP"
3262 echo "$ac_t""$CPP" 1>&6
3265 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3266 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3268 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3269 echo "configure: warning: programs compiled here do run here..." 1>&2
3270 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3272 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3273 echo "configure: warning: programs compiled here do not run here..." 1>&2
3274 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3277 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3278 echo "configure:3279: checking for AIX" >&5
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3288 egrep "yes" >/dev/null 2>&1; then
3290 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3291 #define _ALL_SOURCE 1
3296 echo "$ac_t""no" 1>&6
3301 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3302 echo "configure:3303: checking for POSIXized ISC" >&5
3303 if test -d /etc/conf/kconfig.d &&
3304 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3306 echo "$ac_t""yes" 1>&6
3307 ISC=yes # If later tests want to check for ISC.
3308 cat >> confdefs.h <<\EOF
3309 #define _POSIX_SOURCE 1
3312 if test "$GCC" = yes; then
3318 echo "$ac_t""no" 1>&6
3322 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3323 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3324 echo "configure:3325: checking for minix/config.h" >&5
3325 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 #include <minix/config.h>
3333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3334 { (eval echo configure:3335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3336 if test -z "$ac_err"; then
3338 eval "ac_cv_header_$ac_safe=yes"
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3344 eval "ac_cv_header_$ac_safe=no"
3348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3352 echo "$ac_t""no" 1>&6
3356 if test "$MINIX" = yes; then
3357 cat >> confdefs.h <<\EOF
3358 #define _POSIX_SOURCE 1
3361 cat >> confdefs.h <<\EOF
3362 #define _POSIX_1_SOURCE 2
3365 cat >> confdefs.h <<\EOF
3372 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3373 echo "configure:3374: checking for Cygwin environment" >&5
3374 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3384 #define __CYGWIN__ __CYGWIN32__
3389 if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3401 echo "$ac_t""$ac_cv_cygwin" 1>&6
3403 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3404 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3405 echo "configure:3406: checking for mingw32 environment" >&5
3406 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421 echo "configure: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3429 echo "$ac_t""$ac_cv_mingw32" 1>&6
3431 test "$ac_cv_mingw32" = yes && MINGW32=yes
3432 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3433 echo "configure:3434: checking for EMX OS/2 environment" >&5
3434 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3457 echo "$ac_t""$ac_cv_emxos2" 1>&6
3459 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3463 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3464 echo "configure:3465: checking for executable suffix" >&5
3465 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3472 echo 'int main () { return 0; }' > conftest.$ac_ext
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3475 for file in conftest.*; do
3477 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3478 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3482 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3485 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3490 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3491 echo "$ac_t""${ac_cv_exeext}" 1>&6
3494 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3495 echo "configure:3496: checking for object suffix" >&5
3496 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3500 echo 'int i = 1;' > conftest.$ac_ext
3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3502 for ac_file in conftest.*; do
3505 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3509 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3514 echo "$ac_t""$ac_cv_objext" 1>&6
3515 OBJEXT=$ac_cv_objext
3516 ac_objext=$ac_cv_objext
3519 cat >> confdefs.h <<EOF
3520 #define EXEEXT "${EXEEXT}"
3524 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3525 echo "configure:3526: checking for be_app in -lbe" >&5
3526 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3527 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 ac_save_LIBS="$LIBS"
3531 LIBS="-lbe -lroot -lnet $LIBS"
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 /* We use char because int might match the return type of a gcc2
3537 builtin and then its argument prototype would still apply. */
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3546 eval "ac_cv_lib_$ac_lib_var=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 eval "ac_cv_lib_$ac_lib_var=no"
3554 LIBS="$ac_save_LIBS"
3557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3558 echo "$ac_t""yes" 1>&6
3559 LIBS="$LIBS -lbe -lroot -lnet"
3561 echo "$ac_t""no" 1>&6
3569 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3570 echo "configure:3571: checking for ${CC-cc} option to accept ANSI C" >&5
3571 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 am_cv_prog_cc_stdc=no
3576 # Don't try gcc -ansi; that turns off useful extensions and
3577 # breaks some systems' header files.
3578 # AIX -qlanglvl=ansi
3579 # Ultrix and OSF/1 -std1
3580 # HP-UX 10.20 and later -Ae
3581 # HP-UX older versions -Aa -D_HPUX_SOURCE
3582 # SVR4 -Xc -D__EXTENSIONS__
3583 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3585 CC="$ac_save_CC $ac_arg"
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3591 #include <sys/types.h>
3592 #include <sys/stat.h>
3593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3594 struct buf { int x; };
3595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596 static char *e (p, i)
3602 static char *f (char * (*g) (char **, int), char **p, ...)
3607 s = g (p, va_arg (v,int));
3611 int test (int i, double x);
3612 struct s1 {int (*f) (int a);};
3613 struct s2 {int (*f) (double a);};
3614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3624 if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626 am_cv_prog_cc_stdc="$ac_arg"; break
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3637 if test -z "$am_cv_prog_cc_stdc"; then
3638 echo "$ac_t""none needed" 1>&6
3640 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3642 case "x$am_cv_prog_cc_stdc" in
3644 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3647 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3648 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3651 # test for make depend flag
3654 if test -z "${MKDEP}"; then
3656 if test -z "${MKDEP_FLAGS}"; then
3657 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3658 echo "configure:3659: checking for ${OL_MKDEP} depend flag" >&5
3659 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3664 for flag in "-M" "-xM"; do
3665 cat > conftest.c <<EOF
3668 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3669 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3671 if test ! -f conftest."${ac_object}" ; then
3673 OL_MKDEP_FLAGS="$flag"
3682 echo "$ac_t""$ol_cv_mkdep" 1>&6
3685 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3690 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3695 if test "${ol_cv_mkdep}" = no ; then
3696 # this will soon become an error
3697 echo "configure: warning: do not know how to generate dependencies" 1>&2
3701 if test $ol_enable_modules != no ; then
3702 for ac_hdr in ltdl.h
3704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3706 echo "configure:3707: checking for $ac_hdr" >&5
3707 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3716 { (eval echo configure:3717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3718 if test -z "$ac_err"; then
3720 eval "ac_cv_header_$ac_safe=yes"
3723 echo "configure: failed program was:" >&5
3724 cat conftest.$ac_ext >&5
3726 eval "ac_cv_header_$ac_safe=no"
3730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3733 cat >> confdefs.h <<EOF
3734 #define $ac_tr_hdr 1
3738 echo "$ac_t""no" 1>&6
3743 if test $ac_cv_header_ltdl_h = no ; then
3744 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3748 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3749 echo "configure:3750: checking for lt_dlinit in -lltdl" >&5
3750 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3751 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 ac_save_LIBS="$LIBS"
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3759 /* Override any gcc2 internal prototype to avoid an error. */
3760 /* We use char because int might match the return type of a gcc2
3761 builtin and then its argument prototype would still apply. */
3768 if { (eval echo configure:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3770 eval "ac_cv_lib_$ac_lib_var=yes"
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 eval "ac_cv_lib_$ac_lib_var=no"
3778 LIBS="$ac_save_LIBS"
3781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3785 cat >> confdefs.h <<EOF
3786 #define $ac_tr_lib 1
3792 echo "$ac_t""no" 1>&6
3795 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3796 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3800 ol_with_bdb2_module=static
3801 ol_with_ldap_module=static
3802 ol_with_ldbm_module=static
3803 ol_with_passwd_module=static
3804 ol_with_perl_module=static
3805 ol_with_shell_module=static
3806 ol_with_tcl_module=static
3810 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3811 echo "configure:3812: checking for EBCDIC" >&5
3812 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3821 #include <__ASCII__/generate_error.h>
3825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3826 { (eval echo configure:3827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3828 if test -z "$ac_err"; then
3830 ol_cv_cpp_ebcdic=yes
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3841 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3842 if test $ol_cv_cpp_ebcdic = yes ; then
3843 cat >> confdefs.h <<\EOF
3844 #define HAVE_EBCDIC 1
3849 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3850 echo "configure:3851: checking for ANSI C header files" >&5
3851 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3863 { (eval echo configure:3864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3865 if test -z "$ac_err"; then
3867 ol_cv_header_stdc=yes
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3873 ol_cv_header_stdc=no
3877 if test $ol_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat > conftest.$ac_ext <<EOF
3880 #line 3881 "configure"
3881 #include "confdefs.h"
3884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3885 egrep "memchr" >/dev/null 2>&1; then
3889 ol_cv_header_stdc=no
3895 if test $ol_cv_header_stdc = yes; then
3896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 egrep "free" >/dev/null 2>&1; then
3907 ol_cv_header_stdc=no
3913 if test $ol_cv_header_stdc = yes; then
3914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3915 if test "$cross_compiling" = yes; then
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3926 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3927 || ('j' <= (c) && (c) <= 'r') \
3928 || ('s' <= (c) && (c) <= 'z'))
3929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3932 int main () { int i; for (i = 0; i < 256; i++)
3933 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3937 if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 ol_cv_header_stdc=no
3952 echo "$ac_t""$ol_cv_header_stdc" 1>&6
3953 if test $ol_cv_header_stdc = yes; then
3954 cat >> confdefs.h <<\EOF
3955 #define STDC_HEADERS 1
3959 ac_cv_header_stdc=disable
3962 if test $ol_cv_header_stdc != yes; then
3963 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
3967 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3970 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3971 echo "configure:3972: checking for $ac_hdr that defines DIR" >&5
3972 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 #include <sys/types.h>
3984 if { (eval echo configure:3985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3986 eval "ac_cv_header_dirent_$ac_safe=yes"
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3991 eval "ac_cv_header_dirent_$ac_safe=no"
3995 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3996 echo "$ac_t""yes" 1>&6
3997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3998 cat >> confdefs.h <<EOF
3999 #define $ac_tr_hdr 1
4001 ac_header_dirent=$ac_hdr; break
4003 echo "$ac_t""no" 1>&6
4006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4007 if test $ac_header_dirent = dirent.h; then
4008 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4009 echo "configure:4010: checking for opendir in -ldir" >&5
4010 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4011 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 ac_save_LIBS="$LIBS"
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4019 /* Override any gcc2 internal prototype to avoid an error. */
4020 /* We use char because int might match the return type of a gcc2
4021 builtin and then its argument prototype would still apply. */
4028 if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4030 eval "ac_cv_lib_$ac_lib_var=yes"
4032 echo "configure: failed program was:" >&5
4033 cat conftest.$ac_ext >&5
4035 eval "ac_cv_lib_$ac_lib_var=no"
4038 LIBS="$ac_save_LIBS"
4041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4042 echo "$ac_t""yes" 1>&6
4045 echo "$ac_t""no" 1>&6
4049 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4050 echo "configure:4051: checking for opendir in -lx" >&5
4051 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4052 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4055 ac_save_LIBS="$LIBS"
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4060 /* Override any gcc2 internal prototype to avoid an error. */
4061 /* We use char because int might match the return type of a gcc2
4062 builtin and then its argument prototype would still apply. */
4069 if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4071 eval "ac_cv_lib_$ac_lib_var=yes"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 eval "ac_cv_lib_$ac_lib_var=no"
4079 LIBS="$ac_save_LIBS"
4082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4083 echo "$ac_t""yes" 1>&6
4086 echo "$ac_t""no" 1>&6
4091 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4092 echo "configure:4093: checking for sys/wait.h that is POSIX.1 compatible" >&5
4093 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4094 echo $ac_n "(cached) $ac_c" 1>&6
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4099 #include <sys/types.h>
4100 #include <sys/wait.h>
4102 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4105 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4110 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4113 if { (eval echo configure:4114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4115 ac_cv_header_sys_wait_h=yes
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 ac_cv_header_sys_wait_h=no
4125 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4126 if test $ac_cv_header_sys_wait_h = yes; then
4127 cat >> confdefs.h <<\EOF
4128 #define HAVE_SYS_WAIT_H 1
4133 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4134 echo "configure:4135: checking POSIX termios" >&5
4135 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4141 #include <sys/types.h>
4143 #include <termios.h>
4145 /* SunOS 4.0.3 has termios.h but not the library calls. */
4149 if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4151 am_cv_sys_posix_termios=yes
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4156 am_cv_sys_posix_termios=no
4161 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4164 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4165 echo "configure:4166: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4166 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4171 gwinsz_in_termios_h=no
4172 if test $am_cv_sys_posix_termios = yes; then
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 #include <sys/types.h>
4177 # include <termios.h>
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 egrep "yes" >/dev/null 2>&1; then
4186 gwinsz_in_termios_h=yes
4192 if test $gwinsz_in_termios_h = no; then
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 #include <sys/types.h>
4197 # include <sys/ioctl.h>
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 egrep "yes" >/dev/null 2>&1; then
4206 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4214 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4215 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4216 cat >> confdefs.h <<\EOF
4217 #define GWINSZ_IN_SYS_IOCTL 1
4222 if test $am_cv_sys_posix_termios = yes ; then
4223 cat >> confdefs.h <<\EOF
4224 #define HAVE_POSIX_TERMIOS 1
4271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4273 echo "configure:4274: checking for $ac_hdr" >&5
4274 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4283 { (eval echo configure:4284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4285 if test -z "$ac_err"; then
4287 eval "ac_cv_header_$ac_safe=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4293 eval "ac_cv_header_$ac_safe=no"
4297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4300 cat >> confdefs.h <<EOF
4301 #define $ac_tr_hdr 1
4305 echo "$ac_t""no" 1>&6
4312 echo $ac_n "checking for socket""... $ac_c" 1>&6
4313 echo "configure:4314: checking for socket" >&5
4314 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 /* System header to define __stub macros and hopefully few prototypes,
4321 which can conflict with char socket(); below. */
4323 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4331 /* The GNU C library defines this for functions which it implements
4332 to always fail with ENOSYS. Some functions are actually named
4333 something starting with __ and the normal name is an alias. */
4334 #if defined (__stub_socket) || defined (__stub___socket)
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4344 eval "ac_cv_func_socket=yes"
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4349 eval "ac_cv_func_socket=no"
4354 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4358 echo "$ac_t""no" 1>&6
4360 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4361 echo "configure:4362: checking for main in -lsocket" >&5
4362 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 ac_save_LIBS="$LIBS"
4367 LIBS="-lsocket $LIBS"
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 eval "ac_cv_lib_$ac_lib_var=yes"
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4383 eval "ac_cv_lib_$ac_lib_var=no"
4386 LIBS="$ac_save_LIBS"
4389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_lib 1
4397 LIBS="-lsocket $LIBS"
4400 echo "$ac_t""no" 1>&6
4403 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4404 echo "configure:4405: checking for main in -lnet" >&5
4405 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4406 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 ac_save_LIBS="$LIBS"
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4426 eval "ac_cv_lib_$ac_lib_var=no"
4429 LIBS="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4435 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4436 cat >> confdefs.h <<EOF
4437 #define $ac_tr_lib 1
4443 echo "$ac_t""no" 1>&6
4446 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4447 echo "configure:4448: checking for socket in -lnet" >&5
4448 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 ac_save_LIBS="$LIBS"
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 /* Override any gcc2 internal prototype to avoid an error. */
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 eval "ac_cv_lib_$ac_lib_var=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_lib_$ac_lib_var=no"
4476 LIBS="$ac_save_LIBS"
4479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4482 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_lib 1
4490 echo "$ac_t""no" 1>&6
4493 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4494 echo "configure:4495: checking for main in -lnsl_s" >&5
4495 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4496 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4499 ac_save_LIBS="$LIBS"
4500 LIBS="-lnsl_s $LIBS"
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_lib_$ac_lib_var=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_lib_$ac_lib_var=no"
4519 LIBS="$ac_save_LIBS"
4522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4526 cat >> confdefs.h <<EOF
4527 #define $ac_tr_lib 1
4530 LIBS="-lnsl_s $LIBS"
4533 echo "$ac_t""no" 1>&6
4536 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4537 echo "configure:4538: checking for main in -lnsl" >&5
4538 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4539 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 ac_save_LIBS="$LIBS"
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4554 eval "ac_cv_lib_$ac_lib_var=yes"
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4559 eval "ac_cv_lib_$ac_lib_var=no"
4562 LIBS="$ac_save_LIBS"
4565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4567 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4568 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4569 cat >> confdefs.h <<EOF
4570 #define $ac_tr_lib 1
4576 echo "$ac_t""no" 1>&6
4579 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4580 echo "configure:4581: checking for socket in -linet" >&5
4581 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4582 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4585 ac_save_LIBS="$LIBS"
4587 cat > conftest.$ac_ext <<EOF
4588 #line 4589 "configure"
4589 #include "confdefs.h"
4590 /* Override any gcc2 internal prototype to avoid an error. */
4591 /* We use char because int might match the return type of a gcc2
4592 builtin and then its argument prototype would still apply. */
4599 if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4601 eval "ac_cv_lib_$ac_lib_var=yes"
4603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4606 eval "ac_cv_lib_$ac_lib_var=no"
4609 LIBS="$ac_save_LIBS"
4612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4613 echo "$ac_t""yes" 1>&6
4614 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4616 cat >> confdefs.h <<EOF
4617 #define $ac_tr_lib 1
4623 echo "$ac_t""no" 1>&6
4626 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4627 echo "configure:4628: checking for main in -lgen" >&5
4628 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 ac_save_LIBS="$LIBS"
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4642 if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4644 eval "ac_cv_lib_$ac_lib_var=yes"
4646 echo "configure: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4649 eval "ac_cv_lib_$ac_lib_var=no"
4652 LIBS="$ac_save_LIBS"
4655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4656 echo "$ac_t""yes" 1>&6
4657 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4659 cat >> confdefs.h <<EOF
4660 #define $ac_tr_lib 1
4666 echo "$ac_t""no" 1>&6
4673 echo $ac_n "checking for select""... $ac_c" 1>&6
4674 echo "configure:4675: checking for select" >&5
4675 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* System header to define __stub macros and hopefully few prototypes,
4682 which can conflict with char select(); below. */
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4692 /* The GNU C library defines this for functions which it implements
4693 to always fail with ENOSYS. Some functions are actually named
4694 something starting with __ and the normal name is an alias. */
4695 #if defined (__stub_select) || defined (__stub___select)
4703 if { (eval echo configure:4704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4705 eval "ac_cv_func_select=yes"
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4710 eval "ac_cv_func_select=no"
4715 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4716 echo "$ac_t""yes" 1>&6
4719 echo "$ac_t""no" 1>&6
4720 { echo "configure: error: select() required." 1>&2; exit 1; }
4724 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4725 echo "configure:4726: checking types of arguments for select()" >&5
4726 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4732 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4736 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4737 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 #ifdef HAVE_SYS_TYPES_H
4742 #include <sys/types.h>
4744 #ifdef HAVE_SYS_TIME_H
4745 #include <sys/time.h>
4747 #ifdef HAVE_SYS_SELECT_H
4748 #include <sys/select.h>
4750 #ifdef HAVE_SYS_SOCKET_H
4751 #include <sys/socket.h>
4753 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);
4758 if { (eval echo configure:4759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760 ac_not_found=no ; break 3
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4777 if test "$ac_not_found" = yes; then
4778 ac_cv_func_select_arg1=int
4779 ac_cv_func_select_arg234='int *'
4780 ac_cv_func_select_arg5='struct timeval *'
4782 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4783 cat >> confdefs.h <<EOF
4784 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4787 cat >> confdefs.h <<EOF
4788 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4791 cat >> confdefs.h <<EOF
4792 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4798 for ac_hdr in regex.h
4800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4802 echo "configure:4803: checking for $ac_hdr" >&5
4803 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4812 { (eval echo configure:4813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4814 if test -z "$ac_err"; then
4816 eval "ac_cv_header_$ac_safe=yes"
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4822 eval "ac_cv_header_$ac_safe=no"
4826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4829 cat >> confdefs.h <<EOF
4830 #define $ac_tr_hdr 1
4834 echo "$ac_t""no" 1>&6
4838 if test "$ac_cv_header_regex_h" != yes ; then
4839 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4841 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4842 echo "configure:4843: checking for regfree" >&5
4843 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4849 /* System header to define __stub macros and hopefully few prototypes,
4850 which can conflict with char regfree(); below. */
4852 /* Override any gcc2 internal prototype to avoid an error. */
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4860 /* The GNU C library defines this for functions which it implements
4861 to always fail with ENOSYS. Some functions are actually named
4862 something starting with __ and the normal name is an alias. */
4863 #if defined (__stub_regfree) || defined (__stub___regfree)
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873 eval "ac_cv_func_regfree=yes"
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4878 eval "ac_cv_func_regfree=no"
4883 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4887 echo "$ac_t""no" 1>&6
4888 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4893 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4894 echo "configure:4895: checking for compatible POSIX regex" >&5
4895 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4899 if test "$cross_compiling" = yes; then
4900 ol_cv_c_posix_regex=cross
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4906 #include <sys/types.h>
4908 static char *pattern, *string;
4916 if(regcomp(&re, pattern, 0)) {
4920 string = "ALL MATCH";
4922 rc = regexec(&re, string, 0, (void*)0, 0);
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4931 ol_cv_c_posix_regex=yes
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 ol_cv_c_posix_regex=no
4943 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4945 if test "$ol_cv_c_posix_regex" = no ; then
4946 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4950 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4951 echo "configure:4952: checking for sigset in -lV3" >&5
4952 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4953 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 ac_save_LIBS="$LIBS"
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4961 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4970 if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4972 eval "ac_cv_lib_$ac_lib_var=yes"
4974 echo "configure: failed program was:" >&5
4975 cat conftest.$ac_ext >&5
4977 eval "ac_cv_lib_$ac_lib_var=no"
4980 LIBS="$ac_save_LIBS"
4983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4984 echo "$ac_t""yes" 1>&6
4985 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4986 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4987 cat >> confdefs.h <<EOF
4988 #define $ac_tr_lib 1
4994 echo "$ac_t""no" 1>&6
4998 echo $ac_n "checking for res_search""... $ac_c" 1>&6
4999 echo "configure:5000: checking for res_search" >&5
5000 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5006 /* System header to define __stub macros and hopefully few prototypes,
5007 which can conflict with char res_search(); below. */
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 /* We use char because int might match the return type of a gcc2
5011 builtin and then its argument prototype would still apply. */
5017 /* The GNU C library defines this for functions which it implements
5018 to always fail with ENOSYS. Some functions are actually named
5019 something starting with __ and the normal name is an alias. */
5020 #if defined (__stub_res_search) || defined (__stub___res_search)
5028 if { (eval echo configure:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5030 eval "ac_cv_func_res_search=yes"
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5035 eval "ac_cv_func_res_search=no"
5040 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5041 echo "$ac_t""yes" 1>&6
5044 echo "$ac_t""no" 1>&6
5047 if test $ac_cv_func_res_search = no ; then
5048 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5049 echo "configure:5050: checking for res_search in -lbind" >&5
5050 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5051 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5054 ac_save_LIBS="$LIBS"
5056 cat > conftest.$ac_ext <<EOF
5057 #line 5058 "configure"
5058 #include "confdefs.h"
5059 /* Override any gcc2 internal prototype to avoid an error. */
5060 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 eval "ac_cv_lib_$ac_lib_var=yes"
5072 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5075 eval "ac_cv_lib_$ac_lib_var=no"
5078 LIBS="$ac_save_LIBS"
5081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5082 echo "$ac_t""yes" 1>&6
5083 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5084 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5085 cat >> confdefs.h <<EOF
5086 #define $ac_tr_lib 1
5092 echo "$ac_t""no" 1>&6
5095 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5098 if test $ac_cv_func_res_search = no ; then
5099 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5100 echo "configure:5101: checking for __res_search in -lbind" >&5
5101 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5102 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5105 ac_save_LIBS="$LIBS"
5107 cat > conftest.$ac_ext <<EOF
5108 #line 5109 "configure"
5109 #include "confdefs.h"
5110 /* Override any gcc2 internal prototype to avoid an error. */
5111 /* We use char because int might match the return type of a gcc2
5112 builtin and then its argument prototype would still apply. */
5113 char __res_search();
5119 if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 eval "ac_cv_lib_$ac_lib_var=yes"
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5126 eval "ac_cv_lib_$ac_lib_var=no"
5129 LIBS="$ac_save_LIBS"
5132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5134 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5136 cat >> confdefs.h <<EOF
5137 #define $ac_tr_lib 1
5143 echo "$ac_t""no" 1>&6
5146 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5149 if test $ac_cv_func_res_search = no ; then
5150 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5151 echo "configure:5152: checking for res_search in -lresolv" >&5
5152 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 ac_save_LIBS="$LIBS"
5157 LIBS="-lresolv $LIBS"
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 /* Override any gcc2 internal prototype to avoid an error. */
5162 /* We use char because int might match the return type of a gcc2
5163 builtin and then its argument prototype would still apply. */
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5172 eval "ac_cv_lib_$ac_lib_var=yes"
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5177 eval "ac_cv_lib_$ac_lib_var=no"
5180 LIBS="$ac_save_LIBS"
5183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5184 echo "$ac_t""yes" 1>&6
5185 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5187 cat >> confdefs.h <<EOF
5188 #define $ac_tr_lib 1
5191 LIBS="-lresolv $LIBS"
5194 echo "$ac_t""no" 1>&6
5197 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5200 if test "$ac_cv_func_res_search" = yes ; then
5201 cat >> confdefs.h <<\EOF
5202 #define HAVE_RES_SEARCH 1
5205 elif test $ol_enable_dns = yes ; then
5206 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5207 elif test $ol_enable_dns != no ; then
5208 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5213 if test $ol_enable_quipu != no ; then
5214 for ac_hdr in quipu/commonarg.h
5216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5218 echo "configure:5219: checking for $ac_hdr" >&5
5219 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5222 cat > conftest.$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5228 { (eval echo configure:5229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5230 if test -z "$ac_err"; then
5232 eval "ac_cv_header_$ac_safe=yes"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5238 eval "ac_cv_header_$ac_safe=no"
5242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5245 cat >> confdefs.h <<EOF
5246 #define $ac_tr_hdr 1
5250 echo "$ac_t""no" 1>&6
5255 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5257 elif test $ol_enable_quipu = auto ; then
5258 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5260 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5266 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5267 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5271 echo "configure:5272: checking for $ac_hdr" >&5
5272 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5281 { (eval echo configure:5282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5283 if test -z "$ac_err"; then
5285 eval "ac_cv_header_$ac_safe=yes"
5288 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5
5291 eval "ac_cv_header_$ac_safe=no"
5295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5298 cat >> confdefs.h <<EOF
5299 #define $ac_tr_hdr 1
5303 echo "$ac_t""no" 1>&6
5308 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5309 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5310 echo "configure:5311: checking for main in -lkrb4" >&5
5311 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5312 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 ac_save_LIBS="$LIBS"
5316 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5325 if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5327 eval "ac_cv_lib_$ac_lib_var=yes"
5329 echo "configure: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5332 eval "ac_cv_lib_$ac_lib_var=no"
5335 LIBS="$ac_save_LIBS"
5338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5339 echo "$ac_t""yes" 1>&6
5342 echo "$ac_t""no" 1>&6
5347 if test $have_k5 = yes ; then
5348 ol_with_kerberos=found
5349 ol_link_kerberos=yes
5351 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5353 LIBS="$KRB_LIBS $LIBS"
5355 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5356 echo "configure:5357: checking for des_debug in Kerberos libraries" >&5
5357 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5362 LIBS="$KRB_LIBS $LIBS"
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5367 #include <kerberosIV/krb.h>
5368 #include <kerberosIV/des.h>
5369 extern int des_debug;
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5379 ol_cv_var_des_debug=yes
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 ol_cv_var_des_debug=no
5391 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5393 if test $ol_cv_var_des_debug = yes ; then
5394 cat >> confdefs.h <<\EOF
5395 #define HAVE_DES_DEBUG 1
5405 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5406 for ac_hdr in krb.h des.h
5408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5410 echo "configure:5411: checking for $ac_hdr" >&5
5411 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure"
5416 #include "confdefs.h"
5419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5420 { (eval echo configure:5421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5422 if test -z "$ac_err"; then
5424 eval "ac_cv_header_$ac_safe=yes"
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5430 eval "ac_cv_header_$ac_safe=no"
5434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5435 echo "$ac_t""yes" 1>&6
5436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5437 cat >> confdefs.h <<EOF
5438 #define $ac_tr_hdr 1
5442 echo "$ac_t""no" 1>&6
5447 if test $ac_cv_header_krb_h = yes ; then
5448 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5449 echo "configure:5450: checking for main in -lkrb" >&5
5450 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5451 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5454 ac_save_LIBS="$LIBS"
5455 LIBS="-lkrb -ldes $LIBS"
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5466 eval "ac_cv_lib_$ac_lib_var=yes"
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 eval "ac_cv_lib_$ac_lib_var=no"
5474 LIBS="$ac_save_LIBS"
5477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5478 echo "$ac_t""yes" 1>&6
5481 echo "$ac_t""no" 1>&6
5486 if test $have_k4 = yes ; then
5487 ol_with_kerberos=found
5488 ol_link_kerberos=yes
5490 KRB_LIBS="-lkrb -ldes"
5495 if test $ol_link_kerberos = yes ; then
5496 cat >> confdefs.h <<\EOF
5497 #define HAVE_KERBEROS 1
5503 if test $ol_with_tls != no ; then
5505 for ac_hdr in openssl/ssl.h ssl.h
5507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5509 echo "configure:5510: checking for $ac_hdr" >&5
5510 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5513 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5519 { (eval echo configure:5520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5521 if test -z "$ac_err"; then
5523 eval "ac_cv_header_$ac_safe=yes"
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5529 eval "ac_cv_header_$ac_safe=no"
5533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5534 echo "$ac_t""yes" 1>&6
5535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5536 cat >> confdefs.h <<EOF
5537 #define $ac_tr_hdr 1
5541 echo "$ac_t""no" 1>&6
5546 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5547 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5548 echo "configure:5549: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5549 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5550 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 ac_save_LIBS="$LIBS"
5554 LIBS="-lssl -lcrypto $LIBS"
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5558 /* Override any gcc2 internal prototype to avoid an error. */
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5561 char SSLeay_add_ssl_algorithms();
5564 SSLeay_add_ssl_algorithms()
5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5569 eval "ac_cv_lib_$ac_lib_var=yes"
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5574 eval "ac_cv_lib_$ac_lib_var=no"
5577 LIBS="$ac_save_LIBS"
5580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5585 echo "$ac_t""no" 1>&6
5590 if test $have_ssleay = no ; then
5591 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5592 echo "configure:5593: checking for SSL_library_init in -lssl" >&5
5593 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 ac_save_LIBS="$LIBS"
5598 LIBS="-lssl -lcrypto $LIBS"
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5605 char SSL_library_init();
5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5613 eval "ac_cv_lib_$ac_lib_var=yes"
5615 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5618 eval "ac_cv_lib_$ac_lib_var=no"
5621 LIBS="$ac_save_LIBS"
5624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5629 echo "$ac_t""no" 1>&6
5635 if test $have_ssleay = no ; then
5636 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5637 echo "configure:5638: checking for ssl3_accept in -lssl" >&5
5638 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5639 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5642 ac_save_LIBS="$LIBS"
5643 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 /* Override any gcc2 internal prototype to avoid an error. */
5648 /* We use char because int might match the return type of a gcc2
5649 builtin and then its argument prototype would still apply. */
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5658 eval "ac_cv_lib_$ac_lib_var=yes"
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5663 eval "ac_cv_lib_$ac_lib_var=no"
5666 LIBS="$ac_save_LIBS"
5669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5670 echo "$ac_t""yes" 1>&6
5674 echo "$ac_t""no" 1>&6
5680 if test $have_ssleay = yes ; then
5684 cat >> confdefs.h <<\EOF
5685 #define HAVE_SSLEAY 1
5689 if test $need_rsaref = yes; then
5690 cat >> confdefs.h <<\EOF
5691 #define HAVE_RSAREF 1
5695 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5697 TLS_LIBS="-lssl -lcrypto"
5703 if test $ol_link_tls = yes ; then
5704 cat >> confdefs.h <<\EOF
5712 gethostbyname_r gethostbyaddr_r \
5715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5716 echo "configure:5717: checking for $ac_func" >&5
5717 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5720 cat > conftest.$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5723 /* System header to define __stub macros and hopefully few prototypes,
5724 which can conflict with char $ac_func(); below. */
5726 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5734 /* The GNU C library defines this for functions which it implements
5735 to always fail with ENOSYS. Some functions are actually named
5736 something starting with __ and the normal name is an alias. */
5737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5747 eval "ac_cv_func_$ac_func=yes"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5752 eval "ac_cv_func_$ac_func=no"
5757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5758 echo "$ac_t""yes" 1>&6
5759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5760 cat >> confdefs.h <<EOF
5761 #define $ac_tr_func 1
5765 echo "$ac_t""no" 1>&6
5770 if test "$ac_cv_func_ctime_r" = no ; then
5771 ol_cv_func_ctime_r_nargs=0
5773 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5774 echo "configure:5775: checking number of arguments of ctime_r" >&5
5775 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5778 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5783 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5786 if { (eval echo configure:5787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5788 ol_cv_func_ctime_r_nargs=3
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 cat > conftest.$ac_ext <<EOF
5794 #line 5795 "configure"
5795 #include "confdefs.h"
5798 time_t ti; char *buffer; ctime_r(&ti,buffer);
5801 if { (eval echo configure:5802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5803 ol_cv_func_ctime_r_nargs=2
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5808 ol_cv_func_ctime_r_nargs=0
5815 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5816 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5817 cat >> confdefs.h <<EOF
5818 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5825 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5826 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5827 echo "configure:5828: checking number of arguments of gethostbyname_r" >&5
5828 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5831 cat > conftest.$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 #include <sys/types.h>
5835 #include <sys/socket.h>
5836 #include <netinet/in.h>
5838 #define BUFSIZE (sizeof(struct hostent)+10)
5840 struct hostent hent; char buffer[BUFSIZE];
5841 int bufsize=BUFSIZE;int h_errno;
5842 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5843 buffer, bufsize, &h_errno);
5846 if { (eval echo configure:5847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5848 ol_cv_func_gethostbyname_r_nargs=5
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 #include <sys/types.h>
5857 #include <sys/socket.h>
5858 #include <netinet/in.h>
5860 #define BUFSIZE (sizeof(struct hostent)+10)
5862 struct hostent hent;struct hostent *rhent;
5863 char buffer[BUFSIZE];
5864 int bufsize=BUFSIZE;int h_errno;
5865 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5869 if { (eval echo configure:5870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5871 ol_cv_func_gethostbyname_r_nargs=6
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5876 ol_cv_func_gethostbyname_r_nargs=0
5883 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5884 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5885 cat >> confdefs.h <<EOF
5886 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5892 ol_cv_func_gethostbyname_r_nargs=0
5895 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5896 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5897 echo "configure:5898: checking number of arguments of gethostbyaddr_r" >&5
5898 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
5899 echo $ac_n "(cached) $ac_c" 1>&6
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 #include <sys/types.h>
5905 #include <sys/socket.h>
5906 #include <netinet/in.h>
5908 #define BUFSIZE (sizeof(struct hostent)+10)
5910 struct hostent hent; char buffer[BUFSIZE];
5912 size_t alen=sizeof(struct in_addr);
5913 int bufsize=BUFSIZE;int h_errno;
5914 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5915 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5918 if { (eval echo configure:5919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5920 ol_cv_func_gethostbyaddr_r_nargs=7
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 #include <sys/types.h>
5929 #include <sys/socket.h>
5930 #include <netinet/in.h>
5932 #define BUFSIZE (sizeof(struct hostent)+10)
5934 struct hostent hent;
5935 struct hostent *rhent; char buffer[BUFSIZE];
5937 size_t alen=sizeof(struct in_addr);
5938 int bufsize=BUFSIZE;int h_errno;
5939 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5940 alen, AF_INET, &hent, buffer, bufsize,
5944 if { (eval echo configure:5945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5946 ol_cv_func_gethostbyaddr_r_nargs=8
5948 echo "configure: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5951 ol_cv_func_gethostbyaddr_r_nargs=0
5958 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
5959 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
5960 cat >> confdefs.h <<EOF
5961 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
5967 ol_cv_func_gethostbyaddr_r_nargs=0
5970 if test "$ac_cv_func_ctime_r" = yes \
5971 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
5972 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
5973 -a "$ac_cv_func_gethostbyname_r" = yes \
5974 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
5975 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
5976 -a "$ac_cv_func_gethostbyaddr_r" = yes \
5977 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
5978 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
5981 cat >> confdefs.h <<\EOF
5982 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
5988 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5989 -o $ol_with_threads = posix ; then
5991 for ac_hdr in pthread.h sched.h
5993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5995 echo "configure:5996: checking for $ac_hdr" >&5
5996 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6005 { (eval echo configure:6006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6007 if test -z "$ac_err"; then
6009 eval "ac_cv_header_$ac_safe=yes"
6012 echo "configure: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6015 eval "ac_cv_header_$ac_safe=no"
6019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6022 cat >> confdefs.h <<EOF
6023 #define $ac_tr_hdr 1
6027 echo "$ac_t""no" 1>&6
6032 if test $ac_cv_header_pthread_h = yes ; then
6033 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6034 echo "configure:6035: checking POSIX thread version" >&5
6035 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6043 # include <pthread.h>
6044 /* this check could be improved */
6045 # ifdef PTHREAD_ONCE_INIT
6046 pthread_version_final
6050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6051 egrep "pthread_version_final" >/dev/null 2>&1; then
6053 ol_pthread_final=yes
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6065 # include <pthread.h>
6066 /* this check could be improved */
6067 # ifdef pthread_once_init
6068 pthread_version_draft4
6072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6073 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6075 ol_pthread_draft4=yes
6078 ol_pthread_draft4=no
6083 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6084 ol_cv_pthread_version=final
6085 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6086 ol_cv_pthread_version=draft4
6088 ol_cv_pthread_version=unknown
6093 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6096 if test $ol_cv_pthread_version = final ; then
6097 cat >> confdefs.h <<\EOF
6098 #define HAVE_PTHREADS_FINAL 1
6101 elif test $ol_cv_pthread_version = draft4 ; then
6102 cat >> confdefs.h <<\EOF
6103 #define HAVE_PTHREADS_D4 1
6107 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6110 # consider threads found
6111 ol_with_threads=found
6114 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6115 echo "configure:6116: checking for LinuxThreads pthread.h" >&5
6116 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6117 echo $ac_n "(cached) $ac_c" 1>&6
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6122 #include <pthread.h>
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6127 ol_cv_header_linux_threads=yes
6130 ol_cv_header_linux_threads=no
6137 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6138 if test $ol_cv_header_linux_threads = yes; then
6139 cat >> confdefs.h <<\EOF
6140 #define HAVE_LINUX_THREADS 1
6147 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6148 echo "configure:6149: checking for pthread_create in default libraries" >&5
6149 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6153 if test "$cross_compiling" = yes; then
6154 cat > conftest.$ac_ext <<EOF
6155 #line 6156 "configure"
6156 #include "confdefs.h"
6157 /* pthread test headers */
6158 #include <pthread.h>
6160 #define NULL (void*)0
6163 static void *task(p)
6166 return (void *) (p == NULL);
6171 /* pthread test function */
6175 /* make sure pthread_create() isn't just a stub */
6176 #if HAVE_PTHREADS_D4
6177 status = pthread_create(&t, pthread_attr_default, task, NULL);
6179 status = pthread_create(&t, NULL, task, NULL);
6182 if( status ) exit( status );
6184 /* make sure pthread_detach() isn't just a stub */
6185 #if HAVE_PTHREADS_D4
6186 status = pthread_detach( &t );
6188 status = pthread_detach( t );
6191 #ifdef HAVE_LINUX_THREADS
6192 pthread_kill_other_threads_np();
6199 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 ol_cv_pthread_create=yes
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6206 ol_cv_pthread_create=no
6210 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6213 /* pthread test headers */
6214 #include <pthread.h>
6216 #define NULL (void*)0
6219 static void *task(p)
6222 return (void *) (p == NULL);
6226 int main(argc, argv)
6231 /* pthread test function */
6235 /* make sure pthread_create() isn't just a stub */
6236 #if HAVE_PTHREADS_D4
6237 status = pthread_create(&t, pthread_attr_default, task, NULL);
6239 status = pthread_create(&t, NULL, task, NULL);
6242 if( status ) exit( status );
6244 /* make sure pthread_detach() isn't just a stub */
6245 #if HAVE_PTHREADS_D4
6246 status = pthread_detach( &t );
6248 status = pthread_detach( t );
6251 #ifdef HAVE_LINUX_THREADS
6252 pthread_kill_other_threads_np();
6260 if { (eval echo configure:6261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6262 ol_cv_pthread_create=yes
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 ol_cv_pthread_create=no
6274 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6276 if test $ol_cv_pthread_create != no ; then
6277 ol_link_threads=posix
6281 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6282 if test "$ol_link_threads" = no ; then
6284 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6285 echo "configure:6286: checking for pthread link with -kthread" >&5
6286 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6292 LIBS="-kthread $LIBS"
6294 if test "$cross_compiling" = yes; then
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6298 /* pthread test headers */
6299 #include <pthread.h>
6301 #define NULL (void*)0
6304 static void *task(p)
6307 return (void *) (p == NULL);
6312 /* pthread test function */
6316 /* make sure pthread_create() isn't just a stub */
6317 #if HAVE_PTHREADS_D4
6318 status = pthread_create(&t, pthread_attr_default, task, NULL);
6320 status = pthread_create(&t, NULL, task, NULL);
6323 if( status ) exit( status );
6325 /* make sure pthread_detach() isn't just a stub */
6326 #if HAVE_PTHREADS_D4
6327 status = pthread_detach( &t );
6329 status = pthread_detach( t );
6332 #ifdef HAVE_LINUX_THREADS
6333 pthread_kill_other_threads_np();
6340 if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6342 ol_cv_pthread_kthread=yes
6344 echo "configure: failed program was:" >&5
6345 cat conftest.$ac_ext >&5
6347 ol_cv_pthread_kthread=no
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 /* pthread test headers */
6355 #include <pthread.h>
6357 #define NULL (void*)0
6360 static void *task(p)
6363 return (void *) (p == NULL);
6367 int main(argc, argv)
6372 /* pthread test function */
6376 /* make sure pthread_create() isn't just a stub */
6377 #if HAVE_PTHREADS_D4
6378 status = pthread_create(&t, pthread_attr_default, task, NULL);
6380 status = pthread_create(&t, NULL, task, NULL);
6383 if( status ) exit( status );
6385 /* make sure pthread_detach() isn't just a stub */
6386 #if HAVE_PTHREADS_D4
6387 status = pthread_detach( &t );
6389 status = pthread_detach( t );
6392 #ifdef HAVE_LINUX_THREADS
6393 pthread_kill_other_threads_np();
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6403 ol_cv_pthread_kthread=yes
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 ol_cv_pthread_kthread=no
6419 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6421 if test $ol_cv_pthread_kthread = yes ; then
6422 ol_link_pthreads="-kthread"
6423 ol_link_threads=posix
6427 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6428 if test "$ol_link_threads" = no ; then
6430 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6431 echo "configure:6432: checking for pthread link with -pthread" >&5
6432 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6433 echo $ac_n "(cached) $ac_c" 1>&6
6438 LIBS="-pthread $LIBS"
6440 if test "$cross_compiling" = yes; then
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* pthread test headers */
6445 #include <pthread.h>
6447 #define NULL (void*)0
6450 static void *task(p)
6453 return (void *) (p == NULL);
6458 /* pthread test function */
6462 /* make sure pthread_create() isn't just a stub */
6463 #if HAVE_PTHREADS_D4
6464 status = pthread_create(&t, pthread_attr_default, task, NULL);
6466 status = pthread_create(&t, NULL, task, NULL);
6469 if( status ) exit( status );
6471 /* make sure pthread_detach() isn't just a stub */
6472 #if HAVE_PTHREADS_D4
6473 status = pthread_detach( &t );
6475 status = pthread_detach( t );
6478 #ifdef HAVE_LINUX_THREADS
6479 pthread_kill_other_threads_np();
6486 if { (eval echo configure:6487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6488 ol_cv_pthread_pthread=yes
6490 echo "configure: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 ol_cv_pthread_pthread=no
6497 cat > conftest.$ac_ext <<EOF
6498 #line 6499 "configure"
6499 #include "confdefs.h"
6500 /* pthread test headers */
6501 #include <pthread.h>
6503 #define NULL (void*)0
6506 static void *task(p)
6509 return (void *) (p == NULL);
6513 int main(argc, argv)
6518 /* pthread test function */
6522 /* make sure pthread_create() isn't just a stub */
6523 #if HAVE_PTHREADS_D4
6524 status = pthread_create(&t, pthread_attr_default, task, NULL);
6526 status = pthread_create(&t, NULL, task, NULL);
6529 if( status ) exit( status );
6531 /* make sure pthread_detach() isn't just a stub */
6532 #if HAVE_PTHREADS_D4
6533 status = pthread_detach( &t );
6535 status = pthread_detach( t );
6538 #ifdef HAVE_LINUX_THREADS
6539 pthread_kill_other_threads_np();
6547 if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6549 ol_cv_pthread_pthread=yes
6551 echo "configure: failed program was:" >&5
6552 cat conftest.$ac_ext >&5
6554 ol_cv_pthread_pthread=no
6565 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6567 if test $ol_cv_pthread_pthread = yes ; then
6568 ol_link_pthreads="-pthread"
6569 ol_link_threads=posix
6573 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6574 if test "$ol_link_threads" = no ; then
6576 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6577 echo "configure:6578: checking for pthread link with -pthreads" >&5
6578 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6584 LIBS="-pthreads $LIBS"
6586 if test "$cross_compiling" = yes; then
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590 /* pthread test headers */
6591 #include <pthread.h>
6593 #define NULL (void*)0
6596 static void *task(p)
6599 return (void *) (p == NULL);
6604 /* pthread test function */
6608 /* make sure pthread_create() isn't just a stub */
6609 #if HAVE_PTHREADS_D4
6610 status = pthread_create(&t, pthread_attr_default, task, NULL);
6612 status = pthread_create(&t, NULL, task, NULL);
6615 if( status ) exit( status );
6617 /* make sure pthread_detach() isn't just a stub */
6618 #if HAVE_PTHREADS_D4
6619 status = pthread_detach( &t );
6621 status = pthread_detach( t );
6624 #ifdef HAVE_LINUX_THREADS
6625 pthread_kill_other_threads_np();
6632 if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6634 ol_cv_pthread_pthreads=yes
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6639 ol_cv_pthread_pthreads=no
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* pthread test headers */
6647 #include <pthread.h>
6649 #define NULL (void*)0
6652 static void *task(p)
6655 return (void *) (p == NULL);
6659 int main(argc, argv)
6664 /* pthread test function */
6668 /* make sure pthread_create() isn't just a stub */
6669 #if HAVE_PTHREADS_D4
6670 status = pthread_create(&t, pthread_attr_default, task, NULL);
6672 status = pthread_create(&t, NULL, task, NULL);
6675 if( status ) exit( status );
6677 /* make sure pthread_detach() isn't just a stub */
6678 #if HAVE_PTHREADS_D4
6679 status = pthread_detach( &t );
6681 status = pthread_detach( t );
6684 #ifdef HAVE_LINUX_THREADS
6685 pthread_kill_other_threads_np();
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6695 ol_cv_pthread_pthreads=yes
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 ol_cv_pthread_pthreads=no
6711 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
6713 if test $ol_cv_pthread_pthreads = yes ; then
6714 ol_link_pthreads="-pthreads"
6715 ol_link_threads=posix
6719 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
6720 if test "$ol_link_threads" = no ; then
6722 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
6723 echo "configure:6724: checking for pthread link with -mthreads" >&5
6724 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
6725 echo $ac_n "(cached) $ac_c" 1>&6
6730 LIBS="-mthreads $LIBS"
6732 if test "$cross_compiling" = yes; then
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 /* pthread test headers */
6737 #include <pthread.h>
6739 #define NULL (void*)0
6742 static void *task(p)
6745 return (void *) (p == NULL);
6750 /* pthread test function */
6754 /* make sure pthread_create() isn't just a stub */
6755 #if HAVE_PTHREADS_D4
6756 status = pthread_create(&t, pthread_attr_default, task, NULL);
6758 status = pthread_create(&t, NULL, task, NULL);
6761 if( status ) exit( status );
6763 /* make sure pthread_detach() isn't just a stub */
6764 #if HAVE_PTHREADS_D4
6765 status = pthread_detach( &t );
6767 status = pthread_detach( t );
6770 #ifdef HAVE_LINUX_THREADS
6771 pthread_kill_other_threads_np();
6778 if { (eval echo configure:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6780 ol_cv_pthread_mthreads=yes
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6785 ol_cv_pthread_mthreads=no
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 /* pthread test headers */
6793 #include <pthread.h>
6795 #define NULL (void*)0
6798 static void *task(p)
6801 return (void *) (p == NULL);
6805 int main(argc, argv)
6810 /* pthread test function */
6814 /* make sure pthread_create() isn't just a stub */
6815 #if HAVE_PTHREADS_D4
6816 status = pthread_create(&t, pthread_attr_default, task, NULL);
6818 status = pthread_create(&t, NULL, task, NULL);
6821 if( status ) exit( status );
6823 /* make sure pthread_detach() isn't just a stub */
6824 #if HAVE_PTHREADS_D4
6825 status = pthread_detach( &t );
6827 status = pthread_detach( t );
6830 #ifdef HAVE_LINUX_THREADS
6831 pthread_kill_other_threads_np();
6839 if { (eval echo configure:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6841 ol_cv_pthread_mthreads=yes
6843 echo "configure: failed program was:" >&5
6844 cat conftest.$ac_ext >&5
6846 ol_cv_pthread_mthreads=no
6857 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6859 if test $ol_cv_pthread_mthreads = yes ; then
6860 ol_link_pthreads="-mthreads"
6861 ol_link_threads=posix
6865 # Pthread try link: -thread (ol_cv_pthread_thread)
6866 if test "$ol_link_threads" = no ; then
6868 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
6869 echo "configure:6870: checking for pthread link with -thread" >&5
6870 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6876 LIBS="-thread $LIBS"
6878 if test "$cross_compiling" = yes; then
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6882 /* pthread test headers */
6883 #include <pthread.h>
6885 #define NULL (void*)0
6888 static void *task(p)
6891 return (void *) (p == NULL);
6896 /* pthread test function */
6900 /* make sure pthread_create() isn't just a stub */
6901 #if HAVE_PTHREADS_D4
6902 status = pthread_create(&t, pthread_attr_default, task, NULL);
6904 status = pthread_create(&t, NULL, task, NULL);
6907 if( status ) exit( status );
6909 /* make sure pthread_detach() isn't just a stub */
6910 #if HAVE_PTHREADS_D4
6911 status = pthread_detach( &t );
6913 status = pthread_detach( t );
6916 #ifdef HAVE_LINUX_THREADS
6917 pthread_kill_other_threads_np();
6924 if { (eval echo configure:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6926 ol_cv_pthread_thread=yes
6928 echo "configure: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6931 ol_cv_pthread_thread=no
6935 cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6938 /* pthread test headers */
6939 #include <pthread.h>
6941 #define NULL (void*)0
6944 static void *task(p)
6947 return (void *) (p == NULL);
6951 int main(argc, argv)
6956 /* pthread test function */
6960 /* make sure pthread_create() isn't just a stub */
6961 #if HAVE_PTHREADS_D4
6962 status = pthread_create(&t, pthread_attr_default, task, NULL);
6964 status = pthread_create(&t, NULL, task, NULL);
6967 if( status ) exit( status );
6969 /* make sure pthread_detach() isn't just a stub */
6970 #if HAVE_PTHREADS_D4
6971 status = pthread_detach( &t );
6973 status = pthread_detach( t );
6976 #ifdef HAVE_LINUX_THREADS
6977 pthread_kill_other_threads_np();
6985 if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6987 ol_cv_pthread_thread=yes
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 ol_cv_pthread_thread=no
7003 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7005 if test $ol_cv_pthread_thread = yes ; then
7006 ol_link_pthreads="-thread"
7007 ol_link_threads=posix
7012 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7013 if test "$ol_link_threads" = no ; then
7014 # try -lpthread -lmach -lexc -lc_r
7015 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7016 echo "configure:7017: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7017 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7023 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7025 if test "$cross_compiling" = yes; then
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* pthread test headers */
7030 #include <pthread.h>
7032 #define NULL (void*)0
7035 static void *task(p)
7038 return (void *) (p == NULL);
7043 /* pthread test function */
7047 /* make sure pthread_create() isn't just a stub */
7048 #if HAVE_PTHREADS_D4
7049 status = pthread_create(&t, pthread_attr_default, task, NULL);
7051 status = pthread_create(&t, NULL, task, NULL);
7054 if( status ) exit( status );
7056 /* make sure pthread_detach() isn't just a stub */
7057 #if HAVE_PTHREADS_D4
7058 status = pthread_detach( &t );
7060 status = pthread_detach( t );
7063 #ifdef HAVE_LINUX_THREADS
7064 pthread_kill_other_threads_np();
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7073 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 /* pthread test headers */
7086 #include <pthread.h>
7088 #define NULL (void*)0
7091 static void *task(p)
7094 return (void *) (p == NULL);
7098 int main(argc, argv)
7103 /* pthread test function */
7107 /* make sure pthread_create() isn't just a stub */
7108 #if HAVE_PTHREADS_D4
7109 status = pthread_create(&t, pthread_attr_default, task, NULL);
7111 status = pthread_create(&t, NULL, task, NULL);
7114 if( status ) exit( status );
7116 /* make sure pthread_detach() isn't just a stub */
7117 #if HAVE_PTHREADS_D4
7118 status = pthread_detach( &t );
7120 status = pthread_detach( t );
7123 #ifdef HAVE_LINUX_THREADS
7124 pthread_kill_other_threads_np();
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7134 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7136 echo "configure: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7139 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7150 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7152 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7153 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7154 ol_link_threads=posix
7158 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7159 if test "$ol_link_threads" = no ; then
7160 # try -lpthread -lmach -lexc
7161 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7162 echo "configure:7163: checking for pthread link with -lpthread -lmach -lexc" >&5
7163 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7164 echo $ac_n "(cached) $ac_c" 1>&6
7169 LIBS="-lpthread -lmach -lexc $LIBS"
7171 if test "$cross_compiling" = yes; then
7172 cat > conftest.$ac_ext <<EOF
7173 #line 7174 "configure"
7174 #include "confdefs.h"
7175 /* pthread test headers */
7176 #include <pthread.h>
7178 #define NULL (void*)0
7181 static void *task(p)
7184 return (void *) (p == NULL);
7189 /* pthread test function */
7193 /* make sure pthread_create() isn't just a stub */
7194 #if HAVE_PTHREADS_D4
7195 status = pthread_create(&t, pthread_attr_default, task, NULL);
7197 status = pthread_create(&t, NULL, task, NULL);
7200 if( status ) exit( status );
7202 /* make sure pthread_detach() isn't just a stub */
7203 #if HAVE_PTHREADS_D4
7204 status = pthread_detach( &t );
7206 status = pthread_detach( t );
7209 #ifdef HAVE_LINUX_THREADS
7210 pthread_kill_other_threads_np();
7217 if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7219 ol_cv_pthread_lpthread_lmach_lexc=yes
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7224 ol_cv_pthread_lpthread_lmach_lexc=no
7228 cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7231 /* pthread test headers */
7232 #include <pthread.h>
7234 #define NULL (void*)0
7237 static void *task(p)
7240 return (void *) (p == NULL);
7244 int main(argc, argv)
7249 /* pthread test function */
7253 /* make sure pthread_create() isn't just a stub */
7254 #if HAVE_PTHREADS_D4
7255 status = pthread_create(&t, pthread_attr_default, task, NULL);
7257 status = pthread_create(&t, NULL, task, NULL);
7260 if( status ) exit( status );
7262 /* make sure pthread_detach() isn't just a stub */
7263 #if HAVE_PTHREADS_D4
7264 status = pthread_detach( &t );
7266 status = pthread_detach( t );
7269 #ifdef HAVE_LINUX_THREADS
7270 pthread_kill_other_threads_np();
7278 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7280 ol_cv_pthread_lpthread_lmach_lexc=yes
7282 echo "configure: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7285 ol_cv_pthread_lpthread_lmach_lexc=no
7296 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
7298 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
7299 ol_link_pthreads="-lpthread -lmach -lexc"
7300 ol_link_threads=posix
7305 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
7306 if test "$ol_link_threads" = no ; then
7307 # try -lpthread -Wl,-woff,85
7308 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
7309 echo "configure:7310: checking for pthread link with -lpthread -Wl,-woff,85" >&5
7310 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
7311 echo $ac_n "(cached) $ac_c" 1>&6
7316 LIBS="-lpthread -Wl,-woff,85 $LIBS"
7318 if test "$cross_compiling" = yes; then
7319 cat > conftest.$ac_ext <<EOF
7320 #line 7321 "configure"
7321 #include "confdefs.h"
7322 /* pthread test headers */
7323 #include <pthread.h>
7325 #define NULL (void*)0
7328 static void *task(p)
7331 return (void *) (p == NULL);
7336 /* pthread test function */
7340 /* make sure pthread_create() isn't just a stub */
7341 #if HAVE_PTHREADS_D4
7342 status = pthread_create(&t, pthread_attr_default, task, NULL);
7344 status = pthread_create(&t, NULL, task, NULL);
7347 if( status ) exit( status );
7349 /* make sure pthread_detach() isn't just a stub */
7350 #if HAVE_PTHREADS_D4
7351 status = pthread_detach( &t );
7353 status = pthread_detach( t );
7356 #ifdef HAVE_LINUX_THREADS
7357 pthread_kill_other_threads_np();
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366 ol_cv_pthread_lib_lpthread_woff=yes
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7371 ol_cv_pthread_lib_lpthread_woff=no
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7378 /* pthread test headers */
7379 #include <pthread.h>
7381 #define NULL (void*)0
7384 static void *task(p)
7387 return (void *) (p == NULL);
7391 int main(argc, argv)
7396 /* pthread test function */
7400 /* make sure pthread_create() isn't just a stub */
7401 #if HAVE_PTHREADS_D4
7402 status = pthread_create(&t, pthread_attr_default, task, NULL);
7404 status = pthread_create(&t, NULL, task, NULL);
7407 if( status ) exit( status );
7409 /* make sure pthread_detach() isn't just a stub */
7410 #if HAVE_PTHREADS_D4
7411 status = pthread_detach( &t );
7413 status = pthread_detach( t );
7416 #ifdef HAVE_LINUX_THREADS
7417 pthread_kill_other_threads_np();
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7427 ol_cv_pthread_lib_lpthread_woff=yes
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7432 ol_cv_pthread_lib_lpthread_woff=no
7443 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7445 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7446 ol_link_pthreads="-lpthread -Wl,-woff,85"
7447 ol_link_threads=posix
7452 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7453 if test "$ol_link_threads" = no ; then
7455 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7456 echo "configure:7457: checking for pthread link with -lpthread" >&5
7457 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7458 echo $ac_n "(cached) $ac_c" 1>&6
7463 LIBS="-lpthread $LIBS"
7465 if test "$cross_compiling" = yes; then
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 /* pthread test headers */
7470 #include <pthread.h>
7472 #define NULL (void*)0
7475 static void *task(p)
7478 return (void *) (p == NULL);
7483 /* pthread test function */
7487 /* make sure pthread_create() isn't just a stub */
7488 #if HAVE_PTHREADS_D4
7489 status = pthread_create(&t, pthread_attr_default, task, NULL);
7491 status = pthread_create(&t, NULL, task, NULL);
7494 if( status ) exit( status );
7496 /* make sure pthread_detach() isn't just a stub */
7497 #if HAVE_PTHREADS_D4
7498 status = pthread_detach( &t );
7500 status = pthread_detach( t );
7503 #ifdef HAVE_LINUX_THREADS
7504 pthread_kill_other_threads_np();
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7513 ol_cv_pthread_lpthread=yes
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7518 ol_cv_pthread_lpthread=no
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 /* pthread test headers */
7526 #include <pthread.h>
7528 #define NULL (void*)0
7531 static void *task(p)
7534 return (void *) (p == NULL);
7538 int main(argc, argv)
7543 /* pthread test function */
7547 /* make sure pthread_create() isn't just a stub */
7548 #if HAVE_PTHREADS_D4
7549 status = pthread_create(&t, pthread_attr_default, task, NULL);
7551 status = pthread_create(&t, NULL, task, NULL);
7554 if( status ) exit( status );
7556 /* make sure pthread_detach() isn't just a stub */
7557 #if HAVE_PTHREADS_D4
7558 status = pthread_detach( &t );
7560 status = pthread_detach( t );
7563 #ifdef HAVE_LINUX_THREADS
7564 pthread_kill_other_threads_np();
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7574 ol_cv_pthread_lpthread=yes
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7579 ol_cv_pthread_lpthread=no
7590 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7592 if test $ol_cv_pthread_lpthread = yes ; then
7593 ol_link_pthreads="-lpthread"
7594 ol_link_threads=posix
7598 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7599 if test "$ol_link_threads" = no ; then
7601 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7602 echo "configure:7603: checking for pthread link with -lc_r" >&5
7603 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
7604 echo $ac_n "(cached) $ac_c" 1>&6
7611 if test "$cross_compiling" = yes; then
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 /* pthread test headers */
7616 #include <pthread.h>
7618 #define NULL (void*)0
7621 static void *task(p)
7624 return (void *) (p == NULL);
7629 /* pthread test function */
7633 /* make sure pthread_create() isn't just a stub */
7634 #if HAVE_PTHREADS_D4
7635 status = pthread_create(&t, pthread_attr_default, task, NULL);
7637 status = pthread_create(&t, NULL, task, NULL);
7640 if( status ) exit( status );
7642 /* make sure pthread_detach() isn't just a stub */
7643 #if HAVE_PTHREADS_D4
7644 status = pthread_detach( &t );
7646 status = pthread_detach( t );
7649 #ifdef HAVE_LINUX_THREADS
7650 pthread_kill_other_threads_np();
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7659 ol_cv_pthread_lc_r=yes
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 ol_cv_pthread_lc_r=no
7668 cat > conftest.$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7671 /* pthread test headers */
7672 #include <pthread.h>
7674 #define NULL (void*)0
7677 static void *task(p)
7680 return (void *) (p == NULL);
7684 int main(argc, argv)
7689 /* pthread test function */
7693 /* make sure pthread_create() isn't just a stub */
7694 #if HAVE_PTHREADS_D4
7695 status = pthread_create(&t, pthread_attr_default, task, NULL);
7697 status = pthread_create(&t, NULL, task, NULL);
7700 if( status ) exit( status );
7702 /* make sure pthread_detach() isn't just a stub */
7703 #if HAVE_PTHREADS_D4
7704 status = pthread_detach( &t );
7706 status = pthread_detach( t );
7709 #ifdef HAVE_LINUX_THREADS
7710 pthread_kill_other_threads_np();
7718 if { (eval echo configure:7719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7720 ol_cv_pthread_lc_r=yes
7722 echo "configure: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7725 ol_cv_pthread_lc_r=no
7736 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
7738 if test $ol_cv_pthread_lc_r = yes ; then
7739 ol_link_pthreads="-lc_r"
7740 ol_link_threads=posix
7745 # Pthread try link: -threads (ol_cv_pthread_threads)
7746 if test "$ol_link_threads" = no ; then
7748 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
7749 echo "configure:7750: checking for pthread link with -threads" >&5
7750 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7756 LIBS="-threads $LIBS"
7758 if test "$cross_compiling" = yes; then
7759 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762 /* pthread test headers */
7763 #include <pthread.h>
7765 #define NULL (void*)0
7768 static void *task(p)
7771 return (void *) (p == NULL);
7776 /* pthread test function */
7780 /* make sure pthread_create() isn't just a stub */
7781 #if HAVE_PTHREADS_D4
7782 status = pthread_create(&t, pthread_attr_default, task, NULL);
7784 status = pthread_create(&t, NULL, task, NULL);
7787 if( status ) exit( status );
7789 /* make sure pthread_detach() isn't just a stub */
7790 #if HAVE_PTHREADS_D4
7791 status = pthread_detach( &t );
7793 status = pthread_detach( t );
7796 #ifdef HAVE_LINUX_THREADS
7797 pthread_kill_other_threads_np();
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806 ol_cv_pthread_threads=yes
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7811 ol_cv_pthread_threads=no
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* pthread test headers */
7819 #include <pthread.h>
7821 #define NULL (void*)0
7824 static void *task(p)
7827 return (void *) (p == NULL);
7831 int main(argc, argv)
7836 /* pthread test function */
7840 /* make sure pthread_create() isn't just a stub */
7841 #if HAVE_PTHREADS_D4
7842 status = pthread_create(&t, pthread_attr_default, task, NULL);
7844 status = pthread_create(&t, NULL, task, NULL);
7847 if( status ) exit( status );
7849 /* make sure pthread_detach() isn't just a stub */
7850 #if HAVE_PTHREADS_D4
7851 status = pthread_detach( &t );
7853 status = pthread_detach( t );
7856 #ifdef HAVE_LINUX_THREADS
7857 pthread_kill_other_threads_np();
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7867 ol_cv_pthread_threads=yes
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 ol_cv_pthread_threads=no
7883 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
7885 if test $ol_cv_pthread_threads = yes ; then
7886 ol_link_pthreads="-threads"
7887 ol_link_threads=posix
7892 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
7893 if test "$ol_link_threads" = no ; then
7894 # try -lpthreads -lmach -lexc -lc_r
7895 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
7896 echo "configure:7897: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
7897 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
7898 echo $ac_n "(cached) $ac_c" 1>&6
7903 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
7905 if test "$cross_compiling" = yes; then
7906 cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 /* pthread test headers */
7910 #include <pthread.h>
7912 #define NULL (void*)0
7915 static void *task(p)
7918 return (void *) (p == NULL);
7923 /* pthread test function */
7927 /* make sure pthread_create() isn't just a stub */
7928 #if HAVE_PTHREADS_D4
7929 status = pthread_create(&t, pthread_attr_default, task, NULL);
7931 status = pthread_create(&t, NULL, task, NULL);
7934 if( status ) exit( status );
7936 /* make sure pthread_detach() isn't just a stub */
7937 #if HAVE_PTHREADS_D4
7938 status = pthread_detach( &t );
7940 status = pthread_detach( t );
7943 #ifdef HAVE_LINUX_THREADS
7944 pthread_kill_other_threads_np();
7951 if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7953 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7958 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7965 /* pthread test headers */
7966 #include <pthread.h>
7968 #define NULL (void*)0
7971 static void *task(p)
7974 return (void *) (p == NULL);
7978 int main(argc, argv)
7983 /* pthread test function */
7987 /* make sure pthread_create() isn't just a stub */
7988 #if HAVE_PTHREADS_D4
7989 status = pthread_create(&t, pthread_attr_default, task, NULL);
7991 status = pthread_create(&t, NULL, task, NULL);
7994 if( status ) exit( status );
7996 /* make sure pthread_detach() isn't just a stub */
7997 #if HAVE_PTHREADS_D4
7998 status = pthread_detach( &t );
8000 status = pthread_detach( t );
8003 #ifdef HAVE_LINUX_THREADS
8004 pthread_kill_other_threads_np();
8012 if { (eval echo configure:8013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8014 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8016 echo "configure: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8019 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8030 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8032 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8033 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8034 ol_link_threads=posix
8038 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8039 if test "$ol_link_threads" = no ; then
8040 # try -lpthreads -lmach -lexc
8041 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8042 echo "configure:8043: checking for pthread link with -lpthreads -lmach -lexc" >&5
8043 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8049 LIBS="-lpthreads -lmach -lexc $LIBS"
8051 if test "$cross_compiling" = yes; then
8052 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8055 /* pthread test headers */
8056 #include <pthread.h>
8058 #define NULL (void*)0
8061 static void *task(p)
8064 return (void *) (p == NULL);
8069 /* pthread test function */
8073 /* make sure pthread_create() isn't just a stub */
8074 #if HAVE_PTHREADS_D4
8075 status = pthread_create(&t, pthread_attr_default, task, NULL);
8077 status = pthread_create(&t, NULL, task, NULL);
8080 if( status ) exit( status );
8082 /* make sure pthread_detach() isn't just a stub */
8083 #if HAVE_PTHREADS_D4
8084 status = pthread_detach( &t );
8086 status = pthread_detach( t );
8089 #ifdef HAVE_LINUX_THREADS
8090 pthread_kill_other_threads_np();
8097 if { (eval echo configure:8098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8099 ol_cv_pthread_lpthreads_lmach_lexc=yes
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8104 ol_cv_pthread_lpthreads_lmach_lexc=no
8108 cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8111 /* pthread test headers */
8112 #include <pthread.h>
8114 #define NULL (void*)0
8117 static void *task(p)
8120 return (void *) (p == NULL);
8124 int main(argc, argv)
8129 /* pthread test function */
8133 /* make sure pthread_create() isn't just a stub */
8134 #if HAVE_PTHREADS_D4
8135 status = pthread_create(&t, pthread_attr_default, task, NULL);
8137 status = pthread_create(&t, NULL, task, NULL);
8140 if( status ) exit( status );
8142 /* make sure pthread_detach() isn't just a stub */
8143 #if HAVE_PTHREADS_D4
8144 status = pthread_detach( &t );
8146 status = pthread_detach( t );
8149 #ifdef HAVE_LINUX_THREADS
8150 pthread_kill_other_threads_np();
8158 if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8160 ol_cv_pthread_lpthreads_lmach_lexc=yes
8162 echo "configure: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8165 ol_cv_pthread_lpthreads_lmach_lexc=no
8176 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8178 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8179 ol_link_pthreads="-lpthreads -lmach -lexc"
8180 ol_link_threads=posix
8184 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8185 if test "$ol_link_threads" = no ; then
8186 # try -lpthreads -lexc
8187 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8188 echo "configure:8189: checking for pthread link with -lpthreads -lexc" >&5
8189 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8190 echo $ac_n "(cached) $ac_c" 1>&6
8195 LIBS="-lpthreads -lexc $LIBS"
8197 if test "$cross_compiling" = yes; then
8198 cat > conftest.$ac_ext <<EOF
8199 #line 8200 "configure"
8200 #include "confdefs.h"
8201 /* pthread test headers */
8202 #include <pthread.h>
8204 #define NULL (void*)0
8207 static void *task(p)
8210 return (void *) (p == NULL);
8215 /* pthread test function */
8219 /* make sure pthread_create() isn't just a stub */
8220 #if HAVE_PTHREADS_D4
8221 status = pthread_create(&t, pthread_attr_default, task, NULL);
8223 status = pthread_create(&t, NULL, task, NULL);
8226 if( status ) exit( status );
8228 /* make sure pthread_detach() isn't just a stub */
8229 #if HAVE_PTHREADS_D4
8230 status = pthread_detach( &t );
8232 status = pthread_detach( t );
8235 #ifdef HAVE_LINUX_THREADS
8236 pthread_kill_other_threads_np();
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8245 ol_cv_pthread_lpthreads_lexc=yes
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8250 ol_cv_pthread_lpthreads_lexc=no
8254 cat > conftest.$ac_ext <<EOF
8255 #line 8256 "configure"
8256 #include "confdefs.h"
8257 /* pthread test headers */
8258 #include <pthread.h>
8260 #define NULL (void*)0
8263 static void *task(p)
8266 return (void *) (p == NULL);
8270 int main(argc, argv)
8275 /* pthread test function */
8279 /* make sure pthread_create() isn't just a stub */
8280 #if HAVE_PTHREADS_D4
8281 status = pthread_create(&t, pthread_attr_default, task, NULL);
8283 status = pthread_create(&t, NULL, task, NULL);
8286 if( status ) exit( status );
8288 /* make sure pthread_detach() isn't just a stub */
8289 #if HAVE_PTHREADS_D4
8290 status = pthread_detach( &t );
8292 status = pthread_detach( t );
8295 #ifdef HAVE_LINUX_THREADS
8296 pthread_kill_other_threads_np();
8304 if { (eval echo configure:8305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8306 ol_cv_pthread_lpthreads_lexc=yes
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8311 ol_cv_pthread_lpthreads_lexc=no
8322 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
8324 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
8325 ol_link_pthreads="-lpthreads -lexc"
8326 ol_link_threads=posix
8331 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
8332 if test "$ol_link_threads" = no ; then
8334 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
8335 echo "configure:8336: checking for pthread link with -lpthreads" >&5
8336 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8342 LIBS="-lpthreads $LIBS"
8344 if test "$cross_compiling" = yes; then
8345 cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8348 /* pthread test headers */
8349 #include <pthread.h>
8351 #define NULL (void*)0
8354 static void *task(p)
8357 return (void *) (p == NULL);
8362 /* pthread test function */
8366 /* make sure pthread_create() isn't just a stub */
8367 #if HAVE_PTHREADS_D4
8368 status = pthread_create(&t, pthread_attr_default, task, NULL);
8370 status = pthread_create(&t, NULL, task, NULL);
8373 if( status ) exit( status );
8375 /* make sure pthread_detach() isn't just a stub */
8376 #if HAVE_PTHREADS_D4
8377 status = pthread_detach( &t );
8379 status = pthread_detach( t );
8382 #ifdef HAVE_LINUX_THREADS
8383 pthread_kill_other_threads_np();
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 ol_cv_pthread_lib_lpthreads=yes
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 ol_cv_pthread_lib_lpthreads=no
8401 cat > conftest.$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8404 /* pthread test headers */
8405 #include <pthread.h>
8407 #define NULL (void*)0
8410 static void *task(p)
8413 return (void *) (p == NULL);
8417 int main(argc, argv)
8422 /* pthread test function */
8426 /* make sure pthread_create() isn't just a stub */
8427 #if HAVE_PTHREADS_D4
8428 status = pthread_create(&t, pthread_attr_default, task, NULL);
8430 status = pthread_create(&t, NULL, task, NULL);
8433 if( status ) exit( status );
8435 /* make sure pthread_detach() isn't just a stub */
8436 #if HAVE_PTHREADS_D4
8437 status = pthread_detach( &t );
8439 status = pthread_detach( t );
8442 #ifdef HAVE_LINUX_THREADS
8443 pthread_kill_other_threads_np();
8451 if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8453 ol_cv_pthread_lib_lpthreads=yes
8455 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8458 ol_cv_pthread_lib_lpthreads=no
8469 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
8471 if test $ol_cv_pthread_lib_lpthreads = yes ; then
8472 ol_link_pthreads="-lpthreads"
8473 ol_link_threads=posix
8478 if test $ol_link_threads != no ; then
8479 cat >> confdefs.h <<\EOF
8480 #define HAVE_PTHREADS 1
8484 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
8486 save_CPPFLAGS="$CPPFLAGS"
8488 LIBS="$LTHREAD_LIBS $LIBS"
8490 for ac_func in sched_yield pthread_yield
8492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8493 echo "configure:8494: checking for $ac_func" >&5
8494 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8495 echo $ac_n "(cached) $ac_c" 1>&6
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 /* System header to define __stub macros and hopefully few prototypes,
8501 which can conflict with char $ac_func(); below. */
8503 /* Override any gcc2 internal prototype to avoid an error. */
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8511 /* The GNU C library defines this for functions which it implements
8512 to always fail with ENOSYS. Some functions are actually named
8513 something starting with __ and the normal name is an alias. */
8514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8522 if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524 eval "ac_cv_func_$ac_func=yes"
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8529 eval "ac_cv_func_$ac_func=no"
8534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8535 echo "$ac_t""yes" 1>&6
8536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8537 cat >> confdefs.h <<EOF
8538 #define $ac_tr_func 1
8542 echo "$ac_t""no" 1>&6
8547 if test $ac_cv_func_sched_yield = no -a \
8548 $ac_cv_func_pthread_yield = no ; then
8549 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
8550 echo "configure:8551: checking for sched_yield in -lrt" >&5
8551 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
8552 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 ac_save_LIBS="$LIBS"
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8560 /* Override any gcc2 internal prototype to avoid an error. */
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8569 if { (eval echo configure:8570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8571 eval "ac_cv_lib_$ac_lib_var=yes"
8573 echo "configure: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8576 eval "ac_cv_lib_$ac_lib_var=no"
8579 LIBS="$ac_save_LIBS"
8582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8583 echo "$ac_t""yes" 1>&6
8584 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
8585 cat >> confdefs.h <<\EOF
8586 #define HAVE_SCHED_YIELD 1
8589 ac_cv_func_sched_yield=yes
8591 echo "$ac_t""no" 1>&6
8592 ac_cv_func_sched_yield=no
8596 if test $ac_cv_func_sched_yield = no -a \
8597 $ac_cv_func_pthread_yield = no ; then
8598 for ac_func in thr_yield
8600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8601 echo "configure:8602: checking for $ac_func" >&5
8602 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 /* System header to define __stub macros and hopefully few prototypes,
8609 which can conflict with char $ac_func(); below. */
8611 /* Override any gcc2 internal prototype to avoid an error. */
8612 /* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8619 /* The GNU C library defines this for functions which it implements
8620 to always fail with ENOSYS. Some functions are actually named
8621 something starting with __ and the normal name is an alias. */
8622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8630 if { (eval echo configure:8631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8632 eval "ac_cv_func_$ac_func=yes"
8634 echo "configure: failed program was:" >&5
8635 cat conftest.$ac_ext >&5
8637 eval "ac_cv_func_$ac_func=no"
8642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8643 echo "$ac_t""yes" 1>&6
8644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8645 cat >> confdefs.h <<EOF
8646 #define $ac_tr_func 1
8650 echo "$ac_t""no" 1>&6
8655 if test $ac_cv_func_sched_yield = no -a \
8656 $ac_cv_func_pthread_yield = no -a \
8657 "$ac_cv_func_thr_yield" = no ; then
8658 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
8661 for ac_func in pthread_kill
8663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8664 echo "configure:8665: checking for $ac_func" >&5
8665 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func(); below. */
8674 /* Override any gcc2 internal prototype to avoid an error. */
8675 /* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */
8682 /* The GNU C library defines this for functions which it implements
8683 to always fail with ENOSYS. Some functions are actually named
8684 something starting with __ and the normal name is an alias. */
8685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8693 if { (eval echo configure:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8695 eval "ac_cv_func_$ac_func=yes"
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8700 eval "ac_cv_func_$ac_func=no"
8705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8706 echo "$ac_t""yes" 1>&6
8707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8708 cat >> confdefs.h <<EOF
8709 #define $ac_tr_func 1
8713 echo "$ac_t""no" 1>&6
8718 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
8719 echo "configure:8720: checking for pthread_detach with <pthread.h>" >&5
8720 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8728 #include <pthread.h>
8730 #define NULL (void*)0
8734 pthread_detach(NULL);
8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8739 ol_cv_func_pthread_detach=yes
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8744 ol_cv_func_pthread_detach=no
8750 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
8752 if test $ol_cv_func_pthread_detach = no ; then
8753 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
8756 cat >> confdefs.h <<\EOF
8757 #define HAVE_PTHREAD_DETACH 1
8762 pthread_setconcurrency \
8763 pthread_getconcurrency \
8764 thr_setconcurrency \
8765 thr_getconcurrency \
8768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8769 echo "configure:8770: checking for $ac_func" >&5
8770 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8773 cat > conftest.$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8776 /* System header to define __stub macros and hopefully few prototypes,
8777 which can conflict with char $ac_func(); below. */
8779 /* Override any gcc2 internal prototype to avoid an error. */
8780 /* We use char because int might match the return type of a gcc2
8781 builtin and then its argument prototype would still apply. */
8787 /* The GNU C library defines this for functions which it implements
8788 to always fail with ENOSYS. Some functions are actually named
8789 something starting with __ and the normal name is an alias. */
8790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8798 if { (eval echo configure:8799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8800 eval "ac_cv_func_$ac_func=yes"
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8805 eval "ac_cv_func_$ac_func=no"
8810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8811 echo "$ac_t""yes" 1>&6
8812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8813 cat >> confdefs.h <<EOF
8814 #define $ac_tr_func 1
8818 echo "$ac_t""no" 1>&6
8824 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
8825 echo "configure:8826: checking for pthread_kill_other_threads_np" >&5
8826 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8829 cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8832 /* System header to define __stub macros and hopefully few prototypes,
8833 which can conflict with char pthread_kill_other_threads_np(); below. */
8835 /* Override any gcc2 internal prototype to avoid an error. */
8836 /* We use char because int might match the return type of a gcc2
8837 builtin and then its argument prototype would still apply. */
8838 char pthread_kill_other_threads_np();
8843 /* The GNU C library defines this for functions which it implements
8844 to always fail with ENOSYS. Some functions are actually named
8845 something starting with __ and the normal name is an alias. */
8846 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
8849 f = pthread_kill_other_threads_np;
8854 if { (eval echo configure:8855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8856 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
8858 echo "configure: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8861 eval "ac_cv_func_pthread_kill_other_threads_np=no"
8866 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
8867 echo "$ac_t""yes" 1>&6
8870 echo "$ac_t""no" 1>&6
8873 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
8874 echo "configure:8875: checking for LinuxThreads implementation" >&5
8875 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
8876 echo $ac_n "(cached) $ac_c" 1>&6
8878 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
8881 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
8886 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
8887 echo "configure:8888: checking for LinuxThreads consistency" >&5
8888 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
8889 echo $ac_n "(cached) $ac_c" 1>&6
8892 if test $ol_cv_header_linux_threads = yes -a \
8893 $ol_cv_sys_linux_threads = yes; then
8894 ol_cv_linux_threads=yes
8895 elif test $ol_cv_header_linux_threads = no -a \
8896 $ol_cv_sys_linux_threads = no; then
8897 ol_cv_linux_threads=no
8899 ol_cv_linux_threads=error
8904 echo "$ac_t""$ol_cv_linux_threads" 1>&6
8907 if test $ol_cv_linux_threads = error; then
8908 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
8911 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
8912 echo "configure:8913: checking if pthread_create() works" >&5
8913 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
8914 echo $ac_n "(cached) $ac_c" 1>&6
8917 if test "$cross_compiling" = yes; then
8918 ol_cv_pthread_create_works=yes
8920 cat > conftest.$ac_ext <<EOF
8921 #line 8922 "configure"
8922 #include "confdefs.h"
8923 /* pthread test headers */
8924 #include <pthread.h>
8926 #define NULL (void*)0
8929 static void *task(p)
8932 return (void *) (p == NULL);
8936 int main(argc, argv)
8941 /* pthread test function */
8945 /* make sure pthread_create() isn't just a stub */
8946 #if HAVE_PTHREADS_D4
8947 status = pthread_create(&t, pthread_attr_default, task, NULL);
8949 status = pthread_create(&t, NULL, task, NULL);
8952 if( status ) exit( status );
8954 /* make sure pthread_detach() isn't just a stub */
8955 #if HAVE_PTHREADS_D4
8956 status = pthread_detach( &t );
8958 status = pthread_detach( t );
8961 #ifdef HAVE_LINUX_THREADS
8962 pthread_kill_other_threads_np();
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8972 ol_cv_pthread_create_works=yes
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8977 ol_cv_pthread_create_works=no
8984 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
8986 if test $ol_cv_pthread_create_works = no ; then
8987 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
8990 if test $ol_with_yielding_select = auto ; then
8991 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
8992 echo "configure:8993: checking if select yields when using pthreads" >&5
8993 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
8994 echo $ac_n "(cached) $ac_c" 1>&6
8997 if test "$cross_compiling" = yes; then
8998 ol_cv_pthread_select_yields=cross
9000 cat > conftest.$ac_ext <<EOF
9001 #line 9002 "configure"
9002 #include "confdefs.h"
9004 #include <sys/types.h>
9005 #include <sys/time.h>
9007 #include <pthread.h>
9009 #define NULL (void*) 0
9012 static int fildes[2];
9014 static void *task(p)
9026 FD_SET(fildes[0], &rfds);
9028 /* we're not interested in any fds */
9029 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9036 exit(0); /* if we exit here, the select blocked the whole process */
9039 int main(argc, argv)
9045 /* create a pipe to select */
9046 if(pipe(&fildes[0])) {
9051 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9052 (void) pthread_setconcurrency(2);
9054 #ifdef HAVE_THR_SETCONCURRENCY
9055 /* Set Solaris LWP concurrency to 2 */
9056 thr_setconcurrency(2);
9060 #if HAVE_PTHREADS_D4
9061 pthread_create(&t, pthread_attr_default, task, NULL);
9063 pthread_create(&t, NULL, task, NULL);
9066 #if HAVE_SCHED_YIELD
9067 sched_yield(); /* make sure task runs first */
9069 #ifdef HAVE_PTHREAD_YIELD
9070 pthread_yield(); /* make sure task runs first */
9077 if { (eval echo configure:9078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9079 ol_cv_pthread_select_yields=no
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9084 ol_cv_pthread_select_yields=yes
9091 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9093 if test $ol_cv_pthread_select_yields = cross ; then
9094 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9097 if test $ol_cv_pthread_select_yields = yes ; then
9098 ol_with_yielding_select=yes
9102 CPPFLAGS="$save_CPPFLAGS"
9105 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9109 if test $ol_with_threads = posix ; then
9110 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9114 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9115 -o $ol_with_threads = mach ; then
9117 for ac_hdr in mach/cthreads.h
9119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9121 echo "configure:9122: checking for $ac_hdr" >&5
9122 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
9125 cat > conftest.$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9131 { (eval echo configure:9132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9133 if test -z "$ac_err"; then
9135 eval "ac_cv_header_$ac_safe=yes"
9138 echo "configure: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9141 eval "ac_cv_header_$ac_safe=no"
9145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9146 echo "$ac_t""yes" 1>&6
9147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9148 cat >> confdefs.h <<EOF
9149 #define $ac_tr_hdr 1
9153 echo "$ac_t""no" 1>&6
9157 if test $ac_cv_header_mach_cthreads_h = yes ; then
9158 ol_with_threads=found
9160 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9161 echo "configure:9162: checking for cthread_fork" >&5
9162 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 /* System header to define __stub macros and hopefully few prototypes,
9169 which can conflict with char cthread_fork(); below. */
9171 /* Override any gcc2 internal prototype to avoid an error. */
9172 /* We use char because int might match the return type of a gcc2
9173 builtin and then its argument prototype would still apply. */
9174 char cthread_fork();
9179 /* The GNU C library defines this for functions which it implements
9180 to always fail with ENOSYS. Some functions are actually named
9181 something starting with __ and the normal name is an alias. */
9182 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9190 if { (eval echo configure:9191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9192 eval "ac_cv_func_cthread_fork=yes"
9194 echo "configure: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9197 eval "ac_cv_func_cthread_fork=no"
9202 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9203 echo "$ac_t""yes" 1>&6
9206 echo "$ac_t""no" 1>&6
9210 if test $ol_link_threads = no ; then
9211 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9212 echo "configure:9213: checking for cthread_fork with -all_load" >&5
9213 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9218 LIBS="-all_load $LIBS"
9219 cat > conftest.$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9222 #include <mach/cthreads.h>
9225 cthread_fork((void *)0, (void *)0);
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9231 ol_cv_cthread_all_load=yes
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 ol_cv_cthread_all_load=no
9243 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
9245 if test $ol_cv_cthread_all_load = yes ; then
9246 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
9247 ol_link_threads=mach
9251 if test $ol_link_threads != no ; then
9252 : check for cthread specific functionality here
9253 cat >> confdefs.h <<\EOF
9254 #define HAVE_MACH_CTHREADS 1
9258 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
9262 if test $ol_with_threads = mach ; then
9263 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
9267 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9268 -o $ol_with_threads = lwp ; then
9270 for ac_hdr in thread.h synch.h
9272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9274 echo "configure:9275: checking for $ac_hdr" >&5
9275 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9278 cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure"
9280 #include "confdefs.h"
9283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9284 { (eval echo configure:9285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9286 if test -z "$ac_err"; then
9288 eval "ac_cv_header_$ac_safe=yes"
9291 echo "configure: failed program was:" >&5
9292 cat conftest.$ac_ext >&5
9294 eval "ac_cv_header_$ac_safe=no"
9298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9299 echo "$ac_t""yes" 1>&6
9300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9301 cat >> confdefs.h <<EOF
9302 #define $ac_tr_hdr 1
9306 echo "$ac_t""no" 1>&6
9310 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
9311 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
9312 echo "configure:9313: checking for thr_create in -lthread" >&5
9313 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
9314 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9317 ac_save_LIBS="$LIBS"
9318 LIBS="-lthread $LIBS"
9319 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9333 eval "ac_cv_lib_$ac_lib_var=yes"
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9338 eval "ac_cv_lib_$ac_lib_var=no"
9341 LIBS="$ac_save_LIBS"
9344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9345 echo "$ac_t""yes" 1>&6
9348 echo "$ac_t""no" 1>&6
9353 if test $have_thr = yes ; then
9354 cat >> confdefs.h <<\EOF
9358 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
9361 if test $ol_with_yielding_select = auto ; then
9362 ol_with_yielding_select=yes
9366 thr_setconcurrency \
9367 thr_getconcurrency \
9370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9371 echo "configure:9372: checking for $ac_func" >&5
9372 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 /* System header to define __stub macros and hopefully few prototypes,
9379 which can conflict with char $ac_func(); below. */
9381 /* Override any gcc2 internal prototype to avoid an error. */
9382 /* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9389 /* The GNU C library defines this for functions which it implements
9390 to always fail with ENOSYS. Some functions are actually named
9391 something starting with __ and the normal name is an alias. */
9392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9400 if { (eval echo configure:9401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9402 eval "ac_cv_func_$ac_func=yes"
9404 echo "configure: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9407 eval "ac_cv_func_$ac_func=no"
9412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9413 echo "$ac_t""yes" 1>&6
9414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9415 cat >> confdefs.h <<EOF
9416 #define $ac_tr_func 1
9420 echo "$ac_t""no" 1>&6
9427 for ac_hdr in lwp/lwp.h
9429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9431 echo "configure:9432: checking for $ac_hdr" >&5
9432 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9441 { (eval echo configure:9442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9443 if test -z "$ac_err"; then
9445 eval "ac_cv_header_$ac_safe=yes"
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9451 eval "ac_cv_header_$ac_safe=no"
9455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9456 echo "$ac_t""yes" 1>&6
9457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9458 cat >> confdefs.h <<EOF
9459 #define $ac_tr_hdr 1
9463 echo "$ac_t""no" 1>&6
9467 if test $ac_cv_header_lwp_lwp_h = yes ; then
9468 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
9469 echo "configure:9470: checking for lwp_create in -llwp" >&5
9470 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
9471 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9474 ac_save_LIBS="$LIBS"
9476 cat > conftest.$ac_ext <<EOF
9477 #line 9478 "configure"
9478 #include "confdefs.h"
9479 /* Override any gcc2 internal prototype to avoid an error. */
9480 /* We use char because int might match the return type of a gcc2
9481 builtin and then its argument prototype would still apply. */
9488 if { (eval echo configure:9489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9490 eval "ac_cv_lib_$ac_lib_var=yes"
9492 echo "configure: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9495 eval "ac_cv_lib_$ac_lib_var=no"
9498 LIBS="$ac_save_LIBS"
9501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9502 echo "$ac_t""yes" 1>&6
9505 echo "$ac_t""no" 1>&6
9510 if test $have_lwp = yes ; then
9511 cat >> confdefs.h <<\EOF
9515 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
9518 if test $ol_with_yielding_select = auto ; then
9519 ol_with_yielding_select=no
9525 if test $ol_with_yielding_select = yes ; then
9526 cat >> confdefs.h <<\EOF
9527 #define HAVE_YIELDING_SELECT 1
9532 if test $ol_with_threads = manual ; then
9535 echo "configure: warning: thread defines and link options must be set manually" 1>&2
9537 for ac_hdr in pthread.h sched.h
9539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9541 echo "configure:9542: checking for $ac_hdr" >&5
9542 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9545 cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9551 { (eval echo configure:9552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9553 if test -z "$ac_err"; then
9555 eval "ac_cv_header_$ac_safe=yes"
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9561 eval "ac_cv_header_$ac_safe=no"
9565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9568 cat >> confdefs.h <<EOF
9569 #define $ac_tr_hdr 1
9573 echo "$ac_t""no" 1>&6
9577 for ac_func in sched_yield pthread_yield
9579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9580 echo "configure:9581: checking for $ac_func" >&5
9581 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 /* System header to define __stub macros and hopefully few prototypes,
9588 which can conflict with char $ac_func(); below. */
9590 /* Override any gcc2 internal prototype to avoid an error. */
9591 /* We use char because int might match the return type of a gcc2
9592 builtin and then its argument prototype would still apply. */
9598 /* The GNU C library defines this for functions which it implements
9599 to always fail with ENOSYS. Some functions are actually named
9600 something starting with __ and the normal name is an alias. */
9601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9609 if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9611 eval "ac_cv_func_$ac_func=yes"
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9616 eval "ac_cv_func_$ac_func=no"
9621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9622 echo "$ac_t""yes" 1>&6
9623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9624 cat >> confdefs.h <<EOF
9625 #define $ac_tr_func 1
9629 echo "$ac_t""no" 1>&6
9634 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
9635 echo "configure:9636: checking for LinuxThreads pthread.h" >&5
9636 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9639 cat > conftest.$ac_ext <<EOF
9640 #line 9641 "configure"
9641 #include "confdefs.h"
9642 #include <pthread.h>
9644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9645 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
9647 ol_cv_header_linux_threads=yes
9650 ol_cv_header_linux_threads=no
9657 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
9658 if test $ol_cv_header_linux_threads = yes; then
9659 cat >> confdefs.h <<\EOF
9660 #define HAVE_LINUX_THREADS 1
9666 for ac_hdr in mach/cthreads.h
9668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9670 echo "configure:9671: checking for $ac_hdr" >&5
9671 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9680 { (eval echo configure:9681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9682 if test -z "$ac_err"; then
9684 eval "ac_cv_header_$ac_safe=yes"
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9690 eval "ac_cv_header_$ac_safe=no"
9694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9695 echo "$ac_t""yes" 1>&6
9696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9697 cat >> confdefs.h <<EOF
9698 #define $ac_tr_hdr 1
9702 echo "$ac_t""no" 1>&6
9706 for ac_hdr in lwp/lwp.h
9708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9710 echo "configure:9711: checking for $ac_hdr" >&5
9711 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9712 echo $ac_n "(cached) $ac_c" 1>&6
9714 cat > conftest.$ac_ext <<EOF
9715 #line 9716 "configure"
9716 #include "confdefs.h"
9719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9720 { (eval echo configure:9721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9722 if test -z "$ac_err"; then
9724 eval "ac_cv_header_$ac_safe=yes"
9727 echo "configure: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9730 eval "ac_cv_header_$ac_safe=no"
9734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9735 echo "$ac_t""yes" 1>&6
9736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9737 cat >> confdefs.h <<EOF
9738 #define $ac_tr_hdr 1
9742 echo "$ac_t""no" 1>&6
9746 for ac_hdr in thread.h synch.h
9748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9750 echo "configure:9751: checking for $ac_hdr" >&5
9751 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
9754 cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9760 { (eval echo configure:9761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9762 if test -z "$ac_err"; then
9764 eval "ac_cv_header_$ac_safe=yes"
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9770 eval "ac_cv_header_$ac_safe=no"
9774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9775 echo "$ac_t""yes" 1>&6
9776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9777 cat >> confdefs.h <<EOF
9778 #define $ac_tr_hdr 1
9782 echo "$ac_t""no" 1>&6
9788 if test $ol_link_threads != no ; then
9789 cat >> confdefs.h <<\EOF
9793 cat >> confdefs.h <<\EOF
9794 #define _REENTRANT 1
9797 cat >> confdefs.h <<\EOF
9798 #define THREAD_SAFE 1
9801 cat >> confdefs.h <<\EOF
9802 #define _THREAD_SAFE 1
9805 cat >> confdefs.h <<\EOF
9806 #define THREADSAFE 1
9809 cat >> confdefs.h <<\EOF
9810 #define _THREADSAFE 1
9813 cat >> confdefs.h <<\EOF
9814 #define _SGI_MP_SOURCE 1
9818 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
9819 echo "configure:9820: checking for thread specific errno" >&5
9820 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9824 cat > conftest.$ac_ext <<EOF
9825 #line 9826 "configure"
9826 #include "confdefs.h"
9832 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9834 ol_cv_errno_thread_specific=yes
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9839 ol_cv_errno_thread_specific=no
9845 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
9847 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
9848 echo "configure:9849: checking for thread specific h_errno" >&5
9849 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9853 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure"
9855 #include "confdefs.h"
9861 if { (eval echo configure:9862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9863 ol_cv_h_errno_thread_specific=yes
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9868 ol_cv_h_errno_thread_specific=no
9874 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
9876 if test $ol_cv_errno_thread_specific != yes \
9877 -o $ol_cv_h_errno_thread_specific != yes ; then
9878 LIBS="$LTHREAD_LIBS $LIBS"
9884 if test $ol_link_threads = no ; then
9885 if test $ol_with_threads = yes ; then
9886 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
9889 if test $ol_with_threads = auto ; then
9890 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
9894 cat >> confdefs.h <<\EOF
9895 #define NO_THREADS 1
9901 if test $ol_link_threads != no ; then
9902 cat >> confdefs.h <<\EOF
9903 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
9910 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
9911 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
9912 echo "configure:9913: checking for DB2 library" >&5
9913 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
9914 echo $ac_n "(cached) $ac_c" 1>&6
9917 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
9918 echo "configure:9919: checking for db_open in -ldb" >&5
9919 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
9920 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9923 ac_save_LIBS="$LIBS"
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9928 /* Override any gcc2 internal prototype to avoid an error. */
9929 /* We use char because int might match the return type of a gcc2
9930 builtin and then its argument prototype would still apply. */
9937 if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9939 eval "ac_cv_lib_$ac_lib_var=yes"
9941 echo "configure: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9944 eval "ac_cv_lib_$ac_lib_var=no"
9947 LIBS="$ac_save_LIBS"
9950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9951 echo "$ac_t""yes" 1>&6
9954 echo "$ac_t""no" 1>&6
9962 echo "$ac_t""$ol_cv_lib_db2" 1>&6
9966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9968 echo "configure:9969: checking for $ac_hdr" >&5
9969 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9972 cat > conftest.$ac_ext <<EOF
9973 #line 9974 "configure"
9974 #include "confdefs.h"
9977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9978 { (eval echo configure:9979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9980 if test -z "$ac_err"; then
9982 eval "ac_cv_header_$ac_safe=yes"
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9988 eval "ac_cv_header_$ac_safe=no"
9992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9993 echo "$ac_t""yes" 1>&6
9994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9995 cat >> confdefs.h <<EOF
9996 #define $ac_tr_hdr 1
10000 echo "$ac_t""no" 1>&6
10004 if test $ac_cv_header_db_h = yes ; then
10005 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10006 echo "configure:10007: checking if db.h is DB2" >&5
10007 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10008 echo $ac_n "(cached) $ac_c" 1>&6
10011 cat > conftest.$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10016 /* this check could be improved */
10017 # ifdef DB_VERSION_MAJOR
10018 # if DB_VERSION_MAJOR == 2
10024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10025 egrep "__db_version_2" >/dev/null 2>&1; then
10027 ol_cv_header_db2=yes
10030 ol_cv_header_db2=no
10036 echo "$ac_t""$ol_cv_header_db2" 1>&6
10038 ol_cv_header_db2=no
10043 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10044 echo "configure:10045: checking for Berkeley DB2" >&5
10045 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10046 echo $ac_n "(cached) $ac_c" 1>&6
10049 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10050 ol_cv_berkeley_db2=no
10052 ol_cv_berkeley_db2=yes
10057 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10058 if test $ol_cv_berkeley_db2 = yes ; then
10059 cat >> confdefs.h <<\EOF
10060 #define HAVE_BERKELEY_DB2 1
10066 if test $ol_cv_berkeley_db2 = yes ; then
10068 ol_with_ldbm_api=db2
10070 if test $ol_with_ldbm_type = hash ; then
10071 cat >> confdefs.h <<\EOF
10072 #define LDBM_USE_DBHASH 1
10076 cat >> confdefs.h <<\EOF
10077 #define LDBM_USE_DBBTREE 1
10082 if test $ol_cv_lib_db2 != yes ; then
10083 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
10089 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
10093 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
10094 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
10095 echo "configure:10096: checking for Berkeley DB library" >&5
10096 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10100 for ac_hdr in db1/db.h
10102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10104 echo "configure:10105: checking for $ac_hdr" >&5
10105 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10108 cat > conftest.$ac_ext <<EOF
10109 #line 10110 "configure"
10110 #include "confdefs.h"
10113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10114 { (eval echo configure:10115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10116 if test -z "$ac_err"; then
10118 eval "ac_cv_header_$ac_safe=yes"
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10124 eval "ac_cv_header_$ac_safe=no"
10128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10129 echo "$ac_t""yes" 1>&6
10130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10131 cat >> confdefs.h <<EOF
10132 #define $ac_tr_hdr 1
10136 echo "$ac_t""no" 1>&6
10141 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10142 echo "configure:10143: checking for dbopen" >&5
10143 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10146 cat > conftest.$ac_ext <<EOF
10147 #line 10148 "configure"
10148 #include "confdefs.h"
10149 /* System header to define __stub macros and hopefully few prototypes,
10150 which can conflict with char dbopen(); below. */
10151 #include <assert.h>
10152 /* Override any gcc2 internal prototype to avoid an error. */
10153 /* We use char because int might match the return type of a gcc2
10154 builtin and then its argument prototype would still apply. */
10160 /* The GNU C library defines this for functions which it implements
10161 to always fail with ENOSYS. Some functions are actually named
10162 something starting with __ and the normal name is an alias. */
10163 #if defined (__stub_dbopen) || defined (__stub___dbopen)
10171 if { (eval echo configure:10172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10173 eval "ac_cv_func_dbopen=yes"
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10178 eval "ac_cv_func_dbopen=no"
10183 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
10184 echo "$ac_t""yes" 1>&6
10187 echo "$ac_t""no" 1>&6
10189 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
10190 echo "configure:10191: checking for dbopen in -ldb1" >&5
10191 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
10192 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10193 echo $ac_n "(cached) $ac_c" 1>&6
10195 ac_save_LIBS="$LIBS"
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 /* Override any gcc2 internal prototype to avoid an error. */
10201 /* We use char because int might match the return type of a gcc2
10202 builtin and then its argument prototype would still apply. */
10209 if { (eval echo configure:10210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10211 eval "ac_cv_lib_$ac_lib_var=yes"
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10216 eval "ac_cv_lib_$ac_lib_var=no"
10219 LIBS="$ac_save_LIBS"
10222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10223 echo "$ac_t""yes" 1>&6
10226 echo "$ac_t""no" 1>&6
10228 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10229 echo "configure:10230: checking for dbopen in -ldb" >&5
10230 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
10231 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10234 ac_save_LIBS="$LIBS"
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10238 "configure"
10238 #include "confdefs.h"
10239 /* Override any gcc2 internal prototype to avoid an error. */
10240 /* We use char because int might match the return type of a gcc2
10241 builtin and then its argument prototype would still apply. */
10248 if { (eval echo configure:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10250 eval "ac_cv_lib_$ac_lib_var=yes"
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10255 eval "ac_cv_lib_$ac_lib_var=no"
10258 LIBS="$ac_save_LIBS"
10261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10262 echo "$ac_t""yes" 1>&6
10265 echo "$ac_t""no" 1>&6
10279 echo "$ac_t""$ol_cv_lib_db" 1>&6
10282 for ac_hdr in db_185.h
10284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10286 echo "configure:10287: checking for $ac_hdr" >&5
10287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10296 { (eval echo configure:10297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10298 if test -z "$ac_err"; then
10300 eval "ac_cv_header_$ac_safe=yes"
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10306 eval "ac_cv_header_$ac_safe=no"
10310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10311 echo "$ac_t""yes" 1>&6
10312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10313 cat >> confdefs.h <<EOF
10314 #define $ac_tr_hdr 1
10318 echo "$ac_t""no" 1>&6
10322 if test "$ol_cv_header_db2" = yes ; then
10324 ol_cv_header_db=$ac_cv_header_db_185_h
10326 ol_cv_header_db=$ac_cv_header_db_h
10331 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
10332 echo "configure:10333: checking for Berkeley DB" >&5
10333 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
10334 echo $ac_n "(cached) $ac_c" 1>&6
10337 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
10338 ol_cv_berkeley_db=no
10340 ol_cv_berkeley_db=yes
10345 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
10346 if test $ol_cv_berkeley_db = yes ; then
10347 cat >> confdefs.h <<\EOF
10348 #define HAVE_BERKELEY_DB 1
10354 if test $ol_cv_berkeley_db = yes ; then
10356 ol_with_ldbm_api=db
10358 if test $ol_with_ldbm_type = hash ; then
10359 cat >> confdefs.h <<\EOF
10360 #define LDBM_USE_DBHASH 1
10364 cat >> confdefs.h <<\EOF
10365 #define LDBM_USE_DBBTREE 1
10370 if test $ol_cv_lib_db != yes ; then
10371 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
10376 if test $ol_with_ldbm_api = manual ; then
10379 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
10381 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
10383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10385 echo "configure:10386: checking for $ac_hdr" >&5
10386 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10387 echo $ac_n "(cached) $ac_c" 1>&6
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10395 { (eval echo configure:10396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10397 if test -z "$ac_err"; then
10399 eval "ac_cv_header_$ac_safe=yes"
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 eval "ac_cv_header_$ac_safe=no"
10409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10410 echo "$ac_t""yes" 1>&6
10411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10412 cat >> confdefs.h <<EOF
10413 #define $ac_tr_hdr 1
10417 echo "$ac_t""no" 1>&6
10423 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
10424 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
10425 ol_with_ldbm_api=none
10428 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
10429 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
10430 echo "configure:10431: checking for MDBM library" >&5
10431 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10435 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
10436 echo "configure:10437: checking for mdbm_set_chain" >&5
10437 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
10438 echo $ac_n "(cached) $ac_c" 1>&6
10440 cat > conftest.$ac_ext <<EOF
10441 #line 10442 "configure"
10442 #include "confdefs.h"
10443 /* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char mdbm_set_chain(); below. */
10445 #include <assert.h>
10446 /* Override any gcc2 internal prototype to avoid an error. */
10447 /* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10449 char mdbm_set_chain();
10454 /* The GNU C library defines this for functions which it implements
10455 to always fail with ENOSYS. Some functions are actually named
10456 something starting with __ and the normal name is an alias. */
10457 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
10460 f = mdbm_set_chain;
10465 if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10467 eval "ac_cv_func_mdbm_set_chain=yes"
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10472 eval "ac_cv_func_mdbm_set_chain=no"
10477 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
10478 echo "$ac_t""yes" 1>&6
10481 echo "$ac_t""no" 1>&6
10483 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
10484 echo "configure:10485: checking for mdbm_set_chain in -lmdbm" >&5
10485 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
10486 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10489 ac_save_LIBS="$LIBS"
10490 LIBS="-lmdbm $LIBS"
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 /* Override any gcc2 internal prototype to avoid an error. */
10495 /* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10497 char mdbm_set_chain();
10503 if { (eval echo configure:10504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10505 eval "ac_cv_lib_$ac_lib_var=yes"
10507 echo "configure: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10510 eval "ac_cv_lib_$ac_lib_var=no"
10513 LIBS="$ac_save_LIBS"
10516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10517 echo "$ac_t""yes" 1>&6
10518 ol_cv_lib_mdbm=-lmdbm
10520 echo "$ac_t""no" 1>&6
10531 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
10534 for ac_hdr in mdbm.h
10536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10538 echo "configure:10539: checking for $ac_hdr" >&5
10539 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10548 { (eval echo configure:10549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10550 if test -z "$ac_err"; then
10552 eval "ac_cv_header_$ac_safe=yes"
10555 echo "configure: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10558 eval "ac_cv_header_$ac_safe=no"
10562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10563 echo "$ac_t""yes" 1>&6
10564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10565 cat >> confdefs.h <<EOF
10566 #define $ac_tr_hdr 1
10570 echo "$ac_t""no" 1>&6
10574 echo $ac_n "checking for db""... $ac_c" 1>&6
10575 echo "configure:10576: checking for db" >&5
10576 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
10577 echo $ac_n "(cached) $ac_c" 1>&6
10580 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
10588 echo "$ac_t""$ol_cv_mdbm" 1>&6
10589 if test $ol_cv_mdbm = yes ; then
10590 cat >> confdefs.h <<\EOF
10591 #define HAVE_MDBM 1
10597 if test $ol_cv_mdbm = yes ; then
10599 ol_with_ldbm_api=mdbm
10600 if test $ol_cv_lib_mdbm != yes ; then
10601 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
10606 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
10607 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
10608 echo "configure:10609: checking for GDBM library" >&5
10609 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
10610 echo $ac_n "(cached) $ac_c" 1>&6
10613 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
10614 echo "configure:10615: checking for gdbm_open" >&5
10615 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 /* System header to define __stub macros and hopefully few prototypes,
10622 which can conflict with char gdbm_open(); below. */
10623 #include <assert.h>
10624 /* Override any gcc2 internal prototype to avoid an error. */
10625 /* We use char because int might match the return type of a gcc2
10626 builtin and then its argument prototype would still apply. */
10632 /* The GNU C library defines this for functions which it implements
10633 to always fail with ENOSYS. Some functions are actually named
10634 something starting with __ and the normal name is an alias. */
10635 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
10643 if { (eval echo configure:10644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10645 eval "ac_cv_func_gdbm_open=yes"
10647 echo "configure: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10650 eval "ac_cv_func_gdbm_open=no"
10655 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
10656 echo "$ac_t""yes" 1>&6
10659 echo "$ac_t""no" 1>&6
10661 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
10662 echo "configure:10663: checking for gdbm_open in -lgdbm" >&5
10663 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
10664 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10665 echo $ac_n "(cached) $ac_c" 1>&6
10667 ac_save_LIBS="$LIBS"
10668 LIBS="-lgdbm $LIBS"
10669 cat > conftest.$ac_ext <<EOF
10670 #line 10671 "configure"
10671 #include "confdefs.h"
10672 /* Override any gcc2 internal prototype to avoid an error. */
10673 /* We use char because int might match the return type of a gcc2
10674 builtin and then its argument prototype would still apply. */
10681 if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10683 eval "ac_cv_lib_$ac_lib_var=yes"
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10688 eval "ac_cv_lib_$ac_lib_var=no"
10691 LIBS="$ac_save_LIBS"
10694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10695 echo "$ac_t""yes" 1>&6
10696 ol_cv_lib_gdbm=-lgdbm
10698 echo "$ac_t""no" 1>&6
10709 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
10712 for ac_hdr in gdbm.h
10714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10716 echo "configure:10717: checking for $ac_hdr" >&5
10717 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10718 echo $ac_n "(cached) $ac_c" 1>&6
10720 cat > conftest.$ac_ext <<EOF
10721 #line 10722 "configure"
10722 #include "confdefs.h"
10725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10726 { (eval echo configure:10727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10728 if test -z "$ac_err"; then
10730 eval "ac_cv_header_$ac_safe=yes"
10733 echo "configure: failed program was:" >&5
10734 cat conftest.$ac_ext >&5
10736 eval "ac_cv_header_$ac_safe=no"
10740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10741 echo "$ac_t""yes" 1>&6
10742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10743 cat >> confdefs.h <<EOF
10744 #define $ac_tr_hdr 1
10748 echo "$ac_t""no" 1>&6
10752 echo $ac_n "checking for db""... $ac_c" 1>&6
10753 echo "configure:10754: checking for db" >&5
10754 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10758 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
10766 echo "$ac_t""$ol_cv_gdbm" 1>&6
10767 if test $ol_cv_gdbm = yes ; then
10768 cat >> confdefs.h <<\EOF
10769 #define HAVE_GDBM 1
10775 if test $ol_cv_gdbm = yes ; then
10777 ol_with_ldbm_api=gdbm
10779 if test $ol_cv_lib_gdbm != yes ; then
10780 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
10785 if test $ol_with_ldbm_api = auto ; then
10786 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
10787 elif test $ol_with_ldbm_api = ndbm ; then
10788 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
10789 echo "configure:10790: checking for NDBM library" >&5
10790 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
10791 echo $ac_n "(cached) $ac_c" 1>&6
10794 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
10795 echo "configure:10796: checking for dbm_open" >&5
10796 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
10797 echo $ac_n "(cached) $ac_c" 1>&6
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 /* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char dbm_open(); below. */
10804 #include <assert.h>
10805 /* Override any gcc2 internal prototype to avoid an error. */
10806 /* We use char because int might match the return type of a gcc2
10807 builtin and then its argument prototype would still apply. */
10813 /* The GNU C library defines this for functions which it implements
10814 to always fail with ENOSYS. Some functions are actually named
10815 something starting with __ and the normal name is an alias. */
10816 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
10824 if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10826 eval "ac_cv_func_dbm_open=yes"
10828 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10831 eval "ac_cv_func_dbm_open=no"
10836 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
10837 echo "$ac_t""yes" 1>&6
10840 echo "$ac_t""no" 1>&6
10842 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
10843 echo "configure:10844: checking for dbm_open in -lndbm" >&5
10844 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
10845 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10846 echo $ac_n "(cached) $ac_c" 1>&6
10848 ac_save_LIBS="$LIBS"
10849 LIBS="-lndbm $LIBS"
10850 cat > conftest.$ac_ext <<EOF
10851 #line 10852 "configure"
10852 #include "confdefs.h"
10853 /* Override any gcc2 internal prototype to avoid an error. */
10854 /* We use char because int might match the return type of a gcc2
10855 builtin and then its argument prototype would still apply. */
10862 if { (eval echo configure:10863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10864 eval "ac_cv_lib_$ac_lib_var=yes"
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10869 eval "ac_cv_lib_$ac_lib_var=no"
10872 LIBS="$ac_save_LIBS"
10875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10876 echo "$ac_t""yes" 1>&6
10877 ol_cv_lib_ndbm=-lndbm
10879 echo "$ac_t""no" 1>&6
10881 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
10882 echo "configure:10883: checking for dbm_open in -ldbm" >&5
10883 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
10884 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10885 echo $ac_n "(cached) $ac_c" 1>&6
10887 ac_save_LIBS="$LIBS"
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10892 /* Override any gcc2 internal prototype to avoid an error. */
10893 /* We use char because int might match the return type of a gcc2
10894 builtin and then its argument prototype would still apply. */
10901 if { (eval echo configure:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10903 eval "ac_cv_lib_$ac_lib_var=yes"
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10908 eval "ac_cv_lib_$ac_lib_var=no"
10911 LIBS="$ac_save_LIBS"
10914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10915 echo "$ac_t""yes" 1>&6
10916 ol_cv_lib_ndbm=-ldbm
10918 echo "$ac_t""no" 1>&6
10931 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
10934 for ac_hdr in ndbm.h
10936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10938 echo "configure:10939: checking for $ac_hdr" >&5
10939 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10940 echo $ac_n "(cached) $ac_c" 1>&6
10942 cat > conftest.$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10948 { (eval echo configure:10949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10950 if test -z "$ac_err"; then
10952 eval "ac_cv_header_$ac_safe=yes"
10955 echo "configure: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
10958 eval "ac_cv_header_$ac_safe=no"
10962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10963 echo "$ac_t""yes" 1>&6
10964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10965 cat >> confdefs.h <<EOF
10966 #define $ac_tr_hdr 1
10970 echo "$ac_t""no" 1>&6
10974 echo $ac_n "checking for db""... $ac_c" 1>&6
10975 echo "configure:10976: checking for db" >&5
10976 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10980 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
10988 echo "$ac_t""$ol_cv_ndbm" 1>&6
10989 if test $ol_cv_ndbm = yes ; then
10990 cat >> confdefs.h <<\EOF
10991 #define HAVE_NDBM 1
10997 if test $ol_cv_ndbm = yes ; then
10999 ol_with_ldbm_api=ndbm
11001 if test $ol_cv_lib_ndbm != yes ; then
11002 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11007 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11008 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11009 if test $ol_enable_ldbm = yes ; then
11010 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11013 echo "configure: warning: disabling LDBM" 1>&2
11017 if test $ol_enable_wrappers != no ; then
11018 for ac_hdr in tcpd.h
11020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11022 echo "configure:11023: checking for $ac_hdr" >&5
11023 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11024 echo $ac_n "(cached) $ac_c" 1>&6
11026 cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure"
11028 #include "confdefs.h"
11031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11032 { (eval echo configure:11033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11034 if test -z "$ac_err"; then
11036 eval "ac_cv_header_$ac_safe=yes"
11039 echo "configure: failed program was:" >&5
11040 cat conftest.$ac_ext >&5
11042 eval "ac_cv_header_$ac_safe=no"
11046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11047 echo "$ac_t""yes" 1>&6
11048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11049 cat >> confdefs.h <<EOF
11050 #define $ac_tr_hdr 1
11054 echo "$ac_t""no" 1>&6
11059 if test $ac_cv_header_tcpd_h != yes ; then
11062 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
11063 echo "configure:11064: checking for main in -lwrap" >&5
11064 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
11065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11068 ac_save_LIBS="$LIBS"
11069 LIBS="-lwrap $LIBS"
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure"
11072 #include "confdefs.h"
11078 if { (eval echo configure:11079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11080 eval "ac_cv_lib_$ac_lib_var=yes"
11082 echo "configure: failed program was:" >&5
11083 cat conftest.$ac_ext >&5
11085 eval "ac_cv_lib_$ac_lib_var=no"
11088 LIBS="$ac_save_LIBS"
11091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11092 echo "$ac_t""yes" 1>&6
11095 echo "$ac_t""no" 1>&6
11101 if test $have_wrappers = yes ; then
11102 cat >> confdefs.h <<\EOF
11103 #define HAVE_TCPD 1
11106 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
11108 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
11109 echo "configure:11110: checking for main in -lnsl" >&5
11110 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
11111 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11112 echo $ac_n "(cached) $ac_c" 1>&6
11114 ac_save_LIBS="$LIBS"
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11124 if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11126 eval "ac_cv_lib_$ac_lib_var=yes"
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11131 eval "ac_cv_lib_$ac_lib_var=no"
11134 LIBS="$ac_save_LIBS"
11137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11138 echo "$ac_t""yes" 1>&6
11139 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11141 cat >> confdefs.h <<EOF
11142 #define $ac_tr_lib 1
11148 echo "$ac_t""no" 1>&6
11152 echo "configure: warning: could not find -lwrap" 1>&2
11153 if test $ol_enable_wrappers = yes ; then
11154 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
11157 echo "configure: warning: disabling wrappers support" 1>&2
11158 ol_enable_wrappers=no
11162 if test $ol_enable_syslog != no ; then
11163 echo $ac_n "checking for openlog""... $ac_c" 1>&6
11164 echo "configure:11165: checking for openlog" >&5
11165 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
11166 echo $ac_n "(cached) $ac_c" 1>&6
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11171 /* System header to define __stub macros and hopefully few prototypes,
11172 which can conflict with char openlog(); below. */
11173 #include <assert.h>
11174 /* Override any gcc2 internal prototype to avoid an error. */
11175 /* We use char because int might match the return type of a gcc2
11176 builtin and then its argument prototype would still apply. */
11182 /* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
11185 #if defined (__stub_openlog) || defined (__stub___openlog)
11193 if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11195 eval "ac_cv_func_openlog=yes"
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11200 eval "ac_cv_func_openlog=no"
11205 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
11206 echo "$ac_t""yes" 1>&6
11209 echo "$ac_t""no" 1>&6
11212 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
11213 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
11215 ol_enable_syslog=$ac_cv_func_openlog
11218 if test $ol_enable_dmalloc != no ; then
11219 for ac_hdr in dmalloc.h
11221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11223 echo "configure:11224: checking for $ac_hdr" >&5
11224 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11227 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure"
11229 #include "confdefs.h"
11232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11233 { (eval echo configure:11234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11235 if test -z "$ac_err"; then
11237 eval "ac_cv_header_$ac_safe=yes"
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 eval "ac_cv_header_$ac_safe=no"
11247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11250 cat >> confdefs.h <<EOF
11251 #define $ac_tr_hdr 1
11255 echo "$ac_t""no" 1>&6
11259 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
11260 echo "configure:11261: checking for dmalloc_shutdown in -ldmalloc" >&5
11261 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
11262 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11263 echo $ac_n "(cached) $ac_c" 1>&6
11265 ac_save_LIBS="$LIBS"
11266 LIBS="-ldmalloc $LIBS"
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11270 /* Override any gcc2 internal prototype to avoid an error. */
11271 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */
11273 char dmalloc_shutdown();
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11281 eval "ac_cv_lib_$ac_lib_var=yes"
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11286 eval "ac_cv_lib_$ac_lib_var=no"
11289 LIBS="$ac_save_LIBS"
11292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
11294 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11296 cat >> confdefs.h <<EOF
11297 #define $ac_tr_lib 1
11300 LIBS="-ldmalloc $LIBS"
11303 echo "$ac_t""no" 1>&6
11308 if test $ol_enable_tcl != no ; then
11309 for ac_hdr in tcl.h
11311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11313 echo "configure:11314: checking for $ac_hdr" >&5
11314 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11315 echo $ac_n "(cached) $ac_c" 1>&6
11317 cat > conftest.$ac_ext <<EOF
11318 #line 11319 "configure"
11319 #include "confdefs.h"
11322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11323 { (eval echo configure:11324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11325 if test -z "$ac_err"; then
11327 eval "ac_cv_header_$ac_safe=yes"
11330 echo "configure: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11333 eval "ac_cv_header_$ac_safe=no"
11337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11340 cat >> confdefs.h <<EOF
11341 #define $ac_tr_hdr 1
11345 echo "$ac_t""no" 1>&6
11350 if test $ac_cv_header_tcl_h != yes ; then
11353 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
11354 echo "configure:11355: checking for main in -ltcl" >&5
11355 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
11356 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11359 ac_save_LIBS="$LIBS"
11361 cat > conftest.$ac_ext <<EOF
11362 #line 11363 "configure"
11363 #include "confdefs.h"
11369 if { (eval echo configure:11370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11371 eval "ac_cv_lib_$ac_lib_var=yes"
11373 echo "configure: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11376 eval "ac_cv_lib_$ac_lib_var=no"
11379 LIBS="$ac_save_LIBS"
11382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11383 echo "$ac_t""yes" 1>&6
11384 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
11386 echo "$ac_t""no" 1>&6
11391 if test $have_tcl != yes; then
11392 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
11393 echo "configure:11394: checking for main in -ltcl7.6" >&5
11394 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
11395 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11398 ac_save_LIBS="$LIBS"
11399 LIBS="-ltcl7.6 $LIBS"
11400 cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11408 if { (eval echo configure:11409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11410 eval "ac_cv_lib_$ac_lib_var=yes"
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11415 eval "ac_cv_lib_$ac_lib_var=no"
11418 LIBS="$ac_save_LIBS"
11421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11422 echo "$ac_t""yes" 1>&6
11423 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
11425 echo "$ac_t""no" 1>&6
11431 if test $have_tcl != yes; then
11432 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
11433 echo "configure:11434: checking for main in -ltcl8.0" >&5
11434 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
11435 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11436 echo $ac_n "(cached) $ac_c" 1>&6
11438 ac_save_LIBS="$LIBS"
11439 LIBS="-ltcl8.0 $LIBS"
11440 cat > conftest.$ac_ext <<EOF
11441 #line 11442 "configure"
11442 #include "confdefs.h"
11448 if { (eval echo configure:11449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11450 eval "ac_cv_lib_$ac_lib_var=yes"
11452 echo "configure: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11455 eval "ac_cv_lib_$ac_lib_var=no"
11458 LIBS="$ac_save_LIBS"
11461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11462 echo "$ac_t""yes" 1>&6
11463 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
11465 echo "$ac_t""no" 1>&6
11472 if test $have_tcl != yes ; then
11473 echo "configure: warning: could not find -ltcl" 1>&2
11474 if test $ol_enable_tcl = yes ; then
11475 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
11482 # ud needs termcap (should insert check here)
11484 for ac_hdr in termcap.h ncurses.h
11486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11488 echo "configure:11489: checking for $ac_hdr" >&5
11489 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11490 echo $ac_n "(cached) $ac_c" 1>&6
11492 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11498 { (eval echo configure:11499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11500 if test -z "$ac_err"; then
11502 eval "ac_cv_header_$ac_safe=yes"
11505 echo "configure: failed program was:" >&5
11506 cat conftest.$ac_ext >&5
11508 eval "ac_cv_header_$ac_safe=no"
11512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11513 echo "$ac_t""yes" 1>&6
11514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11515 cat >> confdefs.h <<EOF
11516 #define $ac_tr_hdr 1
11520 echo "$ac_t""no" 1>&6
11525 if test $ol_link_termcap = no ; then
11526 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
11527 echo "configure:11528: checking for tputs in -ltermcap" >&5
11528 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
11529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11530 echo $ac_n "(cached) $ac_c" 1>&6
11532 ac_save_LIBS="$LIBS"
11533 LIBS="-ltermcap $LIBS"
11534 cat > conftest.$ac_ext <<EOF
11535 #line 11536 "configure"
11536 #include "confdefs.h"
11537 /* Override any gcc2 internal prototype to avoid an error. */
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11546 if { (eval echo configure:11547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11548 eval "ac_cv_lib_$ac_lib_var=yes"
11550 echo "configure: failed program was:" >&5
11551 cat conftest.$ac_ext >&5
11553 eval "ac_cv_lib_$ac_lib_var=no"
11556 LIBS="$ac_save_LIBS"
11559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11560 echo "$ac_t""yes" 1>&6
11563 echo "$ac_t""no" 1>&6
11567 if test $have_termcap = yes ; then
11568 cat >> confdefs.h <<\EOF
11569 #define HAVE_TERMCAP 1
11572 ol_link_termcap=yes
11573 TERMCAP_LIBS=-ltermcap
11577 if test $ol_link_termcap = no ; then
11578 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
11579 echo "configure:11580: checking for initscr in -lncurses" >&5
11580 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
11581 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11582 echo $ac_n "(cached) $ac_c" 1>&6
11584 ac_save_LIBS="$LIBS"
11585 LIBS="-lncurses $LIBS"
11586 cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure"
11588 #include "confdefs.h"
11589 /* Override any gcc2 internal prototype to avoid an error. */
11590 /* We use char because int might match the return type of a gcc2
11591 builtin and then its argument prototype would still apply. */
11598 if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11600 eval "ac_cv_lib_$ac_lib_var=yes"
11602 echo "configure: failed program was:" >&5
11603 cat conftest.$ac_ext >&5
11605 eval "ac_cv_lib_$ac_lib_var=no"
11608 LIBS="$ac_save_LIBS"
11611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11612 echo "$ac_t""yes" 1>&6
11615 echo "$ac_t""no" 1>&6
11619 if test $have_ncurses = yes ; then
11620 cat >> confdefs.h <<\EOF
11621 #define HAVE_NCURSES 1
11624 ol_link_termcap=yes
11625 TERMCAP_LIBS=-lncurses
11629 if test $ol_link_termcap = no ; then
11630 cat >> confdefs.h <<\EOF
11631 #define NO_TERMCAP 1
11638 if test $ol_with_cyrus_sasl != no ; then
11639 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
11640 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
11641 echo "configure:11642: checking for sasl.h" >&5
11642 if eval "test \"\${ac_cv_header_$ac_safe+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"
11650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11651 { (eval echo configure:11652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11653 if test -z "$ac_err"; then
11655 eval "ac_cv_header_$ac_safe=yes"
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11661 eval "ac_cv_header_$ac_safe=no"
11665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11666 echo "$ac_t""yes" 1>&6
11669 echo "$ac_t""no" 1>&6
11673 if test $ac_cv_header_sasl_h = yes ; then
11674 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
11675 echo "configure:11676: checking for sasl_client_init in -lsasl" >&5
11676 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
11677 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11680 ac_save_LIBS="$LIBS"
11681 LIBS="-lsasl $LIBS"
11682 cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11685 /* Override any gcc2 internal prototype to avoid an error. */
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688 char sasl_client_init();
11694 if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11696 eval "ac_cv_lib_$ac_lib_var=yes"
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11701 eval "ac_cv_lib_$ac_lib_var=no"
11704 LIBS="$ac_save_LIBS"
11707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
11709 have_cyrus_sasl=yes
11711 echo "$ac_t""no" 1>&6
11716 if test $have_cyrus_sasl != no ; then
11718 cat >> confdefs.h <<\EOF
11719 #define HAVE_CYRUS_SASL 1
11726 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
11727 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
11732 if test $ol_with_fetch != no ; then
11734 LIBS="-lfetch -lcom_err $LIBS"
11735 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
11736 echo "configure:11737: checking fetch(3) library" >&5
11737 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
11738 echo $ac_n "(cached) $ac_c" 1>&6
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11743 "configure"
11743 #include "confdefs.h"
11745 #include <sys/param.h>
11749 struct url *u = fetchParseURL("file:///");
11752 if { (eval echo configure:11753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11754 ol_cv_lib_fetch=yes
11756 echo "configure: failed program was:" >&5
11757 cat conftest.$ac_ext >&5
11764 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
11766 if test $ol_cv_lib_fetch != no ; then
11767 ol_link_fetch="-lfetch -lcom_err"
11768 cat >> confdefs.h <<\EOF
11769 #define HAVE_FETCH 1
11775 if test $ol_cv_lib_fetch != no ; then
11776 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
11777 ol_link_fetch=freebsd
11779 elif test $ol_with_fetch != auto ; then
11780 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
11784 ol_link_readline=no
11785 if test $ol_with_readline != no ; then
11786 for ac_hdr in readline/readline.h readline/history.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_readline_readline_h = yes ; then
11829 LIBS="$TERMCAP_LIBS $LIBS"
11830 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
11831 echo "configure:11832: checking for readline in -lreadline" >&5
11832 ac_lib_var=`echo readline'_'readline | 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"
11837 LIBS="-lreadline $LIBS"
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 /* Override any gcc2 internal prototype to avoid an error. */
11842 /* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11850 if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11852 eval "ac_cv_lib_$ac_lib_var=yes"
11854 echo "configure: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11857 eval "ac_cv_lib_$ac_lib_var=no"
11860 LIBS="$ac_save_LIBS"
11863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11864 echo "$ac_t""yes" 1>&6
11867 echo "$ac_t""no" 1>&6
11873 if test $have_readline = yes ; then
11874 ol_with_readline=found
11875 ol_link_readline=yes
11877 READLINE_LIBS="-lreadline"
11882 if test $ol_link_readline = yes ; then
11883 cat >> confdefs.h <<\EOF
11884 #define HAVE_READLINE 1
11890 # FreeBSD (and others) have crypt(3) in -lcrypt
11891 if test $ol_enable_crypt != no ; then
11892 echo $ac_n "checking for crypt""... $ac_c" 1>&6
11893 echo "configure:11894: checking for crypt" >&5
11894 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
11895 echo $ac_n "(cached) $ac_c" 1>&6
11897 cat > conftest.$ac_ext <<EOF
11898 #line 11899 "configure"
11899 #include "confdefs.h"
11900 /* System header to define __stub macros and hopefully few prototypes,
11901 which can conflict with char crypt(); below. */
11902 #include <assert.h>
11903 /* Override any gcc2 internal prototype to avoid an error. */
11904 /* We use char because int might match the return type of a gcc2
11905 builtin and then its argument prototype would still apply. */
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined (__stub_crypt) || defined (__stub___crypt)
11922 if { (eval echo configure:11923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11924 eval "ac_cv_func_crypt=yes"
11926 echo "configure: failed program was:" >&5
11927 cat conftest.$ac_ext >&5
11929 eval "ac_cv_func_crypt=no"
11934 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
11935 echo "$ac_t""yes" 1>&6
11938 echo "$ac_t""no" 1>&6
11940 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11941 echo "configure:11942: checking for crypt in -lcrypt" >&5
11942 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
11943 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11944 echo $ac_n "(cached) $ac_c" 1>&6
11946 ac_save_LIBS="$LIBS"
11947 LIBS="-lcrypt $LIBS"
11948 cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 /* Override any gcc2 internal prototype to avoid an error. */
11952 /* We use char because int might match the return type of a gcc2
11953 builtin and then its argument prototype would still apply. */
11960 if { (eval echo configure:11961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11962 eval "ac_cv_lib_$ac_lib_var=yes"
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11967 eval "ac_cv_lib_$ac_lib_var=no"
11970 LIBS="$ac_save_LIBS"
11973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11974 echo "$ac_t""yes" 1>&6
11975 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
11978 echo "$ac_t""no" 1>&6
11985 if test $have_crypt = yes ; then
11986 cat >> confdefs.h <<\EOF
11987 #define HAVE_CRYPT 1
11991 echo "configure: warning: could not find crypt" 1>&2
11992 if test $ol_enable_crypt = yes ; then
11993 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
11996 echo "configure: warning: disabling crypt support" 1>&2
12001 # FreeBSD (and others) have setproctitle(3) in -lutil
12002 if test $ol_enable_proctitle != no ; then
12003 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12004 echo "configure:12005: checking for setproctitle" >&5
12005 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12006 echo $ac_n "(cached) $ac_c" 1>&6
12008 cat > conftest.$ac_ext <<EOF
12009 #line 12010 "configure"
12010 #include "confdefs.h"
12011 /* System header to define __stub macros and hopefully few prototypes,
12012 which can conflict with char setproctitle(); below. */
12013 #include <assert.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. */
12017 char setproctitle();
12022 /* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
12025 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12033 if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12035 eval "ac_cv_func_setproctitle=yes"
12037 echo "configure: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12040 eval "ac_cv_func_setproctitle=no"
12045 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12046 echo "$ac_t""yes" 1>&6
12047 have_setproctitle=yes
12049 echo "$ac_t""no" 1>&6
12051 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12052 echo "configure:12053: checking for setproctitle in -lutil" >&5
12053 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12054 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12055 echo $ac_n "(cached) $ac_c" 1>&6
12057 ac_save_LIBS="$LIBS"
12058 LIBS="-lutil $LIBS"
12059 cat > conftest.$ac_ext <<EOF
12060 #line 12061 "configure"
12061 #include "confdefs.h"
12062 /* Override any gcc2 internal prototype to avoid an error. */
12063 /* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12065 char setproctitle();
12071 if { (eval echo configure:12072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12073 eval "ac_cv_lib_$ac_lib_var=yes"
12075 echo "configure: failed program was:" >&5
12076 cat conftest.$ac_ext >&5
12078 eval "ac_cv_lib_$ac_lib_var=no"
12081 LIBS="$ac_save_LIBS"
12084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12085 echo "$ac_t""yes" 1>&6
12086 have_setproctitle=yes
12087 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12089 echo "$ac_t""no" 1>&6
12090 have_setproctitle=no
12091 LIBOBJS="$LIBOBJS setproctitle.o"
12097 if test $have_setproctitle = yes ; then
12098 cat >> confdefs.h <<\EOF
12099 #define HAVE_SETPROCTITLE 1
12105 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12106 echo "configure:12107: checking for uid_t in sys/types.h" >&5
12107 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12110 cat > conftest.$ac_ext <<EOF
12111 #line 12112 "configure"
12112 #include "confdefs.h"
12113 #include <sys/types.h>
12115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12116 egrep "uid_t" >/dev/null 2>&1; then
12118 ac_cv_type_uid_t=yes
12121 ac_cv_type_uid_t=no
12127 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12128 if test $ac_cv_type_uid_t = no; then
12129 cat >> confdefs.h <<\EOF
12133 cat >> confdefs.h <<\EOF
12139 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
12140 echo "configure:12141: checking type of array argument to getgroups" >&5
12141 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
12142 echo $ac_n "(cached) $ac_c" 1>&6
12144 if test "$cross_compiling" = yes; then
12145 ac_cv_type_getgroups=cross
12147 cat > conftest.$ac_ext <<EOF
12148 #line 12149 "configure"
12149 #include "confdefs.h"
12151 /* Thanks to Mike Rendell for this test. */
12152 #include <sys/types.h>
12155 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12158 gid_t gidset[NGID];
12160 union { gid_t gval; long lval; } val;
12163 for (i = 0; i < NGID; i++)
12164 gidset[i] = val.gval;
12165 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12167 /* Exit non-zero if getgroups seems to require an array of ints. This
12168 happens when gid_t is short but getgroups modifies an array of ints. */
12169 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12173 if { (eval echo configure:12174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12175 ac_cv_type_getgroups=gid_t
12177 echo "configure: failed program was:" >&5
12178 cat conftest.$ac_ext >&5
12180 ac_cv_type_getgroups=int
12185 if test $ac_cv_type_getgroups = cross; then
12186 cat > conftest.$ac_ext <<EOF
12187 #line 12188 "configure"
12188 #include "confdefs.h"
12189 #include <unistd.h>
12191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12192 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12194 ac_cv_type_getgroups=gid_t
12197 ac_cv_type_getgroups=int
12204 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
12205 cat >> confdefs.h <<EOF
12206 #define GETGROUPS_T $ac_cv_type_getgroups
12209 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12210 echo "configure:12211: checking for ANSI C header files" >&5
12211 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
12212 echo $ac_n "(cached) $ac_c" 1>&6
12214 cat > conftest.$ac_ext <<EOF
12215 #line 12216 "configure"
12216 #include "confdefs.h"
12217 #include <stdlib.h>
12218 #include <stdarg.h>
12219 #include <string.h>
12222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12223 { (eval echo configure:12224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12225 if test -z "$ac_err"; then
12227 ac_cv_header_stdc=yes
12230 echo "configure: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12233 ac_cv_header_stdc=no
12237 if test $ac_cv_header_stdc = yes; then
12238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12239 cat > conftest.$ac_ext <<EOF
12240 #line 12241 "configure"
12241 #include "confdefs.h"
12242 #include <string.h>
12244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12245 egrep "memchr" >/dev/null 2>&1; then
12249 ac_cv_header_stdc=no
12255 if test $ac_cv_header_stdc = yes; then
12256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 #include <stdlib.h>
12262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12263 egrep "free" >/dev/null 2>&1; then
12267 ac_cv_header_stdc=no
12273 if test $ac_cv_header_stdc = yes; then
12274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12275 if test "$cross_compiling" = yes; then
12278 cat > conftest.$ac_ext <<EOF
12279 #line 12280 "configure"
12280 #include "confdefs.h"
12282 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12283 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12285 int main () { int i; for (i = 0; i < 256; i++)
12286 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12290 if { (eval echo configure:12291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12294 echo "configure: failed program was:" >&5
12295 cat conftest.$ac_ext >&5
12297 ac_cv_header_stdc=no
12305 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12306 if test $ac_cv_header_stdc = yes; then
12307 cat >> confdefs.h <<\EOF
12308 #define STDC_HEADERS 1
12313 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12314 echo "configure:12315: checking for mode_t" >&5
12315 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
12318 cat > conftest.$ac_ext <<EOF
12319 #line 12320 "configure"
12320 #include "confdefs.h"
12321 #include <sys/types.h>
12323 #include <stdlib.h>
12324 #include <stddef.h>
12327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12328 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12330 eval "ac_cv_type_mode_t=yes"
12333 eval "ac_cv_type_mode_t=no"
12338 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
12339 echo "$ac_t""yes" 1>&6
12341 echo "$ac_t""no" 1>&6
12342 cat >> confdefs.h <<EOF
12348 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12349 echo "configure:12350: checking for off_t" >&5
12350 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
12351 echo $ac_n "(cached) $ac_c" 1>&6
12353 cat > conftest.$ac_ext <<EOF
12354 #line 12355 "configure"
12355 #include "confdefs.h"
12356 #include <sys/types.h>
12358 #include <stdlib.h>
12359 #include <stddef.h>
12362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12363 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12365 eval "ac_cv_type_off_t=yes"
12368 eval "ac_cv_type_off_t=no"
12373 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
12374 echo "$ac_t""yes" 1>&6
12376 echo "$ac_t""no" 1>&6
12377 cat >> confdefs.h <<EOF
12383 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12384 echo "configure:12385: checking for pid_t" >&5
12385 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
12386 echo $ac_n "(cached) $ac_c" 1>&6
12388 cat > conftest.$ac_ext <<EOF
12389 #line 12390 "configure"
12390 #include "confdefs.h"
12391 #include <sys/types.h>
12393 #include <stdlib.h>
12394 #include <stddef.h>
12397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12398 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12400 eval "ac_cv_type_pid_t=yes"
12403 eval "ac_cv_type_pid_t=no"
12408 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
12409 echo "$ac_t""yes" 1>&6
12411 echo "$ac_t""no" 1>&6
12412 cat >> confdefs.h <<EOF
12418 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
12419 echo "configure:12420: checking for ptrdiff_t" >&5
12420 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
12421 echo $ac_n "(cached) $ac_c" 1>&6
12423 cat > conftest.$ac_ext <<EOF
12424 #line 12425 "configure"
12425 #include "confdefs.h"
12426 #include <stddef.h>
12431 if { (eval echo configure:12432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12433 am_cv_type_ptrdiff_t=yes
12435 echo "configure: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12438 am_cv_type_ptrdiff_t=no
12443 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
12444 if test $am_cv_type_ptrdiff_t = yes; then
12445 cat >> confdefs.h <<\EOF
12446 #define HAVE_PTRDIFF_T 1
12451 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
12452 echo "configure:12453: checking return type of signal handlers" >&5
12453 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
12454 echo $ac_n "(cached) $ac_c" 1>&6
12456 cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure"
12458 #include "confdefs.h"
12459 #include <sys/types.h>
12460 #include <signal.h>
12465 extern "C" void (*signal (int, void (*)(int)))(int);
12467 void (*signal ()) ();
12474 if { (eval echo configure:12475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12476 ac_cv_type_signal=void
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12481 ac_cv_type_signal=int
12486 echo "$ac_t""$ac_cv_type_signal" 1>&6
12487 cat >> confdefs.h <<EOF
12488 #define RETSIGTYPE $ac_cv_type_signal
12492 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
12493 echo "configure:12494: checking for sig_atomic_t" >&5
12494 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
12495 echo $ac_n "(cached) $ac_c" 1>&6
12497 cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure"
12499 #include "confdefs.h"
12500 #include <signal.h>
12502 sig_atomic_t atomic;
12505 if { (eval echo configure:12506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12507 ol_cv_type_sig_atomic_t=yes
12509 echo "configure: failed program was:" >&5
12510 cat conftest.$ac_ext >&5
12512 ol_cv_type_sig_atomic_t=no
12517 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
12518 if test $ol_cv_type_sig_atomic_t = no; then
12519 cat >> confdefs.h <<\EOF
12520 #define sig_atomic_t int
12525 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12526 echo "configure:12527: checking for size_t" >&5
12527 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 #include <sys/types.h>
12535 #include <stdlib.h>
12536 #include <stddef.h>
12539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12540 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12542 eval "ac_cv_type_size_t=yes"
12545 eval "ac_cv_type_size_t=no"
12550 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
12551 echo "$ac_t""yes" 1>&6
12553 echo "$ac_t""no" 1>&6
12554 cat >> confdefs.h <<EOF
12555 #define size_t unsigned
12560 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
12561 echo "configure:12562: checking for socklen_t" >&5
12562 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
12563 echo $ac_n "(cached) $ac_c" 1>&6
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12569 #ifdef HAVE_SYS_TYPES_H
12570 #include <sys/types.h>
12572 #ifdef HAVE_SYS_SOCKET_H
12573 #include <sys/socket.h>
12580 if { (eval echo configure:12581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12582 ol_cv_type_socklen_t=yes
12584 echo "configure: failed program was:" >&5
12585 cat conftest.$ac_ext >&5
12587 ol_cv_type_socklen_t=no
12592 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
12593 if test $ol_cv_type_socklen_t = no; then
12594 cat >> confdefs.h <<\EOF
12595 #define socklen_t int
12600 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
12601 echo "configure:12602: checking for member st_blksize in aggregate type struct stat" >&5
12602 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
12603 echo $ac_n "(cached) $ac_c" 1>&6
12605 cat > conftest.$ac_ext <<EOF
12606 #line 12607 "configure"
12607 #include "confdefs.h"
12608 #include <sys/types.h>
12609 #include <sys/stat.h>
12611 struct stat foo; foo.st_blksize;
12614 if { (eval echo configure:12615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12616 ac_cv_c_struct_member_st_blksize=yes
12618 echo "configure: failed program was:" >&5
12619 cat conftest.$ac_ext >&5
12621 ac_cv_c_struct_member_st_blksize=no
12626 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
12627 st_blksize="$ac_cv_c_struct_member_st_blksize"
12628 if test $ac_cv_c_struct_member_st_blksize = yes; then
12629 cat >> confdefs.h <<\EOF
12630 #define HAVE_ST_BLKSIZE 1
12635 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
12636 echo "configure:12637: checking whether time.h and sys/time.h may both be included" >&5
12637 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
12638 echo $ac_n "(cached) $ac_c" 1>&6
12640 cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12643 #include <sys/types.h>
12644 #include <sys/time.h>
12650 if { (eval echo configure:12651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12652 ac_cv_header_time=yes
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12657 ac_cv_header_time=no
12662 echo "$ac_t""$ac_cv_header_time" 1>&6
12663 if test $ac_cv_header_time = yes; then
12664 cat >> confdefs.h <<\EOF
12665 #define TIME_WITH_SYS_TIME 1
12670 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
12671 echo "configure:12672: checking whether struct tm is in sys/time.h or time.h" >&5
12672 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
12673 echo $ac_n "(cached) $ac_c" 1>&6
12675 cat > conftest.$ac_ext <<EOF
12676 #line 12677 "configure"
12677 #include "confdefs.h"
12678 #include <sys/types.h>
12681 struct tm *tp; tp->tm_sec;
12684 if { (eval echo configure:12685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12686 ac_cv_struct_tm=time.h
12688 echo "configure: failed program was:" >&5
12689 cat conftest.$ac_ext >&5
12691 ac_cv_struct_tm=sys/time.h
12696 echo "$ac_t""$ac_cv_struct_tm" 1>&6
12697 if test $ac_cv_struct_tm = sys/time.h; then
12698 cat >> confdefs.h <<\EOF
12699 #define TM_IN_SYS_TIME 1
12704 # test for pw_gecos in struct passwd
12705 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
12706 echo "configure:12707: checking struct passwd for pw_gecos" >&5
12707 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12711 cat > conftest.$ac_ext <<EOF
12712 #line 12713 "configure"
12713 #include "confdefs.h"
12718 pwd.pw_gecos = pwd.pw_name;
12722 if { (eval echo configure:12723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12724 ol_cv_struct_passwd_pw_gecos=yes
12726 echo "configure: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12729 ol_cv_struct_passwd_pw_gecos=no
12734 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
12735 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
12736 cat >> confdefs.h <<\EOF
12737 #define HAVE_PW_GECOS 1
12742 # test for pw_passwd in struct passwd
12743 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
12744 echo "configure:12745: checking struct passwd for pw_passwd" >&5
12745 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
12746 echo $ac_n "(cached) $ac_c" 1>&6
12749 cat > conftest.$ac_ext <<EOF
12750 #line 12751 "configure"
12751 #include "confdefs.h"
12756 pwd.pw_passwd = pwd.pw_name;
12760 if { (eval echo configure:12761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12762 ol_cv_struct_passwd_pw_passwd=yes
12764 echo "configure: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12767 ol_cv_struct_passwd_pw_passwd=no
12772 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
12773 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
12774 cat >> confdefs.h <<\EOF
12775 #define HAVE_PW_PASSWD 1
12781 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
12782 echo "configure:12783: checking if toupper() requires islower()" >&5
12783 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
12784 echo $ac_n "(cached) $ac_c" 1>&6
12787 if test "$cross_compiling" = yes; then
12788 ol_cv_c_upper_lower=safe
12790 cat > conftest.$ac_ext <<EOF
12791 #line 12792 "configure"
12792 #include "confdefs.h"
12797 if ('C' == toupper('C'))
12803 if { (eval echo configure:12804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12805 ol_cv_c_upper_lower=no
12807 echo "configure: failed program was:" >&5
12808 cat conftest.$ac_ext >&5
12810 ol_cv_c_upper_lower=yes
12817 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
12818 if test $ol_cv_c_upper_lower != no ; then
12819 cat >> confdefs.h <<\EOF
12820 #define C_UPPER_LOWER 1
12825 echo $ac_n "checking for working const""... $ac_c" 1>&6
12826 echo "configure:12827: checking for working const" >&5
12827 if eval "test \"\${ac_cv_c_const+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"
12836 /* Ultrix mips cc rejects this. */
12837 typedef int charset[2]; const charset x;
12838 /* SunOS 4.1.1 cc rejects this. */
12839 char const *const *ccp;
12841 /* NEC SVR4.0.2 mips cc rejects this. */
12842 struct point {int x, y;};
12843 static struct point const zero = {0,0};
12844 /* AIX XL C 1.02.0.0 rejects this.
12845 It does not let you subtract one const X* pointer from another in an arm
12846 of an if-expression whose if-part is not a constant expression */
12847 const char *g = "string";
12848 ccp = &g + (g ? g-g : 0);
12849 /* HPUX 7.0 cc rejects these. */
12852 ccp = (char const *const *) p;
12853 { /* SCO 3.2v4 cc rejects this. */
12855 char const *s = 0 ? (char *) 0 : (char const *) 0;
12859 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12860 int x[] = {25, 17};
12861 const int *foo = &x[0];
12864 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12865 typedef const int *iptr;
12869 { /* AIX XL C 1.02.0.0 rejects this saying
12870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12871 struct s { int j; const int *ap[3]; };
12872 struct s *b; b->j = 5;
12874 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12875 const int foo = 10;
12880 if { (eval echo configure:12881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12884 echo "configure: failed program was:" >&5
12885 cat conftest.$ac_ext >&5
12892 echo "$ac_t""$ac_cv_c_const" 1>&6
12893 if test $ac_cv_c_const = no; then
12894 cat >> confdefs.h <<\EOF
12900 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
12901 echo "configure:12902: checking if compiler understands volatile" >&5
12902 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
12903 echo $ac_n "(cached) $ac_c" 1>&6
12905 cat > conftest.$ac_ext <<EOF
12906 #line 12907 "configure"
12907 #include "confdefs.h"
12910 volatile int a; int * volatile b = x ? &y : &z;
12911 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
12915 if { (eval echo configure:12916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12917 ol_cv_c_volatile=yes
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12922 ol_cv_c_volatile=no
12927 echo "$ac_t""$ol_cv_c_volatile" 1>&6
12928 if test $ol_cv_c_volatile = yes; then
12931 cat >> confdefs.h <<\EOF
12938 if test $cross_compiling = yes ; then
12939 cat >> confdefs.h <<\EOF
12940 #define CROSS_COMPILING 1
12944 cat >> confdefs.h <<\EOF
12945 #define LBER_INT_T long
12948 cat >> confdefs.h <<\EOF
12949 #define LBER_TAG_T long
12952 cat >> confdefs.h <<\EOF
12953 #define LBER_SOCKET_T int
12958 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12959 echo "configure:12960: checking whether byte ordering is bigendian" >&5
12960 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
12961 echo $ac_n "(cached) $ac_c" 1>&6
12963 ac_cv_c_bigendian=unknown
12964 # See if sys/param.h defines the BYTE_ORDER macro.
12965 cat > conftest.$ac_ext <<EOF
12966 #line 12967 "configure"
12967 #include "confdefs.h"
12968 #include <sys/types.h>
12969 #include <sys/param.h>
12972 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12973 bogus endian macros
12977 if { (eval echo configure:12978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12979 # It does; now see whether it defined to BIG_ENDIAN or not.
12980 cat > conftest.$ac_ext <<EOF
12981 #line 12982 "configure"
12982 #include "confdefs.h"
12983 #include <sys/types.h>
12984 #include <sys/param.h>
12987 #if BYTE_ORDER != BIG_ENDIAN
12992 if { (eval echo configure:12993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12994 ac_cv_c_bigendian=yes
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 ac_cv_c_bigendian=no
13003 echo "configure: failed program was:" >&5
13004 cat conftest.$ac_ext >&5
13007 if test $ac_cv_c_bigendian = unknown; then
13008 if test "$cross_compiling" = yes; then
13009 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13011 cat > conftest.$ac_ext <<EOF
13012 #line 13013 "configure"
13013 #include "confdefs.h"
13015 /* Are we little or big endian? From Harbison&Steele. */
13019 char c[sizeof (long)];
13022 exit (u.c[sizeof (long) - 1] == 1);
13025 if { (eval echo configure:13026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13027 ac_cv_c_bigendian=no
13029 echo "configure: failed program was:" >&5
13030 cat conftest.$ac_ext >&5
13032 ac_cv_c_bigendian=yes
13040 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13041 if test $ac_cv_c_bigendian = yes; then
13042 cat >> confdefs.h <<\EOF
13043 #define WORDS_BIGENDIAN 1
13048 echo $ac_n "checking size of short""... $ac_c" 1>&6
13049 echo "configure:13050: checking size of short" >&5
13050 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13051 echo $ac_n "(cached) $ac_c" 1>&6
13053 if test "$cross_compiling" = yes; then
13054 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13056 cat > conftest.$ac_ext <<EOF
13057 #line 13058 "configure"
13058 #include "confdefs.h"
13062 FILE *f=fopen("conftestval", "w");
13064 fprintf(f, "%d\n", sizeof(short));
13068 if { (eval echo configure:13069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13070 ac_cv_sizeof_short=`cat conftestval`
13072 echo "configure: failed program was:" >&5
13073 cat conftest.$ac_ext >&5
13075 ac_cv_sizeof_short=0
13081 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13082 cat >> confdefs.h <<EOF
13083 #define SIZEOF_SHORT $ac_cv_sizeof_short
13087 echo $ac_n "checking size of int""... $ac_c" 1>&6
13088 echo "configure:13089: checking size of int" >&5
13089 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13090 echo $ac_n "(cached) $ac_c" 1>&6
13092 if test "$cross_compiling" = yes; then
13093 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13095 cat > conftest.$ac_ext <<EOF
13096 #line 13097 "configure"
13097 #include "confdefs.h"
13101 FILE *f=fopen("conftestval", "w");
13103 fprintf(f, "%d\n", sizeof(int));
13107 if { (eval echo configure:13108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13109 ac_cv_sizeof_int=`cat conftestval`
13111 echo "configure: failed program was:" >&5
13112 cat conftest.$ac_ext >&5
13120 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13121 cat >> confdefs.h <<EOF
13122 #define SIZEOF_INT $ac_cv_sizeof_int
13126 echo $ac_n "checking size of long""... $ac_c" 1>&6
13127 echo "configure:13128: checking size of long" >&5
13128 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
13129 echo $ac_n "(cached) $ac_c" 1>&6
13131 if test "$cross_compiling" = yes; then
13132 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13134 cat > conftest.$ac_ext <<EOF
13135 #line 13136 "configure"
13136 #include "confdefs.h"
13140 FILE *f=fopen("conftestval", "w");
13142 fprintf(f, "%d\n", sizeof(long));
13146 if { (eval echo configure:13147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13148 ac_cv_sizeof_long=`cat conftestval`
13150 echo "configure: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13153 ac_cv_sizeof_long=0
13159 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13160 cat >> confdefs.h <<EOF
13161 #define SIZEOF_LONG $ac_cv_sizeof_long
13166 if test "$ac_cv_sizeof_int" -lt 4 ; then
13167 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
13169 cat >> confdefs.h <<\EOF
13170 #define LBER_INT_T long
13173 cat >> confdefs.h <<\EOF
13174 #define LBER_TAG_T long
13177 cat >> confdefs.h <<\EOF
13178 #define LBER_SOCKET_T int
13182 cat >> confdefs.h <<\EOF
13183 #define LBER_INT_T int
13186 cat >> confdefs.h <<\EOF
13187 #define LBER_TAG_T long
13190 cat >> confdefs.h <<\EOF
13191 #define LBER_SOCKET_T int
13197 cat >> confdefs.h <<\EOF
13198 #define LBER_LEN_T long
13202 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
13203 echo "configure:13204: checking for 8-bit clean memcmp" >&5
13204 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
13205 echo $ac_n "(cached) $ac_c" 1>&6
13207 if test "$cross_compiling" = yes; then
13208 ac_cv_func_memcmp_clean=no
13210 cat > conftest.$ac_ext <<EOF
13211 #line 13212 "configure"
13212 #include "confdefs.h"
13216 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13217 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
13221 if { (eval echo configure:13222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13223 ac_cv_func_memcmp_clean=yes
13225 echo "configure: failed program was:" >&5
13226 cat conftest.$ac_ext >&5
13228 ac_cv_func_memcmp_clean=no
13235 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
13236 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
13238 echo $ac_n "checking for strftime""... $ac_c" 1>&6
13239 echo "configure:13240: checking for strftime" >&5
13240 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13243 cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246 /* System header to define __stub macros and hopefully few prototypes,
13247 which can conflict with char strftime(); below. */
13248 #include <assert.h>
13249 /* Override any gcc2 internal prototype to avoid an error. */
13250 /* We use char because int might match the return type of a gcc2
13251 builtin and then its argument prototype would still apply. */
13257 /* The GNU C library defines this for functions which it implements
13258 to always fail with ENOSYS. Some functions are actually named
13259 something starting with __ and the normal name is an alias. */
13260 #if defined (__stub_strftime) || defined (__stub___strftime)
13268 if { (eval echo configure:13269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13270 eval "ac_cv_func_strftime=yes"
13272 echo "configure: failed program was:" >&5
13273 cat conftest.$ac_ext >&5
13275 eval "ac_cv_func_strftime=no"
13280 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
13281 echo "$ac_t""yes" 1>&6
13282 cat >> confdefs.h <<\EOF
13283 #define HAVE_STRFTIME 1
13287 echo "$ac_t""no" 1>&6
13288 # strftime is in -lintl on SCO UNIX.
13289 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
13290 echo "configure:13291: checking for strftime in -lintl" >&5
13291 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
13292 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13293 echo $ac_n "(cached) $ac_c" 1>&6
13295 ac_save_LIBS="$LIBS"
13296 LIBS="-lintl $LIBS"
13297 cat > conftest.$ac_ext <<EOF
13298 #line 13299 "configure"
13299 #include "confdefs.h"
13300 /* Override any gcc2 internal prototype to avoid an error. */
13301 /* We use char because int might match the return type of a gcc2
13302 builtin and then its argument prototype would still apply. */
13309 if { (eval echo configure:13310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13311 eval "ac_cv_lib_$ac_lib_var=yes"
13313 echo "configure: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13316 eval "ac_cv_lib_$ac_lib_var=no"
13319 LIBS="$ac_save_LIBS"
13322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13323 echo "$ac_t""yes" 1>&6
13324 cat >> confdefs.h <<\EOF
13325 #define HAVE_STRFTIME 1
13328 LIBS="-lintl $LIBS"
13330 echo "$ac_t""no" 1>&6
13336 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
13337 echo "configure:13338: checking for inet_aton()" >&5
13338 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
13339 echo $ac_n "(cached) $ac_c" 1>&6
13341 cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13345 #ifdef HAVE_SYS_TYPES_H
13346 # include <sys/types.h>
13348 #ifdef HAVE_SYS_SOCKET_H
13349 # include <sys/socket.h>
13350 # ifdef HAVE_SYS_SELECT_H
13351 # include <sys/select.h>
13353 # include <netinet/in.h>
13354 # ifdef HAVE_ARPA_INET_H
13355 # include <arpa/inet.h>
13361 int rc = inet_aton( "255.255.255.255", &in );
13364 if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13366 ol_cv_func_inet_aton=yes
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13371 ol_cv_func_inet_aton=no
13376 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
13377 if test $ol_cv_func_inet_aton != no; then
13378 cat >> confdefs.h <<\EOF
13379 #define HAVE_INET_ATON 1
13385 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13386 echo "configure:13387: checking for vprintf" >&5
13387 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
13388 echo $ac_n "(cached) $ac_c" 1>&6
13390 cat > conftest.$ac_ext <<EOF
13391 #line 13392 "configure"
13392 #include "confdefs.h"
13393 /* System header to define __stub macros and hopefully few prototypes,
13394 which can conflict with char vprintf(); below. */
13395 #include <assert.h>
13396 /* Override any gcc2 internal prototype to avoid an error. */
13397 /* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13404 /* The GNU C library defines this for functions which it implements
13405 to always fail with ENOSYS. Some functions are actually named
13406 something starting with __ and the normal name is an alias. */
13407 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13415 if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13417 eval "ac_cv_func_vprintf=yes"
13419 echo "configure: failed program was:" >&5
13420 cat conftest.$ac_ext >&5
13422 eval "ac_cv_func_vprintf=no"
13427 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13428 echo "$ac_t""yes" 1>&6
13429 cat >> confdefs.h <<\EOF
13430 #define HAVE_VPRINTF 1
13434 echo "$ac_t""no" 1>&6
13437 if test "$ac_cv_func_vprintf" != yes; then
13438 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13439 echo "configure:13440: checking for _doprnt" >&5
13440 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
13441 echo $ac_n "(cached) $ac_c" 1>&6
13443 cat > conftest.$ac_ext <<EOF
13444 #line 13445 "configure"
13445 #include "confdefs.h"
13446 /* System header to define __stub macros and hopefully few prototypes,
13447 which can conflict with char _doprnt(); below. */
13448 #include <assert.h>
13449 /* Override any gcc2 internal prototype to avoid an error. */
13450 /* We use char because int might match the return type of a gcc2
13451 builtin and then its argument prototype would still apply. */
13457 /* The GNU C library defines this for functions which it implements
13458 to always fail with ENOSYS. Some functions are actually named
13459 something starting with __ and the normal name is an alias. */
13460 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13468 if { (eval echo configure:13469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13470 eval "ac_cv_func__doprnt=yes"
13472 echo "configure: failed program was:" >&5
13473 cat conftest.$ac_ext >&5
13475 eval "ac_cv_func__doprnt=no"
13480 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13481 echo "$ac_t""yes" 1>&6
13482 cat >> confdefs.h <<\EOF
13483 #define HAVE_DOPRNT 1
13487 echo "$ac_t""no" 1>&6
13493 if test $ac_cv_func_vprintf = yes ; then
13494 for ac_func in vsnprintf vsprintf
13496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13497 echo "configure:13498: checking for $ac_func" >&5
13498 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13499 echo $ac_n "(cached) $ac_c" 1>&6
13501 cat > conftest.$ac_ext <<EOF
13502 #line 13503 "configure"
13503 #include "confdefs.h"
13504 /* System header to define __stub macros and hopefully few prototypes,
13505 which can conflict with char $ac_func(); below. */
13506 #include <assert.h>
13507 /* Override any gcc2 internal prototype to avoid an error. */
13508 /* We use char because int might match the return type of a gcc2
13509 builtin and then its argument prototype would still apply. */
13515 /* The GNU C library defines this for functions which it implements
13516 to always fail with ENOSYS. Some functions are actually named
13517 something starting with __ and the normal name is an alias. */
13518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13526 if { (eval echo configure:13527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13528 eval "ac_cv_func_$ac_func=yes"
13530 echo "configure: failed program was:" >&5
13531 cat conftest.$ac_ext >&5
13533 eval "ac_cv_func_$ac_func=no"
13538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13539 echo "$ac_t""yes" 1>&6
13540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13541 cat >> confdefs.h <<EOF
13542 #define $ac_tr_func 1
13546 echo "$ac_t""no" 1>&6
13600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13601 echo "configure:13602: checking for $ac_func" >&5
13602 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13603 echo $ac_n "(cached) $ac_c" 1>&6
13605 cat > conftest.$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 /* System header to define __stub macros and hopefully few prototypes,
13609 which can conflict with char $ac_func(); below. */
13610 #include <assert.h>
13611 /* Override any gcc2 internal prototype to avoid an error. */
13612 /* We use char because int might match the return type of a gcc2
13613 builtin and then its argument prototype would still apply. */
13619 /* The GNU C library defines this for functions which it implements
13620 to always fail with ENOSYS. Some functions are actually named
13621 something starting with __ and the normal name is an alias. */
13622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13630 if { (eval echo configure:13631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13632 eval "ac_cv_func_$ac_func=yes"
13634 echo "configure: failed program was:" >&5
13635 cat conftest.$ac_ext >&5
13637 eval "ac_cv_func_$ac_func=no"
13642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13643 echo "$ac_t""yes" 1>&6
13644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13645 cat >> confdefs.h <<EOF
13646 #define $ac_tr_func 1
13650 echo "$ac_t""no" 1>&6
13655 for ac_func in getopt tempnam
13657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13658 echo "configure:13659: checking for $ac_func" >&5
13659 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13660 echo $ac_n "(cached) $ac_c" 1>&6
13662 cat > conftest.$ac_ext <<EOF
13663 #line 13664 "configure"
13664 #include "confdefs.h"
13665 /* System header to define __stub macros and hopefully few prototypes,
13666 which can conflict with char $ac_func(); below. */
13667 #include <assert.h>
13668 /* Override any gcc2 internal prototype to avoid an error. */
13669 /* We use char because int might match the return type of a gcc2
13670 builtin and then its argument prototype would still apply. */
13676 /* The GNU C library defines this for functions which it implements
13677 to always fail with ENOSYS. Some functions are actually named
13678 something starting with __ and the normal name is an alias. */
13679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13687 if { (eval echo configure:13688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13689 eval "ac_cv_func_$ac_func=yes"
13691 echo "configure: failed program was:" >&5
13692 cat conftest.$ac_ext >&5
13694 eval "ac_cv_func_$ac_func=no"
13699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13700 echo "$ac_t""yes" 1>&6
13701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13702 cat >> confdefs.h <<EOF
13703 #define $ac_tr_func 1
13707 echo "$ac_t""no" 1>&6
13708 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
13714 # Check Configuration
13715 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
13716 echo "configure:13717: checking declaration of sys_errlist" >&5
13717 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
13718 echo $ac_n "(cached) $ac_c" 1>&6
13721 cat > conftest.$ac_ext <<EOF
13722 #line 13723 "configure"
13723 #include "confdefs.h"
13726 #include <sys/types.h>
13729 char *c = (char *) *sys_errlist
13732 if { (eval echo configure:13733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13734 ol_cv_dcl_sys_errlist=yes
13735 ol_cv_have_sys_errlist=yes
13737 echo "configure: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13740 ol_cv_dcl_sys_errlist=no
13745 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
13747 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
13748 if test $ol_cv_dcl_sys_errlist = no ; then
13749 cat >> confdefs.h <<\EOF
13750 #define DECL_SYS_ERRLIST 1
13754 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
13755 echo "configure:13756: checking existence of sys_errlist" >&5
13756 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
13757 echo $ac_n "(cached) $ac_c" 1>&6
13760 cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13765 char *c = (char *) *sys_errlist
13768 if { (eval echo configure:13769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13770 ol_cv_have_sys_errlist=yes
13772 echo "configure: failed program was:" >&5
13773 cat conftest.$ac_ext >&5
13775 ol_cv_have_sys_errlist=no
13780 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
13782 if test $ol_cv_have_sys_errlist = yes ; then
13783 cat >> confdefs.h <<\EOF
13784 #define HAVE_SYS_ERRLIST 1
13791 if test "$ol_enable_debug" != no ; then
13792 cat >> confdefs.h <<\EOF
13793 #define LDAP_DEBUG 1
13797 if test "$ol_enable_syslog" = yes ; then
13798 cat >> confdefs.h <<\EOF
13799 #define LDAP_SYSLOG 1
13803 if test "$ol_enable_libui" = yes ; then
13804 cat >> confdefs.h <<\EOF
13805 #define LDAP_LIBUI 1
13809 if test "$ol_enable_cache" = no ; then
13810 cat >> confdefs.h <<\EOF
13811 #define LDAP_NOCACHE 1
13815 if test "$ol_enable_dns" != no ; then
13816 cat >> confdefs.h <<\EOF
13817 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
13821 if test "$ol_enable_proctitle" != no ; then
13822 cat >> confdefs.h <<\EOF
13823 #define LDAP_PROCTITLE 1
13827 if test "$ol_enable_referrals" != no ; then
13828 cat >> confdefs.h <<\EOF
13829 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
13833 if test "$ol_enable_cldap" != no ; then
13834 cat >> confdefs.h <<\EOF
13835 #define LDAP_CONNECTIONLESS 1
13840 if test "$ol_enable_crypt" != no ; then
13841 cat >> confdefs.h <<\EOF
13842 #define SLAPD_CRYPT 1
13846 if test "$ol_enable_cleartext" != no ; then
13847 cat >> confdefs.h <<\EOF
13848 #define SLAPD_CLEARTEXT 1
13852 if test "$ol_enable_multimaster" != no ; then
13853 cat >> confdefs.h <<\EOF
13854 #define SLAPD_MULTIMASTER 1
13858 if test "$ol_enable_phonetic" != no ; then
13859 cat >> confdefs.h <<\EOF
13860 #define SLAPD_PHONETIC 1
13864 if test "$ol_enable_rlookups" != no ; then
13865 cat >> confdefs.h <<\EOF
13866 #define SLAPD_RLOOKUPS 1
13871 if test "$ol_link_modules" != no ; then
13872 cat >> confdefs.h <<\EOF
13873 #define SLAPD_MODULES 1
13877 MODULES_LIBS=-lltdl
13878 SLAPD_MODULES_LDFLAGS="-dlopen self"
13881 if test "$ol_link_bdb2" != no ; then
13882 cat >> confdefs.h <<\EOF
13883 #define SLAPD_BDB2 1
13888 if test "$ol_with_bdb2_module" != static ; then
13889 cat >> confdefs.h <<\EOF
13890 #define SLAPD_BDB2_DYNAMIC 1
13894 BUILD_BDB2_DYNAMIC=shared
13895 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
13899 if test "$ol_enable_ldap" != no ; then
13900 cat >> confdefs.h <<\EOF
13901 #define SLAPD_LDAP 1
13906 if test "$ol_with_ldap_module" != static ; then
13907 cat >> confdefs.h <<\EOF
13908 #define SLAPD_LDAP_DYNAMIC 1
13912 BUILD_LDAP_DYNAMIC=shared
13913 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
13917 if test "$ol_link_ldbm" != no ; then
13918 cat >> confdefs.h <<\EOF
13919 #define SLAPD_LDBM 1
13924 if test "$ol_with_ldbm_module" != static ; then
13925 cat >> confdefs.h <<\EOF
13926 #define SLAPD_LDBM_DYNAMIC 1
13930 BUILD_LDBM_DYNAMIC=shared
13931 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
13935 if test "$ol_enable_passwd" != no ; then
13936 cat >> confdefs.h <<\EOF
13937 #define SLAPD_PASSWD 1
13942 if test "$ol_with_passwd_module" != static ; then
13943 cat >> confdefs.h <<\EOF
13944 #define SLAPD_PASSWD_DYNAMIC 1
13948 BUILD_PASSWD_DYNAMIC=shared
13949 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
13953 if test "$ol_link_perl" != no ; then
13954 cat >> confdefs.h <<\EOF
13955 #define SLAPD_PERL 1
13960 if test "$ol_with_perl_module" != static ; then
13961 cat >> confdefs.h <<\EOF
13962 #define SLAPD_PERL_DYNAMIC 1
13966 BUILD_PERL_DYNAMIC=shared
13967 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
13971 if test "$ol_enable_shell" != no ; then
13972 cat >> confdefs.h <<\EOF
13973 #define SLAPD_SHELL 1
13978 if test "$ol_with_shell_module" != static ; then
13979 cat >> confdefs.h <<\EOF
13980 #define SLAPD_SHELL_DYNAMIC 1
13984 BUILD_SHELL_DYNAMIC=shared
13985 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
13989 if test "$ol_enable_tcl" != no ; then
13990 cat >> confdefs.h <<\EOF
13991 #define SLAPD_TCL 1
13996 if test "$ol_with_tcl_module" != static; then
13997 cat >> confdefs.h <<\EOF
13998 #define SLAPD_TCL_DYNAMIC 1
14002 BUILD_TCL_DYNAMIC=shared
14003 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
14007 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
14008 $BUILD_SLAPD = yes ; then
14056 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14059 # Let make expand exec_prefix.
14060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14062 # Any assignment to VPATH causes Sun make to only execute
14063 # the first set of double-colon rules, so remove it if not needed.
14064 # If there is a colon in the path, we need to keep it.
14065 if test "x$srcdir" = x.; then
14066 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14069 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14071 DEFS=-DHAVE_CONFIG_H
14073 # Without the "./", some shells look in PATH for config.status.
14074 : ${CONFIG_STATUS=./config.status}
14076 echo creating $CONFIG_STATUS
14077 rm -f $CONFIG_STATUS
14078 cat > $CONFIG_STATUS <<EOF
14080 # Generated automatically by configure.
14081 # Run this file to recreate the current configuration.
14082 # This directory was configured as follows,
14083 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14085 # $0 $ac_configure_args
14087 # Compiler output produced by configure, useful for debugging
14088 # configure, is in ./config.log if it exists.
14090 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14093 case "\$ac_option" in
14094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14095 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14096 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14097 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14098 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
14100 -help | --help | --hel | --he | --h)
14101 echo "\$ac_cs_usage"; exit 0 ;;
14102 *) echo "\$ac_cs_usage"; exit 1 ;;
14106 ac_given_srcdir=$srcdir
14107 ac_given_INSTALL="$INSTALL"
14109 trap 'rm -fr `echo "\
14110 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14111 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14112 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14113 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14114 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14115 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14116 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14117 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14118 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14119 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14120 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14121 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14122 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14123 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14124 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14125 include/Makefile:build/top.mk:include/Makefile.in \
14126 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14127 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14128 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14129 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14130 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14131 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14132 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14133 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14134 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14135 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14136 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14137 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14138 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14139 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14140 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14141 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14142 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14143 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14144 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14145 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14146 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14147 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14148 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14149 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14150 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14151 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14153 cat >> $CONFIG_STATUS <<EOF
14155 # Protect against being on the right side of a sed subst in config.status.
14156 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14157 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14161 s%@CFLAGS@%$CFLAGS%g
14162 s%@CPPFLAGS@%$CPPFLAGS%g
14163 s%@CXXFLAGS@%$CXXFLAGS%g
14164 s%@FFLAGS@%$FFLAGS%g
14166 s%@LDFLAGS@%$LDFLAGS%g
14168 s%@exec_prefix@%$exec_prefix%g
14169 s%@prefix@%$prefix%g
14170 s%@program_transform_name@%$program_transform_name%g
14171 s%@bindir@%$bindir%g
14172 s%@sbindir@%$sbindir%g
14173 s%@libexecdir@%$libexecdir%g
14174 s%@datadir@%$datadir%g
14175 s%@sysconfdir@%$sysconfdir%g
14176 s%@sharedstatedir@%$sharedstatedir%g
14177 s%@localstatedir@%$localstatedir%g
14178 s%@libdir@%$libdir%g
14179 s%@includedir@%$includedir%g
14180 s%@oldincludedir@%$oldincludedir%g
14181 s%@infodir@%$infodir%g
14182 s%@mandir@%$mandir%g
14184 s%@host_alias@%$host_alias%g
14185 s%@host_cpu@%$host_cpu%g
14186 s%@host_vendor@%$host_vendor%g
14187 s%@host_os@%$host_os%g
14188 s%@target@%$target%g
14189 s%@target_alias@%$target_alias%g
14190 s%@target_cpu@%$target_cpu%g
14191 s%@target_vendor@%$target_vendor%g
14192 s%@target_os@%$target_os%g
14194 s%@build_alias@%$build_alias%g
14195 s%@build_cpu@%$build_cpu%g
14196 s%@build_vendor@%$build_vendor%g
14197 s%@build_os@%$build_os%g
14198 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14199 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14200 s%@INSTALL_DATA@%$INSTALL_DATA%g
14201 s%@PACKAGE@%$PACKAGE%g
14202 s%@VERSION@%$VERSION%g
14203 s%@ACLOCAL@%$ACLOCAL%g
14204 s%@AUTOCONF@%$AUTOCONF%g
14205 s%@AUTOMAKE@%$AUTOMAKE%g
14206 s%@AUTOHEADER@%$AUTOHEADER%g
14207 s%@MAKEINFO@%$MAKEINFO%g
14208 s%@install_sh@%$install_sh%g
14211 s%@AMTARFLAGS@%$AMTARFLAGS%g
14212 s%@SET_MAKE@%$SET_MAKE%g
14213 s%@top_builddir@%$top_builddir%g
14214 s%@ldap_subdir@%$ldap_subdir%g
14216 s%@RANLIB@%$RANLIB%g
14220 s%@LIBTOOL@%$LIBTOOL%g
14222 s%@SENDMAIL@%$SENDMAIL%g
14223 s%@EDITOR@%$EDITOR%g
14224 s%@FINGER@%$FINGER%g
14225 s%@PERLBIN@%$PERLBIN%g
14227 s%@EXEEXT@%$EXEEXT%g
14228 s%@OBJEXT@%$OBJEXT%g
14229 s%@OL_MKDEP@%$OL_MKDEP%g
14230 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
14231 s%@LIBOBJS@%$LIBOBJS%g
14232 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
14233 s%@BUILD_BDB2@%$BUILD_BDB2%g
14234 s%@BUILD_LDAP@%$BUILD_LDAP%g
14235 s%@BUILD_LDBM@%$BUILD_LDBM%g
14236 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
14237 s%@BUILD_PERL@%$BUILD_PERL%g
14238 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
14239 s%@BUILD_SHELL@%$BUILD_SHELL%g
14240 s%@BUILD_TCL@%$BUILD_TCL%g
14241 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
14242 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
14243 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
14244 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
14245 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
14246 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
14247 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
14248 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
14249 s%@LDAP_LIBS@%$LDAP_LIBS%g
14250 s%@LDIF_LIBS@%$LDIF_LIBS%g
14251 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
14252 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
14253 s%@LDBM_LIBS@%$LDBM_LIBS%g
14254 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
14255 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
14256 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
14257 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
14258 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
14259 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
14260 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
14261 s%@KRB_LIBS@%$KRB_LIBS%g
14262 s%@READLINE_LIBS@%$READLINE_LIBS%g
14263 s%@SASL_LIBS@%$SASL_LIBS%g
14264 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
14265 s%@TLS_LIBS@%$TLS_LIBS%g
14266 s%@MODULES_LIBS@%$MODULES_LIBS%g
14271 cat >> $CONFIG_STATUS <<\EOF
14273 # Split the substitutions into bite-sized pieces for seds with
14274 # small command number limits, like on Digital OSF/1 and HP-UX.
14275 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14276 ac_file=1 # Number of current file.
14277 ac_beg=1 # First line for current file.
14278 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14281 while $ac_more_lines; do
14282 if test $ac_beg -gt 1; then
14283 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14285 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14287 if test ! -s conftest.s$ac_file; then
14288 ac_more_lines=false
14289 rm -f conftest.s$ac_file
14291 if test -z "$ac_sed_cmds"; then
14292 ac_sed_cmds="sed -f conftest.s$ac_file"
14294 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14296 ac_file=`expr $ac_file + 1`
14298 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14301 if test -z "$ac_sed_cmds"; then
14306 cat >> $CONFIG_STATUS <<EOF
14308 CONFIG_FILES=\${CONFIG_FILES-"\
14309 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14310 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14311 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14312 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14313 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14314 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14315 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14316 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14317 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14318 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14319 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14320 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14321 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14322 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14323 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14324 include/Makefile:build/top.mk:include/Makefile.in \
14325 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14326 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14327 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14328 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14329 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14330 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14331 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14332 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14333 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14334 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14335 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14336 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14337 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14338 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14339 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14340 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14341 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14342 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14343 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14344 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14345 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14346 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14347 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14348 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14349 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14352 cat >> $CONFIG_STATUS <<\EOF
14353 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14356 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14357 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14358 *) ac_file_in="${ac_file}.in" ;;
14361 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14363 # Remove last slash and all that follows it. Not all systems have dirname.
14364 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14365 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14366 # The file is in a subdirectory.
14367 test ! -d "$ac_dir" && mkdir "$ac_dir"
14368 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14369 # A "../" for each directory in $ac_dir_suffix.
14370 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14372 ac_dir_suffix= ac_dots=
14375 case "$ac_given_srcdir" in
14377 if test -z "$ac_dots"; then top_srcdir=.
14378 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14379 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14380 *) # Relative path.
14381 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14382 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14385 case "$ac_given_INSTALL" in
14386 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14387 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14390 echo creating "$ac_file"
14392 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14394 *Makefile*) ac_comsub="1i\\
14395 # $configure_input" ;;
14399 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14401 s%@configure_input@%$configure_input%g
14402 s%@srcdir@%$srcdir%g
14403 s%@top_srcdir@%$top_srcdir%g
14404 s%@INSTALL@%$INSTALL%g
14405 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14409 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14410 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14412 # ac_d sets the value in "#define NAME VALUE" lines.
14413 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14414 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14417 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14418 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14419 ac_uB='\([ ]\)%\1#\2define\3'
14422 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14423 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14424 ac_eB='$%\1#\2define\3'
14428 if test "${CONFIG_HEADERS+set}" != set; then
14430 cat >> $CONFIG_STATUS <<EOF
14431 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
14433 cat >> $CONFIG_STATUS <<\EOF
14435 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14438 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14439 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14440 *) ac_file_in="${ac_file}.in" ;;
14443 echo creating $ac_file
14445 rm -f conftest.frag conftest.in conftest.out
14446 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14447 cat $ac_file_inputs > conftest.in
14451 # Transform confdefs.h into a sed script conftest.vals that substitutes
14452 # the proper values into config.h.in to produce config.h. And first:
14453 # Protect against being on the right side of a sed subst in config.status.
14454 # Protect against being in an unquoted here document in config.status.
14455 rm -f conftest.vals
14456 cat > conftest.hdr <<\EOF
14459 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14463 sed -n -f conftest.hdr confdefs.h > conftest.vals
14466 # This sed command replaces #undef with comments. This is necessary, for
14467 # example, in the case of _POSIX_SOURCE, which is predefined and required
14468 # on some systems where configure will not decide to define it.
14469 cat >> conftest.vals <<\EOF
14470 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14473 # Break up conftest.vals because some shells have a limit on
14474 # the size of here documents, and old seds have small limits too.
14476 rm -f conftest.tail
14479 ac_lines=`grep -c . conftest.vals`
14480 # grep -c gives empty output for an empty file on some AIX systems.
14481 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14482 # Write a limited-size here document to conftest.frag.
14483 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14484 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14486 sed -f conftest.frag conftest.in > conftest.out
14488 mv conftest.out conftest.in
14489 ' >> $CONFIG_STATUS
14490 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14491 rm -f conftest.vals
14492 mv conftest.tail conftest.vals
14494 rm -f conftest.vals
14496 cat >> $CONFIG_STATUS <<\EOF
14497 rm -f conftest.frag conftest.h
14498 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14499 cat conftest.in >> conftest.h
14501 if cmp -s $ac_file conftest.h 2>/dev/null; then
14502 echo "$ac_file is unchanged"
14505 # Remove last slash and all that follows it. Not all systems have dirname.
14506 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14508 # The file is in a subdirectory.
14509 test ! -d "$ac_dir" && mkdir "$ac_dir"
14512 mv conftest.h $ac_file
14517 cat >> $CONFIG_STATUS <<EOF
14520 cat >> $CONFIG_STATUS <<\EOF
14523 echo Please \"make depend\" to build dependencies
14527 chmod +x $CONFIG_STATUS
14528 rm -fr confdefs* $ac_clean_files
14529 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1