3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos with Kerberos support (auto)"
36 --with-readline with readline support (auto)"
38 --with-threads use threads (auto)"
40 --with-tls with TLS/SSL support (auto)"
42 --with-yielding-select with implicitly yielding select (auto)"
46 --enable-ldapd enable building ldapd (no)"
50 --enable-slapd enable building slapd (yes)"
52 --enable-aclgroups enable ACL group support (auto)"
54 --enable-cleartext enable cleartext passwords (yes)"
56 --enable-crypt enable crypt(3) passwords (auto)"
58 --enable-wrappers enable tcp wrapper support (no)"
60 --enable-phonetic enable phonetic/soundex (no)"
62 --enable-rlookups enable reverse lookups (auto)"
64 --enable-bdb2 enable bdb2 backend (no)"
66 --enable-ldbm enable ldbm backend (yes)"
68 --with-ldbm-api use LDBM API (auto)"
70 --with-ldbm-type use LDBM type (auto)"
72 --enable-passwd enable passwd backend (no)"
74 --enable-perl enable perl backend (no)"
76 --enable-shell enable shell backend (no)"
78 --enable-tcl enable tcl backend (no)"
82 --enable-slurpd enable building slurpd (auto)"
84 Library Generation & Linking Options"
86 --enable-static build static libraries [default=yes]
87 --enable-static=PKGS only build shared libraries if the current package
88 appears as an element in the PKGS list"
90 --enable-shared build shared libraries [default=yes]
91 --enable-shared=PKGS only build shared libraries if the current package
92 appears as an element in the PKGS list"
94 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
96 # Initialize some variables set by options.
97 # The variables have the same names as the options, with
98 # dashes changed to underlines.
100 cache_file=./config.cache
109 program_transform_name=s,x,x,
117 bindir='${exec_prefix}/bin'
118 sbindir='${exec_prefix}/sbin'
119 libexecdir='${exec_prefix}/libexec'
120 datadir='${prefix}/share'
121 sysconfdir='${prefix}/etc'
122 sharedstatedir='${prefix}/com'
123 localstatedir='${prefix}/var'
124 libdir='${exec_prefix}/lib'
125 includedir='${prefix}/include'
126 oldincludedir='/usr/include'
127 infodir='${prefix}/info'
128 mandir='${prefix}/man'
130 # Initialize some other variables.
133 SHELL=${CONFIG_SHELL-/bin/sh}
134 # Maximum number of lines to put in a shell here document.
141 # If the previous option needs an argument, assign it.
142 if test -n "$ac_prev"; then
143 eval "$ac_prev=\$ac_option"
149 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153 # Accept the important Cygnus configure options, so we can diagnose typos.
157 -bindir | --bindir | --bindi | --bind | --bin | --bi)
159 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
160 bindir="$ac_optarg" ;;
162 -build | --build | --buil | --bui | --bu)
164 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
165 build="$ac_optarg" ;;
167 -cache-file | --cache-file | --cache-fil | --cache-fi \
168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
169 ac_prev=cache_file ;;
170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
172 cache_file="$ac_optarg" ;;
174 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
176 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
178 datadir="$ac_optarg" ;;
180 -disable-* | --disable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}=no" ;;
189 -enable-* | --enable-*)
190 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}='$ac_optarg'" ;;
202 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
203 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
204 | --exec | --exe | --ex)
205 ac_prev=exec_prefix ;;
206 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
207 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
208 | --exec=* | --exe=* | --ex=*)
209 exec_prefix="$ac_optarg" ;;
211 -gas | --gas | --ga | --g)
212 # Obsolete; use --with-gas.
215 -help | --help | --hel | --he)
216 # Omit some internal or obsolete options to make the list less imposing.
217 # This message is too long to be a string in the A/UX 3.1 sh.
219 Usage: configure [options] [host]
220 Options: [defaults in brackets after descriptions]
222 --cache-file=FILE cache test results in FILE
223 --help print this message
224 --no-create do not create output files
225 --quiet, --silent do not print \`checking...' messages
226 --version print the version of autoconf that created configure
227 Directory and file names:
228 --prefix=PREFIX install architecture-independent files in PREFIX
230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
232 --bindir=DIR user executables in DIR [EPREFIX/bin]
233 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
234 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
235 --datadir=DIR read-only architecture-independent data in DIR
237 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
238 --sharedstatedir=DIR modifiable architecture-independent data in DIR
240 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
241 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
242 --includedir=DIR C header files in DIR [PREFIX/include]
243 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
244 --infodir=DIR info documentation in DIR [PREFIX/info]
245 --mandir=DIR man documentation in DIR [PREFIX/man]
246 --srcdir=DIR find the sources in DIR [configure dir or ..]
247 --program-prefix=PREFIX prepend PREFIX to installed program names
248 --program-suffix=SUFFIX append SUFFIX to installed program names
249 --program-transform-name=PROGRAM
250 run sed PROGRAM on installed program names
254 --build=BUILD configure for building on BUILD [BUILD=HOST]
255 --host=HOST configure for HOST [guessed]
256 --target=TARGET configure for TARGET [TARGET=HOST]
257 Features and packages:
258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
262 --x-includes=DIR X include files are in DIR
263 --x-libraries=DIR X library files are in DIR
265 if test -n "$ac_help"; then
266 echo "--enable and --with options recognized:$ac_help"
270 -host | --host | --hos | --ho)
272 -host=* | --host=* | --hos=* | --ho=*)
275 -includedir | --includedir | --includedi | --included | --include \
276 | --includ | --inclu | --incl | --inc)
277 ac_prev=includedir ;;
278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
279 | --includ=* | --inclu=* | --incl=* | --inc=*)
280 includedir="$ac_optarg" ;;
282 -infodir | --infodir | --infodi | --infod | --info | --inf)
284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
285 infodir="$ac_optarg" ;;
287 -libdir | --libdir | --libdi | --libd)
289 -libdir=* | --libdir=* | --libdi=* | --libd=*)
290 libdir="$ac_optarg" ;;
292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
293 | --libexe | --libex | --libe)
294 ac_prev=libexecdir ;;
295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
296 | --libexe=* | --libex=* | --libe=*)
297 libexecdir="$ac_optarg" ;;
299 -localstatedir | --localstatedir | --localstatedi | --localstated \
300 | --localstate | --localstat | --localsta | --localst \
301 | --locals | --local | --loca | --loc | --lo)
302 ac_prev=localstatedir ;;
303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
306 localstatedir="$ac_optarg" ;;
308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
311 mandir="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
327 | --oldin | --oldi | --old | --ol | --o)
328 ac_prev=oldincludedir ;;
329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
332 oldincludedir="$ac_optarg" ;;
334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
337 prefix="$ac_optarg" ;;
339 -program-prefix | --program-prefix | --program-prefi | --program-pref \
340 | --program-pre | --program-pr | --program-p)
341 ac_prev=program_prefix ;;
342 -program-prefix=* | --program-prefix=* | --program-prefi=* \
343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
344 program_prefix="$ac_optarg" ;;
346 -program-suffix | --program-suffix | --program-suffi | --program-suff \
347 | --program-suf | --program-su | --program-s)
348 ac_prev=program_suffix ;;
349 -program-suffix=* | --program-suffix=* | --program-suffi=* \
350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
351 program_suffix="$ac_optarg" ;;
353 -program-transform-name | --program-transform-name \
354 | --program-transform-nam | --program-transform-na \
355 | --program-transform-n | --program-transform- \
356 | --program-transform | --program-transfor \
357 | --program-transfo | --program-transf \
358 | --program-trans | --program-tran \
359 | --progr-tra | --program-tr | --program-t)
360 ac_prev=program_transform_name ;;
361 -program-transform-name=* | --program-transform-name=* \
362 | --program-transform-nam=* | --program-transform-na=* \
363 | --program-transform-n=* | --program-transform-=* \
364 | --program-transform=* | --program-transfor=* \
365 | --program-transfo=* | --program-transf=* \
366 | --program-trans=* | --program-tran=* \
367 | --progr-tra=* | --program-tr=* | --program-t=*)
368 program_transform_name="$ac_optarg" ;;
370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
371 | -silent | --silent | --silen | --sile | --sil)
374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
378 sbindir="$ac_optarg" ;;
380 -sharedstatedir | --sharedstatedir | --sharedstatedi \
381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
382 | --sharedst | --shareds | --shared | --share | --shar \
384 ac_prev=sharedstatedir ;;
385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
389 sharedstatedir="$ac_optarg" ;;
391 -site | --site | --sit)
393 -site=* | --site=* | --sit=*)
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev=sysconfdir ;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.13"
421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev=x_includes ;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev=x_libraries ;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file=include/ldap.h
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE; then
563 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp='$CPP $CPPFLAGS'
586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
601 ac_n= ac_c='\c' ac_t=
605 for ac_dir in build $srcdir/build; do
606 if test -f $ac_dir/install-sh; then
608 ac_install_sh="$ac_aux_dir/install-sh -c"
610 elif test -f $ac_dir/install.sh; then
612 ac_install_sh="$ac_aux_dir/install.sh -c"
616 if test -z "$ac_aux_dir"; then
617 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
619 ac_config_guess=$ac_aux_dir/config.guess
620 ac_config_sub=$ac_aux_dir/config.sub
621 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 # Find a good install program. We prefer a C program (faster),
623 # so one script is as good as another. But avoid the broken or
624 # incompatible versions:
625 # SysV /etc/install, /usr/sbin/install
626 # SunOS /usr/etc/install
629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
632 # ./install, which can be erroneously created by make from ./install.sh.
633 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
634 echo "configure:635: checking for a BSD compatible install" >&5
635 if test -z "$INSTALL"; then
636 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
640 for ac_dir in $PATH; do
641 # Account for people who put trailing slashes in PATH elements.
643 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
645 # OSF1 and SCO ODT 3.0 have their own names for install.
646 # Don't use installbsd from OSF since it installs stuff as root
648 for ac_prog in ginstall scoinst install; do
649 if test -f $ac_dir/$ac_prog; then
650 if test $ac_prog = install &&
651 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
652 # AIX install. It has an incompatible calling convention.
655 ac_cv_path_install="$ac_dir/$ac_prog -c"
666 if test "${ac_cv_path_install+set}" = set; then
667 INSTALL="$ac_cv_path_install"
669 # As a last resort, use the slow shell script. We don't cache a
670 # path for INSTALL within a source directory, because that will
671 # break other packages using the cache if that directory is
672 # removed, or if the path is relative.
673 INSTALL="$ac_install_sh"
676 echo "$ac_t""$INSTALL" 1>&6
678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
679 # It thinks the first close brace ends the variable substitution.
680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
686 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
687 echo "configure:688: checking whether build environment is sane" >&5
690 echo timestamp > conftestfile
691 # Do `set' in a subshell so we don't clobber the current shell's
692 # arguments. Must try -L first in case configure is actually a
693 # symlink; some systems play weird games with the mod time of symlinks
694 # (eg FreeBSD returns the mod time of the symlink's containing
697 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
698 if test "$*" = "X"; then
700 set X `ls -t $srcdir/configure conftestfile`
702 if test "$*" != "X $srcdir/configure conftestfile" \
703 && test "$*" != "X conftestfile $srcdir/configure"; then
705 # If neither matched, then we have a broken ls. This can happen
706 # if, for instance, CONFIG_SHELL is bash and it inherits a
707 # broken ls alias from the environment. This has actually
708 # happened. Such a system could not be considered "sane".
709 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
710 alias in your environment" 1>&2; exit 1; }
713 test "$2" = conftestfile
719 { echo "configure: error: newly created file is older than distributed files!
720 Check your system clock" 1>&2; exit 1; }
723 echo "$ac_t""yes" 1>&6
724 if test "$program_transform_name" = s,x,x,; then
725 program_transform_name=
727 # Double any \ or $. echo might interpret backslashes.
728 cat <<\EOF_SED > conftestsed
729 s,\\,\\\\,g; s,\$,$$,g
731 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
734 test "$program_prefix" != NONE &&
735 program_transform_name="s,^,${program_prefix},; $program_transform_name"
736 # Use a double $ so make ignores it.
737 test "$program_suffix" != NONE &&
738 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
740 # sed with no file args requires a program.
741 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
743 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${MAKE-make} sets \${MAKE}" >&5
745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
746 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 cat > conftestmake <<\EOF
751 @echo 'ac_maketemp="${MAKE}"'
753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
754 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
755 if test -n "$ac_maketemp"; then
756 eval ac_cv_prog_make_${ac_make}_set=yes
758 eval ac_cv_prog_make_${ac_make}_set=no
762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
763 echo "$ac_t""yes" 1>&6
766 echo "$ac_t""no" 1>&6
767 SET_MAKE="MAKE=${MAKE-make}"
775 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
776 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
781 missing_dir=`cd $ac_aux_dir && pwd`
782 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
783 echo "configure:784: checking for working aclocal" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
789 echo "$ac_t""found" 1>&6
791 ACLOCAL="$missing_dir/missing aclocal"
792 echo "$ac_t""missing" 1>&6
795 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
796 echo "configure:797: checking for working autoconf" >&5
797 # Run test in a subshell; some versions of sh will print an error if
798 # an executable is not found, even if stderr is redirected.
799 # Redirect stdin to placate older versions of autoconf. Sigh.
800 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
802 echo "$ac_t""found" 1>&6
804 AUTOCONF="$missing_dir/missing autoconf"
805 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking for working automake""... $ac_c" 1>&6
809 echo "configure:810: checking for working automake" >&5
810 # Run test in a subshell; some versions of sh will print an error if
811 # an executable is not found, even if stderr is redirected.
812 # Redirect stdin to placate older versions of autoconf. Sigh.
813 if (automake --version) < /dev/null > /dev/null 2>&1; then
815 echo "$ac_t""found" 1>&6
817 AUTOMAKE="$missing_dir/missing automake"
818 echo "$ac_t""missing" 1>&6
821 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
822 echo "configure:823: checking for working autoheader" >&5
823 # Run test in a subshell; some versions of sh will print an error if
824 # an executable is not found, even if stderr is redirected.
825 # Redirect stdin to placate older versions of autoconf. Sigh.
826 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
827 AUTOHEADER=autoheader
828 echo "$ac_t""found" 1>&6
830 AUTOHEADER="$missing_dir/missing autoheader"
831 echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
835 echo "configure:836: checking for working makeinfo" >&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf. Sigh.
839 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
841 echo "$ac_t""found" 1>&6
843 MAKEINFO="$missing_dir/missing makeinfo"
844 echo "$ac_t""missing" 1>&6
850 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
851 echo "configure:852: checking configure arguments" >&5
856 ldap_subdir="openldap"
858 # Check whether --with-subdir or --without-subdir was given.
859 if test "${with_subdir+set}" = set; then
860 withval="$with_subdir"
862 if test "$withval" = "no"; then
864 elif test "$withval" != "yes"; then
865 ldap_subdir="$withval"
871 # OpenLDAP --enable-debug
872 # Check whether --enable-debug or --disable-debug was given.
873 if test "${enable_debug+set}" = set; then
874 enableval="$enable_debug"
877 for ol_val in auto yes no ; do
878 if test "$enableval" = "$ol_val" ; then
882 if test "$ol_arg" = "invalid" ; then
883 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
885 ol_enable_debug="$ol_arg"
888 ol_enable_debug="yes"
892 # OpenLDAP --enable-proctitle
893 # Check whether --enable-proctitle or --disable-proctitle was given.
894 if test "${enable_proctitle+set}" = set; then
895 enableval="$enable_proctitle"
898 for ol_val in auto yes no ; do
899 if test "$enableval" = "$ol_val" ; then
903 if test "$ol_arg" = "invalid" ; then
904 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
906 ol_enable_proctitle="$ol_arg"
909 ol_enable_proctitle="yes"
911 # end --enable-proctitle
912 # OpenLDAP --enable-cache
913 # Check whether --enable-cache or --disable-cache was given.
914 if test "${enable_cache+set}" = set; then
915 enableval="$enable_cache"
918 for ol_val in auto yes no ; do
919 if test "$enableval" = "$ol_val" ; then
923 if test "$ol_arg" = "invalid" ; then
924 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
926 ol_enable_cache="$ol_arg"
929 ol_enable_cache="yes"
932 # OpenLDAP --enable-dns
933 # Check whether --enable-dns or --disable-dns was given.
934 if test "${enable_dns+set}" = set; then
935 enableval="$enable_dns"
938 for ol_val in auto yes no ; do
939 if test "$enableval" = "$ol_val" ; then
943 if test "$ol_arg" = "invalid" ; then
944 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
946 ol_enable_dns="$ol_arg"
952 # OpenLDAP --enable-referrals
953 # Check whether --enable-referrals or --disable-referrals was given.
954 if test "${enable_referrals+set}" = set; then
955 enableval="$enable_referrals"
958 for ol_val in auto yes no ; do
959 if test "$enableval" = "$ol_val" ; then
963 if test "$ol_arg" = "invalid" ; then
964 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
966 ol_enable_referrals="$ol_arg"
969 ol_enable_referrals="yes"
971 # end --enable-referrals
972 # OpenLDAP --enable-cldap
973 # Check whether --enable-cldap or --disable-cldap was given.
974 if test "${enable_cldap+set}" = set; then
975 enableval="$enable_cldap"
978 for ol_val in auto yes no ; do
979 if test "$enableval" = "$ol_val" ; then
983 if test "$ol_arg" = "invalid" ; then
984 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
986 ol_enable_cldap="$ol_arg"
992 # OpenLDAP --enable-x_compile
993 # Check whether --enable-x_compile or --disable-x_compile was given.
994 if test "${enable_x_compile+set}" = set; then
995 enableval="$enable_x_compile"
998 for ol_val in yes no ; do
999 if test "$enableval" = "$ol_val" ; then
1003 if test "$ol_arg" = "invalid" ; then
1004 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1006 ol_enable_x_compile="$ol_arg"
1009 ol_enable_x_compile="no"
1011 # end --enable-x_compile
1013 # OpenLDAP --enable-dmalloc
1014 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1015 if test "${enable_dmalloc+set}" = set; then
1016 enableval="$enable_dmalloc"
1019 for ol_val in auto yes no ; do
1020 if test "$enableval" = "$ol_val" ; then
1024 if test "$ol_arg" = "invalid" ; then
1025 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1027 ol_enable_dmalloc="$ol_arg"
1030 ol_enable_dmalloc="no"
1032 # end --enable-dmalloc
1034 # OpenLDAP --with-kerberos
1035 # Check whether --with-kerberos or --without-kerberos was given.
1036 if test "${with_kerberos+set}" = set; then
1037 withval="$with_kerberos"
1040 for ol_val in auto k5 k4 afs yes no ; do
1041 if test "$withval" = "$ol_val" ; then
1045 if test "$ol_arg" = "invalid" ; then
1046 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1048 ol_with_kerberos="$ol_arg"
1051 ol_with_kerberos="auto"
1053 # end --with-kerberos
1055 # OpenLDAP --with-readline
1056 # Check whether --with-readline or --without-readline was given.
1057 if test "${with_readline+set}" = set; then
1058 withval="$with_readline"
1061 for ol_val in auto yes no ; do
1062 if test "$withval" = "$ol_val" ; then
1066 if test "$ol_arg" = "invalid" ; then
1067 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1069 ol_with_readline="$ol_arg"
1072 ol_with_readline="auto"
1074 # end --with-readline
1076 # OpenLDAP --with-threads
1077 # Check whether --with-threads or --without-threads was given.
1078 if test "${with_threads+set}" = set; then
1079 withval="$with_threads"
1082 for ol_val in auto posix mach lwp yes no manual ; do
1083 if test "$withval" = "$ol_val" ; then
1087 if test "$ol_arg" = "invalid" ; then
1088 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1090 ol_with_threads="$ol_arg"
1093 ol_with_threads="auto"
1095 # end --with-threads
1097 # OpenLDAP --with-tls
1098 # Check whether --with-tls or --without-tls was given.
1099 if test "${with_tls+set}" = set; then
1103 for ol_val in auto ssleay openssl yes no ; do
1104 if test "$withval" = "$ol_val" ; then
1108 if test "$ol_arg" = "invalid" ; then
1109 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1111 ol_with_tls="$ol_arg"
1118 # OpenLDAP --with-yielding_select
1119 # Check whether --with-yielding_select or --without-yielding_select was given.
1120 if test "${with_yielding_select+set}" = set; then
1121 withval="$with_yielding_select"
1124 for ol_val in auto yes no manual ; do
1125 if test "$withval" = "$ol_val" ; then
1129 if test "$ol_arg" = "invalid" ; then
1130 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1132 ol_with_yielding_select="$ol_arg"
1135 ol_with_yielding_select="auto"
1137 # end --with-yielding_select
1141 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1142 if test "${with_xxldapdoptions+set}" = set; then
1143 withval="$with_xxldapdoptions"
1147 # OpenLDAP --enable-ldapd
1148 # Check whether --enable-ldapd or --disable-ldapd was given.
1149 if test "${enable_ldapd+set}" = set; then
1150 enableval="$enable_ldapd"
1153 for ol_val in auto yes no ; do
1154 if test "$enableval" = "$ol_val" ; then
1158 if test "$ol_arg" = "invalid" ; then
1159 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1161 ol_enable_ldapd="$ol_arg"
1164 ol_enable_ldapd="no"
1166 # end --enable-ldapd
1168 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1169 if test "${with_xxslapdoptions+set}" = set; then
1170 withval="$with_xxslapdoptions"
1174 # OpenLDAP --enable-slapd
1175 # Check whether --enable-slapd or --disable-slapd was given.
1176 if test "${enable_slapd+set}" = set; then
1177 enableval="$enable_slapd"
1180 for ol_val in auto yes no ; do
1181 if test "$enableval" = "$ol_val" ; then
1185 if test "$ol_arg" = "invalid" ; then
1186 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1188 ol_enable_slapd="$ol_arg"
1191 ol_enable_slapd="yes"
1193 # end --enable-slapd
1194 # OpenLDAP --enable-aclgroups
1195 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1196 if test "${enable_aclgroups+set}" = set; then
1197 enableval="$enable_aclgroups"
1200 for ol_val in auto yes no ; do
1201 if test "$enableval" = "$ol_val" ; then
1205 if test "$ol_arg" = "invalid" ; then
1206 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1208 ol_enable_aclgroups="$ol_arg"
1211 ol_enable_aclgroups="auto"
1213 # end --enable-aclgroups
1214 # OpenLDAP --enable-cleartext
1215 # Check whether --enable-cleartext or --disable-cleartext was given.
1216 if test "${enable_cleartext+set}" = set; then
1217 enableval="$enable_cleartext"
1220 for ol_val in auto yes no ; do
1221 if test "$enableval" = "$ol_val" ; then
1225 if test "$ol_arg" = "invalid" ; then
1226 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1228 ol_enable_cleartext="$ol_arg"
1231 ol_enable_cleartext="yes"
1233 # end --enable-cleartext
1234 # OpenLDAP --enable-crypt
1235 # Check whether --enable-crypt or --disable-crypt was given.
1236 if test "${enable_crypt+set}" = set; then
1237 enableval="$enable_crypt"
1240 for ol_val in auto yes no ; do
1241 if test "$enableval" = "$ol_val" ; then
1245 if test "$ol_arg" = "invalid" ; then
1246 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1248 ol_enable_crypt="$ol_arg"
1251 ol_enable_crypt="auto"
1253 # end --enable-crypt
1254 # OpenLDAP --enable-wrappers
1255 # Check whether --enable-wrappers or --disable-wrappers was given.
1256 if test "${enable_wrappers+set}" = set; then
1257 enableval="$enable_wrappers"
1260 for ol_val in auto yes no ; do
1261 if test "$enableval" = "$ol_val" ; then
1265 if test "$ol_arg" = "invalid" ; then
1266 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1268 ol_enable_wrappers="$ol_arg"
1271 ol_enable_wrappers="no"
1273 # end --enable-wrappers
1274 # OpenLDAP --enable-phonetic
1275 # Check whether --enable-phonetic or --disable-phonetic was given.
1276 if test "${enable_phonetic+set}" = set; then
1277 enableval="$enable_phonetic"
1280 for ol_val in auto yes no ; do
1281 if test "$enableval" = "$ol_val" ; then
1285 if test "$ol_arg" = "invalid" ; then
1286 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1288 ol_enable_phonetic="$ol_arg"
1291 ol_enable_phonetic="no"
1293 # end --enable-phonetic
1294 # OpenLDAP --enable-rlookups
1295 # Check whether --enable-rlookups or --disable-rlookups was given.
1296 if test "${enable_rlookups+set}" = set; then
1297 enableval="$enable_rlookups"
1300 for ol_val in auto yes no ; do
1301 if test "$enableval" = "$ol_val" ; then
1305 if test "$ol_arg" = "invalid" ; then
1306 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1308 ol_enable_rlookups="$ol_arg"
1311 ol_enable_rlookups="auto"
1313 # end --enable-rlookups
1315 # OpenLDAP --enable-bdb2
1316 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1317 if test "${enable_bdb2+set}" = set; then
1318 enableval="$enable_bdb2"
1321 for ol_val in auto yes no ; do
1322 if test "$enableval" = "$ol_val" ; then
1326 if test "$ol_arg" = "invalid" ; then
1327 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1329 ol_enable_bdb2="$ol_arg"
1335 # OpenLDAP --enable-ldbm
1336 # Check whether --enable-ldbm or --disable-ldbm was given.
1337 if test "${enable_ldbm+set}" = set; then
1338 enableval="$enable_ldbm"
1341 for ol_val in auto yes no ; do
1342 if test "$enableval" = "$ol_val" ; then
1346 if test "$ol_arg" = "invalid" ; then
1347 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1349 ol_enable_ldbm="$ol_arg"
1352 ol_enable_ldbm="yes"
1355 # OpenLDAP --with-ldbm_api
1356 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1357 if test "${with_ldbm_api+set}" = set; then
1358 withval="$with_ldbm_api"
1361 for ol_val in auto db2 db gdbm ndbm manual ; do
1362 if test "$withval" = "$ol_val" ; then
1366 if test "$ol_arg" = "invalid" ; then
1367 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1369 ol_with_ldbm_api="$ol_arg"
1372 ol_with_ldbm_api="auto"
1374 # end --with-ldbm_api
1376 # OpenLDAP --with-ldbm_type
1377 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1378 if test "${with_ldbm_type+set}" = set; then
1379 withval="$with_ldbm_type"
1382 for ol_val in auto btree hash ; do
1383 if test "$withval" = "$ol_val" ; then
1387 if test "$ol_arg" = "invalid" ; then
1388 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1390 ol_with_ldbm_type="$ol_arg"
1393 ol_with_ldbm_type="auto"
1395 # end --with-ldbm_type
1398 # OpenLDAP --enable-passwd
1399 # Check whether --enable-passwd or --disable-passwd was given.
1400 if test "${enable_passwd+set}" = set; then
1401 enableval="$enable_passwd"
1404 for ol_val in auto yes no ; do
1405 if test "$enableval" = "$ol_val" ; then
1409 if test "$ol_arg" = "invalid" ; then
1410 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1412 ol_enable_passwd="$ol_arg"
1415 ol_enable_passwd="no"
1417 # end --enable-passwd
1418 # OpenLDAP --enable-perl
1419 # Check whether --enable-perl or --disable-perl was given.
1420 if test "${enable_perl+set}" = set; then
1421 enableval="$enable_perl"
1424 for ol_val in auto yes no ; do
1425 if test "$enableval" = "$ol_val" ; then
1429 if test "$ol_arg" = "invalid" ; then
1430 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1432 ol_enable_perl="$ol_arg"
1438 # OpenLDAP --enable-shell
1439 # Check whether --enable-shell or --disable-shell was given.
1440 if test "${enable_shell+set}" = set; then
1441 enableval="$enable_shell"
1444 for ol_val in auto yes no ; do
1445 if test "$enableval" = "$ol_val" ; then
1449 if test "$ol_arg" = "invalid" ; then
1450 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1452 ol_enable_shell="$ol_arg"
1455 ol_enable_shell="no"
1457 # end --enable-shell
1458 # OpenLDAP --enable-tcl
1459 # Check whether --enable-tcl or --disable-tcl was given.
1460 if test "${enable_tcl+set}" = set; then
1461 enableval="$enable_tcl"
1464 for ol_val in auto yes no ; do
1465 if test "$enableval" = "$ol_val" ; then
1469 if test "$ol_arg" = "invalid" ; then
1470 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1472 ol_enable_tcl="$ol_arg"
1479 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1480 if test "${with_xxslurpdoptions+set}" = set; then
1481 withval="$with_xxslurpdoptions"
1485 # OpenLDAP --enable-slurpd
1486 # Check whether --enable-slurpd or --disable-slurpd was given.
1487 if test "${enable_slurpd+set}" = set; then
1488 enableval="$enable_slurpd"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1499 ol_enable_slurpd="$ol_arg"
1502 ol_enable_slurpd="auto"
1504 # end --enable-slurpd
1506 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1507 if test "${with_xxliboptions+set}" = set; then
1508 withval="$with_xxliboptions"
1512 # Check whether --enable-static or --disable-static was given.
1513 if test "${enable_static+set}" = set; then
1514 enableval="$enable_static"
1515 p=${PACKAGE-default}
1516 case "$enableval" in
1517 yes) enable_static=yes ;;
1518 no) enable_static=no ;;
1521 # Look at the argument we got. We use all the common list separators.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1523 for pkg in $enableval; do
1524 if test "X$pkg" = "X$p"; then
1535 # Check whether --enable-shared or --disable-shared was given.
1536 if test "${enable_shared+set}" = set; then
1537 enableval="$enable_shared"
1538 p=${PACKAGE-default}
1539 case "$enableval" in
1540 yes) enable_shared=yes ;;
1541 no) enable_shared=no ;;
1544 # Look at the argument we got. We use all the common list separators.
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1546 for pkg in $enableval; do
1547 if test "X$pkg" = "X$p"; then
1560 if test $ol_enable_dns = yes ; then
1561 if test $ol_enable_referrals = no ; then
1562 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1564 if test $ol_enable_referrals = auto ; then
1565 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1566 ol_enable_referrals=yes
1570 if test $ol_enable_slapd = no ; then
1571 if test $ol_enable_bdb2 = yes ; then
1572 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1574 if test $ol_enable_ldbm = yes ; then
1575 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1577 if test $ol_enable_passwd = yes ; then
1578 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1580 if test $ol_enable_perl = yes ; then
1581 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1583 if test $ol_enable_shell = yes ; then
1584 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1586 if test $ol_enable_tcl = yes ; then
1587 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1589 if test $ol_enable_aclgroups = yes ; then
1590 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1592 if test $ol_enable_wrappers = yes ; then
1593 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1595 if test $ol_enable_phonetic = yes ; then
1596 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1598 if test $ol_enable_rlookups = yes ; then
1599 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1601 if test $ol_with_ldbm_api != auto ; then
1602 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1604 if test $ol_with_ldbm_type != auto ; then
1605 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1607 if test $ol_enable_slurpd = yes ; then
1608 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1611 # force settings to no
1618 ol_enable_aclgroups=no
1619 ol_enable_wrappers=no
1620 ol_enable_phonetic=no
1621 ol_enable_rlookups=no
1623 ol_with_ldbm_type=no
1626 elif test $ol_enable_ldbm = no ; then
1628 if test $ol_with_ldbm_api != auto ; then
1629 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1632 if test $ol_with_ldbm_type != auto ; then
1633 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1636 if test $ol_enable_bdb2 = yes ; then
1637 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1640 if test $ol_enable_passwd = no -a \
1641 $ol_enable_perl = no -a \
1642 $ol_enable_shell = no -a \
1643 $ol_enable_tcl = no ; then
1644 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1648 ol_with_ldbm_type=no
1650 elif test $ol_enable_bdb2 = yes ; then
1652 if test $ol_with_ldbm_api != auto -a \
1653 $ol_with_ldbm_api != db2 ; then
1654 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1657 ol_with_ldbm_api=db2
1661 if test $ol_enable_bdb2 != no ; then
1662 if test $ol_with_ldbm_api != auto -a \
1663 $ol_with_ldbm_api != db2 ; then
1664 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1669 if test $ol_with_ldbm_api = gdbm -a \
1670 $ol_with_ldbm_type = btree ; then
1671 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1673 if test $ol_with_ldbm_api = ndbm -a \
1674 $ol_with_ldbm_type = btree ; then
1675 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1679 if test $ol_enable_slurpd = yes ; then
1680 if test $ol_with_threads = no ; then
1681 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1685 echo "$ac_t""done" 1>&6
1688 # Make sure we can run config.sub.
1689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1693 echo $ac_n "checking host system type""... $ac_c" 1>&6
1694 echo "configure:1695: checking host system type" >&5
1697 case "$host_alias" in
1701 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1704 *) host_alias=$nonopt ;;
1708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1712 echo "$ac_t""$host" 1>&6
1738 SLAPD_PERL_CPPFLAGS=
1746 # Find a good install program. We prefer a C program (faster),
1747 # so one script is as good as another. But avoid the broken or
1748 # incompatible versions:
1749 # SysV /etc/install, /usr/sbin/install
1750 # SunOS /usr/etc/install
1751 # IRIX /sbin/install
1753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1756 # ./install, which can be erroneously created by make from ./install.sh.
1757 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1758 echo "configure:1759: checking for a BSD compatible install" >&5
1759 if test -z "$INSTALL"; then
1760 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1764 for ac_dir in $PATH; do
1765 # Account for people who put trailing slashes in PATH elements.
1767 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1769 # OSF1 and SCO ODT 3.0 have their own names for install.
1770 # Don't use installbsd from OSF since it installs stuff as root
1772 for ac_prog in ginstall scoinst install; do
1773 if test -f $ac_dir/$ac_prog; then
1774 if test $ac_prog = install &&
1775 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1776 # AIX install. It has an incompatible calling convention.
1779 ac_cv_path_install="$ac_dir/$ac_prog -c"
1790 if test "${ac_cv_path_install+set}" = set; then
1791 INSTALL="$ac_cv_path_install"
1793 # As a last resort, use the slow shell script. We don't cache a
1794 # path for INSTALL within a source directory, because that will
1795 # break other packages using the cache if that directory is
1796 # removed, or if the path is relative.
1797 INSTALL="$ac_install_sh"
1800 echo "$ac_t""$INSTALL" 1>&6
1802 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1803 # It thinks the first close brace ends the variable substitution.
1804 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1806 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1808 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1814 # Extract the first word of "ranlib", so it can be a program name with args.
1815 set dummy ranlib; ac_word=$2
1816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $ac_word" >&5
1818 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 if test -n "$RANLIB"; then
1822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1826 for ac_dir in $ac_dummy; do
1827 test -z "$ac_dir" && ac_dir=.
1828 if test -f $ac_dir/$ac_word; then
1829 ac_cv_prog_RANLIB="ranlib"
1834 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1837 RANLIB="$ac_cv_prog_RANLIB"
1838 if test -n "$RANLIB"; then
1839 echo "$ac_t""$RANLIB" 1>&6
1841 echo "$ac_t""no" 1>&6
1844 # Extract the first word of "gcc", so it can be a program name with args.
1845 set dummy gcc; ac_word=$2
1846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1847 echo "configure:1848: checking for $ac_word" >&5
1848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 for ac_dir in $ac_dummy; do
1857 test -z "$ac_dir" && ac_dir=.
1858 if test -f $ac_dir/$ac_word; then
1867 if test -n "$CC"; then
1868 echo "$ac_t""$CC" 1>&6
1870 echo "$ac_t""no" 1>&6
1873 if test -z "$CC"; then
1874 # Extract the first word of "cc", so it can be a program name with args.
1875 set dummy cc; ac_word=$2
1876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1877 echo "configure:1878: checking for $ac_word" >&5
1878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1887 for ac_dir in $ac_dummy; do
1888 test -z "$ac_dir" && ac_dir=.
1889 if test -f $ac_dir/$ac_word; then
1890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1891 ac_prog_rejected=yes
1899 if test $ac_prog_rejected = yes; then
1900 # We found a bogon in the path, so make sure we never use it.
1901 set dummy $ac_cv_prog_CC
1903 if test $# -gt 0; then
1904 # We chose a different compiler from the bogus one.
1905 # However, it has the same basename, so the bogon will be chosen
1906 # first if we set CC to just the basename; use the full file name.
1908 set dummy "$ac_dir/$ac_word" "$@"
1916 if test -n "$CC"; then
1917 echo "$ac_t""$CC" 1>&6
1919 echo "$ac_t""no" 1>&6
1922 if test -z "$CC"; then
1923 case "`uname -s`" in
1925 # Extract the first word of "cl", so it can be a program name with args.
1926 set dummy cl; ac_word=$2
1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_word" >&5
1929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 if test -n "$CC"; then
1933 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1937 for ac_dir in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir=.
1939 if test -f $ac_dir/$ac_word; then
1948 if test -n "$CC"; then
1949 echo "$ac_t""$CC" 1>&6
1951 echo "$ac_t""no" 1>&6
1956 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1960 echo "configure:1961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1967 cross_compiling=$ac_cv_prog_cc_cross
1969 cat > conftest.$ac_ext << EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1977 ac_cv_prog_cc_works=yes
1978 # If we can't run a trivial program, we are probably using a cross compiler.
1979 if (./conftest; exit) 2>/dev/null; then
1980 ac_cv_prog_cc_cross=no
1982 ac_cv_prog_cc_cross=yes
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1987 ac_cv_prog_cc_works=no
1991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1995 cross_compiling=$ac_cv_prog_cc_cross
1997 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1998 if test $ac_cv_prog_cc_works = no; then
1999 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2001 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2002 echo "configure:2003: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2003 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2004 cross_compiling=$ac_cv_prog_cc_cross
2006 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2007 echo "configure:2008: checking whether we are using GNU C" >&5
2008 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 cat > conftest.c <<EOF
2016 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2023 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2025 if test $ac_cv_prog_gcc = yes; then
2031 ac_test_CFLAGS="${CFLAGS+set}"
2032 ac_save_CFLAGS="$CFLAGS"
2034 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2035 echo "configure:2036: checking whether ${CC-cc} accepts -g" >&5
2036 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 echo 'void f(){}' > conftest.c
2040 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2049 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2050 if test "$ac_test_CFLAGS" = set; then
2051 CFLAGS="$ac_save_CFLAGS"
2052 elif test $ac_cv_prog_cc_g = yes; then
2053 if test "$GCC" = yes; then
2059 if test "$GCC" = yes; then
2066 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2067 if test "${with_gnu_ld+set}" = set; then
2068 withval="$with_gnu_ld"
2069 test "$withval" = no || with_gnu_ld=yes
2076 if test "$ac_cv_prog_gcc" = yes; then
2077 # Check if gcc -print-prog-name=ld gives a path.
2078 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2079 echo "configure:2080: checking for ld used by GCC" >&5
2080 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2082 # Accept absolute paths.
2084 test -z "$LD" && LD="$ac_prog"
2087 # If it fails, then pretend we aren't using GCC.
2091 # If it is relative, then search for the first ld in PATH.
2095 elif test "$with_gnu_ld" = yes; then
2096 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2097 echo "configure:2098: checking for GNU ld" >&5
2099 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2100 echo "configure:2101: checking for non-GNU ld" >&5
2102 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 if test -z "$LD"; then
2106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2107 for ac_dir in $PATH; do
2108 test -z "$ac_dir" && ac_dir=.
2109 if test -f "$ac_dir/$ac_prog"; then
2110 ac_cv_path_LD="$ac_dir/$ac_prog"
2111 # Check to see if the program is GNU ld. I'd rather use --version,
2112 # but apparently some GNU ld's only accept -v.
2113 # Break only if it was the GNU/non-GNU ld that we prefer.
2114 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2115 test "$with_gnu_ld" != no && break
2117 test "$with_gnu_ld" != yes && break
2123 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2128 if test -n "$LD"; then
2129 echo "$ac_t""$LD" 1>&6
2131 echo "$ac_t""no" 1>&6
2133 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2135 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2136 echo "configure:2137: checking if the linker ($LD) is GNU ld" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2141 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2142 ac_cv_prog_gnu_ld=yes
2144 ac_cv_prog_gnu_ld=no
2148 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2151 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2152 echo "configure:2153: checking for BSD-compatible nm" >&5
2153 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2158 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2162 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2163 test -z "$ac_dir" && ac_dir=.
2164 if test -f $ac_dir/nm; then
2165 # Check to see if the nm accepts a BSD-compat flag.
2166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2167 # nm: unknown option "B" ignored
2168 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2169 ac_cv_path_NM="$ac_dir/nm -B"
2170 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2171 ac_cv_path_NM="$ac_dir/nm -p"
2173 ac_cv_path_NM="$ac_dir/nm"
2179 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2185 echo "$ac_t""$NM" 1>&6
2188 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2189 echo "configure:2190: checking whether ln -s works" >&5
2190 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2194 if ln -s X conftestdata 2>/dev/null
2197 ac_cv_prog_LN_S="ln -s"
2202 LN_S="$ac_cv_prog_LN_S"
2203 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2204 echo "$ac_t""yes" 1>&6
2206 echo "$ac_t""no" 1>&6
2209 # Always use our own libtool.
2210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2212 # Check for any special flags to pass to ltconfig.
2214 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2215 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2216 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2217 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2218 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2220 # Some flags need to be propagated to the compiler or linker for good
2224 # Find out which ABI we are using.
2225 echo '#line 2226 "configure"' > conftest.$ac_ext
2226 if { (eval echo configure:2227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2227 case "`/usr/bin/file conftest.o`" in
2243 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2244 CFLAGS="$CFLAGS -belf"
2248 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2249 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2250 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2251 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2252 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2253 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2256 for ac_prog in mawk gawk nawk awk
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_word" >&5
2262 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 if test -n "$AWK"; then
2266 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2270 for ac_dir in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir=.
2272 if test -f $ac_dir/$ac_word; then
2273 ac_cv_prog_AWK="$ac_prog"
2280 AWK="$ac_cv_prog_AWK"
2281 if test -n "$AWK"; then
2282 echo "$ac_t""$AWK" 1>&6
2284 echo "$ac_t""no" 1>&6
2287 test -n "$AWK" && break
2290 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether ln -s works" >&5
2292 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2296 if ln -s X conftestdata 2>/dev/null
2299 ac_cv_prog_LN_S="ln -s"
2304 LN_S="$ac_cv_prog_LN_S"
2305 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2306 echo "$ac_t""yes" 1>&6
2308 echo "$ac_t""no" 1>&6
2312 # Extract the first word of "sendmail", so it can be a program name with args.
2313 set dummy sendmail; ac_word=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2321 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2324 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2328 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2329 for ac_dir in $ac_dummy; do
2330 test -z "$ac_dir" && ac_dir=.
2331 if test -f $ac_dir/$ac_word; then
2332 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2337 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2341 SENDMAIL="$ac_cv_path_SENDMAIL"
2342 if test -n "$SENDMAIL"; then
2343 echo "$ac_t""$SENDMAIL" 1>&6
2345 echo "$ac_t""no" 1>&6
2348 # Extract the first word of "vi", so it can be a program name with args.
2349 set dummy vi; ac_word=$2
2350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2351 echo "configure:2352: checking for $ac_word" >&5
2352 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2357 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2360 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2364 ac_dummy="$PATH:/usr/ucb"
2365 for ac_dir in $ac_dummy; do
2366 test -z "$ac_dir" && ac_dir=.
2367 if test -f $ac_dir/$ac_word; then
2368 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2373 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2377 EDITOR="$ac_cv_path_EDITOR"
2378 if test -n "$EDITOR"; then
2379 echo "$ac_t""$EDITOR" 1>&6
2381 echo "$ac_t""no" 1>&6
2384 # Extract the first word of "finger", so it can be a program name with args.
2385 set dummy finger; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2393 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2396 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2400 ac_dummy="$PATH:/usr/ucb"
2401 for ac_dir in $ac_dummy; do
2402 test -z "$ac_dir" && ac_dir=.
2403 if test -f $ac_dir/$ac_word; then
2404 ac_cv_path_FINGER="$ac_dir/$ac_word"
2409 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2413 FINGER="$ac_cv_path_FINGER"
2414 if test -n "$FINGER"; then
2415 echo "$ac_t""$FINGER" 1>&6
2417 echo "$ac_t""no" 1>&6
2421 if test $ol_enable_perl = yes ; then
2422 # Extract the first word of "perl", so it can be a program name with args.
2423 set dummy perl; ac_word=$2
2424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_word" >&5
2426 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2431 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2434 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2439 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 if test -f $ac_dir/$ac_word; then
2442 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2447 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2451 PERLBIN="$ac_cv_path_PERLBIN"
2452 if test -n "$PERLBIN"; then
2453 echo "$ac_t""$PERLBIN" 1>&6
2455 echo "$ac_t""no" 1>&6
2459 if test "no$PERLBIN" = "no" ; then
2463 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2464 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2467 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2468 echo "configure:2469: checking how to run the C preprocessor" >&5
2469 # On Suns, sometimes $CPP names a directory.
2470 if test -n "$CPP" && test -d "$CPP"; then
2473 if test -z "$CPP"; then
2474 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 # This must be in double quotes, not single quotes, because CPP may get
2478 # substituted into the Makefile and "${CC-cc}" will confuse make.
2480 # On the NeXT, cc -E runs the code through the compiler's parser,
2481 # not just through cpp.
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 CPP="${CC-cc} -E -traditional-cpp"
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2512 echo "configure: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2515 CPP="${CC-cc} -nologo -E"
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2523 { (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2525 if test -z "$ac_err"; then
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2539 ac_cv_prog_CPP="$CPP"
2541 CPP="$ac_cv_prog_CPP"
2543 ac_cv_prog_CPP="$CPP"
2545 echo "$ac_t""$CPP" 1>&6
2548 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2549 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2551 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2552 echo "configure: warning: programs compiled here do run here..." 1>&2
2553 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2555 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2556 echo "configure: warning: programs compiled here do not run here..." 1>&2
2557 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2560 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2561 echo "configure:2562: checking for AIX" >&5
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571 egrep "yes" >/dev/null 2>&1; then
2573 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2574 #define _ALL_SOURCE 1
2579 echo "$ac_t""no" 1>&6
2584 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2585 echo "configure:2586: checking for POSIXized ISC" >&5
2586 if test -d /etc/conf/kconfig.d &&
2587 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2589 echo "$ac_t""yes" 1>&6
2590 ISC=yes # If later tests want to check for ISC.
2591 cat >> confdefs.h <<\EOF
2592 #define _POSIX_SOURCE 1
2595 if test "$GCC" = yes; then
2601 echo "$ac_t""no" 1>&6
2605 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2606 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2607 echo "configure:2608: checking for minix/config.h" >&5
2608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 #include <minix/config.h>
2616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2617 { (eval echo configure:2618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2619 if test -z "$ac_err"; then
2621 eval "ac_cv_header_$ac_safe=yes"
2624 echo "configure: failed program was:" >&5
2625 cat conftest.$ac_ext >&5
2627 eval "ac_cv_header_$ac_safe=no"
2631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2635 echo "$ac_t""no" 1>&6
2639 if test "$MINIX" = yes; then
2640 cat >> confdefs.h <<\EOF
2641 #define _POSIX_SOURCE 1
2644 cat >> confdefs.h <<\EOF
2645 #define _POSIX_1_SOURCE 2
2648 cat >> confdefs.h <<\EOF
2655 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2656 echo "configure:2657: checking for Cygwin environment" >&5
2657 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2667 #define __CYGWIN__ __CYGWIN32__
2672 if { (eval echo configure:2673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2685 echo "$ac_t""$ac_cv_cygwin" 1>&6
2687 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2688 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2689 echo "configure:2690: checking for mingw32 environment" >&5
2690 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2701 if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2705 echo "configure: failed program was:" >&5
2706 cat conftest.$ac_ext >&5
2714 echo "$ac_t""$ac_cv_mingw32" 1>&6
2716 test "$ac_cv_mingw32" = yes && MINGW32=yes
2719 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2720 echo "configure:2721: checking for executable suffix" >&5
2721 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2728 echo 'int main () { return 0; }' > conftest.$ac_ext
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2731 for file in conftest.*; do
2733 *.c | *.o | *.obj) ;;
2734 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2738 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2741 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2746 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2747 echo "$ac_t""${ac_cv_exeext}" 1>&6
2750 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2751 echo "configure:2752: checking for object suffix" >&5
2752 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2756 echo 'int i = 1;' > conftest.$ac_ext
2757 if { (eval echo configure:2758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2758 for ac_file in conftest.*; do
2761 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2765 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2770 echo "$ac_t""$ac_cv_objext" 1>&6
2771 OBJEXT=$ac_cv_objext
2772 ac_objext=$ac_cv_objext
2778 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2779 echo "configure:2780: checking for ${CC-cc} option to accept ANSI C" >&5
2780 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 am_cv_prog_cc_stdc=no
2785 # Don't try gcc -ansi; that turns off useful extensions and
2786 # breaks some systems' header files.
2787 # AIX -qlanglvl=ansi
2788 # Ultrix and OSF/1 -std1
2789 # HP-UX -Aa -D_HPUX_SOURCE
2790 # SVR4 -Xc -D__EXTENSIONS__
2791 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2793 CC="$ac_save_CC $ac_arg"
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2799 #include <sys/types.h>
2800 #include <sys/stat.h>
2801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2802 struct buf { int x; };
2803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2804 static char *e (p, i)
2810 static char *f (char * (*g) (char **, int), char **p, ...)
2815 s = g (p, va_arg (v,int));
2819 int test (int i, double x);
2820 struct s1 {int (*f) (int a);};
2821 struct s2 {int (*f) (double a);};
2822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2832 if { (eval echo configure:2833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2834 am_cv_prog_cc_stdc="$ac_arg"; break
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2845 if test -z "$am_cv_prog_cc_stdc"; then
2846 echo "$ac_t""none needed" 1>&6
2848 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2850 case "x$am_cv_prog_cc_stdc" in
2852 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2855 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2856 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2862 echo $ac_n "checking for socket""... $ac_c" 1>&6
2863 echo "configure:2864: checking for socket" >&5
2864 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 /* System header to define __stub macros and hopefully few prototypes,
2871 which can conflict with char socket(); below. */
2873 /* Override any gcc2 internal prototype to avoid an error. */
2874 /* We use char because int might match the return type of a gcc2
2875 builtin and then its argument prototype would still apply. */
2880 /* The GNU C library defines this for functions which it implements
2881 to always fail with ENOSYS. Some functions are actually named
2882 something starting with __ and the normal name is an alias. */
2883 #if defined (__stub_socket) || defined (__stub___socket)
2891 if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2893 eval "ac_cv_func_socket=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 eval "ac_cv_func_socket=no"
2903 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2907 echo "$ac_t""no" 1>&6
2909 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2910 echo "configure:2911: checking for main in -lsocket" >&5
2911 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 ac_save_LIBS="$LIBS"
2916 LIBS="-lsocket $LIBS"
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927 eval "ac_cv_lib_$ac_lib_var=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 eval "ac_cv_lib_$ac_lib_var=no"
2935 LIBS="$ac_save_LIBS"
2938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2942 cat >> confdefs.h <<EOF
2943 #define $ac_tr_lib 1
2946 LIBS="-lsocket $LIBS"
2949 echo "$ac_t""no" 1>&6
2952 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2953 echo "configure:2954: checking for main in -lnet" >&5
2954 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 ac_save_LIBS="$LIBS"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2970 eval "ac_cv_lib_$ac_lib_var=yes"
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2975 eval "ac_cv_lib_$ac_lib_var=no"
2978 LIBS="$ac_save_LIBS"
2981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2982 echo "$ac_t""yes" 1>&6
2983 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2985 cat >> confdefs.h <<EOF
2986 #define $ac_tr_lib 1
2992 echo "$ac_t""no" 1>&6
2995 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2996 echo "configure:2997: checking for main in -lnsl_s" >&5
2997 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 ac_save_LIBS="$LIBS"
3002 LIBS="-lnsl_s $LIBS"
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3011 if { (eval echo configure:3012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3013 eval "ac_cv_lib_$ac_lib_var=yes"
3015 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3018 eval "ac_cv_lib_$ac_lib_var=no"
3021 LIBS="$ac_save_LIBS"
3024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3025 echo "$ac_t""yes" 1>&6
3026 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3028 cat >> confdefs.h <<EOF
3029 #define $ac_tr_lib 1
3032 LIBS="-lnsl_s $LIBS"
3035 echo "$ac_t""no" 1>&6
3038 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3039 echo "configure:3040: checking for main in -lnsl" >&5
3040 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 ac_save_LIBS="$LIBS"
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3054 if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3056 eval "ac_cv_lib_$ac_lib_var=yes"
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3061 eval "ac_cv_lib_$ac_lib_var=no"
3064 LIBS="$ac_save_LIBS"
3067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3071 cat >> confdefs.h <<EOF
3072 #define $ac_tr_lib 1
3078 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3082 echo "configure:3083: checking for socket in -linet" >&5
3083 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 ac_save_LIBS="$LIBS"
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3103 eval "ac_cv_lib_$ac_lib_var=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3108 eval "ac_cv_lib_$ac_lib_var=no"
3111 LIBS="$ac_save_LIBS"
3114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3116 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3118 cat >> confdefs.h <<EOF
3119 #define $ac_tr_lib 1
3125 echo "$ac_t""no" 1>&6
3128 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3129 echo "configure:3130: checking for main in -lgen" >&5
3130 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 ac_save_LIBS="$LIBS"
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 eval "ac_cv_lib_$ac_lib_var=yes"
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 eval "ac_cv_lib_$ac_lib_var=no"
3154 LIBS="$ac_save_LIBS"
3157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3159 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3161 cat >> confdefs.h <<EOF
3162 #define $ac_tr_lib 1
3168 echo "$ac_t""no" 1>&6
3175 for ac_func in res_search
3177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3178 echo "configure:3179: checking for $ac_func" >&5
3179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 /* System header to define __stub macros and hopefully few prototypes,
3186 which can conflict with char $ac_func(); below. */
3188 /* Override any gcc2 internal prototype to avoid an error. */
3189 /* We use char because int might match the return type of a gcc2
3190 builtin and then its argument prototype would still apply. */
3195 /* The GNU C library defines this for functions which it implements
3196 to always fail with ENOSYS. Some functions are actually named
3197 something starting with __ and the normal name is an alias. */
3198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3208 eval "ac_cv_func_$ac_func=yes"
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 eval "ac_cv_func_$ac_func=no"
3218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3221 cat >> confdefs.h <<EOF
3222 #define $ac_tr_func 1
3226 echo "$ac_t""no" 1>&6
3230 if test $ac_cv_func_res_search = "no" ; then
3231 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3232 echo "configure:3233: checking for res_search in -lbind" >&5
3233 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 ac_save_LIBS="$LIBS"
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3253 eval "ac_cv_lib_$ac_lib_var=yes"
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 eval "ac_cv_lib_$ac_lib_var=no"
3261 LIBS="$ac_save_LIBS"
3264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3265 echo "$ac_t""yes" 1>&6
3266 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3268 cat >> confdefs.h <<EOF
3269 #define $ac_tr_lib 1
3275 echo "$ac_t""no" 1>&6
3278 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3279 cat >> confdefs.h <<\EOF
3280 #define HAVE_RES_SEARCH 1
3284 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3285 echo "configure:3286: checking for res_search in -lresolv" >&5
3286 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 ac_save_LIBS="$LIBS"
3291 LIBS="-lresolv $LIBS"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 eval "ac_cv_lib_$ac_lib_var=yes"
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3311 eval "ac_cv_lib_$ac_lib_var=no"
3314 LIBS="$ac_save_LIBS"
3317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3318 echo "$ac_t""yes" 1>&6
3319 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3321 cat >> confdefs.h <<EOF
3322 #define $ac_tr_lib 1
3325 LIBS="-lresolv $LIBS"
3328 echo "$ac_t""no" 1>&6
3331 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3332 cat >> confdefs.h <<\EOF
3333 #define HAVE_RES_SEARCH 1
3340 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3341 echo "configure:3342: checking for sigset in -lV3" >&5
3342 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 ac_save_LIBS="$LIBS"
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3362 eval "ac_cv_lib_$ac_lib_var=yes"
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 eval "ac_cv_lib_$ac_lib_var=no"
3370 LIBS="$ac_save_LIBS"
3373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3377 cat >> confdefs.h <<EOF
3378 #define $ac_tr_lib 1
3384 echo "$ac_t""no" 1>&6
3390 if test $ol_enable_ldapd != no ; then
3391 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3392 echo "configure:3393: checking for main in -lxtpp" >&5
3393 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 ac_save_LIBS="$LIBS"
3398 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 eval "ac_cv_lib_$ac_lib_var=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_lib_$ac_lib_var=no"
3417 LIBS="$ac_save_LIBS"
3420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3421 echo "$ac_t""yes" 1>&6
3424 cat >> confdefs.h <<\EOF
3428 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3431 echo "$ac_t""no" 1>&6
3435 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3436 echo "configure:3437: checking for main in -ldsap" >&5
3437 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 ac_save_LIBS="$LIBS"
3442 LIBS="-ldsap -lisode $LIBS"
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3451 if { (eval echo configure:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3453 eval "ac_cv_lib_$ac_lib_var=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3458 eval "ac_cv_lib_$ac_lib_var=no"
3461 LIBS="$ac_save_LIBS"
3464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3468 cat >> confdefs.h <<\EOF
3472 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3475 echo "$ac_t""no" 1>&6
3479 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3480 echo "configure:3481: checking for main in -lisode" >&5
3481 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 ac_save_LIBS="$LIBS"
3486 LIBS="-lisode $LIBS"
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3495 if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3497 eval "ac_cv_lib_$ac_lib_var=yes"
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3502 eval "ac_cv_lib_$ac_lib_var=no"
3505 LIBS="$ac_save_LIBS"
3508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3509 echo "$ac_t""yes" 1>&6
3512 cat >> confdefs.h <<\EOF
3513 #define HAVE_ISODE 1
3516 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3519 echo "$ac_t""no" 1>&6
3525 if test $ol_link_isode != no; then
3526 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3527 echo "configure:3528: checking for main in -lpp" >&5
3528 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 ac_save_LIBS="$LIBS"
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3544 eval "ac_cv_lib_$ac_lib_var=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 eval "ac_cv_lib_$ac_lib_var=no"
3552 LIBS="$ac_save_LIBS"
3555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3558 cat >> confdefs.h <<\EOF
3562 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3565 echo "$ac_t""no" 1>&6
3570 # Extract the first word of "pepsy", so it can be a program name with args.
3571 set dummy pepsy; ac_word=$2
3572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3573 echo "configure:3574: checking for $ac_word" >&5
3574 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3579 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3582 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3587 for ac_dir in $ac_dummy; do
3588 test -z "$ac_dir" && ac_dir=.
3589 if test -f $ac_dir/$ac_word; then
3590 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3598 PEPSY="$ac_cv_path_PEPSY"
3599 if test -n "$PEPSY"; then
3600 echo "$ac_t""$PEPSY" 1>&6
3602 echo "$ac_t""no" 1>&6
3609 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3610 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_hdr" >&5
3615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3624 { (eval echo configure:3625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3626 if test -z "$ac_err"; then
3628 eval "ac_cv_header_$ac_safe=yes"
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3634 eval "ac_cv_header_$ac_safe=no"
3638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3641 cat >> confdefs.h <<EOF
3642 #define $ac_tr_hdr 1
3646 echo "$ac_t""no" 1>&6
3651 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3652 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3653 echo "configure:3654: checking for main in -lkrb4" >&5
3654 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 ac_save_LIBS="$LIBS"
3659 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3668 if { (eval echo configure:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3670 eval "ac_cv_lib_$ac_lib_var=yes"
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 eval "ac_cv_lib_$ac_lib_var=no"
3678 LIBS="$ac_save_LIBS"
3681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3682 echo "$ac_t""yes" 1>&6
3685 echo "$ac_t""no" 1>&6
3690 if test $have_k5 = yes ; then
3691 ol_with_kerberos=found
3692 ol_link_kerberos=yes
3694 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3696 LIBS="$KRB_LIBS $LIBS"
3698 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3699 echo "configure:3700: checking for des_debug in Kerberos libraries" >&5
3700 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3705 LIBS="$KRB_LIBS $LIBS"
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3710 #include <kerberosIV/krb.h>
3711 #include <kerberosIV/des.h>
3712 extern int des_debug;
3720 if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3722 ol_cv_var_des_debug=yes
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 ol_cv_var_des_debug=no
3734 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3736 if test $ol_cv_var_des_debug = yes ; then
3737 cat >> confdefs.h <<\EOF
3738 #define HAVE_DES_DEBUG 1
3748 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3749 for ac_hdr in krb.h des.h
3751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_hdr" >&5
3754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3763 { (eval echo configure:3764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3765 if test -z "$ac_err"; then
3767 eval "ac_cv_header_$ac_safe=yes"
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3773 eval "ac_cv_header_$ac_safe=no"
3777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3780 cat >> confdefs.h <<EOF
3781 #define $ac_tr_hdr 1
3785 echo "$ac_t""no" 1>&6
3790 if test $ac_cv_header_krb_h = yes ; then
3791 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3792 echo "configure:3793: checking for main in -lkrb" >&5
3793 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 ac_save_LIBS="$LIBS"
3798 LIBS="-lkrb -ldes $LIBS"
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 eval "ac_cv_lib_$ac_lib_var=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_lib_$ac_lib_var=no"
3817 LIBS="$ac_save_LIBS"
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3824 echo "$ac_t""no" 1>&6
3829 if test $have_k4 = yes ; then
3830 ol_with_kerberos=found
3831 ol_link_kerberos=yes
3833 KRB_LIBS="-lkrb -ldes"
3838 if test $ol_link_kerberos = yes ; then
3839 cat >> confdefs.h <<\EOF
3840 #define HAVE_KERBEROS 1
3846 if test $ol_with_tls != no ; then
3850 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3851 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3852 echo "configure:3853: checking for $ac_hdr" >&5
3853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3862 { (eval echo configure:3863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3864 if test -z "$ac_err"; then
3866 eval "ac_cv_header_$ac_safe=yes"
3869 echo "configure: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3872 eval "ac_cv_header_$ac_safe=no"
3876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3877 echo "$ac_t""yes" 1>&6
3878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3879 cat >> confdefs.h <<EOF
3880 #define $ac_tr_hdr 1
3884 echo "$ac_t""no" 1>&6
3889 if test $ac_cv_header_ssl_h = yes ; then
3890 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3891 echo "configure:3892: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3892 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 ac_save_LIBS="$LIBS"
3897 LIBS="-lssl -lcrypto $LIBS"
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char SSLeay_add_ssl_algorithms();
3907 SSLeay_add_ssl_algorithms()
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912 eval "ac_cv_lib_$ac_lib_var=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3917 eval "ac_cv_lib_$ac_lib_var=no"
3920 LIBS="$ac_save_LIBS"
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3928 echo "$ac_t""no" 1>&6
3933 if test $have_ssleay = no ; then
3934 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
3935 echo "configure:3936: checking for ssl3_accept in -lssl" >&5
3936 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
3937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 ac_save_LIBS="$LIBS"
3941 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 /* Override any gcc2 internal prototype to avoid an error. */
3946 /* We use char because int might match the return type of a gcc2
3947 builtin and then its argument prototype would still apply. */
3954 if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3956 eval "ac_cv_lib_$ac_lib_var=yes"
3958 echo "configure: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3961 eval "ac_cv_lib_$ac_lib_var=no"
3964 LIBS="$ac_save_LIBS"
3967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3968 echo "$ac_t""yes" 1>&6
3972 echo "$ac_t""no" 1>&6
3978 if test $have_ssleay = yes ; then
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_SSLEAY 1
3987 if test $need_rsaref = yes; then
3988 cat >> confdefs.h <<\EOF
3989 #define HAVE_RSAREF 1
3993 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
3995 TLS_LIBS="-lssl -lcrypto"
4001 if test $ol_link_tls = yes ; then
4002 cat >> confdefs.h <<\EOF
4010 gethostbyname_r gethostbyaddr_r \
4013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4014 echo "configure:4015: checking for $ac_func" >&5
4015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 /* System header to define __stub macros and hopefully few prototypes,
4022 which can conflict with char $ac_func(); below. */
4024 /* Override any gcc2 internal prototype to avoid an error. */
4025 /* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4031 /* The GNU C library defines this for functions which it implements
4032 to always fail with ENOSYS. Some functions are actually named
4033 something starting with __ and the normal name is an alias. */
4034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4042 if { (eval echo configure:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4044 eval "ac_cv_func_$ac_func=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4049 eval "ac_cv_func_$ac_func=no"
4054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4055 echo "$ac_t""yes" 1>&6
4056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4057 cat >> confdefs.h <<EOF
4058 #define $ac_tr_func 1
4062 echo "$ac_t""no" 1>&6
4067 if test "$ac_cv_func_ctime_r" = no ; then
4068 ol_cv_func_ctime_r_nargs=0
4070 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4071 echo "configure:4072: checking number of arguments of ctime_r" >&5
4072 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4080 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4083 if { (eval echo configure:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4085 ol_cv_func_ctime_r_nargs=3
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4095 time_t ti; char *buffer; ctime_r(&ti,buffer);
4098 if { (eval echo configure:4099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4100 ol_cv_func_ctime_r_nargs=2
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4105 ol_cv_func_ctime_r_nargs=0
4112 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4113 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4114 cat >> confdefs.h <<EOF
4115 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4122 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4123 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4124 echo "configure:4125: checking number of arguments of gethostbyname_r" >&5
4125 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4131 #include <sys/types.h>
4132 #include <sys/socket.h>
4133 #include <netinet/in.h>
4135 #define BUFSIZE (sizeof(struct hostent)+10)
4137 struct hostent hent; char buffer[BUFSIZE];
4138 int bufsize=BUFSIZE;int h_errno;
4139 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4140 buffer, bufsize, &h_errno);
4143 if { (eval echo configure:4144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4145 ol_cv_func_gethostbyname_r_nargs=5
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 #include <sys/types.h>
4154 #include <sys/socket.h>
4155 #include <netinet/in.h>
4157 #define BUFSIZE (sizeof(struct hostent)+10)
4159 struct hostent hent;struct hostent *rhent;
4160 char buffer[BUFSIZE];
4161 int bufsize=BUFSIZE;int h_errno;
4162 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4166 if { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 ol_cv_func_gethostbyname_r_nargs=6
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4173 ol_cv_func_gethostbyname_r_nargs=0
4180 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4181 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4182 cat >> confdefs.h <<EOF
4183 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4189 ol_cv_func_gethostbyname_r_nargs=0
4192 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4193 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4194 echo "configure:4195: checking number of arguments of gethostbyaddr_r" >&5
4195 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 #include <sys/types.h>
4202 #include <sys/socket.h>
4203 #include <netinet/in.h>
4205 #define BUFSIZE (sizeof(struct hostent)+10)
4207 struct hostent hent; char buffer[BUFSIZE];
4209 size_t alen=sizeof(struct in_addr);
4210 int bufsize=BUFSIZE;int h_errno;
4211 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4212 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4215 if { (eval echo configure:4216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4217 ol_cv_func_gethostbyaddr_r_nargs=7
4219 echo "configure: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 #include <sys/types.h>
4226 #include <sys/socket.h>
4227 #include <netinet/in.h>
4229 #define BUFSIZE (sizeof(struct hostent)+10)
4231 struct hostent hent;
4232 struct hostent *rhent; char buffer[BUFSIZE];
4234 size_t alen=sizeof(struct in_addr);
4235 int bufsize=BUFSIZE;int h_errno;
4236 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4237 alen, AF_INET, &hent, buffer, bufsize,
4241 if { (eval echo configure:4242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4243 ol_cv_func_gethostbyaddr_r_nargs=8
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 ol_cv_func_gethostbyaddr_r_nargs=0
4255 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4256 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4257 cat >> confdefs.h <<EOF
4258 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4264 ol_cv_func_gethostbyaddr_r_nargs=0
4267 if test "$ac_cv_func_ctime_r" = yes \
4268 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4269 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4270 -a "$ac_cv_func_gethostbyname_r" = yes \
4271 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4272 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4273 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4274 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4275 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4278 cat >> confdefs.h <<\EOF
4279 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4285 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4286 -o $ol_with_threads = posix ; then
4288 for ac_hdr in pthread.h sched.h
4290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4292 echo "configure:4293: checking for $ac_hdr" >&5
4293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4302 { (eval echo configure:4303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4304 if test -z "$ac_err"; then
4306 eval "ac_cv_header_$ac_safe=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 eval "ac_cv_header_$ac_safe=no"
4316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4319 cat >> confdefs.h <<EOF
4320 #define $ac_tr_hdr 1
4324 echo "$ac_t""no" 1>&6
4329 if test $ac_cv_header_pthread_h = yes ; then
4330 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4331 echo "configure:4332: checking POSIX thread version" >&5
4332 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4340 # include <pthread.h>
4341 /* this check could be improved */
4342 # ifdef PTHREAD_ONCE_INIT
4343 pthread_version_final
4347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4348 egrep "pthread_version_final" >/dev/null 2>&1; then
4350 ol_pthread_final=yes
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4362 # include <pthread.h>
4363 /* this check could be improved */
4364 # ifdef pthread_once_init
4365 pthread_version_draft4
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4372 ol_pthread_draft4=yes
4375 ol_pthread_draft4=no
4380 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4381 ol_cv_pthread_version=final
4382 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4383 ol_cv_pthread_version=draft4
4385 ol_cv_pthread_version=unknown
4390 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4393 if test $ol_cv_pthread_version = final ; then
4394 cat >> confdefs.h <<\EOF
4395 #define HAVE_PTHREADS_FINAL 1
4398 elif test $ol_cv_pthread_version = draft4 ; then
4399 cat >> confdefs.h <<\EOF
4400 #define HAVE_PTHREADS_D4 1
4404 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4407 # consider threads found
4408 ol_with_threads=found
4411 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4412 echo "configure:4413: checking for LinuxThreads" >&5
4413 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4417 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4418 if test "$res" -gt 0 ; then
4419 ol_cv_linux_threads=yes
4421 ol_cv_linux_threads=no
4426 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4429 if test $ol_cv_linux_threads = yes ; then
4430 cat >> confdefs.h <<\EOF
4431 #define HAVE_LINUX_THREADS 1
4437 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
4438 echo "configure:4439: checking for pthread_create" >&5
4439 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4445 /* System header to define __stub macros and hopefully few prototypes,
4446 which can conflict with char pthread_create(); below. */
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 /* We use char because int might match the return type of a gcc2
4450 builtin and then its argument prototype would still apply. */
4451 char pthread_create();
4455 /* The GNU C library defines this for functions which it implements
4456 to always fail with ENOSYS. Some functions are actually named
4457 something starting with __ and the normal name is an alias. */
4458 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
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_func_pthread_create=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_func_pthread_create=no"
4478 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4482 echo "$ac_t""no" 1>&6
4486 if test $ol_link_threads = no ; then
4487 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4488 echo "configure:4489: checking for pthread_create with -mt" >&5
4489 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4498 char pthread_create();
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505 ol_cv_thread_flag=yes
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 ol_cv_thread_flag=no
4517 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4519 if test $ol_cv_thread_flag = yes ; then
4520 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4521 ol_link_threads=posix
4525 if test $ol_link_threads = no ; then
4526 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4527 echo "configure:4528: checking for pthread_create with -kthread" >&5
4528 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4533 LIBS="-kthread $LIBS"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 #include <pthread.h>
4540 #if HAVE_PTHREADS_D4
4541 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4543 pthread_create(NULL,NULL,NULL,NULL);
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 ol_cv_kthread_flag=yes
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 ol_cv_kthread_flag=no
4562 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4564 if test $ol_cv_kthread_flag = yes ; then
4565 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4566 ol_link_threads=posix
4570 if test $ol_link_threads = no ; then
4571 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4572 echo "configure:4573: checking for pthread_create with -pthread" >&5
4573 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4578 LIBS="-pthread $LIBS"
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 #include <pthread.h>
4585 #if HAVE_PTHREADS_D4
4586 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4588 pthread_create(NULL,NULL,NULL,NULL);
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 ol_cv_pthread_flag=yes
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 ol_cv_pthread_flag=no
4607 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4609 if test $ol_cv_pthread_flag = yes ; then
4610 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4611 ol_link_threads=posix
4615 if test $ol_link_threads = no ; then
4616 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4617 echo "configure:4618: checking for pthread_create with -pthreads" >&5
4618 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4623 LIBS="-pthreads $LIBS"
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 #include <pthread.h>
4630 #if HAVE_PTHREADS_D4
4631 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4633 pthread_create(NULL,NULL,NULL,NULL);
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640 ol_cv_pthreads_flag=yes
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 ol_cv_pthreads_flag=no
4652 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4654 if test $ol_cv_pthreads_flag = yes ; then
4655 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4656 ol_link_threads=posix
4660 if test $ol_link_threads = no ; then
4661 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4662 echo "configure:4663: checking for pthread_create with -thread" >&5
4663 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4668 LIBS="-thread $LIBS"
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 char pthread_create();
4677 if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4679 ol_cv_thread_flag=yes
4681 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4684 ol_cv_thread_flag=no
4691 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4693 if test $ol_cv_thread_flag = yes ; then
4694 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4695 ol_link_threads=posix
4699 if test $ol_link_threads = no ; then
4701 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4702 echo "configure:4703: checking for pthread_mutex_unlock in -lpthread" >&5
4703 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 ac_save_LIBS="$LIBS"
4708 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* Override any gcc2 internal prototype to avoid an error. */
4713 /* We use char because int might match the return type of a gcc2
4714 builtin and then its argument prototype would still apply. */
4715 char pthread_mutex_unlock();
4718 pthread_mutex_unlock()
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4723 eval "ac_cv_lib_$ac_lib_var=yes"
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4728 eval "ac_cv_lib_$ac_lib_var=no"
4731 LIBS="$ac_save_LIBS"
4734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4737 ol_link_threads=posix
4738 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4739 if test $ol_with_yielding_select = auto ; then
4740 ol_with_yielding_select=yes
4744 echo "$ac_t""no" 1>&6
4751 if test $ol_link_threads = no ; then
4753 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4754 echo "configure:4755: checking for pthread_mutex_lock in -lpthread" >&5
4755 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 ac_save_LIBS="$LIBS"
4760 LIBS="-lpthread -lmach -lexc $LIBS"
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4767 char pthread_mutex_lock();
4770 pthread_mutex_lock()
4773 if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4775 eval "ac_cv_lib_$ac_lib_var=yes"
4777 echo "configure: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4780 eval "ac_cv_lib_$ac_lib_var=no"
4783 LIBS="$ac_save_LIBS"
4786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4789 ol_link_threads=posix
4790 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4791 if test $ol_with_yielding_select = auto ; then
4792 ol_with_yielding_select=yes
4796 echo "$ac_t""no" 1>&6
4803 if test $ol_link_threads = no ; then
4805 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4806 echo "configure:4807: checking for pthread_mutex_trylock in -lpthread" >&5
4807 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 ac_save_LIBS="$LIBS"
4812 LIBS="-lpthread -lexc $LIBS"
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 /* Override any gcc2 internal prototype to avoid an error. */
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4819 char pthread_mutex_trylock();
4822 pthread_mutex_trylock()
4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4827 eval "ac_cv_lib_$ac_lib_var=yes"
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 eval "ac_cv_lib_$ac_lib_var=no"
4835 LIBS="$ac_save_LIBS"
4838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4841 ol_link_threads=posix
4842 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4843 if test $ol_with_yielding_select = auto ; then
4844 ol_with_yielding_select=yes
4848 echo "$ac_t""no" 1>&6
4855 if test $ol_link_threads = no ; then
4857 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4858 echo "configure:4859: checking for pthread_create in -lpthread" >&5
4859 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 ac_save_LIBS="$LIBS"
4864 LIBS="-lpthread $LIBS"
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4871 char pthread_create();
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4879 eval "ac_cv_lib_$ac_lib_var=yes"
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4884 eval "ac_cv_lib_$ac_lib_var=no"
4887 LIBS="$ac_save_LIBS"
4890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4891 echo "$ac_t""yes" 1>&6
4893 ol_link_threads=posix
4894 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4896 echo "$ac_t""no" 1>&6
4903 if test $ol_link_threads = no ; then
4905 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4906 echo "configure:4907: checking for pthread_create in -lc_r" >&5
4907 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 ac_save_LIBS="$LIBS"
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4919 char pthread_create();
4925 if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927 eval "ac_cv_lib_$ac_lib_var=yes"
4929 echo "configure: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4932 eval "ac_cv_lib_$ac_lib_var=no"
4935 LIBS="$ac_save_LIBS"
4938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4941 ol_link_threads=posix
4942 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4944 echo "$ac_t""no" 1>&6
4951 if test $ol_link_threads = no ; then
4953 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4954 echo "configure:4955: checking for pthread_create in -lpthreads" >&5
4955 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 ac_save_LIBS="$LIBS"
4960 LIBS="-lpthreads $LIBS"
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4964 /* Override any gcc2 internal prototype to avoid an error. */
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4967 char pthread_create();
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 eval "ac_cv_lib_$ac_lib_var=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 eval "ac_cv_lib_$ac_lib_var=no"
4983 LIBS="$ac_save_LIBS"
4986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4987 echo "$ac_t""yes" 1>&6
4989 ol_link_threads=posix
4990 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4992 echo "$ac_t""no" 1>&6
4999 if test $ol_link_threads = no ; then
5001 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
5002 echo "configure:5003: checking for pthread_join in -lpthreads" >&5
5003 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
5004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5007 ac_save_LIBS="$LIBS"
5008 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5012 /* Override any gcc2 internal prototype to avoid an error. */
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5015 char pthread_join();
5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5023 eval "ac_cv_lib_$ac_lib_var=yes"
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5028 eval "ac_cv_lib_$ac_lib_var=no"
5031 LIBS="$ac_save_LIBS"
5034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5035 echo "$ac_t""yes" 1>&6
5037 ol_link_threads=posix
5038 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
5041 echo "$ac_t""no" 1>&6
5048 if test $ol_link_threads = no ; then
5049 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
5050 echo "configure:5051: checking for pthread_create with -threads" >&5
5051 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5056 LIBS="-threads $LIBS"
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 char pthread_create();
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5069 ol_cv_thread_flag=yes
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 ol_cv_thread_flag=no
5081 echo "$ac_t""$ol_cv_thread_flag" 1>&6
5083 if test $ol_cv_thread_flag = yes ; then
5084 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
5085 ol_link_threads=posix
5089 if test $ol_link_threads = no ; then
5091 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
5092 echo "configure:5093: checking for pthread_mutex_unlock in -lpthreads" >&5
5093 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
5094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 ac_save_LIBS="$LIBS"
5098 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105 char pthread_mutex_unlock();
5108 pthread_mutex_unlock()
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5113 eval "ac_cv_lib_$ac_lib_var=yes"
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5118 eval "ac_cv_lib_$ac_lib_var=no"
5121 LIBS="$ac_save_LIBS"
5124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5127 ol_link_threads=posix
5128 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
5129 if test $ol_with_yielding_select = auto ; then
5130 ol_with_yielding_select=yes
5134 echo "$ac_t""no" 1>&6
5141 if test $ol_link_threads = no ; then
5143 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
5144 echo "configure:5145: checking for pthread_mutex_lock in -lpthreads" >&5
5145 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
5146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5149 ac_save_LIBS="$LIBS"
5150 LIBS="-lpthreads -lmach -lexc $LIBS"
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* Override any gcc2 internal prototype to avoid an error. */
5155 /* We use char because int might match the return type of a gcc2
5156 builtin and then its argument prototype would still apply. */
5157 char pthread_mutex_lock();
5160 pthread_mutex_lock()
5163 if { (eval echo configure:5164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5165 eval "ac_cv_lib_$ac_lib_var=yes"
5167 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5170 eval "ac_cv_lib_$ac_lib_var=no"
5173 LIBS="$ac_save_LIBS"
5176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5177 echo "$ac_t""yes" 1>&6
5179 ol_link_threads=posix
5180 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
5181 if test $ol_with_yielding_select = auto ; then
5182 ol_with_yielding_select=yes
5186 echo "$ac_t""no" 1>&6
5193 if test $ol_link_threads = no ; then
5195 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
5196 echo "configure:5197: checking for pthread_mutex_trylock in -lpthreads" >&5
5197 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
5198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5199 echo $ac_n "(cached) $ac_c" 1>&6
5201 ac_save_LIBS="$LIBS"
5202 LIBS="-lpthreads -lexc $LIBS"
5203 cat > conftest.$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5206 /* Override any gcc2 internal prototype to avoid an error. */
5207 /* We use char because int might match the return type of a gcc2
5208 builtin and then its argument prototype would still apply. */
5209 char pthread_mutex_trylock();
5212 pthread_mutex_trylock()
5215 if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5217 eval "ac_cv_lib_$ac_lib_var=yes"
5219 echo "configure: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5222 eval "ac_cv_lib_$ac_lib_var=no"
5225 LIBS="$ac_save_LIBS"
5228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5231 ol_link_threads=posix
5232 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
5233 if test $ol_with_yielding_select = auto ; then
5234 ol_with_yielding_select=yes
5238 echo "$ac_t""no" 1>&6
5245 if test $ol_link_threads != no ; then
5246 cat >> confdefs.h <<\EOF
5247 #define HAVE_PTHREADS 1
5251 save_CPPFLAGS="$CPPFLAGS"
5253 LIBS="$LTHREAD_LIBS $LIBS"
5255 for ac_func in sched_yield pthread_yield
5257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5258 echo "configure:5259: checking for $ac_func" >&5
5259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func(); below. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5275 /* The GNU C library defines this for functions which it implements
5276 to always fail with ENOSYS. Some functions are actually named
5277 something starting with __ and the normal name is an alias. */
5278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5286 if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 eval "ac_cv_func_$ac_func=yes"
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5293 eval "ac_cv_func_$ac_func=no"
5298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5301 cat >> confdefs.h <<EOF
5302 #define $ac_tr_func 1
5306 echo "$ac_t""no" 1>&6
5311 if test $ac_cv_func_sched_yield = no -a \
5312 $ac_cv_func_pthread_yield = no ; then
5313 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5314 echo "configure:5315: checking for sched_yield in -lrt" >&5
5315 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 ac_save_LIBS="$LIBS"
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5333 if { (eval echo configure:5334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5335 eval "ac_cv_lib_$ac_lib_var=yes"
5337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5340 eval "ac_cv_lib_$ac_lib_var=no"
5343 LIBS="$ac_save_LIBS"
5346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5347 echo "$ac_t""yes" 1>&6
5348 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5349 cat >> confdefs.h <<\EOF
5350 #define HAVE_SCHED_YIELD 1
5353 ac_cv_func_sched_yield=yes
5355 echo "$ac_t""no" 1>&6
5356 ac_cv_func_sched_yield=no
5360 if test $ac_cv_func_sched_yield = no -a \
5361 $ac_cv_func_pthread_yield = no ; then
5362 for ac_func in thr_yield
5364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5365 echo "configure:5366: checking for $ac_func" >&5
5366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372 /* System header to define __stub macros and hopefully few prototypes,
5373 which can conflict with char $ac_func(); below. */
5375 /* Override any gcc2 internal prototype to avoid an error. */
5376 /* We use char because int might match the return type of a gcc2
5377 builtin and then its argument prototype would still apply. */
5382 /* The GNU C library defines this for functions which it implements
5383 to always fail with ENOSYS. Some functions are actually named
5384 something starting with __ and the normal name is an alias. */
5385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5393 if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5395 eval "ac_cv_func_$ac_func=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5400 eval "ac_cv_func_$ac_func=no"
5405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5406 echo "$ac_t""yes" 1>&6
5407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5408 cat >> confdefs.h <<EOF
5409 #define $ac_tr_func 1
5413 echo "$ac_t""no" 1>&6
5418 if test $ac_cv_func_sched_yield = no -a \
5419 $ac_cv_func_pthread_yield = no -a \
5420 "$ac_cv_func_thr_yield" = no ; then
5421 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5424 for ac_func in pthread_kill
5426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5427 echo "configure:5428: checking for $ac_func" >&5
5428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 /* System header to define __stub macros and hopefully few prototypes,
5435 which can conflict with char $ac_func(); below. */
5437 /* Override any gcc2 internal prototype to avoid an error. */
5438 /* We use char because int might match the return type of a gcc2
5439 builtin and then its argument prototype would still apply. */
5444 /* The GNU C library defines this for functions which it implements
5445 to always fail with ENOSYS. Some functions are actually named
5446 something starting with __ and the normal name is an alias. */
5447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5455 if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5457 eval "ac_cv_func_$ac_func=yes"
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 eval "ac_cv_func_$ac_func=no"
5467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5468 echo "$ac_t""yes" 1>&6
5469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5470 cat >> confdefs.h <<EOF
5471 #define $ac_tr_func 1
5475 echo "$ac_t""no" 1>&6
5480 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5481 echo "configure:5482: checking for pthread_detach with <pthread.h>" >&5
5482 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 #include <pthread.h>
5491 pthread_detach(NULL);
5494 if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496 ol_cv_func_pthread_detach=yes
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5501 ol_cv_func_pthread_detach=no
5507 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5509 if test $ol_cv_func_pthread_detach = no ; then
5510 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5513 cat >> confdefs.h <<\EOF
5514 #define HAVE_PTHREAD_DETACH 1
5519 pthread_setconcurrency \
5520 pthread_getconcurrency \
5521 thr_setconcurrency \
5522 thr_getconcurrency \
5525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5526 echo "configure:5527: checking for $ac_func" >&5
5527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 /* System header to define __stub macros and hopefully few prototypes,
5534 which can conflict with char $ac_func(); below. */
5536 /* Override any gcc2 internal prototype to avoid an error. */
5537 /* We use char because int might match the return type of a gcc2
5538 builtin and then its argument prototype would still apply. */
5543 /* The GNU C library defines this for functions which it implements
5544 to always fail with ENOSYS. Some functions are actually named
5545 something starting with __ and the normal name is an alias. */
5546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5556 eval "ac_cv_func_$ac_func=yes"
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 eval "ac_cv_func_$ac_func=no"
5566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5567 echo "$ac_t""yes" 1>&6
5568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5569 cat >> confdefs.h <<EOF
5570 #define $ac_tr_func 1
5574 echo "$ac_t""no" 1>&6
5579 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5580 echo "configure:5581: checking if pthread_create() works" >&5
5581 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5582 echo $ac_n "(cached) $ac_c" 1>&6
5585 if test "$cross_compiling" = yes; then
5586 ol_cv_pthread_create_works=yes
5588 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5592 #include <pthread.h>
5594 #define NULL (void*)0
5597 static void *task(p)
5600 return (void *) (p == NULL);
5603 int main(argc, argv)
5608 #if HAVE_PTHREADS_D4
5609 exit(pthread_create(&t, pthread_attr_default, task, NULL));
5611 exit(pthread_create(&t, NULL, task, NULL));
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5618 ol_cv_pthread_create_works=yes
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5623 ol_cv_pthread_create_works=no
5630 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5632 if test $ol_cv_pthread_create_works = no ; then
5633 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
5636 if test $ol_with_yielding_select = auto ; then
5637 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5638 echo "configure:5639: checking if select yields when using pthreads" >&5
5639 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5643 if test "$cross_compiling" = yes; then
5645 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5651 #include <sys/types.h>
5652 #include <sys/time.h>
5654 #include <pthread.h>
5656 #define NULL (void*) 0
5659 static int fildes[2];
5661 static void *task(p)
5673 FD_SET(fildes[0], &rfds);
5675 /* we're not interested in any fds */
5676 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5683 exit(0); /* if we exit here, the select blocked the whole process */
5686 int main(argc, argv)
5692 /* create a pipe to select */
5693 if(pipe(&fildes[0])) {
5698 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5699 (void) pthread_setconcurrency(2);
5701 #ifdef HAVE_THR_SETCONCURRENCY
5702 /* Set Solaris LWP concurrency to 2 */
5703 thr_setconcurrency(2);
5707 #if HAVE_PTHREADS_D4
5708 pthread_create(&t, pthread_attr_default, task, NULL);
5710 pthread_create(&t, NULL, task, NULL);
5713 #if HAVE_SCHED_YIELD
5714 sched_yield(); /* make sure task runs first */
5716 #ifdef HAVE_PTHREAD_YIELD
5717 pthread_yield(); /* make sure task runs first */
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5726 ol_cv_pthread_select_yields=no
5728 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5731 ol_cv_pthread_select_yields=yes
5738 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5740 if test $ol_cv_pthread_select_yields = yes ; then
5741 ol_with_yielding_select=yes
5745 CPPFLAGS="$save_CPPFLAGS"
5748 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5752 if test $ol_with_threads = posix ; then
5753 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5757 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5758 -o $ol_with_threads = mach ; then
5760 for ac_hdr in mach/cthreads.h
5762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_hdr" >&5
5765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5774 { (eval echo configure:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5776 if test -z "$ac_err"; then
5778 eval "ac_cv_header_$ac_safe=yes"
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5784 eval "ac_cv_header_$ac_safe=no"
5788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5789 echo "$ac_t""yes" 1>&6
5790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5791 cat >> confdefs.h <<EOF
5792 #define $ac_tr_hdr 1
5796 echo "$ac_t""no" 1>&6
5800 if test $ac_cv_header_mach_cthreads_h = yes ; then
5801 ol_with_threads=found
5803 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5804 echo "configure:5805: checking for cthread_fork" >&5
5805 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5806 echo $ac_n "(cached) $ac_c" 1>&6
5808 cat > conftest.$ac_ext <<EOF
5809 #line 5810 "configure"
5810 #include "confdefs.h"
5811 /* System header to define __stub macros and hopefully few prototypes,
5812 which can conflict with char cthread_fork(); below. */
5814 /* Override any gcc2 internal prototype to avoid an error. */
5815 /* We use char because int might match the return type of a gcc2
5816 builtin and then its argument prototype would still apply. */
5817 char cthread_fork();
5821 /* The GNU C library defines this for functions which it implements
5822 to always fail with ENOSYS. Some functions are actually named
5823 something starting with __ and the normal name is an alias. */
5824 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5832 if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5834 eval "ac_cv_func_cthread_fork=yes"
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 eval "ac_cv_func_cthread_fork=no"
5844 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5845 echo "$ac_t""yes" 1>&6
5848 echo "$ac_t""no" 1>&6
5852 if test $ol_link_threads = no ; then
5853 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5854 echo "configure:5855: checking for cthread_fork with -all_load" >&5
5855 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5856 echo $ac_n "(cached) $ac_c" 1>&6
5860 LIBS="-all_load $LIBS"
5861 cat > conftest.$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5864 #include <mach/cthreads.h>
5867 cthread_fork((void *)0, (void *)0);
5871 if { (eval echo configure:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5873 ol_cv_cthread_all_load=yes
5875 echo "configure: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5878 ol_cv_cthread_all_load=no
5885 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5887 if test $ol_cv_cthread_all_load = yes ; then
5888 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5889 ol_link_threads=mach
5893 if test $ol_link_threads != no ; then
5894 : check for cthread specific functionality here
5895 cat >> confdefs.h <<\EOF
5896 #define HAVE_MACH_CTHREADS 1
5900 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5904 if test $ol_with_threads = mach ; then
5905 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5909 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5910 -o $ol_with_threads = lwp ; then
5912 for ac_hdr in thread.h synch.h
5914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5916 echo "configure:5917: checking for $ac_hdr" >&5
5917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5926 { (eval echo configure:5927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5928 if test -z "$ac_err"; then
5930 eval "ac_cv_header_$ac_safe=yes"
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5936 eval "ac_cv_header_$ac_safe=no"
5940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5941 echo "$ac_t""yes" 1>&6
5942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5943 cat >> confdefs.h <<EOF
5944 #define $ac_tr_hdr 1
5948 echo "$ac_t""no" 1>&6
5952 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5953 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5954 echo "configure:5955: checking for thr_create in -lthread" >&5
5955 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 ac_save_LIBS="$LIBS"
5960 LIBS="-lthread $LIBS"
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 /* Override any gcc2 internal prototype to avoid an error. */
5965 /* We use char because int might match the return type of a gcc2
5966 builtin and then its argument prototype would still apply. */
5973 if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5975 eval "ac_cv_lib_$ac_lib_var=yes"
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5980 eval "ac_cv_lib_$ac_lib_var=no"
5983 LIBS="$ac_save_LIBS"
5986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5987 echo "$ac_t""yes" 1>&6
5990 echo "$ac_t""no" 1>&6
5995 if test $have_thr = yes ; then
5996 cat >> confdefs.h <<\EOF
6000 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6003 if test $ol_with_yielding_select = auto ; then
6004 ol_with_yielding_select=yes
6008 thr_setconcurrency \
6009 thr_getconcurrency \
6012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6013 echo "configure:6014: checking for $ac_func" >&5
6014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6015 echo $ac_n "(cached) $ac_c" 1>&6
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6020 /* System header to define __stub macros and hopefully few prototypes,
6021 which can conflict with char $ac_func(); below. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6030 /* The GNU C library defines this for functions which it implements
6031 to always fail with ENOSYS. Some functions are actually named
6032 something starting with __ and the normal name is an alias. */
6033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6041 if { (eval echo configure:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6043 eval "ac_cv_func_$ac_func=yes"
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 eval "ac_cv_func_$ac_func=no"
6053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6054 echo "$ac_t""yes" 1>&6
6055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6056 cat >> confdefs.h <<EOF
6057 #define $ac_tr_func 1
6061 echo "$ac_t""no" 1>&6
6068 for ac_hdr in lwp/lwp.h
6070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6072 echo "configure:6073: checking for $ac_hdr" >&5
6073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6082 { (eval echo configure:6083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6084 if test -z "$ac_err"; then
6086 eval "ac_cv_header_$ac_safe=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_header_$ac_safe=no"
6096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6097 echo "$ac_t""yes" 1>&6
6098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6099 cat >> confdefs.h <<EOF
6100 #define $ac_tr_hdr 1
6104 echo "$ac_t""no" 1>&6
6108 if test $ac_cv_header_lwp_lwp_h = yes ; then
6109 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6110 echo "configure:6111: checking for lwp_create in -llwp" >&5
6111 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6
6115 ac_save_LIBS="$LIBS"
6117 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6131 eval "ac_cv_lib_$ac_lib_var=yes"
6133 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6136 eval "ac_cv_lib_$ac_lib_var=no"
6139 LIBS="$ac_save_LIBS"
6142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6143 echo "$ac_t""yes" 1>&6
6146 echo "$ac_t""no" 1>&6
6151 if test $have_lwp = yes ; then
6152 cat >> confdefs.h <<\EOF
6156 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6159 if test $ol_with_yielding_select = auto ; then
6160 ol_with_yielding_select=no
6166 if test $ol_with_yielding_select = yes ; then
6167 cat >> confdefs.h <<\EOF
6168 #define HAVE_YIELDING_SELECT 1
6173 if test $ol_with_threads = manual ; then
6176 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6178 for ac_hdr in pthread.h sched.h
6180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6182 echo "configure:6183: checking for $ac_hdr" >&5
6183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6184 echo $ac_n "(cached) $ac_c" 1>&6
6186 cat > conftest.$ac_ext <<EOF
6187 #line 6188 "configure"
6188 #include "confdefs.h"
6191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6192 { (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6194 if test -z "$ac_err"; then
6196 eval "ac_cv_header_$ac_safe=yes"
6199 echo "configure: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6202 eval "ac_cv_header_$ac_safe=no"
6206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6207 echo "$ac_t""yes" 1>&6
6208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6209 cat >> confdefs.h <<EOF
6210 #define $ac_tr_hdr 1
6214 echo "$ac_t""no" 1>&6
6218 for ac_func in sched_yield pthread_yield
6220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6221 echo "configure:6222: checking for $ac_func" >&5
6222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6223 echo $ac_n "(cached) $ac_c" 1>&6
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 /* System header to define __stub macros and hopefully few prototypes,
6229 which can conflict with char $ac_func(); below. */
6231 /* Override any gcc2 internal prototype to avoid an error. */
6232 /* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */
6238 /* The GNU C library defines this for functions which it implements
6239 to always fail with ENOSYS. Some functions are actually named
6240 something starting with __ and the normal name is an alias. */
6241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249 if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6251 eval "ac_cv_func_$ac_func=yes"
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6256 eval "ac_cv_func_$ac_func=no"
6261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6262 echo "$ac_t""yes" 1>&6
6263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6264 cat >> confdefs.h <<EOF
6265 #define $ac_tr_func 1
6269 echo "$ac_t""no" 1>&6
6274 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
6275 echo "configure:6276: checking for LinuxThreads" >&5
6276 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6277 echo $ac_n "(cached) $ac_c" 1>&6
6280 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
6281 if test "$res" -gt 0 ; then
6282 ol_cv_linux_threads=yes
6284 ol_cv_linux_threads=no
6289 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6292 for ac_hdr in mach/cthreads.h
6294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6296 echo "configure:6297: checking for $ac_hdr" >&5
6297 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6300 cat > conftest.$ac_ext <<EOF
6301 #line 6302 "configure"
6302 #include "confdefs.h"
6305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6306 { (eval echo configure:6307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6308 if test -z "$ac_err"; then
6310 eval "ac_cv_header_$ac_safe=yes"
6313 echo "configure: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6316 eval "ac_cv_header_$ac_safe=no"
6320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6321 echo "$ac_t""yes" 1>&6
6322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6323 cat >> confdefs.h <<EOF
6324 #define $ac_tr_hdr 1
6328 echo "$ac_t""no" 1>&6
6332 for ac_hdr in lwp/lwp.h
6334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_hdr" >&5
6337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6346 { (eval echo configure:6347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6348 if test -z "$ac_err"; then
6350 eval "ac_cv_header_$ac_safe=yes"
6353 echo "configure: failed program was:" >&5
6354 cat conftest.$ac_ext >&5
6356 eval "ac_cv_header_$ac_safe=no"
6360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6361 echo "$ac_t""yes" 1>&6
6362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6363 cat >> confdefs.h <<EOF
6364 #define $ac_tr_hdr 1
6368 echo "$ac_t""no" 1>&6
6372 for ac_hdr in thread.h synch.h
6374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6376 echo "configure:6377: checking for $ac_hdr" >&5
6377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6378 echo $ac_n "(cached) $ac_c" 1>&6
6380 cat > conftest.$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6386 { (eval echo configure:6387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6388 if test -z "$ac_err"; then
6390 eval "ac_cv_header_$ac_safe=yes"
6393 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6396 eval "ac_cv_header_$ac_safe=no"
6400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6401 echo "$ac_t""yes" 1>&6
6402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6403 cat >> confdefs.h <<EOF
6404 #define $ac_tr_hdr 1
6408 echo "$ac_t""no" 1>&6
6414 if test $ol_link_threads != no ; then
6415 cat >> confdefs.h <<\EOF
6419 cat >> confdefs.h <<\EOF
6420 #define _REENTRANT 1
6423 cat >> confdefs.h <<\EOF
6424 #define THREAD_SAFE 1
6427 cat >> confdefs.h <<\EOF
6428 #define _THREAD_SAFE 1
6431 cat >> confdefs.h <<\EOF
6432 #define THREADSAFE 1
6435 cat >> confdefs.h <<\EOF
6436 #define _THREADSAFE 1
6440 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6441 echo "configure:6442: checking for thread specific errno" >&5
6442 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6456 ol_cv_errno_thread_specific=yes
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6461 ol_cv_errno_thread_specific=no
6467 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6469 if test $ol_cv_errno_thread_specific != yes ; then
6470 LIBS="$LTHREAD_LIBS $LIBS"
6476 if test $ol_link_threads = no ; then
6477 if test $ol_with_threads = yes ; then
6478 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6481 if test $ol_with_threads = auto ; then
6482 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6486 cat >> confdefs.h <<\EOF
6487 #define NO_THREADS 1
6493 if test $ol_link_threads != no ; then
6494 cat >> confdefs.h <<\EOF
6495 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
6502 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6503 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6504 echo "configure:6505: checking for DB2 library" >&5
6505 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6509 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6510 echo "configure:6511: checking for db_open in -ldb" >&5
6511 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6515 ac_save_LIBS="$LIBS"
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6520 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6529 if { (eval echo configure:6530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6531 eval "ac_cv_lib_$ac_lib_var=yes"
6533 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6536 eval "ac_cv_lib_$ac_lib_var=no"
6539 LIBS="$ac_save_LIBS"
6542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6543 echo "$ac_t""yes" 1>&6
6546 echo "$ac_t""no" 1>&6
6554 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6560 echo "configure:6561: checking for $ac_hdr" >&5
6561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6570 { (eval echo configure:6571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6572 if test -z "$ac_err"; then
6574 eval "ac_cv_header_$ac_safe=yes"
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 eval "ac_cv_header_$ac_safe=no"
6584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6585 echo "$ac_t""yes" 1>&6
6586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6587 cat >> confdefs.h <<EOF
6588 #define $ac_tr_hdr 1
6592 echo "$ac_t""no" 1>&6
6596 if test $ac_cv_header_db_h = yes ; then
6597 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6598 echo "configure:6599: checking if db.h is DB2" >&5
6599 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6608 /* this check could be improved */
6609 # ifdef DB_VERSION_MAJOR
6610 # if DB_VERSION_MAJOR == 2
6616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6617 egrep "__db_version_2" >/dev/null 2>&1; then
6619 ol_cv_header_db2=yes
6628 echo "$ac_t""$ol_cv_header_db2" 1>&6
6635 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6636 echo "configure:6637: checking for Berkeley DB2" >&5
6637 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6641 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6642 ol_cv_berkeley_db2=no
6644 ol_cv_berkeley_db2=yes
6649 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6650 if test $ol_cv_berkeley_db2 = yes ; then
6651 cat >> confdefs.h <<\EOF
6652 #define HAVE_BERKELEY_DB2 1
6658 if test $ol_cv_berkeley_db2 = yes ; then
6660 ol_with_ldbm_api=db2
6662 if test $ol_with_ldbm_type = hash ; then
6663 cat >> confdefs.h <<\EOF
6664 #define LDBM_USE_DBHASH 1
6668 cat >> confdefs.h <<\EOF
6669 #define LDBM_USE_DBBTREE 1
6674 if test $ol_cv_lib_db2 != yes ; then
6675 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6681 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6685 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6686 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6687 echo "configure:6688: checking for Berkeley DB library" >&5
6688 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6689 echo $ac_n "(cached) $ac_c" 1>&6
6692 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6693 echo "configure:6694: checking for dbopen" >&5
6694 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6697 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6700 /* System header to define __stub macros and hopefully few prototypes,
6701 which can conflict with char dbopen(); below. */
6703 /* Override any gcc2 internal prototype to avoid an error. */
6704 /* We use char because int might match the return type of a gcc2
6705 builtin and then its argument prototype would still apply. */
6710 /* The GNU C library defines this for functions which it implements
6711 to always fail with ENOSYS. Some functions are actually named
6712 something starting with __ and the normal name is an alias. */
6713 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723 eval "ac_cv_func_dbopen=yes"
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 eval "ac_cv_func_dbopen=no"
6733 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6734 echo "$ac_t""yes" 1>&6
6737 echo "$ac_t""no" 1>&6
6739 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6740 echo "configure:6741: checking for dbopen in -ldb" >&5
6741 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6
6745 ac_save_LIBS="$LIBS"
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6759 if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 eval "ac_cv_lib_$ac_lib_var=yes"
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 eval "ac_cv_lib_$ac_lib_var=no"
6769 LIBS="$ac_save_LIBS"
6772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6773 echo "$ac_t""yes" 1>&6
6776 echo "$ac_t""no" 1>&6
6787 echo "$ac_t""$ol_cv_lib_db" 1>&6
6790 for ac_hdr in db_185.h
6792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6794 echo "configure:6795: checking for $ac_hdr" >&5
6795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6804 { (eval echo configure:6805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6806 if test -z "$ac_err"; then
6808 eval "ac_cv_header_$ac_safe=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 eval "ac_cv_header_$ac_safe=no"
6818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6819 echo "$ac_t""yes" 1>&6
6820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6821 cat >> confdefs.h <<EOF
6822 #define $ac_tr_hdr 1
6826 echo "$ac_t""no" 1>&6
6830 if test "$ol_cv_header_db2" = yes ; then
6832 ol_cv_header_db=$ac_cv_header_db_185_h
6834 ol_cv_header_db=$ac_cv_header_db_h
6839 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6840 echo "configure:6841: checking for Berkeley DB" >&5
6841 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6845 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6846 ol_cv_berkeley_db=no
6848 ol_cv_berkeley_db=yes
6853 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6854 if test $ol_cv_berkeley_db = yes ; then
6855 cat >> confdefs.h <<\EOF
6856 #define HAVE_BERKELEY_DB 1
6862 if test $ol_cv_berkeley_db = yes ; then
6866 if test $ol_with_ldbm_type = hash ; then
6867 cat >> confdefs.h <<\EOF
6868 #define LDBM_USE_DBHASH 1
6872 cat >> confdefs.h <<\EOF
6873 #define LDBM_USE_DBBTREE 1
6878 if test $ol_cv_lib_db != yes ; then
6879 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6884 if test $ol_with_ldbm_api = manual ; then
6887 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6889 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6893 echo "configure:6894: checking for $ac_hdr" >&5
6894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6895 echo $ac_n "(cached) $ac_c" 1>&6
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6903 { (eval echo configure:6904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6905 if test -z "$ac_err"; then
6907 eval "ac_cv_header_$ac_safe=yes"
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 eval "ac_cv_header_$ac_safe=no"
6917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6918 echo "$ac_t""yes" 1>&6
6919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6920 cat >> confdefs.h <<EOF
6921 #define $ac_tr_hdr 1
6925 echo "$ac_t""no" 1>&6
6931 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6932 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6933 ol_with_ldbm_api=none
6936 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6937 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6938 echo "configure:6939: checking for GDBM library" >&5
6939 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
6943 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6944 echo "configure:6945: checking for gdbm_open" >&5
6945 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 /* System header to define __stub macros and hopefully few prototypes,
6952 which can conflict with char gdbm_open(); below. */
6954 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6961 /* The GNU C library defines this for functions which it implements
6962 to always fail with ENOSYS. Some functions are actually named
6963 something starting with __ and the normal name is an alias. */
6964 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6972 if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6974 eval "ac_cv_func_gdbm_open=yes"
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 eval "ac_cv_func_gdbm_open=no"
6984 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6985 echo "$ac_t""yes" 1>&6
6988 echo "$ac_t""no" 1>&6
6990 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6991 echo "configure:6992: checking for gdbm_open in -lgdbm" >&5
6992 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6994 echo $ac_n "(cached) $ac_c" 1>&6
6996 ac_save_LIBS="$LIBS"
6998 cat > conftest.$ac_ext <<EOF
6999 #line 7000 "configure"
7000 #include "confdefs.h"
7001 /* Override any gcc2 internal prototype to avoid an error. */
7002 /* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7012 eval "ac_cv_lib_$ac_lib_var=yes"
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 eval "ac_cv_lib_$ac_lib_var=no"
7020 LIBS="$ac_save_LIBS"
7023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7024 echo "$ac_t""yes" 1>&6
7025 ol_cv_lib_gdbm=-lgdbm
7027 echo "$ac_t""no" 1>&6
7038 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7041 for ac_hdr in gdbm.h
7043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7045 echo "configure:7046: checking for $ac_hdr" >&5
7046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7055 { (eval echo configure:7056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7057 if test -z "$ac_err"; then
7059 eval "ac_cv_header_$ac_safe=yes"
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7065 eval "ac_cv_header_$ac_safe=no"
7069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7070 echo "$ac_t""yes" 1>&6
7071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7072 cat >> confdefs.h <<EOF
7073 #define $ac_tr_hdr 1
7077 echo "$ac_t""no" 1>&6
7081 echo $ac_n "checking for db""... $ac_c" 1>&6
7082 echo "configure:7083: checking for db" >&5
7083 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
7084 echo $ac_n "(cached) $ac_c" 1>&6
7087 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
7095 echo "$ac_t""$ol_cv_gdbm" 1>&6
7096 if test $ol_cv_gdbm = yes ; then
7097 cat >> confdefs.h <<\EOF
7104 if test $ol_cv_gdbm = yes ; then
7106 ol_with_ldbm_api=gdbm
7108 if test $ol_cv_lib_gdbm != yes ; then
7109 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
7114 if test $ol_with_ldbm_api = auto ; then
7115 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
7116 elif test $ol_with_ldbm_api = ndbm ; then
7117 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
7118 echo "configure:7119: checking for NDBM library" >&5
7119 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7123 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
7124 echo "configure:7125: checking for dbm_open" >&5
7125 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131 /* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char dbm_open(); below. */
7134 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7141 /* The GNU C library defines this for functions which it implements
7142 to always fail with ENOSYS. Some functions are actually named
7143 something starting with __ and the normal name is an alias. */
7144 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7154 eval "ac_cv_func_dbm_open=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 eval "ac_cv_func_dbm_open=no"
7164 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
7165 echo "$ac_t""yes" 1>&6
7168 echo "$ac_t""no" 1>&6
7170 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
7171 echo "configure:7172: checking for dbm_open in -lndbm" >&5
7172 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
7173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 ac_save_LIBS="$LIBS"
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* Override any gcc2 internal prototype to avoid an error. */
7182 /* We use char because int might match the return type of a gcc2
7183 builtin and then its argument prototype would still apply. */
7190 if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7192 eval "ac_cv_lib_$ac_lib_var=yes"
7194 echo "configure: failed program was:" >&5
7195 cat conftest.$ac_ext >&5
7197 eval "ac_cv_lib_$ac_lib_var=no"
7200 LIBS="$ac_save_LIBS"
7203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7204 echo "$ac_t""yes" 1>&6
7205 ol_cv_lib_ndbm=-lndbm
7207 echo "$ac_t""no" 1>&6
7209 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
7210 echo "configure:7211: checking for dbm_open in -ldbm" >&5
7211 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
7212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 ac_save_LIBS="$LIBS"
7217 cat > conftest.$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7231 eval "ac_cv_lib_$ac_lib_var=yes"
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7236 eval "ac_cv_lib_$ac_lib_var=no"
7239 LIBS="$ac_save_LIBS"
7242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7244 ol_cv_lib_ndbm=-ldbm
7246 echo "$ac_t""no" 1>&6
7259 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
7262 for ac_hdr in ndbm.h
7264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7266 echo "configure:7267: checking for $ac_hdr" >&5
7267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7268 echo $ac_n "(cached) $ac_c" 1>&6
7270 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7276 { (eval echo configure:7277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7278 if test -z "$ac_err"; then
7280 eval "ac_cv_header_$ac_safe=yes"
7283 echo "configure: failed program was:" >&5
7284 cat conftest.$ac_ext >&5
7286 eval "ac_cv_header_$ac_safe=no"
7290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7291 echo "$ac_t""yes" 1>&6
7292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7293 cat >> confdefs.h <<EOF
7294 #define $ac_tr_hdr 1
7298 echo "$ac_t""no" 1>&6
7302 echo $ac_n "checking for db""... $ac_c" 1>&6
7303 echo "configure:7304: checking for db" >&5
7304 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7308 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
7316 echo "$ac_t""$ol_cv_ndbm" 1>&6
7317 if test $ol_cv_ndbm = yes ; then
7318 cat >> confdefs.h <<\EOF
7325 if test $ol_cv_ndbm = yes ; then
7327 ol_with_ldbm_api=ndbm
7329 if test $ol_cv_lib_ndbm != yes ; then
7330 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7335 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7336 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7337 if test $ol_enable_ldbm = yes ; then
7338 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7341 echo "configure: warning: disabling LDBM" 1>&2
7345 if test $ol_enable_wrappers != no ; then
7346 for ac_hdr in tcpd.h
7348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7350 echo "configure:7351: checking for $ac_hdr" >&5
7351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7352 echo $ac_n "(cached) $ac_c" 1>&6
7354 cat > conftest.$ac_ext <<EOF
7355 #line 7356 "configure"
7356 #include "confdefs.h"
7359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7360 { (eval echo configure:7361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7362 if test -z "$ac_err"; then
7364 eval "ac_cv_header_$ac_safe=yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7370 eval "ac_cv_header_$ac_safe=no"
7374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7377 cat >> confdefs.h <<EOF
7378 #define $ac_tr_hdr 1
7382 echo "$ac_t""no" 1>&6
7387 if test $ac_cv_header_tcpd_h != yes ; then
7390 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7391 echo "configure:7392: checking for main in -lwrap" >&5
7392 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7396 ac_save_LIBS="$LIBS"
7398 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7408 eval "ac_cv_lib_$ac_lib_var=yes"
7410 echo "configure: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7413 eval "ac_cv_lib_$ac_lib_var=no"
7416 LIBS="$ac_save_LIBS"
7419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7420 echo "$ac_t""yes" 1>&6
7423 echo "$ac_t""no" 1>&6
7429 if test $have_wrappers = yes ; then
7430 cat >> confdefs.h <<\EOF
7434 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7436 echo "configure: warning: could not find -lwrap" 1>&2
7437 if test $ol_enable_wrappers = yes ; then
7438 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7441 echo "configure: warning: disabling wrappers support" 1>&2
7442 ol_enable_wrappers=no
7446 if test $ol_enable_syslog != no ; then
7447 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7448 echo "configure:7449: checking for openlog" >&5
7449 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 /* System header to define __stub macros and hopefully few prototypes,
7456 which can conflict with char openlog(); below. */
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7465 /* The GNU C library defines this for functions which it implements
7466 to always fail with ENOSYS. Some functions are actually named
7467 something starting with __ and the normal name is an alias. */
7468 #if defined (__stub_openlog) || defined (__stub___openlog)
7476 if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7478 eval "ac_cv_func_openlog=yes"
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7483 eval "ac_cv_func_openlog=no"
7488 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7492 echo "$ac_t""no" 1>&6
7495 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7496 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7498 ol_enable_syslog=$ac_cv_func_openlog
7501 if test $ol_enable_dmalloc != no ; then
7502 for ac_hdr in dmalloc.h
7504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7506 echo "configure:7507: checking for $ac_hdr" >&5
7507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7510 cat > conftest.$ac_ext <<EOF
7511 #line 7512 "configure"
7512 #include "confdefs.h"
7515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7516 { (eval echo configure:7517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7518 if test -z "$ac_err"; then
7520 eval "ac_cv_header_$ac_safe=yes"
7523 echo "configure: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7526 eval "ac_cv_header_$ac_safe=no"
7530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7531 echo "$ac_t""yes" 1>&6
7532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7533 cat >> confdefs.h <<EOF
7534 #define $ac_tr_hdr 1
7538 echo "$ac_t""no" 1>&6
7542 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7543 echo "configure:7544: checking for dmalloc_shutdown in -ldmalloc" >&5
7544 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7548 ac_save_LIBS="$LIBS"
7549 LIBS="-ldmalloc $LIBS"
7550 cat > conftest.$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7553 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7556 char dmalloc_shutdown();
7562 if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7564 eval "ac_cv_lib_$ac_lib_var=yes"
7566 echo "configure: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7569 eval "ac_cv_lib_$ac_lib_var=no"
7572 LIBS="$ac_save_LIBS"
7575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7576 echo "$ac_t""yes" 1>&6
7577 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7578 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7579 cat >> confdefs.h <<EOF
7580 #define $ac_tr_lib 1
7583 LIBS="-ldmalloc $LIBS"
7586 echo "$ac_t""no" 1>&6
7591 if test $ol_enable_tcl != no ; then
7594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7596 echo "configure:7597: checking for $ac_hdr" >&5
7597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7606 { (eval echo configure:7607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7608 if test -z "$ac_err"; then
7610 eval "ac_cv_header_$ac_safe=yes"
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7616 eval "ac_cv_header_$ac_safe=no"
7620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7621 echo "$ac_t""yes" 1>&6
7622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7623 cat >> confdefs.h <<EOF
7624 #define $ac_tr_hdr 1
7628 echo "$ac_t""no" 1>&6
7633 if test $ac_cv_header_tcl_h != yes ; then
7636 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7637 echo "configure:7638: checking for main in -ltcl" >&5
7638 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7642 ac_save_LIBS="$LIBS"
7644 cat > conftest.$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7654 eval "ac_cv_lib_$ac_lib_var=yes"
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7659 eval "ac_cv_lib_$ac_lib_var=no"
7662 LIBS="$ac_save_LIBS"
7665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7666 echo "$ac_t""yes" 1>&6
7667 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7669 echo "$ac_t""no" 1>&6
7674 if test $have_tcl != yes; then
7675 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7676 echo "configure:7677: checking for main in -ltcl7.6" >&5
7677 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7681 ac_save_LIBS="$LIBS"
7682 LIBS="-ltcl7.6 $LIBS"
7683 cat > conftest.$ac_ext <<EOF
7684 #line 7685 "configure"
7685 #include "confdefs.h"
7691 if { (eval echo configure:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7693 eval "ac_cv_lib_$ac_lib_var=yes"
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7698 eval "ac_cv_lib_$ac_lib_var=no"
7701 LIBS="$ac_save_LIBS"
7704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7705 echo "$ac_t""yes" 1>&6
7706 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7708 echo "$ac_t""no" 1>&6
7714 if test $have_tcl != yes; then
7715 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7716 echo "configure:7717: checking for main in -ltcl8.0" >&5
7717 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7721 ac_save_LIBS="$LIBS"
7722 LIBS="-ltcl8.0 $LIBS"
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7733 eval "ac_cv_lib_$ac_lib_var=yes"
7735 echo "configure: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7738 eval "ac_cv_lib_$ac_lib_var=no"
7741 LIBS="$ac_save_LIBS"
7744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7745 echo "$ac_t""yes" 1>&6
7746 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7748 echo "$ac_t""no" 1>&6
7755 if test $have_tcl != yes ; then
7756 echo "configure: warning: could not find -ltcl" 1>&2
7757 if test $ol_enable_tcl = yes ; then
7758 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7765 # ud needs termcap (should insert check here)
7767 for ac_hdr in termcap.h ncurses.h
7769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7771 echo "configure:7772: checking for $ac_hdr" >&5
7772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7773 echo $ac_n "(cached) $ac_c" 1>&6
7775 cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7781 { (eval echo configure:7782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7783 if test -z "$ac_err"; then
7785 eval "ac_cv_header_$ac_safe=yes"
7788 echo "configure: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7791 eval "ac_cv_header_$ac_safe=no"
7795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7796 echo "$ac_t""yes" 1>&6
7797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7798 cat >> confdefs.h <<EOF
7799 #define $ac_tr_hdr 1
7803 echo "$ac_t""no" 1>&6
7808 if test $ol_link_termcap = no ; then
7809 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7810 echo "configure:7811: checking for tputs in -ltermcap" >&5
7811 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7813 echo $ac_n "(cached) $ac_c" 1>&6
7815 ac_save_LIBS="$LIBS"
7816 LIBS="-ltermcap $LIBS"
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 /* Override any gcc2 internal prototype to avoid an error. */
7821 /* We use char because int might match the return type of a gcc2
7822 builtin and then its argument prototype would still apply. */
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7831 eval "ac_cv_lib_$ac_lib_var=yes"
7833 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5
7836 eval "ac_cv_lib_$ac_lib_var=no"
7839 LIBS="$ac_save_LIBS"
7842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7843 echo "$ac_t""yes" 1>&6
7846 echo "$ac_t""no" 1>&6
7850 if test $have_termcap = yes ; then
7851 cat >> confdefs.h <<\EOF
7852 #define HAVE_TERMCAP 1
7856 TERMCAP_LIBS=-ltermcap
7860 if test $ol_link_termcap = no ; then
7861 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7862 echo "configure:7863: checking for initscr in -lncurses" >&5
7863 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7867 ac_save_LIBS="$LIBS"
7868 LIBS="-lncurses $LIBS"
7869 cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7872 /* Override any gcc2 internal prototype to avoid an error. */
7873 /* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7881 if { (eval echo configure:7882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7883 eval "ac_cv_lib_$ac_lib_var=yes"
7885 echo "configure: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7888 eval "ac_cv_lib_$ac_lib_var=no"
7891 LIBS="$ac_save_LIBS"
7894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7895 echo "$ac_t""yes" 1>&6
7898 echo "$ac_t""no" 1>&6
7902 if test $have_ncurses = yes ; then
7903 cat >> confdefs.h <<\EOF
7904 #define HAVE_NCURSES 1
7908 TERMCAP_LIBS=-lncurses
7912 if test $ol_link_termcap = no ; then
7913 cat >> confdefs.h <<\EOF
7914 #define NO_TERMCAP 1
7921 if test $ol_with_readline != no ; then
7922 for ac_hdr in readline/readline.h readline/history.h
7924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7926 echo "configure:7927: checking for $ac_hdr" >&5
7927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7936 { (eval echo configure:7937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7938 if test -z "$ac_err"; then
7940 eval "ac_cv_header_$ac_safe=yes"
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7946 eval "ac_cv_header_$ac_safe=no"
7950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7951 echo "$ac_t""yes" 1>&6
7952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7953 cat >> confdefs.h <<EOF
7954 #define $ac_tr_hdr 1
7958 echo "$ac_t""no" 1>&6
7963 if test $ac_cv_header_readline_readline_h = yes ; then
7965 LIBS="$TERMCAP_LIBS $LIBS"
7966 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7967 echo "configure:7968: checking for readline in -lreadline" >&5
7968 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
7969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 ac_save_LIBS="$LIBS"
7973 LIBS="-lreadline $LIBS"
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7988 eval "ac_cv_lib_$ac_lib_var=yes"
7990 echo "configure: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7993 eval "ac_cv_lib_$ac_lib_var=no"
7996 LIBS="$ac_save_LIBS"
7999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8000 echo "$ac_t""yes" 1>&6
8003 echo "$ac_t""no" 1>&6
8009 if test $have_readline = yes ; then
8010 ol_with_readline=found
8011 ol_link_readline=yes
8013 READLINE_LIBS="-lreadline"
8018 if test $ol_link_readline = yes ; then
8019 cat >> confdefs.h <<\EOF
8020 #define HAVE_READLINE 1
8026 # FreeBSD (and others) have crypt(3) in -lcrypt
8027 if test $ol_enable_crypt != no ; then
8028 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8029 echo "configure:8030: checking for crypt" >&5
8030 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8036 /* System header to define __stub macros and hopefully few prototypes,
8037 which can conflict with char crypt(); below. */
8039 /* Override any gcc2 internal prototype to avoid an error. */
8040 /* We use char because int might match the return type of a gcc2
8041 builtin and then its argument prototype would still apply. */
8046 /* The GNU C library defines this for functions which it implements
8047 to always fail with ENOSYS. Some functions are actually named
8048 something starting with __ and the normal name is an alias. */
8049 #if defined (__stub_crypt) || defined (__stub___crypt)
8057 if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8059 eval "ac_cv_func_crypt=yes"
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8064 eval "ac_cv_func_crypt=no"
8069 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8070 echo "$ac_t""yes" 1>&6
8073 echo "$ac_t""no" 1>&6
8075 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8076 echo "configure:8077: checking for crypt in -lcrypt" >&5
8077 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8079 echo $ac_n "(cached) $ac_c" 1>&6
8081 ac_save_LIBS="$LIBS"
8082 LIBS="-lcrypt $LIBS"
8083 cat > conftest.$ac_ext <<EOF
8084 #line 8085 "configure"
8085 #include "confdefs.h"
8086 /* Override any gcc2 internal prototype to avoid an error. */
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8095 if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8097 eval "ac_cv_lib_$ac_lib_var=yes"
8099 echo "configure: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8102 eval "ac_cv_lib_$ac_lib_var=no"
8105 LIBS="$ac_save_LIBS"
8108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8109 echo "$ac_t""yes" 1>&6
8110 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
8113 echo "$ac_t""no" 1>&6
8120 if test $have_crypt = yes ; then
8121 cat >> confdefs.h <<\EOF
8122 #define HAVE_CRYPT 1
8126 echo "configure: warning: could not find crypt" 1>&2
8127 if test $ol_enable_crypt = yes ; then
8128 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
8131 echo "configure: warning: disabling crypt support" 1>&2
8136 # FreeBSD (and others) have setproctitle(3) in -lutil
8137 if test $ol_enable_proctitle != no ; then
8138 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
8139 echo "configure:8140: checking for setproctitle" >&5
8140 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146 /* System header to define __stub macros and hopefully few prototypes,
8147 which can conflict with char setproctitle(); below. */
8149 /* Override any gcc2 internal prototype to avoid an error. */
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152 char setproctitle();
8156 /* The GNU C library defines this for functions which it implements
8157 to always fail with ENOSYS. Some functions are actually named
8158 something starting with __ and the normal name is an alias. */
8159 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8169 eval "ac_cv_func_setproctitle=yes"
8171 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8174 eval "ac_cv_func_setproctitle=no"
8179 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
8180 echo "$ac_t""yes" 1>&6
8181 have_setproctitle=yes
8183 echo "$ac_t""no" 1>&6
8185 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
8186 echo "configure:8187: checking for setproctitle in -lutil" >&5
8187 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
8188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8191 ac_save_LIBS="$LIBS"
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 /* We use char because int might match the return type of a gcc2
8198 builtin and then its argument prototype would still apply. */
8199 char setproctitle();
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8207 eval "ac_cv_lib_$ac_lib_var=yes"
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 eval "ac_cv_lib_$ac_lib_var=no"
8215 LIBS="$ac_save_LIBS"
8218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8219 echo "$ac_t""yes" 1>&6
8220 have_setproctitle=yes
8221 LUTIL_LIBS="$LUTIL_LIBS -lutil"
8223 echo "$ac_t""no" 1>&6
8224 have_setproctitle=no
8225 LIBOBJS="$LIBOBJS setproctitle.o"
8231 if test $have_setproctitle = yes ; then
8232 cat >> confdefs.h <<\EOF
8233 #define HAVE_SETPROCTITLE 1
8239 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8240 echo "configure:8241: checking for ANSI C header files" >&5
8241 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8253 { (eval echo configure:8254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8255 if test -z "$ac_err"; then
8257 ac_cv_header_stdc=yes
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 ac_cv_header_stdc=no
8267 if test $ac_cv_header_stdc = yes; then
8268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8275 egrep "memchr" >/dev/null 2>&1; then
8279 ac_cv_header_stdc=no
8285 if test $ac_cv_header_stdc = yes; then
8286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8293 egrep "free" >/dev/null 2>&1; then
8297 ac_cv_header_stdc=no
8303 if test $ac_cv_header_stdc = yes; then
8304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8305 if test "$cross_compiling" = yes; then
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8312 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8313 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8315 int main () { int i; for (i = 0; i < 256; i++)
8316 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 ac_cv_header_stdc=no
8335 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8336 if test $ac_cv_header_stdc = yes; then
8337 cat >> confdefs.h <<\EOF
8338 #define STDC_HEADERS 1
8344 if test $ac_cv_header_stdc != yes; then
8345 echo "configure: warning: could not Standard C compliant headers" 1>&2
8349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8351 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8352 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8353 echo "configure:8354: checking for $ac_hdr that defines DIR" >&5
8354 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 #include <sys/types.h>
8366 if { (eval echo configure:8367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8368 eval "ac_cv_header_dirent_$ac_safe=yes"
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8373 eval "ac_cv_header_dirent_$ac_safe=no"
8377 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8378 echo "$ac_t""yes" 1>&6
8379 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8380 cat >> confdefs.h <<EOF
8381 #define $ac_tr_hdr 1
8383 ac_header_dirent=$ac_hdr; break
8385 echo "$ac_t""no" 1>&6
8388 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8389 if test $ac_header_dirent = dirent.h; then
8390 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8391 echo "configure:8392: checking for opendir in -ldir" >&5
8392 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8396 ac_save_LIBS="$LIBS"
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8401 /* Override any gcc2 internal prototype to avoid an error. */
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8410 if { (eval echo configure:8411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8412 eval "ac_cv_lib_$ac_lib_var=yes"
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 eval "ac_cv_lib_$ac_lib_var=no"
8420 LIBS="$ac_save_LIBS"
8423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8424 echo "$ac_t""yes" 1>&6
8427 echo "$ac_t""no" 1>&6
8431 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8432 echo "configure:8433: checking for opendir in -lx" >&5
8433 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 ac_save_LIBS="$LIBS"
8439 cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8451 if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8453 eval "ac_cv_lib_$ac_lib_var=yes"
8455 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8458 eval "ac_cv_lib_$ac_lib_var=no"
8461 LIBS="$ac_save_LIBS"
8464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8465 echo "$ac_t""yes" 1>&6
8468 echo "$ac_t""no" 1>&6
8473 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8474 echo "configure:8475: checking for sys/wait.h that is POSIX.1 compatible" >&5
8475 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8476 echo $ac_n "(cached) $ac_c" 1>&6
8478 cat > conftest.$ac_ext <<EOF
8479 #line 8480 "configure"
8480 #include "confdefs.h"
8481 #include <sys/types.h>
8482 #include <sys/wait.h>
8484 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8487 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8492 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8495 if { (eval echo configure:8496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8497 ac_cv_header_sys_wait_h=yes
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8502 ac_cv_header_sys_wait_h=no
8507 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8508 if test $ac_cv_header_sys_wait_h = yes; then
8509 cat >> confdefs.h <<\EOF
8510 #define HAVE_SYS_WAIT_H 1
8515 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8516 echo "configure:8517: checking POSIX termios" >&5
8517 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8520 cat > conftest.$ac_ext <<EOF
8521 #line 8522 "configure"
8522 #include "confdefs.h"
8523 #include <sys/types.h>
8525 #include <termios.h>
8527 /* SunOS 4.0.3 has termios.h but not the library calls. */
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8533 am_cv_sys_posix_termios=yes
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 am_cv_sys_posix_termios=no
8543 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8546 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8547 echo "configure:8548: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8548 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8551 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8553 gwinsz_in_termios_h=no
8554 if test $am_cv_sys_posix_termios = yes; then
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 #include <sys/types.h>
8559 # include <termios.h>
8565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8566 egrep "yes" >/dev/null 2>&1; then
8568 gwinsz_in_termios_h=yes
8574 if test $gwinsz_in_termios_h = no; then
8575 cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 #include <sys/types.h>
8579 # include <sys/ioctl.h>
8585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8586 egrep "yes" >/dev/null 2>&1; then
8588 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8596 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8597 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8598 cat >> confdefs.h <<\EOF
8599 #define GWINSZ_IN_SYS_IOCTL 1
8604 if test $am_cv_sys_posix_termios = yes ; then
8605 cat >> confdefs.h <<\EOF
8606 #define HAVE_POSIX_TERMIOS 1
8649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8651 echo "configure:8652: checking for $ac_hdr" >&5
8652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
8655 cat > conftest.$ac_ext <<EOF
8656 #line 8657 "configure"
8657 #include "confdefs.h"
8660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8661 { (eval echo configure:8662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8663 if test -z "$ac_err"; then
8665 eval "ac_cv_header_$ac_safe=yes"
8668 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8671 eval "ac_cv_header_$ac_safe=no"
8675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8676 echo "$ac_t""yes" 1>&6
8677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8678 cat >> confdefs.h <<EOF
8679 #define $ac_tr_hdr 1
8683 echo "$ac_t""no" 1>&6
8688 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8689 echo "configure:8690: checking for uid_t in sys/types.h" >&5
8690 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8693 cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8696 #include <sys/types.h>
8698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8699 egrep "uid_t" >/dev/null 2>&1; then
8701 ac_cv_type_uid_t=yes
8710 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8711 if test $ac_cv_type_uid_t = no; then
8712 cat >> confdefs.h <<\EOF
8716 cat >> confdefs.h <<\EOF
8722 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8723 echo "configure:8724: checking type of array argument to getgroups" >&5
8724 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8725 echo $ac_n "(cached) $ac_c" 1>&6
8727 if test "$cross_compiling" = yes; then
8728 ac_cv_type_getgroups=cross
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8734 /* Thanks to Mike Rendell for this test. */
8735 #include <sys/types.h>
8738 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8743 union { gid_t gval; long lval; } val;
8746 for (i = 0; i < NGID; i++)
8747 gidset[i] = val.gval;
8748 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8750 /* Exit non-zero if getgroups seems to require an array of ints. This
8751 happens when gid_t is short but getgroups modifies an array of ints. */
8752 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8756 if { (eval echo configure:8757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8758 ac_cv_type_getgroups=gid_t
8760 echo "configure: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8763 ac_cv_type_getgroups=int
8768 if test $ac_cv_type_getgroups = cross; then
8769 cat > conftest.$ac_ext <<EOF
8770 #line 8771 "configure"
8771 #include "confdefs.h"
8774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8775 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8777 ac_cv_type_getgroups=gid_t
8780 ac_cv_type_getgroups=int
8787 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8788 cat >> confdefs.h <<EOF
8789 #define GETGROUPS_T $ac_cv_type_getgroups
8792 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8793 echo "configure:8794: checking for mode_t" >&5
8794 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8795 echo $ac_n "(cached) $ac_c" 1>&6
8797 cat > conftest.$ac_ext <<EOF
8798 #line 8799 "configure"
8799 #include "confdefs.h"
8800 #include <sys/types.h>
8806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8807 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8809 ac_cv_type_mode_t=yes
8812 ac_cv_type_mode_t=no
8817 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8818 if test $ac_cv_type_mode_t = no; then
8819 cat >> confdefs.h <<\EOF
8825 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8826 echo "configure:8827: checking for off_t" >&5
8827 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8828 echo $ac_n "(cached) $ac_c" 1>&6
8830 cat > conftest.$ac_ext <<EOF
8831 #line 8832 "configure"
8832 #include "confdefs.h"
8833 #include <sys/types.h>
8839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8840 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8842 ac_cv_type_off_t=yes
8850 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8851 if test $ac_cv_type_off_t = no; then
8852 cat >> confdefs.h <<\EOF
8858 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8859 echo "configure:8860: checking for pid_t" >&5
8860 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
8863 cat > conftest.$ac_ext <<EOF
8864 #line 8865 "configure"
8865 #include "confdefs.h"
8866 #include <sys/types.h>
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8875 ac_cv_type_pid_t=yes
8883 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8884 if test $ac_cv_type_pid_t = no; then
8885 cat >> confdefs.h <<\EOF
8891 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8892 echo "configure:8893: checking for ptrdiff_t" >&5
8893 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8896 cat > conftest.$ac_ext <<EOF
8897 #line 8898 "configure"
8898 #include "confdefs.h"
8904 if { (eval echo configure:8905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8906 am_cv_type_ptrdiff_t=yes
8908 echo "configure: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8911 am_cv_type_ptrdiff_t=no
8916 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8917 if test $am_cv_type_ptrdiff_t = yes; then
8918 cat >> confdefs.h <<\EOF
8919 #define HAVE_PTRDIFF_T 1
8924 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8925 echo "configure:8926: checking return type of signal handlers" >&5
8926 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
8929 cat > conftest.$ac_ext <<EOF
8930 #line 8931 "configure"
8931 #include "confdefs.h"
8932 #include <sys/types.h>
8938 extern "C" void (*signal (int, void (*)(int)))(int);
8940 void (*signal ()) ();
8947 if { (eval echo configure:8948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8949 ac_cv_type_signal=void
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8954 ac_cv_type_signal=int
8959 echo "$ac_t""$ac_cv_type_signal" 1>&6
8960 cat >> confdefs.h <<EOF
8961 #define RETSIGTYPE $ac_cv_type_signal
8965 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8966 echo "configure:8967: checking for sig_atomic_t" >&5
8967 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8968 echo $ac_n "(cached) $ac_c" 1>&6
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8975 sig_atomic_t atomic;
8978 if { (eval echo configure:8979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8980 ol_cv_type_sig_atomic_t=yes
8982 echo "configure: failed program was:" >&5
8983 cat conftest.$ac_ext >&5
8985 ol_cv_type_sig_atomic_t=no
8990 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8991 if test $ol_cv_type_sig_atomic_t = no; then
8992 cat >> confdefs.h <<\EOF
8993 #define sig_atomic_t int
8998 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8999 echo "configure:9000: checking for size_t" >&5
9000 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9001 echo $ac_n "(cached) $ac_c" 1>&6
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9006 #include <sys/types.h>
9012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9013 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9015 ac_cv_type_size_t=yes
9018 ac_cv_type_size_t=no
9023 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9024 if test $ac_cv_type_size_t = no; then
9025 cat >> confdefs.h <<\EOF
9026 #define size_t unsigned
9031 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9032 echo "configure:9033: checking for st_blksize in struct stat" >&5
9033 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9034 echo $ac_n "(cached) $ac_c" 1>&6
9036 cat > conftest.$ac_ext <<EOF
9037 #line 9038 "configure"
9038 #include "confdefs.h"
9039 #include <sys/types.h>
9040 #include <sys/stat.h>
9042 struct stat s; s.st_blksize;
9045 if { (eval echo configure:9046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9047 ac_cv_struct_st_blksize=yes
9049 echo "configure: failed program was:" >&5
9050 cat conftest.$ac_ext >&5
9052 ac_cv_struct_st_blksize=no
9057 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9058 if test $ac_cv_struct_st_blksize = yes; then
9059 cat >> confdefs.h <<\EOF
9060 #define HAVE_ST_BLKSIZE 1
9065 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
9066 echo "configure:9067: checking whether time.h and sys/time.h may both be included" >&5
9067 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
9068 echo $ac_n "(cached) $ac_c" 1>&6
9070 cat > conftest.$ac_ext <<EOF
9071 #line 9072 "configure"
9072 #include "confdefs.h"
9073 #include <sys/types.h>
9074 #include <sys/time.h>
9080 if { (eval echo configure:9081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9082 ac_cv_header_time=yes
9084 echo "configure: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9087 ac_cv_header_time=no
9092 echo "$ac_t""$ac_cv_header_time" 1>&6
9093 if test $ac_cv_header_time = yes; then
9094 cat >> confdefs.h <<\EOF
9095 #define TIME_WITH_SYS_TIME 1
9100 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9101 echo "configure:9102: checking whether struct tm is in sys/time.h or time.h" >&5
9102 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9103 echo $ac_n "(cached) $ac_c" 1>&6
9105 cat > conftest.$ac_ext <<EOF
9106 #line 9107 "configure"
9107 #include "confdefs.h"
9108 #include <sys/types.h>
9111 struct tm *tp; tp->tm_sec;
9114 if { (eval echo configure:9115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9116 ac_cv_struct_tm=time.h
9118 echo "configure: failed program was:" >&5
9119 cat conftest.$ac_ext >&5
9121 ac_cv_struct_tm=sys/time.h
9126 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9127 if test $ac_cv_struct_tm = sys/time.h; then
9128 cat >> confdefs.h <<\EOF
9129 #define TM_IN_SYS_TIME 1
9136 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
9137 echo "configure:9138: checking if toupper() requires islower()" >&5
9138 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9142 if test "$cross_compiling" = yes; then
9143 ol_cv_c_upper_lower=safe
9145 cat > conftest.$ac_ext <<EOF
9146 #line 9147 "configure"
9147 #include "confdefs.h"
9152 if ('C' == toupper('C'))
9158 if { (eval echo configure:9159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9160 ol_cv_c_upper_lower=no
9162 echo "configure: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9165 ol_cv_c_upper_lower=yes
9172 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
9173 if test $ol_cv_c_upper_lower != no ; then
9174 cat >> confdefs.h <<\EOF
9175 #define C_UPPER_LOWER 1
9180 echo $ac_n "checking for working const""... $ac_c" 1>&6
9181 echo "configure:9182: checking for working const" >&5
9182 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9183 echo $ac_n "(cached) $ac_c" 1>&6
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9191 /* Ultrix mips cc rejects this. */
9192 typedef int charset[2]; const charset x;
9193 /* SunOS 4.1.1 cc rejects this. */
9194 char const *const *ccp;
9196 /* NEC SVR4.0.2 mips cc rejects this. */
9197 struct point {int x, y;};
9198 static struct point const zero = {0,0};
9199 /* AIX XL C 1.02.0.0 rejects this.
9200 It does not let you subtract one const X* pointer from another in an arm
9201 of an if-expression whose if-part is not a constant expression */
9202 const char *g = "string";
9203 ccp = &g + (g ? g-g : 0);
9204 /* HPUX 7.0 cc rejects these. */
9207 ccp = (char const *const *) p;
9208 { /* SCO 3.2v4 cc rejects this. */
9210 char const *s = 0 ? (char *) 0 : (char const *) 0;
9214 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9216 const int *foo = &x[0];
9219 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9220 typedef const int *iptr;
9224 { /* AIX XL C 1.02.0.0 rejects this saying
9225 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9226 struct s { int j; const int *ap[3]; };
9227 struct s *b; b->j = 5;
9229 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9235 if { (eval echo configure:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9247 echo "$ac_t""$ac_cv_c_const" 1>&6
9248 if test $ac_cv_c_const = no; then
9249 cat >> confdefs.h <<\EOF
9255 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
9256 echo "configure:9257: checking if compiler understands volatile" >&5
9257 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9265 volatile int a; int * volatile b = x ? &y : &z;
9266 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
9270 if { (eval echo configure:9271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9272 ol_cv_c_volatile=yes
9274 echo "configure: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9282 echo "$ac_t""$ol_cv_c_volatile" 1>&6
9283 if test $ol_cv_c_volatile = yes; then
9286 cat >> confdefs.h <<\EOF
9293 if test $cross_compiling = yes ; then
9294 cat >> confdefs.h <<\EOF
9295 #define CROSS_COMPILING 1
9299 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9300 echo "configure:9301: checking whether byte ordering is bigendian" >&5
9301 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9304 ac_cv_c_bigendian=unknown
9305 # See if sys/param.h defines the BYTE_ORDER macro.
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 #include <sys/types.h>
9310 #include <sys/param.h>
9313 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9318 if { (eval echo configure:9319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9320 # It does; now see whether it defined to BIG_ENDIAN or not.
9321 cat > conftest.$ac_ext <<EOF
9322 #line 9323 "configure"
9323 #include "confdefs.h"
9324 #include <sys/types.h>
9325 #include <sys/param.h>
9328 #if BYTE_ORDER != BIG_ENDIAN
9333 if { (eval echo configure:9334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9335 ac_cv_c_bigendian=yes
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9340 ac_cv_c_bigendian=no
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9348 if test $ac_cv_c_bigendian = unknown; then
9349 if test "$cross_compiling" = yes; then
9350 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9352 cat > conftest.$ac_ext <<EOF
9353 #line 9354 "configure"
9354 #include "confdefs.h"
9356 /* Are we little or big endian? From Harbison&Steele. */
9360 char c[sizeof (long)];
9363 exit (u.c[sizeof (long) - 1] == 1);
9366 if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9368 ac_cv_c_bigendian=no
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9373 ac_cv_c_bigendian=yes
9381 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9382 if test $ac_cv_c_bigendian = yes; then
9383 cat >> confdefs.h <<\EOF
9384 #define WORDS_BIGENDIAN 1
9389 echo $ac_n "checking size of short""... $ac_c" 1>&6
9390 echo "configure:9391: checking size of short" >&5
9391 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9392 echo $ac_n "(cached) $ac_c" 1>&6
9394 if test "$cross_compiling" = yes; then
9395 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9403 FILE *f=fopen("conftestval", "w");
9405 fprintf(f, "%d\n", sizeof(short));
9409 if { (eval echo configure:9410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9411 ac_cv_sizeof_short=`cat conftestval`
9413 echo "configure: failed program was:" >&5
9414 cat conftest.$ac_ext >&5
9416 ac_cv_sizeof_short=0
9422 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9423 cat >> confdefs.h <<EOF
9424 #define SIZEOF_SHORT $ac_cv_sizeof_short
9428 echo $ac_n "checking size of int""... $ac_c" 1>&6
9429 echo "configure:9430: checking size of int" >&5
9430 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
9433 if test "$cross_compiling" = yes; then
9434 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9442 FILE *f=fopen("conftestval", "w");
9444 fprintf(f, "%d\n", sizeof(int));
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9450 ac_cv_sizeof_int=`cat conftestval`
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9461 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9462 cat >> confdefs.h <<EOF
9463 #define SIZEOF_INT $ac_cv_sizeof_int
9467 echo $ac_n "checking size of long""... $ac_c" 1>&6
9468 echo "configure:9469: checking size of long" >&5
9469 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9470 echo $ac_n "(cached) $ac_c" 1>&6
9472 if test "$cross_compiling" = yes; then
9473 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9475 cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9481 FILE *f=fopen("conftestval", "w");
9483 fprintf(f, "%d\n", sizeof(long));
9487 if { (eval echo configure:9488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9489 ac_cv_sizeof_long=`cat conftestval`
9491 echo "configure: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9500 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9501 cat >> confdefs.h <<EOF
9502 #define SIZEOF_LONG $ac_cv_sizeof_long
9508 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9509 echo "configure:9510: checking for 8-bit clean memcmp" >&5
9510 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9513 if test "$cross_compiling" = yes; then
9514 ac_cv_func_memcmp_clean=no
9516 cat > conftest.$ac_ext <<EOF
9517 #line 9518 "configure"
9518 #include "confdefs.h"
9522 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9523 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9527 if { (eval echo configure:9528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9529 ac_cv_func_memcmp_clean=yes
9531 echo "configure: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9534 ac_cv_func_memcmp_clean=no
9541 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
9542 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
9544 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9545 echo "configure:9546: checking for strftime" >&5
9546 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 /* System header to define __stub macros and hopefully few prototypes,
9553 which can conflict with char strftime(); below. */
9555 /* Override any gcc2 internal prototype to avoid an error. */
9556 /* We use char because int might match the return type of a gcc2
9557 builtin and then its argument prototype would still apply. */
9562 /* The GNU C library defines this for functions which it implements
9563 to always fail with ENOSYS. Some functions are actually named
9564 something starting with __ and the normal name is an alias. */
9565 #if defined (__stub_strftime) || defined (__stub___strftime)
9573 if { (eval echo configure:9574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9575 eval "ac_cv_func_strftime=yes"
9577 echo "configure: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9580 eval "ac_cv_func_strftime=no"
9585 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9586 echo "$ac_t""yes" 1>&6
9587 cat >> confdefs.h <<\EOF
9588 #define HAVE_STRFTIME 1
9592 echo "$ac_t""no" 1>&6
9593 # strftime is in -lintl on SCO UNIX.
9594 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9595 echo "configure:9596: checking for strftime in -lintl" >&5
9596 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9600 ac_save_LIBS="$LIBS"
9602 cat > conftest.$ac_ext <<EOF
9603 #line 9604 "configure"
9604 #include "confdefs.h"
9605 /* Override any gcc2 internal prototype to avoid an error. */
9606 /* We use char because int might match the return type of a gcc2
9607 builtin and then its argument prototype would still apply. */
9614 if { (eval echo configure:9615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9616 eval "ac_cv_lib_$ac_lib_var=yes"
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9621 eval "ac_cv_lib_$ac_lib_var=no"
9624 LIBS="$ac_save_LIBS"
9627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9628 echo "$ac_t""yes" 1>&6
9629 cat >> confdefs.h <<\EOF
9630 #define HAVE_STRFTIME 1
9635 echo "$ac_t""no" 1>&6
9640 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9641 echo "configure:9642: checking for vprintf" >&5
9642 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9645 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9648 /* System header to define __stub macros and hopefully few prototypes,
9649 which can conflict with char vprintf(); below. */
9651 /* Override any gcc2 internal prototype to avoid an error. */
9652 /* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9671 eval "ac_cv_func_vprintf=yes"
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 eval "ac_cv_func_vprintf=no"
9681 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9682 echo "$ac_t""yes" 1>&6
9683 cat >> confdefs.h <<\EOF
9684 #define HAVE_VPRINTF 1
9688 echo "$ac_t""no" 1>&6
9691 if test "$ac_cv_func_vprintf" != yes; then
9692 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9693 echo "configure:9694: checking for _doprnt" >&5
9694 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9695 echo $ac_n "(cached) $ac_c" 1>&6
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 /* System header to define __stub macros and hopefully few prototypes,
9701 which can conflict with char _doprnt(); below. */
9703 /* Override any gcc2 internal prototype to avoid an error. */
9704 /* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9710 /* The GNU C library defines this for functions which it implements
9711 to always fail with ENOSYS. Some functions are actually named
9712 something starting with __ and the normal name is an alias. */
9713 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9721 if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9723 eval "ac_cv_func__doprnt=yes"
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9728 eval "ac_cv_func__doprnt=no"
9733 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9734 echo "$ac_t""yes" 1>&6
9735 cat >> confdefs.h <<\EOF
9736 #define HAVE_DOPRNT 1
9740 echo "$ac_t""no" 1>&6
9746 if test $ac_cv_func_vprintf = yes ; then
9747 for ac_func in vsnprintf vsprintf
9749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9750 echo "configure:9751: checking for $ac_func" >&5
9751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
9757 /* System header to define __stub macros and hopefully few prototypes,
9758 which can conflict with char $ac_func(); below. */
9760 /* Override any gcc2 internal prototype to avoid an error. */
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9767 /* The GNU C library defines this for functions which it implements
9768 to always fail with ENOSYS. Some functions are actually named
9769 something starting with __ and the normal name is an alias. */
9770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9780 eval "ac_cv_func_$ac_func=yes"
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9785 eval "ac_cv_func_$ac_func=no"
9790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9791 echo "$ac_t""yes" 1>&6
9792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9793 cat >> confdefs.h <<EOF
9794 #define $ac_tr_func 1
9798 echo "$ac_t""no" 1>&6
9836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9837 echo "configure:9838: checking for $ac_func" >&5
9838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9841 cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 /* System header to define __stub macros and hopefully few prototypes,
9845 which can conflict with char $ac_func(); below. */
9847 /* Override any gcc2 internal prototype to avoid an error. */
9848 /* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */
9854 /* The GNU C library defines this for functions which it implements
9855 to always fail with ENOSYS. Some functions are actually named
9856 something starting with __ and the normal name is an alias. */
9857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9865 if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9867 eval "ac_cv_func_$ac_func=yes"
9869 echo "configure: failed program was:" >&5
9870 cat conftest.$ac_ext >&5
9872 eval "ac_cv_func_$ac_func=no"
9877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9878 echo "$ac_t""yes" 1>&6
9879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9880 cat >> confdefs.h <<EOF
9881 #define $ac_tr_func 1
9885 echo "$ac_t""no" 1>&6
9890 for ac_func in getopt tempnam
9892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9893 echo "configure:9894: checking for $ac_func" >&5
9894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9897 cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 /* System header to define __stub macros and hopefully few prototypes,
9901 which can conflict with char $ac_func(); below. */
9903 /* Override any gcc2 internal prototype to avoid an error. */
9904 /* We use char because int might match the return type of a gcc2
9905 builtin and then its argument prototype would still apply. */
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9921 if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9923 eval "ac_cv_func_$ac_func=yes"
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9928 eval "ac_cv_func_$ac_func=no"
9933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9934 echo "$ac_t""yes" 1>&6
9935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9936 cat >> confdefs.h <<EOF
9937 #define $ac_tr_func 1
9941 echo "$ac_t""no" 1>&6
9942 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9948 # Check Configuration
9950 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9951 echo "configure:9952: checking declaration of sys_errlist" >&5
9952 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9953 echo $ac_n "(cached) $ac_c" 1>&6
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9961 #include <sys/types.h>
9964 char *c = (char *) *sys_errlist
9967 if { (eval echo configure:9968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9969 ol_cv_dcl_sys_errlist=yes
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9974 ol_cv_dcl_sys_errlist=no
9979 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9980 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9981 if test $ol_cv_dcl_sys_errlist = no ; then
9982 cat >> confdefs.h <<\EOF
9983 #define DECL_SYS_ERRLIST 1
9986 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9987 echo "configure:9988: checking existence of sys_errlist" >&5
9988 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9992 cat > conftest.$ac_ext <<EOF
9993 #line 9994 "configure"
9994 #include "confdefs.h"
9997 char *c = (char *) *sys_errlist
10000 if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002 ol_cv_have_sys_errlist=yes
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10007 ol_cv_have_sys_errlist=no
10012 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
10014 if test $ol_cv_have_sys_errlist = yes ; then
10015 cat >> confdefs.h <<\EOF
10016 #define HAVE_SYS_ERRLIST 1
10023 if test "$ol_enable_debug" != no ; then
10024 cat >> confdefs.h <<\EOF
10025 #define LDAP_DEBUG 1
10029 if test "$ol_enable_syslog" = yes ; then
10030 cat >> confdefs.h <<\EOF
10031 #define LDAP_SYSLOG 1
10035 if test "$ol_enable_libui" = yes ; then
10036 cat >> confdefs.h <<\EOF
10037 #define LDAP_LIBUI 1
10041 if test "$ol_enable_cache" = no ; then
10042 cat >> confdefs.h <<\EOF
10043 #define LDAP_NOCACHE 1
10047 if test "$ol_enable_dns" != no ; then
10048 cat >> confdefs.h <<\EOF
10049 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
10053 if test "$ol_enable_proctitle" != no ; then
10054 cat >> confdefs.h <<\EOF
10055 #define LDAP_PROCTITLE 1
10059 if test "$ol_enable_referrals" != no ; then
10060 cat >> confdefs.h <<\EOF
10061 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
10065 if test "$ol_enable_cldap" != no ; then
10066 cat >> confdefs.h <<\EOF
10067 #define LDAP_CONNECTIONLESS 1
10072 if test "$ol_enable_aclgroups" != no ; then
10073 cat >> confdefs.h <<\EOF
10074 #define SLAPD_ACLGROUPS 1
10078 if test "$ol_enable_crypt" != no ; then
10079 cat >> confdefs.h <<\EOF
10080 #define SLAPD_CRYPT 1
10084 if test "$ol_enable_cleartext" != no ; then
10085 cat >> confdefs.h <<\EOF
10086 #define SLAPD_CLEARTEXT 1
10090 if test "$ol_enable_phonetic" != no ; then
10091 cat >> confdefs.h <<\EOF
10092 #define SLAPD_PHONETIC 1
10096 if test "$ol_enable_rlookups" != no ; then
10097 cat >> confdefs.h <<\EOF
10098 #define SLAPD_RLOOKUPS 1
10103 if test "$ol_link_bdb2" != no ; then
10104 cat >> confdefs.h <<\EOF
10105 #define SLAPD_BDB2 1
10112 if test "$ol_link_ldbm" != no ; then
10113 cat >> confdefs.h <<\EOF
10114 #define SLAPD_LDBM 1
10121 if test "$ol_enable_passwd" != no ; then
10122 cat >> confdefs.h <<\EOF
10123 #define SLAPD_PASSWD 1
10130 if test "$ol_enable_perl" != no ; then
10131 cat >> confdefs.h <<\EOF
10132 #define SLAPD_PERL 1
10139 if test "$ol_enable_shell" != no ; then
10140 cat >> confdefs.h <<\EOF
10141 #define SLAPD_SHELL 1
10148 if test "$ol_enable_tcl" != no ; then
10149 cat >> confdefs.h <<\EOF
10150 #define SLAPD_TCL 1
10157 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
10158 $BUILD_SLAPD = yes ; then
10162 if test "$ol_link_isode" != no ; then
10195 cat > confcache <<\EOF
10196 # This file is a shell script that caches the results of configure
10197 # tests run on this system so they can be shared between configure
10198 # scripts and configure runs. It is not useful on other systems.
10199 # If it contains results you don't want to keep, you may remove or edit it.
10201 # By default, configure uses ./config.cache as the cache file,
10202 # creating it if it does not exist already. You can give configure
10203 # the --cache-file=FILE option to use a different cache file; that is
10204 # what configure does when it calls configure scripts in
10205 # subdirectories, so they share the cache.
10206 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10207 # config.status only pays attention to the cache file if you give it the
10208 # --recheck option to rerun configure.
10211 # The following way of writing the cache mishandles newlines in values,
10212 # but we know of no workaround that is simple, portable, and efficient.
10213 # So, don't put newlines in cache variables' values.
10214 # Ultrix sh set writes to stderr and can't be redirected directly,
10215 # and sets the high bit in the cache file unless we assign to the vars.
10217 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10219 # `set' does not quote correctly, so add quotes (double-quote substitution
10220 # turns \\\\ into \\, and sed turns \\ into \).
10222 -e "s/'/'\\\\''/g" \
10223 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10226 # `set' quotes correctly as required by POSIX, so do not add quotes.
10227 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10230 if cmp -s $cache_file confcache; then
10233 if test -w $cache_file; then
10234 echo "updating cache $cache_file"
10235 cat confcache > $cache_file
10237 echo "not updating unwritable cache $cache_file"
10242 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10244 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10245 # Let make expand exec_prefix.
10246 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10248 # Any assignment to VPATH causes Sun make to only execute
10249 # the first set of double-colon rules, so remove it if not needed.
10250 # If there is a colon in the path, we need to keep it.
10251 if test "x$srcdir" = x.; then
10252 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10255 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10257 DEFS=-DHAVE_CONFIG_H
10259 # Without the "./", some shells look in PATH for config.status.
10260 : ${CONFIG_STATUS=./config.status}
10262 echo creating $CONFIG_STATUS
10263 rm -f $CONFIG_STATUS
10264 cat > $CONFIG_STATUS <<EOF
10266 # Generated automatically by configure.
10267 # Run this file to recreate the current configuration.
10268 # This directory was configured as follows,
10269 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10271 # $0 $ac_configure_args
10273 # Compiler output produced by configure, useful for debugging
10274 # configure, is in ./config.log if it exists.
10276 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10279 case "\$ac_option" in
10280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10281 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10282 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10283 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10284 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10286 -help | --help | --hel | --he | --h)
10287 echo "\$ac_cs_usage"; exit 0 ;;
10288 *) echo "\$ac_cs_usage"; exit 1 ;;
10292 ac_given_srcdir=$srcdir
10293 ac_given_INSTALL="$INSTALL"
10295 trap 'rm -fr `echo "\
10296 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10297 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10298 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10299 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10300 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10301 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10302 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10303 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10304 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10305 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10306 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10307 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10308 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10309 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10310 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10311 include/Makefile:build/top.mk:include/Makefile.in \
10312 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10313 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10314 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10315 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10316 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10317 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10318 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10319 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10320 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10321 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10322 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10323 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10324 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10325 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10326 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10327 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10328 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10329 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10330 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10331 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10332 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10333 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10334 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
10335 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
10336 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10338 cat >> $CONFIG_STATUS <<EOF
10340 # Protect against being on the right side of a sed subst in config.status.
10341 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10342 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10346 s%@CFLAGS@%$CFLAGS%g
10347 s%@CPPFLAGS@%$CPPFLAGS%g
10348 s%@CXXFLAGS@%$CXXFLAGS%g
10349 s%@FFLAGS@%$FFLAGS%g
10351 s%@LDFLAGS@%$LDFLAGS%g
10353 s%@exec_prefix@%$exec_prefix%g
10354 s%@prefix@%$prefix%g
10355 s%@program_transform_name@%$program_transform_name%g
10356 s%@bindir@%$bindir%g
10357 s%@sbindir@%$sbindir%g
10358 s%@libexecdir@%$libexecdir%g
10359 s%@datadir@%$datadir%g
10360 s%@sysconfdir@%$sysconfdir%g
10361 s%@sharedstatedir@%$sharedstatedir%g
10362 s%@localstatedir@%$localstatedir%g
10363 s%@libdir@%$libdir%g
10364 s%@includedir@%$includedir%g
10365 s%@oldincludedir@%$oldincludedir%g
10366 s%@infodir@%$infodir%g
10367 s%@mandir@%$mandir%g
10368 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10369 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10370 s%@INSTALL_DATA@%$INSTALL_DATA%g
10371 s%@PACKAGE@%$PACKAGE%g
10372 s%@VERSION@%$VERSION%g
10373 s%@ACLOCAL@%$ACLOCAL%g
10374 s%@AUTOCONF@%$AUTOCONF%g
10375 s%@AUTOMAKE@%$AUTOMAKE%g
10376 s%@AUTOHEADER@%$AUTOHEADER%g
10377 s%@MAKEINFO@%$MAKEINFO%g
10378 s%@SET_MAKE@%$SET_MAKE%g
10379 s%@top_builddir@%$top_builddir%g
10380 s%@ldap_subdir@%$ldap_subdir%g
10382 s%@host_alias@%$host_alias%g
10383 s%@host_cpu@%$host_cpu%g
10384 s%@host_vendor@%$host_vendor%g
10385 s%@host_os@%$host_os%g
10386 s%@RANLIB@%$RANLIB%g
10391 s%@LIBTOOL@%$LIBTOOL%g
10393 s%@SENDMAIL@%$SENDMAIL%g
10394 s%@EDITOR@%$EDITOR%g
10395 s%@FINGER@%$FINGER%g
10396 s%@PERLBIN@%$PERLBIN%g
10398 s%@EXEEXT@%$EXEEXT%g
10399 s%@OBJEXT@%$OBJEXT%g
10401 s%@LIBOBJS@%$LIBOBJS%g
10402 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10403 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10404 s%@BUILD_BDB2@%$BUILD_BDB2%g
10405 s%@BUILD_LDBM@%$BUILD_LDBM%g
10406 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10407 s%@BUILD_PERL@%$BUILD_PERL%g
10408 s%@BUILD_SHELL@%$BUILD_SHELL%g
10409 s%@BUILD_TCL@%$BUILD_TCL%g
10410 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10411 s%@LDAP_LIBS@%$LDAP_LIBS%g
10412 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10413 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10414 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10415 s%@LDBM_LIBS@%$LDBM_LIBS%g
10416 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10417 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10418 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10419 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10420 s%@KRB_LIBS@%$KRB_LIBS%g
10421 s%@READLINE_LIBS@%$READLINE_LIBS%g
10422 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10423 s%@TLS_LIBS@%$TLS_LIBS%g
10428 cat >> $CONFIG_STATUS <<\EOF
10430 # Split the substitutions into bite-sized pieces for seds with
10431 # small command number limits, like on Digital OSF/1 and HP-UX.
10432 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10433 ac_file=1 # Number of current file.
10434 ac_beg=1 # First line for current file.
10435 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10438 while $ac_more_lines; do
10439 if test $ac_beg -gt 1; then
10440 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10442 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10444 if test ! -s conftest.s$ac_file; then
10445 ac_more_lines=false
10446 rm -f conftest.s$ac_file
10448 if test -z "$ac_sed_cmds"; then
10449 ac_sed_cmds="sed -f conftest.s$ac_file"
10451 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10453 ac_file=`expr $ac_file + 1`
10455 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10458 if test -z "$ac_sed_cmds"; then
10463 cat >> $CONFIG_STATUS <<EOF
10465 CONFIG_FILES=\${CONFIG_FILES-"\
10466 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10467 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10468 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10469 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10470 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10471 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10472 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10473 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10474 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10475 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10476 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10477 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10478 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10479 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10480 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10481 include/Makefile:build/top.mk:include/Makefile.in \
10482 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10483 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10484 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10485 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10486 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10487 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10488 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10489 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10490 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10491 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10492 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10493 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10494 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10495 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10496 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10497 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10498 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10499 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10500 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10501 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10502 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10503 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10504 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
10505 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
10508 cat >> $CONFIG_STATUS <<\EOF
10509 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10510 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10512 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10513 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10514 *) ac_file_in="${ac_file}.in" ;;
10517 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10519 # Remove last slash and all that follows it. Not all systems have dirname.
10520 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10521 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10522 # The file is in a subdirectory.
10523 test ! -d "$ac_dir" && mkdir "$ac_dir"
10524 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10525 # A "../" for each directory in $ac_dir_suffix.
10526 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10528 ac_dir_suffix= ac_dots=
10531 case "$ac_given_srcdir" in
10533 if test -z "$ac_dots"; then top_srcdir=.
10534 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10535 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10536 *) # Relative path.
10537 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10538 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10541 case "$ac_given_INSTALL" in
10542 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10543 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10546 echo creating "$ac_file"
10548 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10550 *Makefile*) ac_comsub="1i\\
10551 # $configure_input" ;;
10555 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10557 s%@configure_input@%$configure_input%g
10558 s%@srcdir@%$srcdir%g
10559 s%@top_srcdir@%$top_srcdir%g
10560 s%@INSTALL@%$INSTALL%g
10561 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10565 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10566 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10568 # ac_d sets the value in "#define NAME VALUE" lines.
10569 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10570 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10573 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10574 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10575 ac_uB='\([ ]\)%\1#\2define\3'
10578 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10579 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10580 ac_eB='$%\1#\2define\3'
10584 if test "${CONFIG_HEADERS+set}" != set; then
10586 cat >> $CONFIG_STATUS <<EOF
10587 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10589 cat >> $CONFIG_STATUS <<\EOF
10591 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10594 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10595 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10596 *) ac_file_in="${ac_file}.in" ;;
10599 echo creating $ac_file
10601 rm -f conftest.frag conftest.in conftest.out
10602 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10603 cat $ac_file_inputs > conftest.in
10607 # Transform confdefs.h into a sed script conftest.vals that substitutes
10608 # the proper values into config.h.in to produce config.h. And first:
10609 # Protect against being on the right side of a sed subst in config.status.
10610 # Protect against being in an unquoted here document in config.status.
10611 rm -f conftest.vals
10612 cat > conftest.hdr <<\EOF
10615 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10619 sed -n -f conftest.hdr confdefs.h > conftest.vals
10622 # This sed command replaces #undef with comments. This is necessary, for
10623 # example, in the case of _POSIX_SOURCE, which is predefined and required
10624 # on some systems where configure will not decide to define it.
10625 cat >> conftest.vals <<\EOF
10626 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10629 # Break up conftest.vals because some shells have a limit on
10630 # the size of here documents, and old seds have small limits too.
10632 rm -f conftest.tail
10635 ac_lines=`grep -c . conftest.vals`
10636 # grep -c gives empty output for an empty file on some AIX systems.
10637 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10638 # Write a limited-size here document to conftest.frag.
10639 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10640 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10642 sed -f conftest.frag conftest.in > conftest.out
10644 mv conftest.out conftest.in
10645 ' >> $CONFIG_STATUS
10646 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10647 rm -f conftest.vals
10648 mv conftest.tail conftest.vals
10650 rm -f conftest.vals
10652 cat >> $CONFIG_STATUS <<\EOF
10653 rm -f conftest.frag conftest.h
10654 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10655 cat conftest.in >> conftest.h
10657 if cmp -s $ac_file conftest.h 2>/dev/null; then
10658 echo "$ac_file is unchanged"
10661 # Remove last slash and all that follows it. Not all systems have dirname.
10662 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10663 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10664 # The file is in a subdirectory.
10665 test ! -d "$ac_dir" && mkdir "$ac_dir"
10668 mv conftest.h $ac_file
10673 cat >> $CONFIG_STATUS <<EOF
10676 cat >> $CONFIG_STATUS <<\EOF
10679 echo Please \"make depend\" to build dependencies
10683 chmod +x $CONFIG_STATUS
10684 rm -fr confdefs* $ac_clean_files
10685 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1