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-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --enable-ldbm enable ldbm backend (yes)"
72 --with-ldbm-api use LDBM API (auto)"
74 --with-ldbm-type use LDBM type (auto)"
76 --enable-passwd enable passwd backend (no)"
78 --enable-perl enable perl backend (no)"
80 --enable-shell enable shell backend (no)"
82 --enable-tcl enable tcl backend (no)"
86 --enable-slurpd enable building slurpd (auto)"
88 Library Generation & Linking Options"
90 --enable-static build static libraries [default=yes]
91 --enable-static=PKGS only build shared libraries if the current package
92 appears as an element in the PKGS list"
94 --enable-shared build shared libraries [default=yes]
95 --enable-shared=PKGS only build shared libraries if the current package
96 appears as an element in the PKGS list"
98 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
100 # Initialize some variables set by options.
101 # The variables have the same names as the options, with
102 # dashes changed to underlines.
104 cache_file=./config.cache
113 program_transform_name=s,x,x,
121 bindir='${exec_prefix}/bin'
122 sbindir='${exec_prefix}/sbin'
123 libexecdir='${exec_prefix}/libexec'
124 datadir='${prefix}/share'
125 sysconfdir='${prefix}/etc'
126 sharedstatedir='${prefix}/com'
127 localstatedir='${prefix}/var'
128 libdir='${exec_prefix}/lib'
129 includedir='${prefix}/include'
130 oldincludedir='/usr/include'
131 infodir='${prefix}/info'
132 mandir='${prefix}/man'
134 # Initialize some other variables.
137 SHELL=${CONFIG_SHELL-/bin/sh}
138 # Maximum number of lines to put in a shell here document.
145 # If the previous option needs an argument, assign it.
146 if test -n "$ac_prev"; then
147 eval "$ac_prev=\$ac_option"
153 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
157 # Accept the important Cygnus configure options, so we can diagnose typos.
161 -bindir | --bindir | --bindi | --bind | --bin | --bi)
163 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
164 bindir="$ac_optarg" ;;
166 -build | --build | --buil | --bui | --bu)
168 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
169 build="$ac_optarg" ;;
171 -cache-file | --cache-file | --cache-fil | --cache-fi \
172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
173 ac_prev=cache_file ;;
174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
176 cache_file="$ac_optarg" ;;
178 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
180 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
182 datadir="$ac_optarg" ;;
184 -disable-* | --disable-*)
185 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}=no" ;;
193 -enable-* | --enable-*)
194 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
204 eval "enable_${ac_feature}='$ac_optarg'" ;;
206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
208 | --exec | --exe | --ex)
209 ac_prev=exec_prefix ;;
210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
212 | --exec=* | --exe=* | --ex=*)
213 exec_prefix="$ac_optarg" ;;
215 -gas | --gas | --ga | --g)
216 # Obsolete; use --with-gas.
219 -help | --help | --hel | --he)
220 # Omit some internal or obsolete options to make the list less imposing.
221 # This message is too long to be a string in the A/UX 3.1 sh.
223 Usage: configure [options] [host]
224 Options: [defaults in brackets after descriptions]
226 --cache-file=FILE cache test results in FILE
227 --help print this message
228 --no-create do not create output files
229 --quiet, --silent do not print \`checking...' messages
230 --version print the version of autoconf that created configure
231 Directory and file names:
232 --prefix=PREFIX install architecture-independent files in PREFIX
234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
236 --bindir=DIR user executables in DIR [EPREFIX/bin]
237 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
238 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
239 --datadir=DIR read-only architecture-independent data in DIR
241 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
242 --sharedstatedir=DIR modifiable architecture-independent data in DIR
244 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
245 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
246 --includedir=DIR C header files in DIR [PREFIX/include]
247 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
248 --infodir=DIR info documentation in DIR [PREFIX/info]
249 --mandir=DIR man documentation in DIR [PREFIX/man]
250 --srcdir=DIR find the sources in DIR [configure dir or ..]
251 --program-prefix=PREFIX prepend PREFIX to installed program names
252 --program-suffix=SUFFIX append SUFFIX to installed program names
253 --program-transform-name=PROGRAM
254 run sed PROGRAM on installed program names
258 --build=BUILD configure for building on BUILD [BUILD=HOST]
259 --host=HOST configure for HOST [guessed]
260 --target=TARGET configure for TARGET [TARGET=HOST]
261 Features and packages:
262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
266 --x-includes=DIR X include files are in DIR
267 --x-libraries=DIR X library files are in DIR
269 if test -n "$ac_help"; then
270 echo "--enable and --with options recognized:$ac_help"
274 -host | --host | --hos | --ho)
276 -host=* | --host=* | --hos=* | --ho=*)
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir="$ac_optarg" ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir="$ac_optarg" ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir="$ac_optarg" ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir="$ac_optarg" ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir="$ac_optarg" ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir="$ac_optarg" ;;
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir="$ac_optarg" ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix="$ac_optarg" ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix="$ac_optarg" ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix="$ac_optarg" ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name="$ac_optarg" ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir="$ac_optarg" ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir="$ac_optarg" ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir="$ac_optarg" ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir="$ac_optarg" ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target="$ac_optarg" ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers)
421 echo "configure generated by autoconf version 2.13"
425 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes="$ac_optarg" ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries="$ac_optarg" ;;
464 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
469 echo "configure: warning: $ac_option: invalid host type" 1>&2
471 if test "x$nonopt" != xNONE; then
472 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 if test -n "$ac_prev"; then
481 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
484 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
486 # File descriptor usage:
489 # 2 errors and warnings
490 # 3 some systems may open it to /dev/tty
491 # 4 used on the Kubota Titan
492 # 6 checking for... messages and results
493 # 5 compiler messages saved in config.log
494 if test "$silent" = yes; then
502 This file contains any messages produced by compilers while
503 running configure, to aid debugging if configure makes a mistake.
506 # Strip out --no-create and --no-recursion so they do not pile up.
507 # Also quote any args containing shell metacharacters.
512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
513 | --no-cr | --no-c) ;;
514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
517 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
518 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
523 # Only set these to C if already set. These must not be set unconditionally
524 # because not all systems understand e.g. LANG=C (notably SCO).
525 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
526 # Non-C LC_CTYPE values break the ctype check.
527 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
528 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
529 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
530 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
533 rm -rf conftest* confdefs.h
534 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
537 # A filename unique to this package, relative to the directory that
538 # configure is in, which we can look for to find out if srcdir is correct.
539 ac_unique_file=include/ldap.h
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
562 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564 # Prefer explicitly selected file to automatically selected ones.
565 if test -z "$CONFIG_SITE"; then
566 if test "x$prefix" != xNONE; then
567 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
569 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
572 for ac_site_file in $CONFIG_SITE; do
573 if test -r "$ac_site_file"; then
574 echo "loading site script $ac_site_file"
581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
582 ac_cpp='$CPP $CPPFLAGS'
583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
585 cross_compiling=$ac_cv_prog_cc_cross
589 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
590 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
591 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
598 ac_n= ac_c='\c' ac_t=
602 for ac_dir in build $srcdir/build; do
603 if test -f $ac_dir/install-sh; then
605 ac_install_sh="$ac_aux_dir/install-sh -c"
607 elif test -f $ac_dir/install.sh; then
609 ac_install_sh="$ac_aux_dir/install.sh -c"
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619 # Find a good install program. We prefer a C program (faster),
620 # so one script is as good as another. But avoid the broken or
621 # incompatible versions:
622 # SysV /etc/install, /usr/sbin/install
623 # SunOS /usr/etc/install
626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
629 # ./install, which can be erroneously created by make from ./install.sh.
630 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
631 echo "configure:632: checking for a BSD compatible install" >&5
632 if test -z "$INSTALL"; then
633 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
637 for ac_dir in $PATH; do
638 # Account for people who put trailing slashes in PATH elements.
640 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
642 # OSF1 and SCO ODT 3.0 have their own names for install.
643 # Don't use installbsd from OSF since it installs stuff as root
645 for ac_prog in ginstall scoinst install; do
646 if test -f $ac_dir/$ac_prog; then
647 if test $ac_prog = install &&
648 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
649 # AIX install. It has an incompatible calling convention.
652 ac_cv_path_install="$ac_dir/$ac_prog -c"
663 if test "${ac_cv_path_install+set}" = set; then
664 INSTALL="$ac_cv_path_install"
666 # As a last resort, use the slow shell script. We don't cache a
667 # path for INSTALL within a source directory, because that will
668 # break other packages using the cache if that directory is
669 # removed, or if the path is relative.
670 INSTALL="$ac_install_sh"
673 echo "$ac_t""$INSTALL" 1>&6
675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
676 # It thinks the first close brace ends the variable substitution.
677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
683 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
684 echo "configure:685: checking whether build environment is sane" >&5
687 echo timestamp > conftestfile
688 # Do `set' in a subshell so we don't clobber the current shell's
689 # arguments. Must try -L first in case configure is actually a
690 # symlink; some systems play weird games with the mod time of symlinks
691 # (eg FreeBSD returns the mod time of the symlink's containing
694 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
695 if test "$*" = "X"; then
697 set X `ls -t $srcdir/configure conftestfile`
699 if test "$*" != "X $srcdir/configure conftestfile" \
700 && test "$*" != "X conftestfile $srcdir/configure"; then
702 # If neither matched, then we have a broken ls. This can happen
703 # if, for instance, CONFIG_SHELL is bash and it inherits a
704 # broken ls alias from the environment. This has actually
705 # happened. Such a system could not be considered "sane".
706 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
707 alias in your environment" 1>&2; exit 1; }
710 test "$2" = conftestfile
716 { echo "configure: error: newly created file is older than distributed files!
717 Check your system clock" 1>&2; exit 1; }
720 echo "$ac_t""yes" 1>&6
721 if test "$program_transform_name" = s,x,x,; then
722 program_transform_name=
724 # Double any \ or $. echo might interpret backslashes.
725 cat <<\EOF_SED > conftestsed
726 s,\\,\\\\,g; s,\$,$$,g
728 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
731 test "$program_prefix" != NONE &&
732 program_transform_name="s,^,${program_prefix},; $program_transform_name"
733 # Use a double $ so make ignores it.
734 test "$program_suffix" != NONE &&
735 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
737 # sed with no file args requires a program.
738 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
740 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
741 echo "configure:742: checking whether ${MAKE-make} sets \${MAKE}" >&5
742 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
743 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 cat > conftestmake <<\EOF
748 @echo 'ac_maketemp="${MAKE}"'
750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
751 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
752 if test -n "$ac_maketemp"; then
753 eval ac_cv_prog_make_${ac_make}_set=yes
755 eval ac_cv_prog_make_${ac_make}_set=no
759 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
760 echo "$ac_t""yes" 1>&6
763 echo "$ac_t""no" 1>&6
764 SET_MAKE="MAKE=${MAKE-make}"
772 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
773 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
775 cat >> confdefs.h <<EOF
776 #define PACKAGE "$PACKAGE"
779 cat >> confdefs.h <<EOF
780 #define VERSION "$VERSION"
785 missing_dir=`cd $ac_aux_dir && pwd`
786 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
787 echo "configure:788: checking for working aclocal" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
793 echo "$ac_t""found" 1>&6
795 ACLOCAL="$missing_dir/missing aclocal"
796 echo "$ac_t""missing" 1>&6
799 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
800 echo "configure:801: checking for working autoconf" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
806 echo "$ac_t""found" 1>&6
808 AUTOCONF="$missing_dir/missing autoconf"
809 echo "$ac_t""missing" 1>&6
812 echo $ac_n "checking for working automake""... $ac_c" 1>&6
813 echo "configure:814: checking for working automake" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf. Sigh.
817 if (automake --version) < /dev/null > /dev/null 2>&1; then
819 echo "$ac_t""found" 1>&6
821 AUTOMAKE="$missing_dir/missing automake"
822 echo "$ac_t""missing" 1>&6
825 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
826 echo "configure:827: checking for working autoheader" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
831 AUTOHEADER=autoheader
832 echo "$ac_t""found" 1>&6
834 AUTOHEADER="$missing_dir/missing autoheader"
835 echo "$ac_t""missing" 1>&6
838 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
839 echo "configure:840: checking for working makeinfo" >&5
840 # Run test in a subshell; some versions of sh will print an error if
841 # an executable is not found, even if stderr is redirected.
842 # Redirect stdin to placate older versions of autoconf. Sigh.
843 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
845 echo "$ac_t""found" 1>&6
847 MAKEINFO="$missing_dir/missing makeinfo"
848 echo "$ac_t""missing" 1>&6
856 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
857 echo "configure:858: checking configure arguments" >&5
862 ldap_subdir="openldap"
864 # Check whether --with-subdir or --without-subdir was given.
865 if test "${with_subdir+set}" = set; then
866 withval="$with_subdir"
868 if test "$withval" = "no"; then
870 elif test "$withval" != "yes"; then
871 ldap_subdir="$withval"
877 # OpenLDAP --enable-debug
878 # Check whether --enable-debug or --disable-debug was given.
879 if test "${enable_debug+set}" = set; then
880 enableval="$enable_debug"
883 for ol_val in auto yes no ; do
884 if test "$enableval" = "$ol_val" ; then
888 if test "$ol_arg" = "invalid" ; then
889 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
891 ol_enable_debug="$ol_arg"
894 ol_enable_debug="yes"
897 # OpenLDAP --enable-syslog
898 # Check whether --enable-syslog or --disable-syslog was given.
899 if test "${enable_syslog+set}" = set; then
900 enableval="$enable_syslog"
903 for ol_val in auto yes no ; do
904 if test "$enableval" = "$ol_val" ; then
908 if test "$ol_arg" = "invalid" ; then
909 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
911 ol_enable_syslog="$ol_arg"
914 ol_enable_syslog="auto"
916 # end --enable-syslog
917 # OpenLDAP --enable-proctitle
918 # Check whether --enable-proctitle or --disable-proctitle was given.
919 if test "${enable_proctitle+set}" = set; then
920 enableval="$enable_proctitle"
923 for ol_val in auto yes no ; do
924 if test "$enableval" = "$ol_val" ; then
928 if test "$ol_arg" = "invalid" ; then
929 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
931 ol_enable_proctitle="$ol_arg"
934 ol_enable_proctitle="yes"
936 # end --enable-proctitle
937 # OpenLDAP --enable-cache
938 # Check whether --enable-cache or --disable-cache was given.
939 if test "${enable_cache+set}" = set; then
940 enableval="$enable_cache"
943 for ol_val in auto yes no ; do
944 if test "$enableval" = "$ol_val" ; then
948 if test "$ol_arg" = "invalid" ; then
949 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
951 ol_enable_cache="$ol_arg"
954 ol_enable_cache="yes"
957 # OpenLDAP --enable-dns
958 # Check whether --enable-dns or --disable-dns was given.
959 if test "${enable_dns+set}" = set; then
960 enableval="$enable_dns"
963 for ol_val in auto yes no ; do
964 if test "$enableval" = "$ol_val" ; then
968 if test "$ol_arg" = "invalid" ; then
969 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
971 ol_enable_dns="$ol_arg"
977 # OpenLDAP --enable-referrals
978 # Check whether --enable-referrals or --disable-referrals was given.
979 if test "${enable_referrals+set}" = set; then
980 enableval="$enable_referrals"
983 for ol_val in auto yes no ; do
984 if test "$enableval" = "$ol_val" ; then
988 if test "$ol_arg" = "invalid" ; then
989 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
991 ol_enable_referrals="$ol_arg"
994 ol_enable_referrals="yes"
996 # end --enable-referrals
997 # OpenLDAP --enable-cldap
998 # Check whether --enable-cldap or --disable-cldap was given.
999 if test "${enable_cldap+set}" = set; then
1000 enableval="$enable_cldap"
1003 for ol_val in auto yes no ; do
1004 if test "$enableval" = "$ol_val" ; then
1008 if test "$ol_arg" = "invalid" ; then
1009 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1011 ol_enable_cldap="$ol_arg"
1014 ol_enable_cldap="no"
1016 # end --enable-cldap
1017 # OpenLDAP --enable-x_compile
1018 # Check whether --enable-x_compile or --disable-x_compile was given.
1019 if test "${enable_x_compile+set}" = set; then
1020 enableval="$enable_x_compile"
1023 for ol_val in yes no ; do
1024 if test "$enableval" = "$ol_val" ; then
1028 if test "$ol_arg" = "invalid" ; then
1029 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1031 ol_enable_x_compile="$ol_arg"
1034 ol_enable_x_compile="no"
1036 # end --enable-x_compile
1038 # OpenLDAP --enable-dmalloc
1039 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1040 if test "${enable_dmalloc+set}" = set; then
1041 enableval="$enable_dmalloc"
1044 for ol_val in auto yes no ; do
1045 if test "$enableval" = "$ol_val" ; then
1049 if test "$ol_arg" = "invalid" ; then
1050 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1052 ol_enable_dmalloc="$ol_arg"
1055 ol_enable_dmalloc="no"
1057 # end --enable-dmalloc
1059 # OpenLDAP --with-kerberos
1060 # Check whether --with-kerberos or --without-kerberos was given.
1061 if test "${with_kerberos+set}" = set; then
1062 withval="$with_kerberos"
1065 for ol_val in auto k5 k4 afs yes no ; do
1066 if test "$withval" = "$ol_val" ; then
1070 if test "$ol_arg" = "invalid" ; then
1071 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1073 ol_with_kerberos="$ol_arg"
1076 ol_with_kerberos="auto"
1078 # end --with-kerberos
1080 # OpenLDAP --with-readline
1081 # Check whether --with-readline or --without-readline was given.
1082 if test "${with_readline+set}" = set; then
1083 withval="$with_readline"
1086 for ol_val in auto yes no ; do
1087 if test "$withval" = "$ol_val" ; then
1091 if test "$ol_arg" = "invalid" ; then
1092 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1094 ol_with_readline="$ol_arg"
1097 ol_with_readline="auto"
1099 # end --with-readline
1101 # OpenLDAP --with-threads
1102 # Check whether --with-threads or --without-threads was given.
1103 if test "${with_threads+set}" = set; then
1104 withval="$with_threads"
1107 for ol_val in auto posix mach lwp yes no manual ; do
1108 if test "$withval" = "$ol_val" ; then
1112 if test "$ol_arg" = "invalid" ; then
1113 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1115 ol_with_threads="$ol_arg"
1118 ol_with_threads="auto"
1120 # end --with-threads
1122 # OpenLDAP --with-tls
1123 # Check whether --with-tls or --without-tls was given.
1124 if test "${with_tls+set}" = set; then
1128 for ol_val in auto ssleay openssl yes no ; do
1129 if test "$withval" = "$ol_val" ; then
1133 if test "$ol_arg" = "invalid" ; then
1134 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1136 ol_with_tls="$ol_arg"
1143 # OpenLDAP --with-yielding_select
1144 # Check whether --with-yielding_select or --without-yielding_select was given.
1145 if test "${with_yielding_select+set}" = set; then
1146 withval="$with_yielding_select"
1149 for ol_val in auto yes no manual ; do
1150 if test "$withval" = "$ol_val" ; then
1154 if test "$ol_arg" = "invalid" ; then
1155 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1157 ol_with_yielding_select="$ol_arg"
1160 ol_with_yielding_select="auto"
1162 # end --with-yielding_select
1166 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1167 if test "${with_xxldapdoptions+set}" = set; then
1168 withval="$with_xxldapdoptions"
1172 # OpenLDAP --enable-ldapd
1173 # Check whether --enable-ldapd or --disable-ldapd was given.
1174 if test "${enable_ldapd+set}" = set; then
1175 enableval="$enable_ldapd"
1178 for ol_val in auto yes no ; do
1179 if test "$enableval" = "$ol_val" ; then
1183 if test "$ol_arg" = "invalid" ; then
1184 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1186 ol_enable_ldapd="$ol_arg"
1189 ol_enable_ldapd="no"
1191 # end --enable-ldapd
1193 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1194 if test "${with_xxslapdoptions+set}" = set; then
1195 withval="$with_xxslapdoptions"
1199 # OpenLDAP --enable-slapd
1200 # Check whether --enable-slapd or --disable-slapd was given.
1201 if test "${enable_slapd+set}" = set; then
1202 enableval="$enable_slapd"
1205 for ol_val in auto yes no ; do
1206 if test "$enableval" = "$ol_val" ; then
1210 if test "$ol_arg" = "invalid" ; then
1211 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1213 ol_enable_slapd="$ol_arg"
1216 ol_enable_slapd="yes"
1218 # end --enable-slapd
1219 # OpenLDAP --enable-aclgroups
1220 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1221 if test "${enable_aclgroups+set}" = set; then
1222 enableval="$enable_aclgroups"
1225 for ol_val in auto yes no ; do
1226 if test "$enableval" = "$ol_val" ; then
1230 if test "$ol_arg" = "invalid" ; then
1231 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1233 ol_enable_aclgroups="$ol_arg"
1236 ol_enable_aclgroups="auto"
1238 # end --enable-aclgroups
1239 # OpenLDAP --enable-cleartext
1240 # Check whether --enable-cleartext or --disable-cleartext was given.
1241 if test "${enable_cleartext+set}" = set; then
1242 enableval="$enable_cleartext"
1245 for ol_val in auto yes no ; do
1246 if test "$enableval" = "$ol_val" ; then
1250 if test "$ol_arg" = "invalid" ; then
1251 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1253 ol_enable_cleartext="$ol_arg"
1256 ol_enable_cleartext="yes"
1258 # end --enable-cleartext
1259 # OpenLDAP --enable-crypt
1260 # Check whether --enable-crypt or --disable-crypt was given.
1261 if test "${enable_crypt+set}" = set; then
1262 enableval="$enable_crypt"
1265 for ol_val in auto yes no ; do
1266 if test "$enableval" = "$ol_val" ; then
1270 if test "$ol_arg" = "invalid" ; then
1271 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1273 ol_enable_crypt="$ol_arg"
1276 ol_enable_crypt="auto"
1278 # end --enable-crypt
1279 # OpenLDAP --enable-modules
1280 # Check whether --enable-modules or --disable-modules was given.
1281 if test "${enable_modules+set}" = set; then
1282 enableval="$enable_modules"
1285 for ol_val in auto yes no ; do
1286 if test "$enableval" = "$ol_val" ; then
1290 if test "$ol_arg" = "invalid" ; then
1291 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1293 ol_enable_modules="$ol_arg"
1296 ol_enable_modules="no"
1298 # end --enable-modules
1299 # OpenLDAP --enable-phonetic
1300 # Check whether --enable-phonetic or --disable-phonetic was given.
1301 if test "${enable_phonetic+set}" = set; then
1302 enableval="$enable_phonetic"
1305 for ol_val in auto yes no ; do
1306 if test "$enableval" = "$ol_val" ; then
1310 if test "$ol_arg" = "invalid" ; then
1311 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1313 ol_enable_phonetic="$ol_arg"
1316 ol_enable_phonetic="no"
1318 # end --enable-phonetic
1319 # OpenLDAP --enable-rlookups
1320 # Check whether --enable-rlookups or --disable-rlookups was given.
1321 if test "${enable_rlookups+set}" = set; then
1322 enableval="$enable_rlookups"
1325 for ol_val in auto yes no ; do
1326 if test "$enableval" = "$ol_val" ; then
1330 if test "$ol_arg" = "invalid" ; then
1331 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1333 ol_enable_rlookups="$ol_arg"
1336 ol_enable_rlookups="auto"
1338 # end --enable-rlookups
1339 # OpenLDAP --enable-wrappers
1340 # Check whether --enable-wrappers or --disable-wrappers was given.
1341 if test "${enable_wrappers+set}" = set; then
1342 enableval="$enable_wrappers"
1345 for ol_val in auto yes no ; do
1346 if test "$enableval" = "$ol_val" ; then
1350 if test "$ol_arg" = "invalid" ; then
1351 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1353 ol_enable_wrappers="$ol_arg"
1356 ol_enable_wrappers="no"
1358 # end --enable-wrappers
1360 # OpenLDAP --enable-bdb2
1361 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1362 if test "${enable_bdb2+set}" = set; then
1363 enableval="$enable_bdb2"
1366 for ol_val in auto yes no ; do
1367 if test "$enableval" = "$ol_val" ; then
1371 if test "$ol_arg" = "invalid" ; then
1372 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1374 ol_enable_bdb2="$ol_arg"
1380 # OpenLDAP --enable-ldbm
1381 # Check whether --enable-ldbm or --disable-ldbm was given.
1382 if test "${enable_ldbm+set}" = set; then
1383 enableval="$enable_ldbm"
1386 for ol_val in auto yes no ; do
1387 if test "$enableval" = "$ol_val" ; then
1391 if test "$ol_arg" = "invalid" ; then
1392 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1394 ol_enable_ldbm="$ol_arg"
1397 ol_enable_ldbm="yes"
1400 # OpenLDAP --with-ldbm_api
1401 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1402 if test "${with_ldbm_api+set}" = set; then
1403 withval="$with_ldbm_api"
1406 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1407 if test "$withval" = "$ol_val" ; then
1411 if test "$ol_arg" = "invalid" ; then
1412 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1414 ol_with_ldbm_api="$ol_arg"
1417 ol_with_ldbm_api="auto"
1419 # end --with-ldbm_api
1421 # OpenLDAP --with-ldbm_type
1422 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1423 if test "${with_ldbm_type+set}" = set; then
1424 withval="$with_ldbm_type"
1427 for ol_val in auto btree hash ; do
1428 if test "$withval" = "$ol_val" ; then
1432 if test "$ol_arg" = "invalid" ; then
1433 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1435 ol_with_ldbm_type="$ol_arg"
1438 ol_with_ldbm_type="auto"
1440 # end --with-ldbm_type
1443 # OpenLDAP --enable-passwd
1444 # Check whether --enable-passwd or --disable-passwd was given.
1445 if test "${enable_passwd+set}" = set; then
1446 enableval="$enable_passwd"
1449 for ol_val in auto yes no ; do
1450 if test "$enableval" = "$ol_val" ; then
1454 if test "$ol_arg" = "invalid" ; then
1455 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1457 ol_enable_passwd="$ol_arg"
1460 ol_enable_passwd="no"
1462 # end --enable-passwd
1463 # OpenLDAP --enable-perl
1464 # Check whether --enable-perl or --disable-perl was given.
1465 if test "${enable_perl+set}" = set; then
1466 enableval="$enable_perl"
1469 for ol_val in auto yes no ; do
1470 if test "$enableval" = "$ol_val" ; then
1474 if test "$ol_arg" = "invalid" ; then
1475 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1477 ol_enable_perl="$ol_arg"
1483 # OpenLDAP --enable-shell
1484 # Check whether --enable-shell or --disable-shell was given.
1485 if test "${enable_shell+set}" = set; then
1486 enableval="$enable_shell"
1489 for ol_val in auto yes no ; do
1490 if test "$enableval" = "$ol_val" ; then
1494 if test "$ol_arg" = "invalid" ; then
1495 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1497 ol_enable_shell="$ol_arg"
1500 ol_enable_shell="no"
1502 # end --enable-shell
1503 # OpenLDAP --enable-tcl
1504 # Check whether --enable-tcl or --disable-tcl was given.
1505 if test "${enable_tcl+set}" = set; then
1506 enableval="$enable_tcl"
1509 for ol_val in auto yes no ; do
1510 if test "$enableval" = "$ol_val" ; then
1514 if test "$ol_arg" = "invalid" ; then
1515 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1517 ol_enable_tcl="$ol_arg"
1524 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1525 if test "${with_xxslurpdoptions+set}" = set; then
1526 withval="$with_xxslurpdoptions"
1530 # OpenLDAP --enable-slurpd
1531 # Check whether --enable-slurpd or --disable-slurpd was given.
1532 if test "${enable_slurpd+set}" = set; then
1533 enableval="$enable_slurpd"
1536 for ol_val in auto yes no ; do
1537 if test "$enableval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1544 ol_enable_slurpd="$ol_arg"
1547 ol_enable_slurpd="auto"
1549 # end --enable-slurpd
1551 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1552 if test "${with_xxliboptions+set}" = set; then
1553 withval="$with_xxliboptions"
1557 # Check whether --enable-static or --disable-static was given.
1558 if test "${enable_static+set}" = set; then
1559 enableval="$enable_static"
1560 p=${PACKAGE-default}
1561 case "$enableval" in
1562 yes) enable_static=yes ;;
1563 no) enable_static=no ;;
1566 # Look at the argument we got. We use all the common list separators.
1567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1568 for pkg in $enableval; do
1569 if test "X$pkg" = "X$p"; then
1580 # Check whether --enable-shared or --disable-shared was given.
1581 if test "${enable_shared+set}" = set; then
1582 enableval="$enable_shared"
1583 p=${PACKAGE-default}
1584 case "$enableval" in
1585 yes) enable_shared=yes ;;
1586 no) enable_shared=no ;;
1589 # Look at the argument we got. We use all the common list separators.
1590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1591 for pkg in $enableval; do
1592 if test "X$pkg" = "X$p"; then
1605 if test $ol_enable_dns = yes ; then
1606 if test $ol_enable_referrals = no ; then
1607 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1609 if test $ol_enable_referrals = auto ; then
1610 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1611 ol_enable_referrals=yes
1615 if test $ol_enable_slapd = no ; then
1616 if test $ol_enable_bdb2 = yes ; then
1617 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1619 if test $ol_enable_ldbm = yes ; then
1620 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1622 if test $ol_enable_passwd = yes ; then
1623 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1625 if test $ol_enable_perl = yes ; then
1626 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1628 if test $ol_enable_shell = yes ; then
1629 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1631 if test $ol_enable_tcl = yes ; then
1632 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1634 if test $ol_enable_aclgroups = yes ; then
1635 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1637 if test $ol_enable_modules = yes ; then
1638 echo "configure: warning: slapd disabled, ignoring --enable_modules argument" 1>&2
1640 if test $ol_enable_wrappers = yes ; then
1641 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1643 if test $ol_enable_phonetic = yes ; then
1644 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1646 if test $ol_enable_rlookups = yes ; then
1647 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1649 if test $ol_with_ldbm_api != auto ; then
1650 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1652 if test $ol_with_ldbm_type != auto ; then
1653 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1655 if test $ol_enable_slurpd = yes ; then
1656 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1659 # force settings to no
1667 ol_enable_aclgroups=no
1668 ol_enable_modules=no
1669 ol_enable_phonetic=no
1670 ol_enable_rlookups=no
1671 ol_enable_wrappers=no
1674 ol_with_ldbm_type=no
1678 elif test $ol_enable_ldbm = no ; then
1680 if test $ol_with_ldbm_api != auto ; then
1681 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1684 if test $ol_with_ldbm_type != auto ; then
1685 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1688 if test $ol_enable_bdb2 = yes ; then
1689 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1692 if test $ol_enable_modules != yes -a \
1693 $ol_enable_passwd = no -a \
1694 $ol_enable_perl = no -a \
1695 $ol_enable_shell = no -a \
1696 $ol_enable_tcl = no ; then
1697 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1701 ol_with_ldbm_type=no
1703 elif test $ol_enable_bdb2 = yes ; then
1705 if test $ol_with_ldbm_api != auto -a \
1706 $ol_with_ldbm_api != db2 ; then
1707 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1710 ol_with_ldbm_api=db2
1714 if test $ol_enable_bdb2 != no ; then
1715 if test $ol_with_ldbm_api != auto -a \
1716 $ol_with_ldbm_api != db2 ; then
1717 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1722 if test $ol_with_ldbm_api = gdbm -a \
1723 $ol_with_ldbm_type = btree ; then
1724 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1726 if test $ol_with_ldbm_api = mdbm -a \
1727 $ol_with_ldbm_type = btree ; then
1728 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1730 if test $ol_with_ldbm_api = ndbm -a \
1731 $ol_with_ldbm_type = btree ; then
1732 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1736 if test $ol_enable_slurpd = yes ; then
1737 if test $ol_with_threads = no ; then
1738 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1742 echo "$ac_t""done" 1>&6
1766 SLAPD_MODULES_LDFLAGS=
1767 SLAPD_MODULES_CPPFLAGS=
1770 SLAPD_PERL_CPPFLAGS=
1778 # Find a good install program. We prefer a C program (faster),
1779 # so one script is as good as another. But avoid the broken or
1780 # incompatible versions:
1781 # SysV /etc/install, /usr/sbin/install
1782 # SunOS /usr/etc/install
1783 # IRIX /sbin/install
1785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1788 # ./install, which can be erroneously created by make from ./install.sh.
1789 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1790 echo "configure:1791: checking for a BSD compatible install" >&5
1791 if test -z "$INSTALL"; then
1792 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1796 for ac_dir in $PATH; do
1797 # Account for people who put trailing slashes in PATH elements.
1799 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1801 # OSF1 and SCO ODT 3.0 have their own names for install.
1802 # Don't use installbsd from OSF since it installs stuff as root
1804 for ac_prog in ginstall scoinst install; do
1805 if test -f $ac_dir/$ac_prog; then
1806 if test $ac_prog = install &&
1807 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1808 # AIX install. It has an incompatible calling convention.
1811 ac_cv_path_install="$ac_dir/$ac_prog -c"
1822 if test "${ac_cv_path_install+set}" = set; then
1823 INSTALL="$ac_cv_path_install"
1825 # As a last resort, use the slow shell script. We don't cache a
1826 # path for INSTALL within a source directory, because that will
1827 # break other packages using the cache if that directory is
1828 # removed, or if the path is relative.
1829 INSTALL="$ac_install_sh"
1832 echo "$ac_t""$INSTALL" 1>&6
1834 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1835 # It thinks the first close brace ends the variable substitution.
1836 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1838 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1840 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1846 # Make sure we can run config.sub.
1847 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1848 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1851 echo $ac_n "checking host system type""... $ac_c" 1>&6
1852 echo "configure:1853: checking host system type" >&5
1855 case "$host_alias" in
1859 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1860 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1862 *) host_alias=$nonopt ;;
1866 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1867 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1868 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1869 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1870 echo "$ac_t""$host" 1>&6
1872 # Extract the first word of "ranlib", so it can be a program name with args.
1873 set dummy ranlib; ac_word=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -n "$RANLIB"; then
1880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1884 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1887 ac_cv_prog_RANLIB="ranlib"
1892 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1895 RANLIB="$ac_cv_prog_RANLIB"
1896 if test -n "$RANLIB"; then
1897 echo "$ac_t""$RANLIB" 1>&6
1899 echo "$ac_t""no" 1>&6
1902 # Extract the first word of "gcc", so it can be a program name with args.
1903 set dummy gcc; ac_word=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5
1906 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1925 if test -n "$CC"; then
1926 echo "$ac_t""$CC" 1>&6
1928 echo "$ac_t""no" 1>&6
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc; ac_word=$2
1934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_word" >&5
1936 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1948 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1949 ac_prog_rejected=yes
1957 if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy $ac_cv_prog_CC
1961 if test $# -gt 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1966 set dummy "$ac_dir/$ac_word" "$@"
1974 if test -n "$CC"; then
1975 echo "$ac_t""$CC" 1>&6
1977 echo "$ac_t""no" 1>&6
1980 if test -z "$CC"; then
1981 case "`uname -s`" in
1983 # Extract the first word of "cl", so it can be a program name with args.
1984 set dummy cl; ac_word=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_word" >&5
1987 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1995 for ac_dir in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir=.
1997 if test -f $ac_dir/$ac_word; then
2006 if test -n "$CC"; then
2007 echo "$ac_t""$CC" 1>&6
2009 echo "$ac_t""no" 1>&6
2014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2017 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2025 cross_compiling=$ac_cv_prog_cc_cross
2027 cat > conftest.$ac_ext << EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2034 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2035 ac_cv_prog_cc_works=yes
2036 # If we can't run a trivial program, we are probably using a cross compiler.
2037 if (./conftest; exit) 2>/dev/null; then
2038 ac_cv_prog_cc_cross=no
2040 ac_cv_prog_cc_cross=yes
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 ac_cv_prog_cc_works=no
2049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2053 cross_compiling=$ac_cv_prog_cc_cross
2055 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2056 if test $ac_cv_prog_cc_works = no; then
2057 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2059 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2060 echo "configure:2061: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2061 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2062 cross_compiling=$ac_cv_prog_cc_cross
2064 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2065 echo "configure:2066: checking whether we are using GNU C" >&5
2066 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.c <<EOF
2074 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2081 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2083 if test $ac_cv_prog_gcc = yes; then
2089 ac_test_CFLAGS="${CFLAGS+set}"
2090 ac_save_CFLAGS="$CFLAGS"
2092 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2093 echo "configure:2094: checking whether ${CC-cc} accepts -g" >&5
2094 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 echo 'void f(){}' > conftest.c
2098 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2107 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2108 if test "$ac_test_CFLAGS" = set; then
2109 CFLAGS="$ac_save_CFLAGS"
2110 elif test $ac_cv_prog_cc_g = yes; then
2111 if test "$GCC" = yes; then
2117 if test "$GCC" = yes; then
2124 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2125 if test "${with_gnu_ld+set}" = set; then
2126 withval="$with_gnu_ld"
2127 test "$withval" = no || with_gnu_ld=yes
2134 if test "$ac_cv_prog_gcc" = yes; then
2135 # Check if gcc -print-prog-name=ld gives a path.
2136 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2137 echo "configure:2138: checking for ld used by GCC" >&5
2138 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2140 # Accept absolute paths.
2142 test -z "$LD" && LD="$ac_prog"
2145 # If it fails, then pretend we aren't using GCC.
2149 # If it is relative, then search for the first ld in PATH.
2153 elif test "$with_gnu_ld" = yes; then
2154 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2155 echo "configure:2156: checking for GNU ld" >&5
2157 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2158 echo "configure:2159: checking for non-GNU ld" >&5
2160 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 if test -z "$LD"; then
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2165 for ac_dir in $PATH; do
2166 test -z "$ac_dir" && ac_dir=.
2167 if test -f "$ac_dir/$ac_prog"; then
2168 ac_cv_path_LD="$ac_dir/$ac_prog"
2169 # Check to see if the program is GNU ld. I'd rather use --version,
2170 # but apparently some GNU ld's only accept -v.
2171 # Break only if it was the GNU/non-GNU ld that we prefer.
2172 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2173 test "$with_gnu_ld" != no && break
2175 test "$with_gnu_ld" != yes && break
2181 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2186 if test -n "$LD"; then
2187 echo "$ac_t""$LD" 1>&6
2189 echo "$ac_t""no" 1>&6
2191 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2193 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2194 echo "configure:2195: checking if the linker ($LD) is GNU ld" >&5
2195 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2199 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2200 ac_cv_prog_gnu_ld=yes
2202 ac_cv_prog_gnu_ld=no
2206 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2209 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2210 echo "configure:2211: checking for BSD-compatible nm" >&5
2211 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2216 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2220 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2221 test -z "$ac_dir" && ac_dir=.
2222 if test -f $ac_dir/nm; then
2223 # Check to see if the nm accepts a BSD-compat flag.
2224 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2225 # nm: unknown option "B" ignored
2226 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2227 ac_cv_path_NM="$ac_dir/nm -B"
2228 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2229 ac_cv_path_NM="$ac_dir/nm -p"
2231 ac_cv_path_NM="$ac_dir/nm"
2237 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2243 echo "$ac_t""$NM" 1>&6
2246 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2247 echo "configure:2248: checking whether ln -s works" >&5
2248 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2252 if ln -s X conftestdata 2>/dev/null
2255 ac_cv_prog_LN_S="ln -s"
2260 LN_S="$ac_cv_prog_LN_S"
2261 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2262 echo "$ac_t""yes" 1>&6
2264 echo "$ac_t""no" 1>&6
2267 # Always use our own libtool.
2268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2270 # Check for any special flags to pass to ltconfig.
2272 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2273 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2274 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2275 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2276 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2278 # Some flags need to be propagated to the compiler or linker for good
2282 # Find out which ABI we are using.
2283 echo '#line 2284 "configure"' > conftest.$ac_ext
2284 if { (eval echo configure:2285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2285 case "`/usr/bin/file conftest.o`" in
2301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2302 CFLAGS="$CFLAGS -belf"
2306 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2307 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2308 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2309 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2310 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2311 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2314 for ac_prog in mawk gawk nawk awk
2316 # Extract the first word of "$ac_prog", so it can be a program name with args.
2317 set dummy $ac_prog; ac_word=$2
2318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2319 echo "configure:2320: checking for $ac_word" >&5
2320 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 if test -n "$AWK"; then
2324 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2328 for ac_dir in $ac_dummy; do
2329 test -z "$ac_dir" && ac_dir=.
2330 if test -f $ac_dir/$ac_word; then
2331 ac_cv_prog_AWK="$ac_prog"
2338 AWK="$ac_cv_prog_AWK"
2339 if test -n "$AWK"; then
2340 echo "$ac_t""$AWK" 1>&6
2342 echo "$ac_t""no" 1>&6
2345 test -n "$AWK" && break
2348 # test for ln hardlink support
2349 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2350 echo "configure:2351: checking whether ln works" >&5
2351 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 rm -f conftest.src conftest.dst
2355 echo "conftest" > conftest.src
2356 if ln conftest.src conftest.dst 2>/dev/null
2358 ol_cv_prog_LN_H="ln"
2360 ol_cv_prog_LN_H="cp"
2362 rm -f conftest.src conftest.dst
2365 LN_H="$ol_cv_prog_LN_H"
2366 if test "$ol_cv_prog_LN_H" = "ln"; then
2367 echo "$ac_t""yes" 1>&6
2369 echo "$ac_t""no" 1>&6
2372 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2373 echo "configure:2374: checking whether ln -s works" >&5
2374 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2378 if ln -s X conftestdata 2>/dev/null
2381 ac_cv_prog_LN_S="ln -s"
2386 LN_S="$ac_cv_prog_LN_S"
2387 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2388 echo "$ac_t""yes" 1>&6
2390 echo "$ac_t""no" 1>&6
2394 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2398 # Extract the first word of "sendmail", so it can be a program name with args.
2399 set dummy sendmail; ac_word=$2
2400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2401 echo "configure:2402: checking for $ac_word" >&5
2402 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2407 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2410 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2414 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2415 for ac_dir in $ac_dummy; do
2416 test -z "$ac_dir" && ac_dir=.
2417 if test -f $ac_dir/$ac_word; then
2418 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2423 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2427 SENDMAIL="$ac_cv_path_SENDMAIL"
2428 if test -n "$SENDMAIL"; then
2429 echo "$ac_t""$SENDMAIL" 1>&6
2431 echo "$ac_t""no" 1>&6
2434 # Extract the first word of "vi", so it can be a program name with args.
2435 set dummy vi; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2443 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2446 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2450 ac_dummy="$PATH:/usr/ucb"
2451 for ac_dir in $ac_dummy; do
2452 test -z "$ac_dir" && ac_dir=.
2453 if test -f $ac_dir/$ac_word; then
2454 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2459 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2463 EDITOR="$ac_cv_path_EDITOR"
2464 if test -n "$EDITOR"; then
2465 echo "$ac_t""$EDITOR" 1>&6
2467 echo "$ac_t""no" 1>&6
2470 # Extract the first word of "finger", so it can be a program name with args.
2471 set dummy finger; ac_word=$2
2472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_word" >&5
2474 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2479 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2482 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2486 ac_dummy="$PATH:/usr/ucb"
2487 for ac_dir in $ac_dummy; do
2488 test -z "$ac_dir" && ac_dir=.
2489 if test -f $ac_dir/$ac_word; then
2490 ac_cv_path_FINGER="$ac_dir/$ac_word"
2495 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2499 FINGER="$ac_cv_path_FINGER"
2500 if test -n "$FINGER"; then
2501 echo "$ac_t""$FINGER" 1>&6
2503 echo "$ac_t""no" 1>&6
2508 if test $ol_enable_modules != no ; then
2509 # Extract the first word of "glib-config", so it can be a program name with args.
2510 set dummy glib-config; ac_word=$2
2511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_word" >&5
2513 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 case "$GLIBCONFIG" in
2518 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2521 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2526 for ac_dir in $ac_dummy; do
2527 test -z "$ac_dir" && ac_dir=.
2528 if test -f $ac_dir/$ac_word; then
2529 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2537 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2538 if test -n "$GLIBCONFIG"; then
2539 echo "$ac_t""$GLIBCONFIG" 1>&6
2541 echo "$ac_t""no" 1>&6
2545 if test "no$GLIBCONFIG" = "no" ; then
2546 if test $ol_enable_modules = yes ; then
2547 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2551 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2552 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2553 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2560 if test $ol_enable_perl != no ; then
2561 # Extract the first word of "perl", so it can be a program name with args.
2562 set dummy perl; ac_word=$2
2563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2564 echo "configure:2565: checking for $ac_word" >&5
2565 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2570 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2573 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2578 for ac_dir in $ac_dummy; do
2579 test -z "$ac_dir" && ac_dir=.
2580 if test -f $ac_dir/$ac_word; then
2581 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2586 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2590 PERLBIN="$ac_cv_path_PERLBIN"
2591 if test -n "$PERLBIN"; then
2592 echo "$ac_t""$PERLBIN" 1>&6
2594 echo "$ac_t""no" 1>&6
2598 if test "no$PERLBIN" = "no" ; then
2599 if test $ol_enable_perl = yes ; then
2600 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2604 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2605 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2611 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2612 echo "configure:2613: checking how to run the C preprocessor" >&5
2613 # On Suns, sometimes $CPP names a directory.
2614 if test -n "$CPP" && test -d "$CPP"; then
2617 if test -z "$CPP"; then
2618 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 # This must be in double quotes, not single quotes, because CPP may get
2622 # substituted into the Makefile and "${CC-cc}" will confuse make.
2624 # On the NeXT, cc -E runs the code through the compiler's parser,
2625 # not just through cpp.
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2633 { (eval echo configure:2634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2635 if test -z "$ac_err"; then
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 CPP="${CC-cc} -E -traditional-cpp"
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2650 { (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2652 if test -z "$ac_err"; then
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2659 CPP="${CC-cc} -nologo -E"
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2667 { (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2669 if test -z "$ac_err"; then
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2683 ac_cv_prog_CPP="$CPP"
2685 CPP="$ac_cv_prog_CPP"
2687 ac_cv_prog_CPP="$CPP"
2689 echo "$ac_t""$CPP" 1>&6
2692 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2693 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2695 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2696 echo "configure: warning: programs compiled here do run here..." 1>&2
2697 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2699 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2700 echo "configure: warning: programs compiled here do not run here..." 1>&2
2701 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2704 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2705 echo "configure:2706: checking for AIX" >&5
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2715 egrep "yes" >/dev/null 2>&1; then
2717 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2718 #define _ALL_SOURCE 1
2723 echo "$ac_t""no" 1>&6
2728 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2729 echo "configure:2730: checking for POSIXized ISC" >&5
2730 if test -d /etc/conf/kconfig.d &&
2731 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2733 echo "$ac_t""yes" 1>&6
2734 ISC=yes # If later tests want to check for ISC.
2735 cat >> confdefs.h <<\EOF
2736 #define _POSIX_SOURCE 1
2739 if test "$GCC" = yes; then
2745 echo "$ac_t""no" 1>&6
2749 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2750 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2751 echo "configure:2752: checking for minix/config.h" >&5
2752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <minix/config.h>
2760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2761 { (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2763 if test -z "$ac_err"; then
2765 eval "ac_cv_header_$ac_safe=yes"
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2771 eval "ac_cv_header_$ac_safe=no"
2775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2776 echo "$ac_t""yes" 1>&6
2779 echo "$ac_t""no" 1>&6
2783 if test "$MINIX" = yes; then
2784 cat >> confdefs.h <<\EOF
2785 #define _POSIX_SOURCE 1
2788 cat >> confdefs.h <<\EOF
2789 #define _POSIX_1_SOURCE 2
2792 cat >> confdefs.h <<\EOF
2799 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2800 echo "configure:2801: checking for be_app in -lbe" >&5
2801 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 ac_save_LIBS="$LIBS"
2806 LIBS="-lbe -lroot $LIBS"
2807 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2810 /* Override any gcc2 internal prototype to avoid an error. */
2811 /* We use char because int might match the return type of a gcc2
2812 builtin and then its argument prototype would still apply. */
2819 if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2821 eval "ac_cv_lib_$ac_lib_var=yes"
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2826 eval "ac_cv_lib_$ac_lib_var=no"
2829 LIBS="$ac_save_LIBS"
2832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2834 LIBS="$LIBS -lbe -lroot"
2836 echo "$ac_t""no" 1>&6
2841 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2842 echo "configure:2843: checking for Cygwin environment" >&5
2843 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2853 #define __CYGWIN__ __CYGWIN32__
2858 if { (eval echo configure:2859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2871 echo "$ac_t""$ac_cv_cygwin" 1>&6
2873 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2874 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2875 echo "configure:2876: checking for mingw32 environment" >&5
2876 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2887 if { (eval echo configure:2888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2900 echo "$ac_t""$ac_cv_mingw32" 1>&6
2902 test "$ac_cv_mingw32" = yes && MINGW32=yes
2905 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2906 echo "configure:2907: checking for executable suffix" >&5
2907 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2914 echo 'int main () { return 0; }' > conftest.$ac_ext
2916 if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2917 for file in conftest.*; do
2919 *.c | *.o | *.obj) ;;
2920 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2924 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2927 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2932 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2933 echo "$ac_t""${ac_cv_exeext}" 1>&6
2936 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2937 echo "configure:2938: checking for object suffix" >&5
2938 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2942 echo 'int i = 1;' > conftest.$ac_ext
2943 if { (eval echo configure:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2944 for ac_file in conftest.*; do
2947 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2951 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2956 echo "$ac_t""$ac_cv_objext" 1>&6
2957 OBJEXT=$ac_cv_objext
2958 ac_objext=$ac_cv_objext
2964 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2965 echo "configure:2966: checking for ${CC-cc} option to accept ANSI C" >&5
2966 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 am_cv_prog_cc_stdc=no
2971 # Don't try gcc -ansi; that turns off useful extensions and
2972 # breaks some systems' header files.
2973 # AIX -qlanglvl=ansi
2974 # Ultrix and OSF/1 -std1
2975 # HP-UX -Aa -D_HPUX_SOURCE
2976 # SVR4 -Xc -D__EXTENSIONS__
2977 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2979 CC="$ac_save_CC $ac_arg"
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2985 #include <sys/types.h>
2986 #include <sys/stat.h>
2987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2988 struct buf { int x; };
2989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2990 static char *e (p, i)
2996 static char *f (char * (*g) (char **, int), char **p, ...)
3001 s = g (p, va_arg (v,int));
3005 int test (int i, double x);
3006 struct s1 {int (*f) (int a);};
3007 struct s2 {int (*f) (double a);};
3008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3018 if { (eval echo configure:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 am_cv_prog_cc_stdc="$ac_arg"; break
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3031 if test -z "$am_cv_prog_cc_stdc"; then
3032 echo "$ac_t""none needed" 1>&6
3034 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3036 case "x$am_cv_prog_cc_stdc" in
3038 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3041 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3042 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3048 echo $ac_n "checking for socket""... $ac_c" 1>&6
3049 echo "configure:3050: checking for socket" >&5
3050 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 /* System header to define __stub macros and hopefully few prototypes,
3057 which can conflict with char socket(); below. */
3059 /* Override any gcc2 internal prototype to avoid an error. */
3060 /* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
3066 /* The GNU C library defines this for functions which it implements
3067 to always fail with ENOSYS. Some functions are actually named
3068 something starting with __ and the normal name is an alias. */
3069 #if defined (__stub_socket) || defined (__stub___socket)
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3079 eval "ac_cv_func_socket=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3084 eval "ac_cv_func_socket=no"
3089 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3093 echo "$ac_t""no" 1>&6
3095 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3096 echo "configure:3097: checking for main in -lsocket" >&5
3097 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 ac_save_LIBS="$LIBS"
3102 LIBS="-lsocket $LIBS"
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3113 eval "ac_cv_lib_$ac_lib_var=yes"
3115 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3118 eval "ac_cv_lib_$ac_lib_var=no"
3121 LIBS="$ac_save_LIBS"
3124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3125 echo "$ac_t""yes" 1>&6
3126 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3128 cat >> confdefs.h <<EOF
3129 #define $ac_tr_lib 1
3132 LIBS="-lsocket $LIBS"
3135 echo "$ac_t""no" 1>&6
3138 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3139 echo "configure:3140: checking for main in -lnet" >&5
3140 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 ac_save_LIBS="$LIBS"
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3156 eval "ac_cv_lib_$ac_lib_var=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3161 eval "ac_cv_lib_$ac_lib_var=no"
3164 LIBS="$ac_save_LIBS"
3167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3169 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3171 cat >> confdefs.h <<EOF
3172 #define $ac_tr_lib 1
3178 echo "$ac_t""no" 1>&6
3181 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3182 echo "configure:3183: checking for socket in -lnet" >&5
3183 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 ac_save_LIBS="$LIBS"
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 /* Override any gcc2 internal prototype to avoid an error. */
3193 /* We use char because int might match the return type of a gcc2
3194 builtin and then its argument prototype would still apply. */
3201 if { (eval echo configure:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3203 eval "ac_cv_lib_$ac_lib_var=yes"
3205 echo "configure: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3208 eval "ac_cv_lib_$ac_lib_var=no"
3211 LIBS="$ac_save_LIBS"
3214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3215 echo "$ac_t""yes" 1>&6
3216 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3217 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3218 cat >> confdefs.h <<EOF
3219 #define $ac_tr_lib 1
3225 echo "$ac_t""no" 1>&6
3228 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3229 echo "configure:3230: checking for main in -lnsl_s" >&5
3230 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 ac_save_LIBS="$LIBS"
3235 LIBS="-lnsl_s $LIBS"
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3244 if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3246 eval "ac_cv_lib_$ac_lib_var=yes"
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 eval "ac_cv_lib_$ac_lib_var=no"
3254 LIBS="$ac_save_LIBS"
3257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3258 echo "$ac_t""yes" 1>&6
3259 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3261 cat >> confdefs.h <<EOF
3262 #define $ac_tr_lib 1
3265 LIBS="-lnsl_s $LIBS"
3268 echo "$ac_t""no" 1>&6
3271 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3272 echo "configure:3273: checking for main in -lnsl" >&5
3273 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 ac_save_LIBS="$LIBS"
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3287 if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3289 eval "ac_cv_lib_$ac_lib_var=yes"
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3294 eval "ac_cv_lib_$ac_lib_var=no"
3297 LIBS="$ac_save_LIBS"
3300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3301 echo "$ac_t""yes" 1>&6
3302 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3304 cat >> confdefs.h <<EOF
3305 #define $ac_tr_lib 1
3311 echo "$ac_t""no" 1>&6
3314 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3315 echo "configure:3316: checking for socket in -linet" >&5
3316 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_save_LIBS="$LIBS"
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3336 eval "ac_cv_lib_$ac_lib_var=yes"
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 eval "ac_cv_lib_$ac_lib_var=no"
3344 LIBS="$ac_save_LIBS"
3347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3351 cat >> confdefs.h <<EOF
3352 #define $ac_tr_lib 1
3358 echo "$ac_t""no" 1>&6
3361 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3362 echo "configure:3363: checking for main in -lgen" >&5
3363 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3367 ac_save_LIBS="$LIBS"
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3379 eval "ac_cv_lib_$ac_lib_var=yes"
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3384 eval "ac_cv_lib_$ac_lib_var=no"
3387 LIBS="$ac_save_LIBS"
3390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3392 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_lib 1
3401 echo "$ac_t""no" 1>&6
3408 for ac_func in res_search
3410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_func" >&5
3412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 /* System header to define __stub macros and hopefully few prototypes,
3419 which can conflict with char $ac_func(); below. */
3421 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3428 /* The GNU C library defines this for functions which it implements
3429 to always fail with ENOSYS. Some functions are actually named
3430 something starting with __ and the normal name is an alias. */
3431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3439 if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3441 eval "ac_cv_func_$ac_func=yes"
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3446 eval "ac_cv_func_$ac_func=no"
3451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3454 cat >> confdefs.h <<EOF
3455 #define $ac_tr_func 1
3459 echo "$ac_t""no" 1>&6
3463 if test $ac_cv_func_res_search = "no" ; then
3464 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3465 echo "configure:3466: checking for res_search in -lbind" >&5
3466 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 ac_save_LIBS="$LIBS"
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 /* Override any gcc2 internal prototype to avoid an error. */
3476 /* We use char because int might match the return type of a gcc2
3477 builtin and then its argument prototype would still apply. */
3484 if { (eval echo configure:3485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3486 eval "ac_cv_lib_$ac_lib_var=yes"
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3491 eval "ac_cv_lib_$ac_lib_var=no"
3494 LIBS="$ac_save_LIBS"
3497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3498 echo "$ac_t""yes" 1>&6
3499 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3501 cat >> confdefs.h <<EOF
3502 #define $ac_tr_lib 1
3508 echo "$ac_t""no" 1>&6
3511 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3512 cat >> confdefs.h <<\EOF
3513 #define HAVE_RES_SEARCH 1
3517 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3518 echo "configure:3519: checking for res_search in -lresolv" >&5
3519 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 ac_save_LIBS="$LIBS"
3524 LIBS="-lresolv $LIBS"
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* Override any gcc2 internal prototype to avoid an error. */
3529 /* We use char because int might match the return type of a gcc2
3530 builtin and then its argument prototype would still apply. */
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 eval "ac_cv_lib_$ac_lib_var=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 eval "ac_cv_lib_$ac_lib_var=no"
3547 LIBS="$ac_save_LIBS"
3550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3553 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3554 cat >> confdefs.h <<EOF
3555 #define $ac_tr_lib 1
3558 LIBS="-lresolv $LIBS"
3561 echo "$ac_t""no" 1>&6
3564 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3565 cat >> confdefs.h <<\EOF
3566 #define HAVE_RES_SEARCH 1
3573 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3574 echo "configure:3575: checking for sigset in -lV3" >&5
3575 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 ac_save_LIBS="$LIBS"
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* Override any gcc2 internal prototype to avoid an error. */
3585 /* We use char because int might match the return type of a gcc2
3586 builtin and then its argument prototype would still apply. */
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 eval "ac_cv_lib_$ac_lib_var=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 eval "ac_cv_lib_$ac_lib_var=no"
3603 LIBS="$ac_save_LIBS"
3606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3610 cat >> confdefs.h <<EOF
3611 #define $ac_tr_lib 1
3617 echo "$ac_t""no" 1>&6
3621 echo $ac_n "checking for select""... $ac_c" 1>&6
3622 echo "configure:3623: checking for select" >&5
3623 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 /* System header to define __stub macros and hopefully few prototypes,
3630 which can conflict with char select(); below. */
3632 /* Override any gcc2 internal prototype to avoid an error. */
3633 /* We use char because int might match the return type of a gcc2
3634 builtin and then its argument prototype would still apply. */
3639 /* The GNU C library defines this for functions which it implements
3640 to always fail with ENOSYS. Some functions are actually named
3641 something starting with __ and the normal name is an alias. */
3642 #if defined (__stub_select) || defined (__stub___select)
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3652 eval "ac_cv_func_select=yes"
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 eval "ac_cv_func_select=no"
3662 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3663 echo "$ac_t""yes" 1>&6
3666 echo "$ac_t""no" 1>&6
3667 { echo "configure: error: select() required." 1>&2; exit 1; }
3671 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3672 echo "configure:3673: checking types of arguments for select()" >&5
3673 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3682 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3683 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3684 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 #ifdef HAVE_SYS_TYPES_H
3689 #include <sys/types.h>
3691 #ifdef HAVE_SYS_TIME_H
3692 #include <sys/time.h>
3694 #ifdef HAVE_SYS_SELECT_H
3695 #include <sys/select.h>
3697 #ifdef HAVE_SYS_SOCKET_H
3698 #include <sys/socket.h>
3700 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
3705 if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707 ac_not_found=no ; break 3
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3724 if test "$ac_not_found" = yes; then
3725 ac_cv_func_select_arg1=int
3726 ac_cv_func_select_arg234='int *'
3727 ac_cv_func_select_arg5='struct timeval *'
3729 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3730 cat >> confdefs.h <<EOF
3731 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3734 cat >> confdefs.h <<EOF
3735 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3738 cat >> confdefs.h <<EOF
3739 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3746 if test $ol_enable_ldapd != no ; then
3747 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3748 echo "configure:3749: checking for main in -lxtpp" >&5
3749 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3753 ac_save_LIBS="$LIBS"
3754 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3763 if { (eval echo configure:3764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3765 eval "ac_cv_lib_$ac_lib_var=yes"
3767 echo "configure: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3770 eval "ac_cv_lib_$ac_lib_var=no"
3773 LIBS="$ac_save_LIBS"
3776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3780 cat >> confdefs.h <<\EOF
3784 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3787 echo "$ac_t""no" 1>&6
3791 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3792 echo "configure:3793: checking for main in -ldsap" >&5
3793 ac_lib_var=`echo dsap'_'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="-ldsap -lisode $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 cat >> confdefs.h <<\EOF
3828 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3831 echo "$ac_t""no" 1>&6
3835 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3836 echo "configure:3837: checking for main in -lisode" >&5
3837 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3841 ac_save_LIBS="$LIBS"
3842 LIBS="-lisode $LIBS"
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3853 eval "ac_cv_lib_$ac_lib_var=yes"
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3858 eval "ac_cv_lib_$ac_lib_var=no"
3861 LIBS="$ac_save_LIBS"
3864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3868 cat >> confdefs.h <<\EOF
3869 #define HAVE_ISODE 1
3872 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3875 echo "$ac_t""no" 1>&6
3881 if test $ol_link_isode != no; then
3882 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3883 echo "configure:3884: checking for main in -lpp" >&5
3884 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 ac_save_LIBS="$LIBS"
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3898 if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3900 eval "ac_cv_lib_$ac_lib_var=yes"
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3905 eval "ac_cv_lib_$ac_lib_var=no"
3908 LIBS="$ac_save_LIBS"
3911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3914 cat >> confdefs.h <<\EOF
3918 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3921 echo "$ac_t""no" 1>&6
3926 # Extract the first word of "pepsy", so it can be a program name with args.
3927 set dummy pepsy; ac_word=$2
3928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3929 echo "configure:3930: checking for $ac_word" >&5
3930 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3935 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3938 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3954 PEPSY="$ac_cv_path_PEPSY"
3955 if test -n "$PEPSY"; then
3956 echo "$ac_t""$PEPSY" 1>&6
3958 echo "$ac_t""no" 1>&6
3965 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3966 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3970 echo "configure:3971: checking for $ac_hdr" >&5
3971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3980 { (eval echo configure:3981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3982 if test -z "$ac_err"; then
3984 eval "ac_cv_header_$ac_safe=yes"
3987 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3990 eval "ac_cv_header_$ac_safe=no"
3994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3995 echo "$ac_t""yes" 1>&6
3996 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3997 cat >> confdefs.h <<EOF
3998 #define $ac_tr_hdr 1
4002 echo "$ac_t""no" 1>&6
4007 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4008 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4009 echo "configure:4010: checking for main in -lkrb4" >&5
4010 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 ac_save_LIBS="$LIBS"
4015 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4026 eval "ac_cv_lib_$ac_lib_var=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 eval "ac_cv_lib_$ac_lib_var=no"
4034 LIBS="$ac_save_LIBS"
4037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4041 echo "$ac_t""no" 1>&6
4046 if test $have_k5 = yes ; then
4047 ol_with_kerberos=found
4048 ol_link_kerberos=yes
4050 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4052 LIBS="$KRB_LIBS $LIBS"
4054 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4055 echo "configure:4056: checking for des_debug in Kerberos libraries" >&5
4056 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4061 LIBS="$KRB_LIBS $LIBS"
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4066 #include <kerberosIV/krb.h>
4067 #include <kerberosIV/des.h>
4068 extern int des_debug;
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4078 ol_cv_var_des_debug=yes
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 ol_cv_var_des_debug=no
4090 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4092 if test $ol_cv_var_des_debug = yes ; then
4093 cat >> confdefs.h <<\EOF
4094 #define HAVE_DES_DEBUG 1
4104 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4105 for ac_hdr in krb.h des.h
4107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_hdr" >&5
4110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4119 { (eval echo configure:4120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4121 if test -z "$ac_err"; then
4123 eval "ac_cv_header_$ac_safe=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 eval "ac_cv_header_$ac_safe=no"
4133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4136 cat >> confdefs.h <<EOF
4137 #define $ac_tr_hdr 1
4141 echo "$ac_t""no" 1>&6
4146 if test $ac_cv_header_krb_h = yes ; then
4147 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4148 echo "configure:4149: checking for main in -lkrb" >&5
4149 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4153 ac_save_LIBS="$LIBS"
4154 LIBS="-lkrb -ldes $LIBS"
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4165 eval "ac_cv_lib_$ac_lib_var=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 eval "ac_cv_lib_$ac_lib_var=no"
4173 LIBS="$ac_save_LIBS"
4176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4180 echo "$ac_t""no" 1>&6
4185 if test $have_k4 = yes ; then
4186 ol_with_kerberos=found
4187 ol_link_kerberos=yes
4189 KRB_LIBS="-lkrb -ldes"
4194 if test $ol_link_kerberos = yes ; then
4195 cat >> confdefs.h <<\EOF
4196 #define HAVE_KERBEROS 1
4202 if test $ol_with_tls != no ; then
4206 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4208 echo "configure:4209: checking for $ac_hdr" >&5
4209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4218 { (eval echo configure:4219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4220 if test -z "$ac_err"; then
4222 eval "ac_cv_header_$ac_safe=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 eval "ac_cv_header_$ac_safe=no"
4232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4234 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4235 cat >> confdefs.h <<EOF
4236 #define $ac_tr_hdr 1
4240 echo "$ac_t""no" 1>&6
4245 if test $ac_cv_header_ssl_h = yes ; then
4246 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4247 echo "configure:4248: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4248 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 ac_save_LIBS="$LIBS"
4253 LIBS="-lssl -lcrypto $LIBS"
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4260 char SSLeay_add_ssl_algorithms();
4263 SSLeay_add_ssl_algorithms()
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 eval "ac_cv_lib_$ac_lib_var=yes"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 eval "ac_cv_lib_$ac_lib_var=no"
4276 LIBS="$ac_save_LIBS"
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4284 echo "$ac_t""no" 1>&6
4289 if test $have_ssleay = no ; then
4290 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4291 echo "configure:4292: checking for ssl3_accept in -lssl" >&5
4292 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4296 ac_save_LIBS="$LIBS"
4297 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4312 eval "ac_cv_lib_$ac_lib_var=yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4317 eval "ac_cv_lib_$ac_lib_var=no"
4320 LIBS="$ac_save_LIBS"
4323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4328 echo "$ac_t""no" 1>&6
4334 if test $have_ssleay = yes ; then
4338 cat >> confdefs.h <<\EOF
4339 #define HAVE_SSLEAY 1
4343 if test $need_rsaref = yes; then
4344 cat >> confdefs.h <<\EOF
4345 #define HAVE_RSAREF 1
4349 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4351 TLS_LIBS="-lssl -lcrypto"
4357 if test $ol_link_tls = yes ; then
4358 cat >> confdefs.h <<\EOF
4366 gethostbyname_r gethostbyaddr_r \
4369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4370 echo "configure:4371: checking for $ac_func" >&5
4371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 /* System header to define __stub macros and hopefully few prototypes,
4378 which can conflict with char $ac_func(); below. */
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4387 /* The GNU C library defines this for functions which it implements
4388 to always fail with ENOSYS. Some functions are actually named
4389 something starting with __ and the normal name is an alias. */
4390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4400 eval "ac_cv_func_$ac_func=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_func_$ac_func=no"
4410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4411 echo "$ac_t""yes" 1>&6
4412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4413 cat >> confdefs.h <<EOF
4414 #define $ac_tr_func 1
4418 echo "$ac_t""no" 1>&6
4423 if test "$ac_cv_func_ctime_r" = no ; then
4424 ol_cv_func_ctime_r_nargs=0
4426 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4427 echo "configure:4428: checking number of arguments of ctime_r" >&5
4428 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 cat > conftest.$ac_ext <<EOF
4432 #line 4433 "configure"
4433 #include "confdefs.h"
4436 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4439 if { (eval echo configure:4440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4441 ol_cv_func_ctime_r_nargs=3
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4451 time_t ti; char *buffer; ctime_r(&ti,buffer);
4454 if { (eval echo configure:4455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4456 ol_cv_func_ctime_r_nargs=2
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 ol_cv_func_ctime_r_nargs=0
4468 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4469 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4470 cat >> confdefs.h <<EOF
4471 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4478 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4479 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4480 echo "configure:4481: checking number of arguments of gethostbyname_r" >&5
4481 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 #include <sys/types.h>
4488 #include <sys/socket.h>
4489 #include <netinet/in.h>
4491 #define BUFSIZE (sizeof(struct hostent)+10)
4493 struct hostent hent; char buffer[BUFSIZE];
4494 int bufsize=BUFSIZE;int h_errno;
4495 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4496 buffer, bufsize, &h_errno);
4499 if { (eval echo configure:4500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4501 ol_cv_func_gethostbyname_r_nargs=5
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4509 #include <sys/types.h>
4510 #include <sys/socket.h>
4511 #include <netinet/in.h>
4513 #define BUFSIZE (sizeof(struct hostent)+10)
4515 struct hostent hent;struct hostent *rhent;
4516 char buffer[BUFSIZE];
4517 int bufsize=BUFSIZE;int h_errno;
4518 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4522 if { (eval echo configure:4523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4524 ol_cv_func_gethostbyname_r_nargs=6
4526 echo "configure: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4529 ol_cv_func_gethostbyname_r_nargs=0
4536 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4537 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4538 cat >> confdefs.h <<EOF
4539 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4545 ol_cv_func_gethostbyname_r_nargs=0
4548 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4549 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4550 echo "configure:4551: checking number of arguments of gethostbyaddr_r" >&5
4551 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 #include <sys/types.h>
4558 #include <sys/socket.h>
4559 #include <netinet/in.h>
4561 #define BUFSIZE (sizeof(struct hostent)+10)
4563 struct hostent hent; char buffer[BUFSIZE];
4565 size_t alen=sizeof(struct in_addr);
4566 int bufsize=BUFSIZE;int h_errno;
4567 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4568 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4571 if { (eval echo configure:4572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4573 ol_cv_func_gethostbyaddr_r_nargs=7
4575 echo "configure: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 #include <sys/types.h>
4582 #include <sys/socket.h>
4583 #include <netinet/in.h>
4585 #define BUFSIZE (sizeof(struct hostent)+10)
4587 struct hostent hent;
4588 struct hostent *rhent; char buffer[BUFSIZE];
4590 size_t alen=sizeof(struct in_addr);
4591 int bufsize=BUFSIZE;int h_errno;
4592 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4593 alen, AF_INET, &hent, buffer, bufsize,
4597 if { (eval echo configure:4598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4599 ol_cv_func_gethostbyaddr_r_nargs=8
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 ol_cv_func_gethostbyaddr_r_nargs=0
4611 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4612 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4613 cat >> confdefs.h <<EOF
4614 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4620 ol_cv_func_gethostbyaddr_r_nargs=0
4623 if test "$ac_cv_func_ctime_r" = yes \
4624 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4625 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4626 -a "$ac_cv_func_gethostbyname_r" = yes \
4627 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4628 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4629 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4630 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4631 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4634 cat >> confdefs.h <<\EOF
4635 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4641 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4642 -o $ol_with_threads = posix ; then
4644 for ac_hdr in pthread.h sched.h
4646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4648 echo "configure:4649: checking for $ac_hdr" >&5
4649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4658 { (eval echo configure:4659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4660 if test -z "$ac_err"; then
4662 eval "ac_cv_header_$ac_safe=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 eval "ac_cv_header_$ac_safe=no"
4672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4675 cat >> confdefs.h <<EOF
4676 #define $ac_tr_hdr 1
4680 echo "$ac_t""no" 1>&6
4685 if test $ac_cv_header_pthread_h = yes ; then
4686 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4687 echo "configure:4688: checking POSIX thread version" >&5
4688 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4696 # include <pthread.h>
4697 /* this check could be improved */
4698 # ifdef PTHREAD_ONCE_INIT
4699 pthread_version_final
4703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4704 egrep "pthread_version_final" >/dev/null 2>&1; then
4706 ol_pthread_final=yes
4714 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4718 # include <pthread.h>
4719 /* this check could be improved */
4720 # ifdef pthread_once_init
4721 pthread_version_draft4
4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4728 ol_pthread_draft4=yes
4731 ol_pthread_draft4=no
4736 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4737 ol_cv_pthread_version=final
4738 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4739 ol_cv_pthread_version=draft4
4741 ol_cv_pthread_version=unknown
4746 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4749 if test $ol_cv_pthread_version = final ; then
4750 cat >> confdefs.h <<\EOF
4751 #define HAVE_PTHREADS_FINAL 1
4754 elif test $ol_cv_pthread_version = draft4 ; then
4755 cat >> confdefs.h <<\EOF
4756 #define HAVE_PTHREADS_D4 1
4760 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4763 # consider threads found
4764 ol_with_threads=found
4767 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4768 echo "configure:4769: checking for LinuxThreads pthread.h" >&5
4769 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4775 #include <pthread.h>
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4780 ol_cv_header_linux_threads=yes
4783 ol_cv_header_linux_threads=no
4790 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4791 if test $ol_cv_header_linux_threads = yes; then
4792 cat >> confdefs.h <<\EOF
4793 #define HAVE_LINUX_THREADS 1
4800 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4801 echo "configure:4802: checking for pthread_create in default libraries" >&5
4802 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4806 if test "$cross_compiling" = yes; then
4807 ol_cv_pthread_create=yes
4809 cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4813 #include <pthread.h>
4815 #define NULL (void*)0
4818 static void *task(p)
4821 return (void *) (p == NULL);
4824 int main(argc, argv)
4831 /* make sure pthread_create() isn't just a stub */
4832 #if HAVE_PTHREADS_D4
4833 status = pthread_create(&t, pthread_attr_default, task, NULL);
4835 status = pthread_create(&t, NULL, task, NULL);
4838 if( status ) return status;
4840 /* make sure pthread_detach() isn't just a stub */
4841 #if HAVE_PTHREADS_D4
4842 status = pthread_detach( &t );
4844 status = pthread_detach( t );
4847 if( status ) return status;
4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4855 ol_cv_pthread_create=yes
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4860 ol_cv_pthread_create=no
4867 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4869 if test $ol_cv_pthread_create != no ; then
4870 ol_link_threads=posix
4874 # Pthread try link: -mt (ol_cv_pthread_mt)
4875 if test "$ol_link_threads" = no ; then
4877 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4878 echo "configure:4879: checking for pthread link with -mt" >&5
4879 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4891 #include <pthread.h>
4893 #define NULL (void*)0
4900 #if HAVE_PTHREADS_D4
4901 pthread_create(&t, pthread_attr_default, NULL, NULL);
4902 pthread_detach( &t );
4904 pthread_create(&t, NULL, NULL, NULL);
4905 pthread_detach( t );
4907 #ifdef HAVE_LINUX_THREADS
4908 pthread_kill_other_threads_np();
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4915 ol_cv_pthread_mt=yes
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4929 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
4931 if test $ol_cv_pthread_mt = yes ; then
4932 ol_link_pthreads="-mt"
4933 ol_link_threads=posix
4937 # Pthread try link: -kthread (ol_cv_pthread_kthread)
4938 if test "$ol_link_threads" = no ; then
4940 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
4941 echo "configure:4942: checking for pthread link with -kthread" >&5
4942 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4948 LIBS="-kthread $LIBS"
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4954 #include <pthread.h>
4956 #define NULL (void*)0
4963 #if HAVE_PTHREADS_D4
4964 pthread_create(&t, pthread_attr_default, NULL, NULL);
4965 pthread_detach( &t );
4967 pthread_create(&t, NULL, NULL, NULL);
4968 pthread_detach( t );
4970 #ifdef HAVE_LINUX_THREADS
4971 pthread_kill_other_threads_np();
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 ol_cv_pthread_kthread=yes
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 ol_cv_pthread_kthread=no
4992 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
4994 if test $ol_cv_pthread_kthread = yes ; then
4995 ol_link_pthreads="-kthread"
4996 ol_link_threads=posix
5000 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5001 if test "$ol_link_threads" = no ; then
5003 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5004 echo "configure:5005: checking for pthread link with -pthread" >&5
5005 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5011 LIBS="-pthread $LIBS"
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5017 #include <pthread.h>
5019 #define NULL (void*)0
5026 #if HAVE_PTHREADS_D4
5027 pthread_create(&t, pthread_attr_default, NULL, NULL);
5028 pthread_detach( &t );
5030 pthread_create(&t, NULL, NULL, NULL);
5031 pthread_detach( t );
5033 #ifdef HAVE_LINUX_THREADS
5034 pthread_kill_other_threads_np();
5039 if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 ol_cv_pthread_pthread=yes
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 ol_cv_pthread_pthread=no
5055 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5057 if test $ol_cv_pthread_pthread = yes ; then
5058 ol_link_pthreads="-pthread"
5059 ol_link_threads=posix
5063 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5064 if test "$ol_link_threads" = no ; then
5066 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5067 echo "configure:5068: checking for pthread link with -pthreads" >&5
5068 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5074 LIBS="-pthreads $LIBS"
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5080 #include <pthread.h>
5082 #define NULL (void*)0
5089 #if HAVE_PTHREADS_D4
5090 pthread_create(&t, pthread_attr_default, NULL, NULL);
5091 pthread_detach( &t );
5093 pthread_create(&t, NULL, NULL, NULL);
5094 pthread_detach( t );
5096 #ifdef HAVE_LINUX_THREADS
5097 pthread_kill_other_threads_np();
5102 if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 ol_cv_pthread_pthreads=yes
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 ol_cv_pthread_pthreads=no
5118 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5120 if test $ol_cv_pthread_pthreads = yes ; then
5121 ol_link_pthreads="-pthreads"
5122 ol_link_threads=posix
5126 # Pthread try link: -thread (ol_cv_pthread_thread)
5127 if test "$ol_link_threads" = no ; then
5129 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5130 echo "configure:5131: checking for pthread link with -thread" >&5
5131 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5137 LIBS="-thread $LIBS"
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5143 #include <pthread.h>
5145 #define NULL (void*)0
5152 #if HAVE_PTHREADS_D4
5153 pthread_create(&t, pthread_attr_default, NULL, NULL);
5154 pthread_detach( &t );
5156 pthread_create(&t, NULL, NULL, NULL);
5157 pthread_detach( t );
5159 #ifdef HAVE_LINUX_THREADS
5160 pthread_kill_other_threads_np();
5165 if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5167 ol_cv_pthread_thread=yes
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5172 ol_cv_pthread_thread=no
5181 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5183 if test $ol_cv_pthread_thread = yes ; then
5184 ol_link_pthreads="-thread"
5185 ol_link_threads=posix
5190 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5191 if test "$ol_link_threads" = no ; then
5192 # try -lpthread -lmach -lexc -lc_r
5193 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5194 echo "configure:5195: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5195 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5201 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5203 cat > conftest.$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5207 #include <pthread.h>
5209 #define NULL (void*)0
5216 #if HAVE_PTHREADS_D4
5217 pthread_create(&t, pthread_attr_default, NULL, NULL);
5218 pthread_detach( &t );
5220 pthread_create(&t, NULL, NULL, NULL);
5221 pthread_detach( t );
5223 #ifdef HAVE_LINUX_THREADS
5224 pthread_kill_other_threads_np();
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5231 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5236 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5245 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5247 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5248 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5249 ol_link_threads=posix
5253 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5254 if test "$ol_link_threads" = no ; then
5255 # try -lpthread -lmach -lexc
5256 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5257 echo "configure:5258: checking for pthread link with -lpthread -lmach -lexc" >&5
5258 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5264 LIBS="-lpthread -lmach -lexc $LIBS"
5266 cat > conftest.$ac_ext <<EOF
5267 #line 5268 "configure"
5268 #include "confdefs.h"
5270 #include <pthread.h>
5272 #define NULL (void*)0
5279 #if HAVE_PTHREADS_D4
5280 pthread_create(&t, pthread_attr_default, NULL, NULL);
5281 pthread_detach( &t );
5283 pthread_create(&t, NULL, NULL, NULL);
5284 pthread_detach( t );
5286 #ifdef HAVE_LINUX_THREADS
5287 pthread_kill_other_threads_np();
5292 if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5294 ol_cv_pthread_lpthread_lmach_lexc=yes
5296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5299 ol_cv_pthread_lpthread_lmach_lexc=no
5308 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5310 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5311 ol_link_pthreads="-lpthread -lmach -lexc"
5312 ol_link_threads=posix
5317 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5318 if test "$ol_link_threads" = no ; then
5319 # try -lpthread -Wl,-woff,85
5320 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5321 echo "configure:5322: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5322 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5328 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5334 #include <pthread.h>
5336 #define NULL (void*)0
5343 #if HAVE_PTHREADS_D4
5344 pthread_create(&t, pthread_attr_default, NULL, NULL);
5345 pthread_detach( &t );
5347 pthread_create(&t, NULL, NULL, NULL);
5348 pthread_detach( t );
5350 #ifdef HAVE_LINUX_THREADS
5351 pthread_kill_other_threads_np();
5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5358 ol_cv_pthread_lib_lpthread_woff=yes
5360 echo "configure: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5363 ol_cv_pthread_lib_lpthread_woff=no
5372 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5374 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5375 ol_link_pthreads="-lpthread -Wl,-woff,85"
5376 ol_link_threads=posix
5381 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5382 if test "$ol_link_threads" = no ; then
5384 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5385 echo "configure:5386: checking for pthread link with -lpthread" >&5
5386 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5392 LIBS="-lpthread $LIBS"
5394 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5398 #include <pthread.h>
5400 #define NULL (void*)0
5407 #if HAVE_PTHREADS_D4
5408 pthread_create(&t, pthread_attr_default, NULL, NULL);
5409 pthread_detach( &t );
5411 pthread_create(&t, NULL, NULL, NULL);
5412 pthread_detach( t );
5414 #ifdef HAVE_LINUX_THREADS
5415 pthread_kill_other_threads_np();
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422 ol_cv_pthread_lpthread=yes
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5427 ol_cv_pthread_lpthread=no
5436 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5438 if test $ol_cv_pthread_lpthread = yes ; then
5439 ol_link_pthreads="-lpthread"
5440 ol_link_threads=posix
5444 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5445 if test "$ol_link_threads" = no ; then
5447 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5448 echo "configure:5449: checking for pthread link with -lc_r" >&5
5449 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5461 #include <pthread.h>
5463 #define NULL (void*)0
5470 #if HAVE_PTHREADS_D4
5471 pthread_create(&t, pthread_attr_default, NULL, NULL);
5472 pthread_detach( &t );
5474 pthread_create(&t, NULL, NULL, NULL);
5475 pthread_detach( t );
5477 #ifdef HAVE_LINUX_THREADS
5478 pthread_kill_other_threads_np();
5483 if { (eval echo configure:5484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5485 ol_cv_pthread_lc_r=yes
5487 echo "configure: failed program was:" >&5
5488 cat conftest.$ac_ext >&5
5490 ol_cv_pthread_lc_r=no
5499 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5501 if test $ol_cv_pthread_lc_r = yes ; then
5502 ol_link_pthreads="-lc_r"
5503 ol_link_threads=posix
5508 # Pthread try link: -threads (ol_cv_pthread_threads)
5509 if test "$ol_link_threads" = no ; then
5511 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5512 echo "configure:5513: checking for pthread link with -threads" >&5
5513 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5519 LIBS="-threads $LIBS"
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5525 #include <pthread.h>
5527 #define NULL (void*)0
5534 #if HAVE_PTHREADS_D4
5535 pthread_create(&t, pthread_attr_default, NULL, NULL);
5536 pthread_detach( &t );
5538 pthread_create(&t, NULL, NULL, NULL);
5539 pthread_detach( t );
5541 #ifdef HAVE_LINUX_THREADS
5542 pthread_kill_other_threads_np();
5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5549 ol_cv_pthread_threads=yes
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5554 ol_cv_pthread_threads=no
5563 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5565 if test $ol_cv_pthread_threads = yes ; then
5566 ol_link_pthreads="-threads"
5567 ol_link_threads=posix
5572 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5573 if test "$ol_link_threads" = no ; then
5574 # try -lpthreads -lmach -lexc -lc_r
5575 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5576 echo "configure:5577: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5577 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5583 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5585 cat > conftest.$ac_ext <<EOF
5586 #line 5587 "configure"
5587 #include "confdefs.h"
5589 #include <pthread.h>
5591 #define NULL (void*)0
5598 #if HAVE_PTHREADS_D4
5599 pthread_create(&t, pthread_attr_default, NULL, NULL);
5600 pthread_detach( &t );
5602 pthread_create(&t, NULL, NULL, NULL);
5603 pthread_detach( t );
5605 #ifdef HAVE_LINUX_THREADS
5606 pthread_kill_other_threads_np();
5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5613 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5615 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5618 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5627 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5629 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5630 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5631 ol_link_threads=posix
5635 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5636 if test "$ol_link_threads" = no ; then
5637 # try -lpthreads -lmach -lexc
5638 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5639 echo "configure:5640: checking for pthread link with -lpthreads -lmach -lexc" >&5
5640 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5646 LIBS="-lpthreads -lmach -lexc $LIBS"
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5652 #include <pthread.h>
5654 #define NULL (void*)0
5661 #if HAVE_PTHREADS_D4
5662 pthread_create(&t, pthread_attr_default, NULL, NULL);
5663 pthread_detach( &t );
5665 pthread_create(&t, NULL, NULL, NULL);
5666 pthread_detach( t );
5668 #ifdef HAVE_LINUX_THREADS
5669 pthread_kill_other_threads_np();
5674 if { (eval echo configure:5675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5676 ol_cv_pthread_lpthreads_lmach_lexc=yes
5678 echo "configure: failed program was:" >&5
5679 cat conftest.$ac_ext >&5
5681 ol_cv_pthread_lpthreads_lmach_lexc=no
5690 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5692 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5693 ol_link_pthreads="-lpthreads -lmach -lexc"
5694 ol_link_threads=posix
5698 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5699 if test "$ol_link_threads" = no ; then
5700 # try -lpthreads -lexc
5701 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5702 echo "configure:5703: checking for pthread link with -lpthreads -lexc" >&5
5703 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5709 LIBS="-lpthreads -lexc $LIBS"
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5715 #include <pthread.h>
5717 #define NULL (void*)0
5724 #if HAVE_PTHREADS_D4
5725 pthread_create(&t, pthread_attr_default, NULL, NULL);
5726 pthread_detach( &t );
5728 pthread_create(&t, NULL, NULL, NULL);
5729 pthread_detach( t );
5731 #ifdef HAVE_LINUX_THREADS
5732 pthread_kill_other_threads_np();
5737 if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5739 ol_cv_pthread_lpthreads_lexc=yes
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5744 ol_cv_pthread_lpthreads_lexc=no
5753 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5755 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5756 ol_link_pthreads="-lpthreads -lexc"
5757 ol_link_threads=posix
5762 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5763 if test "$ol_link_threads" = no ; then
5765 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5766 echo "configure:5767: checking for pthread link with -lpthreads" >&5
5767 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5773 LIBS="-lpthreads $LIBS"
5775 cat > conftest.$ac_ext <<EOF
5776 #line 5777 "configure"
5777 #include "confdefs.h"
5779 #include <pthread.h>
5781 #define NULL (void*)0
5788 #if HAVE_PTHREADS_D4
5789 pthread_create(&t, pthread_attr_default, NULL, NULL);
5790 pthread_detach( &t );
5792 pthread_create(&t, NULL, NULL, NULL);
5793 pthread_detach( t );
5795 #ifdef HAVE_LINUX_THREADS
5796 pthread_kill_other_threads_np();
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5803 ol_cv_pthread_lib_lpthreads=yes
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5808 ol_cv_pthread_lib_lpthreads=no
5817 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5819 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5820 ol_link_pthreads="-lpthreads"
5821 ol_link_threads=posix
5826 if test $ol_link_threads != no ; then
5827 cat >> confdefs.h <<\EOF
5828 #define HAVE_PTHREADS 1
5832 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5834 save_CPPFLAGS="$CPPFLAGS"
5836 LIBS="$LTHREAD_LIBS $LIBS"
5838 for ac_func in sched_yield pthread_yield
5840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_func" >&5
5842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 /* System header to define __stub macros and hopefully few prototypes,
5849 which can conflict with char $ac_func(); below. */
5851 /* Override any gcc2 internal prototype to avoid an error. */
5852 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */
5858 /* The GNU C library defines this for functions which it implements
5859 to always fail with ENOSYS. Some functions are actually named
5860 something starting with __ and the normal name is an alias. */
5861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5869 if { (eval echo configure:5870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5871 eval "ac_cv_func_$ac_func=yes"
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5876 eval "ac_cv_func_$ac_func=no"
5881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5882 echo "$ac_t""yes" 1>&6
5883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5884 cat >> confdefs.h <<EOF
5885 #define $ac_tr_func 1
5889 echo "$ac_t""no" 1>&6
5894 if test $ac_cv_func_sched_yield = no -a \
5895 $ac_cv_func_pthread_yield = no ; then
5896 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5897 echo "configure:5898: checking for sched_yield in -lrt" >&5
5898 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5902 ac_save_LIBS="$LIBS"
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 /* We use char because int might match the return type of a gcc2
5909 builtin and then its argument prototype would still apply. */
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 eval "ac_cv_lib_$ac_lib_var=yes"
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5923 eval "ac_cv_lib_$ac_lib_var=no"
5926 LIBS="$ac_save_LIBS"
5929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5930 echo "$ac_t""yes" 1>&6
5931 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5932 cat >> confdefs.h <<\EOF
5933 #define HAVE_SCHED_YIELD 1
5936 ac_cv_func_sched_yield=yes
5938 echo "$ac_t""no" 1>&6
5939 ac_cv_func_sched_yield=no
5943 if test $ac_cv_func_sched_yield = no -a \
5944 $ac_cv_func_pthread_yield = no ; then
5945 for ac_func in thr_yield
5947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5948 echo "configure:5949: checking for $ac_func" >&5
5949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5955 /* System header to define __stub macros and hopefully few prototypes,
5956 which can conflict with char $ac_func(); below. */
5958 /* Override any gcc2 internal prototype to avoid an error. */
5959 /* We use char because int might match the return type of a gcc2
5960 builtin and then its argument prototype would still apply. */
5965 /* The GNU C library defines this for functions which it implements
5966 to always fail with ENOSYS. Some functions are actually named
5967 something starting with __ and the normal name is an alias. */
5968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5976 if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5978 eval "ac_cv_func_$ac_func=yes"
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5983 eval "ac_cv_func_$ac_func=no"
5988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5989 echo "$ac_t""yes" 1>&6
5990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5991 cat >> confdefs.h <<EOF
5992 #define $ac_tr_func 1
5996 echo "$ac_t""no" 1>&6
6001 if test $ac_cv_func_sched_yield = no -a \
6002 $ac_cv_func_pthread_yield = no -a \
6003 "$ac_cv_func_thr_yield" = no ; then
6004 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6007 for ac_func in pthread_kill
6009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6010 echo "configure:6011: checking for $ac_func" >&5
6011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6014 cat > conftest.$ac_ext <<EOF
6015 #line 6016 "configure"
6016 #include "confdefs.h"
6017 /* System header to define __stub macros and hopefully few prototypes,
6018 which can conflict with char $ac_func(); below. */
6020 /* Override any gcc2 internal prototype to avoid an error. */
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6027 /* The GNU C library defines this for functions which it implements
6028 to always fail with ENOSYS. Some functions are actually named
6029 something starting with __ and the normal name is an alias. */
6030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6038 if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6040 eval "ac_cv_func_$ac_func=yes"
6042 echo "configure: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6045 eval "ac_cv_func_$ac_func=no"
6050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6051 echo "$ac_t""yes" 1>&6
6052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6053 cat >> confdefs.h <<EOF
6054 #define $ac_tr_func 1
6058 echo "$ac_t""no" 1>&6
6063 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6064 echo "configure:6065: checking for pthread_detach with <pthread.h>" >&5
6065 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6066 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6073 #include <pthread.h>
6075 #define NULL (void*)0
6079 pthread_detach(NULL);
6082 if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6084 ol_cv_func_pthread_detach=yes
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6089 ol_cv_func_pthread_detach=no
6095 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6097 if test $ol_cv_func_pthread_detach = no ; then
6098 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6101 cat >> confdefs.h <<\EOF
6102 #define HAVE_PTHREAD_DETACH 1
6107 pthread_setconcurrency \
6108 pthread_getconcurrency \
6109 thr_setconcurrency \
6110 thr_getconcurrency \
6113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6114 echo "configure:6115: checking for $ac_func" >&5
6115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 /* System header to define __stub macros and hopefully few prototypes,
6122 which can conflict with char $ac_func(); below. */
6124 /* Override any gcc2 internal prototype to avoid an error. */
6125 /* We use char because int might match the return type of a gcc2
6126 builtin and then its argument prototype would still apply. */
6131 /* The GNU C library defines this for functions which it implements
6132 to always fail with ENOSYS. Some functions are actually named
6133 something starting with __ and the normal name is an alias. */
6134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6142 if { (eval echo configure:6143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6144 eval "ac_cv_func_$ac_func=yes"
6146 echo "configure: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6149 eval "ac_cv_func_$ac_func=no"
6154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6157 cat >> confdefs.h <<EOF
6158 #define $ac_tr_func 1
6162 echo "$ac_t""no" 1>&6
6168 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6169 echo "configure:6170: checking for pthread_kill_other_threads_np" >&5
6170 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6171 echo $ac_n "(cached) $ac_c" 1>&6
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6176 /* System header to define __stub macros and hopefully few prototypes,
6177 which can conflict with char pthread_kill_other_threads_np(); below. */
6179 /* Override any gcc2 internal prototype to avoid an error. */
6180 /* We use char because int might match the return type of a gcc2
6181 builtin and then its argument prototype would still apply. */
6182 char pthread_kill_other_threads_np();
6186 /* The GNU C library defines this for functions which it implements
6187 to always fail with ENOSYS. Some functions are actually named
6188 something starting with __ and the normal name is an alias. */
6189 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6192 pthread_kill_other_threads_np();
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6199 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6209 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6210 echo "$ac_t""yes" 1>&6
6213 echo "$ac_t""no" 1>&6
6216 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6217 echo "configure:6218: checking for LinuxThreads implementation" >&5
6218 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6224 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6229 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6230 echo "configure:6231: checking for LinuxThreads consistency" >&5
6231 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6235 if test $ol_cv_header_linux_threads = yes -a \
6236 $ol_cv_sys_linux_threads = yes; then
6237 ol_cv_linux_threads=yes
6238 elif test $ol_cv_header_linux_threads = no -a \
6239 $ol_cv_sys_linux_threads = no; then
6240 ol_cv_linux_threads=no
6242 ol_cv_linux_threads=error
6247 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6250 if test $ol_cv_linux_threads = error; then
6251 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6254 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6255 echo "configure:6256: checking if pthread_create() works" >&5
6256 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6260 if test "$cross_compiling" = yes; then
6261 ol_cv_pthread_create_works=yes
6263 cat > conftest.$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6267 #include <pthread.h>
6269 #define NULL (void*)0
6272 static void *task(p)
6275 return (void *) (p == NULL);
6278 int main(argc, argv)
6283 #if HAVE_PTHREADS_D4
6284 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6286 exit(pthread_create(&t, NULL, task, NULL));
6291 if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6293 ol_cv_pthread_create_works=yes
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6298 ol_cv_pthread_create_works=no
6305 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6307 if test $ol_cv_pthread_create_works = no ; then
6308 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6311 if test $ol_with_yielding_select = auto ; then
6312 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6313 echo "configure:6314: checking if select yields when using pthreads" >&5
6314 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6318 if test "$cross_compiling" = yes; then
6320 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6326 #include <sys/types.h>
6327 #include <sys/time.h>
6329 #include <pthread.h>
6331 #define NULL (void*) 0
6334 static int fildes[2];
6336 static void *task(p)
6348 FD_SET(fildes[0], &rfds);
6350 /* we're not interested in any fds */
6351 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6358 exit(0); /* if we exit here, the select blocked the whole process */
6361 int main(argc, argv)
6367 /* create a pipe to select */
6368 if(pipe(&fildes[0])) {
6373 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6374 (void) pthread_setconcurrency(2);
6376 #ifdef HAVE_THR_SETCONCURRENCY
6377 /* Set Solaris LWP concurrency to 2 */
6378 thr_setconcurrency(2);
6382 #if HAVE_PTHREADS_D4
6383 pthread_create(&t, pthread_attr_default, task, NULL);
6385 pthread_create(&t, NULL, task, NULL);
6388 #if HAVE_SCHED_YIELD
6389 sched_yield(); /* make sure task runs first */
6391 #ifdef HAVE_PTHREAD_YIELD
6392 pthread_yield(); /* make sure task runs first */
6399 if { (eval echo configure:6400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6401 ol_cv_pthread_select_yields=no
6403 echo "configure: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 ol_cv_pthread_select_yields=yes
6413 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6415 if test $ol_cv_pthread_select_yields = yes ; then
6416 ol_with_yielding_select=yes
6420 CPPFLAGS="$save_CPPFLAGS"
6423 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6427 if test $ol_with_threads = posix ; then
6428 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6432 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6433 -o $ol_with_threads = mach ; then
6435 for ac_hdr in mach/cthreads.h
6437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_hdr" >&5
6440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6443 cat > conftest.$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6449 { (eval echo configure:6450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6451 if test -z "$ac_err"; then
6453 eval "ac_cv_header_$ac_safe=yes"
6456 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6459 eval "ac_cv_header_$ac_safe=no"
6463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6466 cat >> confdefs.h <<EOF
6467 #define $ac_tr_hdr 1
6471 echo "$ac_t""no" 1>&6
6475 if test $ac_cv_header_mach_cthreads_h = yes ; then
6476 ol_with_threads=found
6478 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6479 echo "configure:6480: checking for cthread_fork" >&5
6480 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* System header to define __stub macros and hopefully few prototypes,
6487 which can conflict with char cthread_fork(); below. */
6489 /* Override any gcc2 internal prototype to avoid an error. */
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6492 char cthread_fork();
6496 /* The GNU C library defines this for functions which it implements
6497 to always fail with ENOSYS. Some functions are actually named
6498 something starting with __ and the normal name is an alias. */
6499 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 eval "ac_cv_func_cthread_fork=yes"
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6514 eval "ac_cv_func_cthread_fork=no"
6519 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6520 echo "$ac_t""yes" 1>&6
6523 echo "$ac_t""no" 1>&6
6527 if test $ol_link_threads = no ; then
6528 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6529 echo "configure:6530: checking for cthread_fork with -all_load" >&5
6530 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6535 LIBS="-all_load $LIBS"
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6539 #include <mach/cthreads.h>
6542 cthread_fork((void *)0, (void *)0);
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6548 ol_cv_cthread_all_load=yes
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 ol_cv_cthread_all_load=no
6560 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6562 if test $ol_cv_cthread_all_load = yes ; then
6563 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6564 ol_link_threads=mach
6568 if test $ol_link_threads != no ; then
6569 : check for cthread specific functionality here
6570 cat >> confdefs.h <<\EOF
6571 #define HAVE_MACH_CTHREADS 1
6575 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6579 if test $ol_with_threads = mach ; then
6580 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6584 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6585 -o $ol_with_threads = lwp ; then
6587 for ac_hdr in thread.h synch.h
6589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6591 echo "configure:6592: checking for $ac_hdr" >&5
6592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6601 { (eval echo configure:6602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6603 if test -z "$ac_err"; then
6605 eval "ac_cv_header_$ac_safe=yes"
6608 echo "configure: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6611 eval "ac_cv_header_$ac_safe=no"
6615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6616 echo "$ac_t""yes" 1>&6
6617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6618 cat >> confdefs.h <<EOF
6619 #define $ac_tr_hdr 1
6623 echo "$ac_t""no" 1>&6
6627 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6628 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6629 echo "configure:6630: checking for thr_create in -lthread" >&5
6630 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6634 ac_save_LIBS="$LIBS"
6635 LIBS="-lthread $LIBS"
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6648 if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 eval "ac_cv_lib_$ac_lib_var=yes"
6652 echo "configure: failed program was:" >&5
6653 cat conftest.$ac_ext >&5
6655 eval "ac_cv_lib_$ac_lib_var=no"
6658 LIBS="$ac_save_LIBS"
6661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6662 echo "$ac_t""yes" 1>&6
6665 echo "$ac_t""no" 1>&6
6670 if test $have_thr = yes ; then
6671 cat >> confdefs.h <<\EOF
6675 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6678 if test $ol_with_yielding_select = auto ; then
6679 ol_with_yielding_select=yes
6683 thr_setconcurrency \
6684 thr_getconcurrency \
6687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6688 echo "configure:6689: checking for $ac_func" >&5
6689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 /* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char $ac_func(); below. */
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6705 /* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6718 eval "ac_cv_func_$ac_func=yes"
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6723 eval "ac_cv_func_$ac_func=no"
6728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6731 cat >> confdefs.h <<EOF
6732 #define $ac_tr_func 1
6736 echo "$ac_t""no" 1>&6
6743 for ac_hdr in lwp/lwp.h
6745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6747 echo "configure:6748: checking for $ac_hdr" >&5
6748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6757 { (eval echo configure:6758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6759 if test -z "$ac_err"; then
6761 eval "ac_cv_header_$ac_safe=yes"
6764 echo "configure: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6767 eval "ac_cv_header_$ac_safe=no"
6771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6772 echo "$ac_t""yes" 1>&6
6773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6774 cat >> confdefs.h <<EOF
6775 #define $ac_tr_hdr 1
6779 echo "$ac_t""no" 1>&6
6783 if test $ac_cv_header_lwp_lwp_h = yes ; then
6784 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6785 echo "configure:6786: checking for lwp_create in -llwp" >&5
6786 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 ac_save_LIBS="$LIBS"
6792 cat > conftest.$ac_ext <<EOF
6793 #line 6794 "configure"
6794 #include "confdefs.h"
6795 /* Override any gcc2 internal prototype to avoid an error. */
6796 /* We use char because int might match the return type of a gcc2
6797 builtin and then its argument prototype would still apply. */
6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6806 eval "ac_cv_lib_$ac_lib_var=yes"
6808 echo "configure: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 eval "ac_cv_lib_$ac_lib_var=no"
6814 LIBS="$ac_save_LIBS"
6817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6818 echo "$ac_t""yes" 1>&6
6821 echo "$ac_t""no" 1>&6
6826 if test $have_lwp = yes ; then
6827 cat >> confdefs.h <<\EOF
6831 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6834 if test $ol_with_yielding_select = auto ; then
6835 ol_with_yielding_select=no
6841 if test $ol_with_yielding_select = yes ; then
6842 cat >> confdefs.h <<\EOF
6843 #define HAVE_YIELDING_SELECT 1
6848 if test $ol_with_threads = manual ; then
6851 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6853 for ac_hdr in pthread.h sched.h
6855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6857 echo "configure:6858: checking for $ac_hdr" >&5
6858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6867 { (eval echo configure:6868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6869 if test -z "$ac_err"; then
6871 eval "ac_cv_header_$ac_safe=yes"
6874 echo "configure: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6877 eval "ac_cv_header_$ac_safe=no"
6881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6884 cat >> confdefs.h <<EOF
6885 #define $ac_tr_hdr 1
6889 echo "$ac_t""no" 1>&6
6893 for ac_func in sched_yield pthread_yield
6895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6896 echo "configure:6897: checking for $ac_func" >&5
6897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6900 cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 /* System header to define __stub macros and hopefully few prototypes,
6904 which can conflict with char $ac_func(); below. */
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6913 /* The GNU C library defines this for functions which it implements
6914 to always fail with ENOSYS. Some functions are actually named
6915 something starting with __ and the normal name is an alias. */
6916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6924 if { (eval echo configure:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6926 eval "ac_cv_func_$ac_func=yes"
6928 echo "configure: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6931 eval "ac_cv_func_$ac_func=no"
6936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6937 echo "$ac_t""yes" 1>&6
6938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6939 cat >> confdefs.h <<EOF
6940 #define $ac_tr_func 1
6944 echo "$ac_t""no" 1>&6
6949 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6950 echo "configure:6951: checking for LinuxThreads pthread.h" >&5
6951 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6957 #include <pthread.h>
6959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6960 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6962 ol_cv_header_linux_threads=yes
6965 ol_cv_header_linux_threads=no
6972 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6973 if test $ol_cv_header_linux_threads = yes; then
6974 cat >> confdefs.h <<\EOF
6975 #define HAVE_LINUX_THREADS 1
6981 for ac_hdr in mach/cthreads.h
6983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6985 echo "configure:6986: checking for $ac_hdr" >&5
6986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6987 echo $ac_n "(cached) $ac_c" 1>&6
6989 cat > conftest.$ac_ext <<EOF
6990 #line 6991 "configure"
6991 #include "confdefs.h"
6994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6995 { (eval echo configure:6996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6997 if test -z "$ac_err"; then
6999 eval "ac_cv_header_$ac_safe=yes"
7002 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7005 eval "ac_cv_header_$ac_safe=no"
7009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7010 echo "$ac_t""yes" 1>&6
7011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7012 cat >> confdefs.h <<EOF
7013 #define $ac_tr_hdr 1
7017 echo "$ac_t""no" 1>&6
7021 for ac_hdr in lwp/lwp.h
7023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7025 echo "configure:7026: checking for $ac_hdr" >&5
7026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7035 { (eval echo configure:7036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7037 if test -z "$ac_err"; then
7039 eval "ac_cv_header_$ac_safe=yes"
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 eval "ac_cv_header_$ac_safe=no"
7049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7050 echo "$ac_t""yes" 1>&6
7051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7052 cat >> confdefs.h <<EOF
7053 #define $ac_tr_hdr 1
7057 echo "$ac_t""no" 1>&6
7061 for ac_hdr in thread.h synch.h
7063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7065 echo "configure:7066: checking for $ac_hdr" >&5
7066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7069 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7075 { (eval echo configure:7076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7077 if test -z "$ac_err"; then
7079 eval "ac_cv_header_$ac_safe=yes"
7082 echo "configure: failed program was:" >&5
7083 cat conftest.$ac_ext >&5
7085 eval "ac_cv_header_$ac_safe=no"
7089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7092 cat >> confdefs.h <<EOF
7093 #define $ac_tr_hdr 1
7097 echo "$ac_t""no" 1>&6
7103 if test $ol_link_threads != no ; then
7104 cat >> confdefs.h <<\EOF
7108 cat >> confdefs.h <<\EOF
7109 #define _REENTRANT 1
7112 cat >> confdefs.h <<\EOF
7113 #define THREAD_SAFE 1
7116 cat >> confdefs.h <<\EOF
7117 #define _THREAD_SAFE 1
7120 cat >> confdefs.h <<\EOF
7121 #define THREADSAFE 1
7124 cat >> confdefs.h <<\EOF
7125 #define _THREADSAFE 1
7129 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7130 echo "configure:7131: checking for thread specific errno" >&5
7131 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7143 if { (eval echo configure:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7145 ol_cv_errno_thread_specific=yes
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7150 ol_cv_errno_thread_specific=no
7156 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7158 if test $ol_cv_errno_thread_specific != yes ; then
7159 LIBS="$LTHREAD_LIBS $LIBS"
7165 if test $ol_link_threads = no ; then
7166 if test $ol_with_threads = yes ; then
7167 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7170 if test $ol_with_threads = auto ; then
7171 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7175 cat >> confdefs.h <<\EOF
7176 #define NO_THREADS 1
7182 if test $ol_link_threads != no ; then
7183 cat >> confdefs.h <<\EOF
7184 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7191 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7192 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7193 echo "configure:7194: checking for DB2 library" >&5
7194 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7198 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7199 echo "configure:7200: checking for db_open in -ldb" >&5
7200 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 ac_save_LIBS="$LIBS"
7206 cat > conftest.$ac_ext <<EOF
7207 #line 7208 "configure"
7208 #include "confdefs.h"
7209 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7218 if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7220 eval "ac_cv_lib_$ac_lib_var=yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 eval "ac_cv_lib_$ac_lib_var=no"
7228 LIBS="$ac_save_LIBS"
7231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7232 echo "$ac_t""yes" 1>&6
7235 echo "$ac_t""no" 1>&6
7243 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7249 echo "configure:7250: checking for $ac_hdr" >&5
7250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7251 echo $ac_n "(cached) $ac_c" 1>&6
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7259 { (eval echo configure:7260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7261 if test -z "$ac_err"; then
7263 eval "ac_cv_header_$ac_safe=yes"
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7269 eval "ac_cv_header_$ac_safe=no"
7273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7276 cat >> confdefs.h <<EOF
7277 #define $ac_tr_hdr 1
7281 echo "$ac_t""no" 1>&6
7285 if test $ac_cv_header_db_h = yes ; then
7286 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7287 echo "configure:7288: checking if db.h is DB2" >&5
7288 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7297 /* this check could be improved */
7298 # ifdef DB_VERSION_MAJOR
7299 # if DB_VERSION_MAJOR == 2
7305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7306 egrep "__db_version_2" >/dev/null 2>&1; then
7308 ol_cv_header_db2=yes
7317 echo "$ac_t""$ol_cv_header_db2" 1>&6
7324 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7325 echo "configure:7326: checking for Berkeley DB2" >&5
7326 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7330 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7331 ol_cv_berkeley_db2=no
7333 ol_cv_berkeley_db2=yes
7338 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7339 if test $ol_cv_berkeley_db2 = yes ; then
7340 cat >> confdefs.h <<\EOF
7341 #define HAVE_BERKELEY_DB2 1
7347 if test $ol_cv_berkeley_db2 = yes ; then
7349 ol_with_ldbm_api=db2
7351 if test $ol_with_ldbm_type = hash ; then
7352 cat >> confdefs.h <<\EOF
7353 #define LDBM_USE_DBHASH 1
7357 cat >> confdefs.h <<\EOF
7358 #define LDBM_USE_DBBTREE 1
7363 if test $ol_cv_lib_db2 != yes ; then
7364 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7370 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7374 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7375 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7376 echo "configure:7377: checking for Berkeley DB library" >&5
7377 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7378 echo $ac_n "(cached) $ac_c" 1>&6
7381 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7382 echo "configure:7383: checking for dbopen" >&5
7383 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7386 cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 /* System header to define __stub macros and hopefully few prototypes,
7390 which can conflict with char dbopen(); below. */
7392 /* Override any gcc2 internal prototype to avoid an error. */
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7399 /* The GNU C library defines this for functions which it implements
7400 to always fail with ENOSYS. Some functions are actually named
7401 something starting with __ and the normal name is an alias. */
7402 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7410 if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7412 eval "ac_cv_func_dbopen=yes"
7414 echo "configure: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7417 eval "ac_cv_func_dbopen=no"
7422 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7423 echo "$ac_t""yes" 1>&6
7426 echo "$ac_t""no" 1>&6
7428 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7429 echo "configure:7430: checking for dbopen in -ldb" >&5
7430 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7432 echo $ac_n "(cached) $ac_c" 1>&6
7434 ac_save_LIBS="$LIBS"
7436 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7439 /* Override any gcc2 internal prototype to avoid an error. */
7440 /* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7448 if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7450 eval "ac_cv_lib_$ac_lib_var=yes"
7452 echo "configure: failed program was:" >&5
7453 cat conftest.$ac_ext >&5
7455 eval "ac_cv_lib_$ac_lib_var=no"
7458 LIBS="$ac_save_LIBS"
7461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7462 echo "$ac_t""yes" 1>&6
7465 echo "$ac_t""no" 1>&6
7476 echo "$ac_t""$ol_cv_lib_db" 1>&6
7479 for ac_hdr in db_185.h
7481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7483 echo "configure:7484: checking for $ac_hdr" >&5
7484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7493 { (eval echo configure:7494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7495 if test -z "$ac_err"; then
7497 eval "ac_cv_header_$ac_safe=yes"
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7503 eval "ac_cv_header_$ac_safe=no"
7507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7508 echo "$ac_t""yes" 1>&6
7509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7510 cat >> confdefs.h <<EOF
7511 #define $ac_tr_hdr 1
7515 echo "$ac_t""no" 1>&6
7519 if test "$ol_cv_header_db2" = yes ; then
7521 ol_cv_header_db=$ac_cv_header_db_185_h
7523 ol_cv_header_db=$ac_cv_header_db_h
7528 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7529 echo "configure:7530: checking for Berkeley DB" >&5
7530 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7534 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7535 ol_cv_berkeley_db=no
7537 ol_cv_berkeley_db=yes
7542 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7543 if test $ol_cv_berkeley_db = yes ; then
7544 cat >> confdefs.h <<\EOF
7545 #define HAVE_BERKELEY_DB 1
7551 if test $ol_cv_berkeley_db = yes ; then
7555 if test $ol_with_ldbm_type = hash ; then
7556 cat >> confdefs.h <<\EOF
7557 #define LDBM_USE_DBHASH 1
7561 cat >> confdefs.h <<\EOF
7562 #define LDBM_USE_DBBTREE 1
7567 if test $ol_cv_lib_db != yes ; then
7568 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7573 if test $ol_with_ldbm_api = manual ; then
7576 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7578 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7582 echo "configure:7583: checking for $ac_hdr" >&5
7583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7592 { (eval echo configure:7593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7594 if test -z "$ac_err"; then
7596 eval "ac_cv_header_$ac_safe=yes"
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7602 eval "ac_cv_header_$ac_safe=no"
7606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7607 echo "$ac_t""yes" 1>&6
7608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7609 cat >> confdefs.h <<EOF
7610 #define $ac_tr_hdr 1
7614 echo "$ac_t""no" 1>&6
7620 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7621 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7622 ol_with_ldbm_api=none
7625 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7626 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7627 echo "configure:7628: checking for MDBM library" >&5
7628 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7632 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7633 echo "configure:7634: checking for mdbm_set_chain" >&5
7634 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6
7637 cat > conftest.$ac_ext <<EOF
7638 #line 7639 "configure"
7639 #include "confdefs.h"
7640 /* System header to define __stub macros and hopefully few prototypes,
7641 which can conflict with char mdbm_set_chain(); below. */
7643 /* Override any gcc2 internal prototype to avoid an error. */
7644 /* We use char because int might match the return type of a gcc2
7645 builtin and then its argument prototype would still apply. */
7646 char mdbm_set_chain();
7650 /* The GNU C library defines this for functions which it implements
7651 to always fail with ENOSYS. Some functions are actually named
7652 something starting with __ and the normal name is an alias. */
7653 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7661 if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7663 eval "ac_cv_func_mdbm_set_chain=yes"
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7668 eval "ac_cv_func_mdbm_set_chain=no"
7673 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7674 echo "$ac_t""yes" 1>&6
7677 echo "$ac_t""no" 1>&6
7679 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7680 echo "configure:7681: checking for mdbm_set_chain in -lmdbm" >&5
7681 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7685 ac_save_LIBS="$LIBS"
7687 cat > conftest.$ac_ext <<EOF
7688 #line 7689 "configure"
7689 #include "confdefs.h"
7690 /* Override any gcc2 internal prototype to avoid an error. */
7691 /* We use char because int might match the return type of a gcc2
7692 builtin and then its argument prototype would still apply. */
7693 char mdbm_set_chain();
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7701 eval "ac_cv_lib_$ac_lib_var=yes"
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7706 eval "ac_cv_lib_$ac_lib_var=no"
7709 LIBS="$ac_save_LIBS"
7712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7713 echo "$ac_t""yes" 1>&6
7714 ol_cv_lib_mdbm=-lmdbm
7716 echo "$ac_t""no" 1>&6
7727 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7730 for ac_hdr in mdbm.h
7732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7734 echo "configure:7735: checking for $ac_hdr" >&5
7735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7738 cat > conftest.$ac_ext <<EOF
7739 #line 7740 "configure"
7740 #include "confdefs.h"
7743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7744 { (eval echo configure:7745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7746 if test -z "$ac_err"; then
7748 eval "ac_cv_header_$ac_safe=yes"
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7754 eval "ac_cv_header_$ac_safe=no"
7758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7759 echo "$ac_t""yes" 1>&6
7760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7761 cat >> confdefs.h <<EOF
7762 #define $ac_tr_hdr 1
7766 echo "$ac_t""no" 1>&6
7770 echo $ac_n "checking for db""... $ac_c" 1>&6
7771 echo "configure:7772: checking for db" >&5
7772 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7773 echo $ac_n "(cached) $ac_c" 1>&6
7776 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7784 echo "$ac_t""$ol_cv_mdbm" 1>&6
7785 if test $ol_cv_mdbm = yes ; then
7786 cat >> confdefs.h <<\EOF
7793 if test $ol_cv_mdbm = yes ; then
7795 ol_with_ldbm_api=mdbm
7796 if test $ol_cv_lib_mdbm != yes ; then
7797 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7802 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7803 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7804 echo "configure:7805: checking for GDBM library" >&5
7805 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7809 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7810 echo "configure:7811: checking for gdbm_open" >&5
7811 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7814 cat > conftest.$ac_ext <<EOF
7815 #line 7816 "configure"
7816 #include "confdefs.h"
7817 /* System header to define __stub macros and hopefully few prototypes,
7818 which can conflict with char gdbm_open(); below. */
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. */
7827 /* The GNU C library defines this for functions which it implements
7828 to always fail with ENOSYS. Some functions are actually named
7829 something starting with __ and the normal name is an alias. */
7830 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7838 if { (eval echo configure:7839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7840 eval "ac_cv_func_gdbm_open=yes"
7842 echo "configure: failed program was:" >&5
7843 cat conftest.$ac_ext >&5
7845 eval "ac_cv_func_gdbm_open=no"
7850 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7851 echo "$ac_t""yes" 1>&6
7854 echo "$ac_t""no" 1>&6
7856 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7857 echo "configure:7858: checking for gdbm_open in -lgdbm" >&5
7858 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7862 ac_save_LIBS="$LIBS"
7864 cat > conftest.$ac_ext <<EOF
7865 #line 7866 "configure"
7866 #include "confdefs.h"
7867 /* Override any gcc2 internal prototype to avoid an error. */
7868 /* We use char because int might match the return type of a gcc2
7869 builtin and then its argument prototype would still apply. */
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7878 eval "ac_cv_lib_$ac_lib_var=yes"
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7883 eval "ac_cv_lib_$ac_lib_var=no"
7886 LIBS="$ac_save_LIBS"
7889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7890 echo "$ac_t""yes" 1>&6
7891 ol_cv_lib_gdbm=-lgdbm
7893 echo "$ac_t""no" 1>&6
7904 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7907 for ac_hdr in gdbm.h
7909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7911 echo "configure:7912: checking for $ac_hdr" >&5
7912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7913 echo $ac_n "(cached) $ac_c" 1>&6
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7921 { (eval echo configure:7922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7923 if test -z "$ac_err"; then
7925 eval "ac_cv_header_$ac_safe=yes"
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7931 eval "ac_cv_header_$ac_safe=no"
7935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7938 cat >> confdefs.h <<EOF
7939 #define $ac_tr_hdr 1
7943 echo "$ac_t""no" 1>&6
7947 echo $ac_n "checking for db""... $ac_c" 1>&6
7948 echo "configure:7949: checking for db" >&5
7949 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
7950 echo $ac_n "(cached) $ac_c" 1>&6
7953 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
7961 echo "$ac_t""$ol_cv_gdbm" 1>&6
7962 if test $ol_cv_gdbm = yes ; then
7963 cat >> confdefs.h <<\EOF
7970 if test $ol_cv_gdbm = yes ; then
7972 ol_with_ldbm_api=gdbm
7974 if test $ol_cv_lib_gdbm != yes ; then
7975 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
7980 if test $ol_with_ldbm_api = auto ; then
7981 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
7982 elif test $ol_with_ldbm_api = ndbm ; then
7983 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
7984 echo "configure:7985: checking for NDBM library" >&5
7985 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
7986 echo $ac_n "(cached) $ac_c" 1>&6
7989 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
7990 echo "configure:7991: checking for dbm_open" >&5
7991 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7994 cat > conftest.$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
7997 /* System header to define __stub macros and hopefully few prototypes,
7998 which can conflict with char dbm_open(); below. */
8000 /* Override any gcc2 internal prototype to avoid an error. */
8001 /* We use char because int might match the return type of a gcc2
8002 builtin and then its argument prototype would still apply. */
8007 /* The GNU C library defines this for functions which it implements
8008 to always fail with ENOSYS. Some functions are actually named
8009 something starting with __ and the normal name is an alias. */
8010 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8018 if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8020 eval "ac_cv_func_dbm_open=yes"
8022 echo "configure: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8025 eval "ac_cv_func_dbm_open=no"
8030 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8031 echo "$ac_t""yes" 1>&6
8034 echo "$ac_t""no" 1>&6
8036 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8037 echo "configure:8038: checking for dbm_open in -lndbm" >&5
8038 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8042 ac_save_LIBS="$LIBS"
8044 cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047 /* Override any gcc2 internal prototype to avoid an error. */
8048 /* We use char because int might match the return type of a gcc2
8049 builtin and then its argument prototype would still apply. */
8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8058 eval "ac_cv_lib_$ac_lib_var=yes"
8060 echo "configure: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
8063 eval "ac_cv_lib_$ac_lib_var=no"
8066 LIBS="$ac_save_LIBS"
8069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8070 echo "$ac_t""yes" 1>&6
8071 ol_cv_lib_ndbm=-lndbm
8073 echo "$ac_t""no" 1>&6
8075 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8076 echo "configure:8077: checking for dbm_open in -ldbm" >&5
8077 ac_lib_var=`echo dbm'_'dbm_open | 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"
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 ol_cv_lib_ndbm=-ldbm
8112 echo "$ac_t""no" 1>&6
8125 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8128 for ac_hdr in ndbm.h
8130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8132 echo "configure:8133: checking for $ac_hdr" >&5
8133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8134 echo $ac_n "(cached) $ac_c" 1>&6
8136 cat > conftest.$ac_ext <<EOF
8137 #line 8138 "configure"
8138 #include "confdefs.h"
8141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8142 { (eval echo configure:8143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8144 if test -z "$ac_err"; then
8146 eval "ac_cv_header_$ac_safe=yes"
8149 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8152 eval "ac_cv_header_$ac_safe=no"
8156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8157 echo "$ac_t""yes" 1>&6
8158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8159 cat >> confdefs.h <<EOF
8160 #define $ac_tr_hdr 1
8164 echo "$ac_t""no" 1>&6
8168 echo $ac_n "checking for db""... $ac_c" 1>&6
8169 echo "configure:8170: checking for db" >&5
8170 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8174 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8182 echo "$ac_t""$ol_cv_ndbm" 1>&6
8183 if test $ol_cv_ndbm = yes ; then
8184 cat >> confdefs.h <<\EOF
8191 if test $ol_cv_ndbm = yes ; then
8193 ol_with_ldbm_api=ndbm
8195 if test $ol_cv_lib_ndbm != yes ; then
8196 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8201 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8202 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8203 if test $ol_enable_ldbm = yes ; then
8204 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8207 echo "configure: warning: disabling LDBM" 1>&2
8211 if test $ol_enable_wrappers != no ; then
8212 for ac_hdr in tcpd.h
8214 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8216 echo "configure:8217: checking for $ac_hdr" >&5
8217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8218 echo $ac_n "(cached) $ac_c" 1>&6
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8226 { (eval echo configure:8227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8228 if test -z "$ac_err"; then
8230 eval "ac_cv_header_$ac_safe=yes"
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8236 eval "ac_cv_header_$ac_safe=no"
8240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8241 echo "$ac_t""yes" 1>&6
8242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8243 cat >> confdefs.h <<EOF
8244 #define $ac_tr_hdr 1
8248 echo "$ac_t""no" 1>&6
8253 if test $ac_cv_header_tcpd_h != yes ; then
8256 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8257 echo "configure:8258: checking for main in -lwrap" >&5
8258 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8262 ac_save_LIBS="$LIBS"
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8272 if { (eval echo configure:8273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8274 eval "ac_cv_lib_$ac_lib_var=yes"
8276 echo "configure: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 eval "ac_cv_lib_$ac_lib_var=no"
8282 LIBS="$ac_save_LIBS"
8285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8286 echo "$ac_t""yes" 1>&6
8289 echo "$ac_t""no" 1>&6
8295 if test $have_wrappers = yes ; then
8296 cat >> confdefs.h <<\EOF
8300 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8302 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8303 echo "configure:8304: checking for main in -lnsl" >&5
8304 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8306 echo $ac_n "(cached) $ac_c" 1>&6
8308 ac_save_LIBS="$LIBS"
8310 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8318 if { (eval echo configure:8319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8320 eval "ac_cv_lib_$ac_lib_var=yes"
8322 echo "configure: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8325 eval "ac_cv_lib_$ac_lib_var=no"
8328 LIBS="$ac_save_LIBS"
8331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8332 echo "$ac_t""yes" 1>&6
8333 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8335 cat >> confdefs.h <<EOF
8336 #define $ac_tr_lib 1
8342 echo "$ac_t""no" 1>&6
8346 echo "configure: warning: could not find -lwrap" 1>&2
8347 if test $ol_enable_wrappers = yes ; then
8348 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8351 echo "configure: warning: disabling wrappers support" 1>&2
8352 ol_enable_wrappers=no
8356 if test $ol_enable_syslog != no ; then
8357 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8358 echo "configure:8359: checking for openlog" >&5
8359 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 /* System header to define __stub macros and hopefully few prototypes,
8366 which can conflict with char openlog(); below. */
8368 /* Override any gcc2 internal prototype to avoid an error. */
8369 /* We use char because int might match the return type of a gcc2
8370 builtin and then its argument prototype would still apply. */
8375 /* The GNU C library defines this for functions which it implements
8376 to always fail with ENOSYS. Some functions are actually named
8377 something starting with __ and the normal name is an alias. */
8378 #if defined (__stub_openlog) || defined (__stub___openlog)
8386 if { (eval echo configure:8387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8388 eval "ac_cv_func_openlog=yes"
8390 echo "configure: failed program was:" >&5
8391 cat conftest.$ac_ext >&5
8393 eval "ac_cv_func_openlog=no"
8398 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8399 echo "$ac_t""yes" 1>&6
8402 echo "$ac_t""no" 1>&6
8405 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8406 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8408 ol_enable_syslog=$ac_cv_func_openlog
8411 if test $ol_enable_dmalloc != no ; then
8412 for ac_hdr in dmalloc.h
8414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8416 echo "configure:8417: checking for $ac_hdr" >&5
8417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8428 if test -z "$ac_err"; then
8430 eval "ac_cv_header_$ac_safe=yes"
8433 echo "configure: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8436 eval "ac_cv_header_$ac_safe=no"
8440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8441 echo "$ac_t""yes" 1>&6
8442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8443 cat >> confdefs.h <<EOF
8444 #define $ac_tr_hdr 1
8448 echo "$ac_t""no" 1>&6
8452 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8453 echo "configure:8454: checking for dmalloc_shutdown in -ldmalloc" >&5
8454 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8458 ac_save_LIBS="$LIBS"
8459 LIBS="-ldmalloc $LIBS"
8460 cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 /* Override any gcc2 internal prototype to avoid an error. */
8464 /* We use char because int might match the return type of a gcc2
8465 builtin and then its argument prototype would still apply. */
8466 char dmalloc_shutdown();
8472 if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8474 eval "ac_cv_lib_$ac_lib_var=yes"
8476 echo "configure: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8479 eval "ac_cv_lib_$ac_lib_var=no"
8482 LIBS="$ac_save_LIBS"
8485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8486 echo "$ac_t""yes" 1>&6
8487 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8488 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8489 cat >> confdefs.h <<EOF
8490 #define $ac_tr_lib 1
8493 LIBS="-ldmalloc $LIBS"
8496 echo "$ac_t""no" 1>&6
8501 if test $ol_enable_tcl != no ; then
8504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8506 echo "configure:8507: checking for $ac_hdr" >&5
8507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8508 echo $ac_n "(cached) $ac_c" 1>&6
8510 cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure"
8512 #include "confdefs.h"
8515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8516 { (eval echo configure:8517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8518 if test -z "$ac_err"; then
8520 eval "ac_cv_header_$ac_safe=yes"
8523 echo "configure: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8526 eval "ac_cv_header_$ac_safe=no"
8530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8531 echo "$ac_t""yes" 1>&6
8532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8533 cat >> confdefs.h <<EOF
8534 #define $ac_tr_hdr 1
8538 echo "$ac_t""no" 1>&6
8543 if test $ac_cv_header_tcl_h != yes ; then
8546 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8547 echo "configure:8548: checking for main in -ltcl" >&5
8548 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8552 ac_save_LIBS="$LIBS"
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8562 if { (eval echo configure:8563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8564 eval "ac_cv_lib_$ac_lib_var=yes"
8566 echo "configure: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8569 eval "ac_cv_lib_$ac_lib_var=no"
8572 LIBS="$ac_save_LIBS"
8575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8576 echo "$ac_t""yes" 1>&6
8577 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8579 echo "$ac_t""no" 1>&6
8584 if test $have_tcl != yes; then
8585 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8586 echo "configure:8587: checking for main in -ltcl7.6" >&5
8587 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8591 ac_save_LIBS="$LIBS"
8592 LIBS="-ltcl7.6 $LIBS"
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8603 eval "ac_cv_lib_$ac_lib_var=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_lib_$ac_lib_var=no"
8611 LIBS="$ac_save_LIBS"
8614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8616 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8618 echo "$ac_t""no" 1>&6
8624 if test $have_tcl != yes; then
8625 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8626 echo "configure:8627: checking for main in -ltcl8.0" >&5
8627 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8631 ac_save_LIBS="$LIBS"
8632 LIBS="-ltcl8.0 $LIBS"
8633 cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure"
8635 #include "confdefs.h"
8641 if { (eval echo configure:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8643 eval "ac_cv_lib_$ac_lib_var=yes"
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8648 eval "ac_cv_lib_$ac_lib_var=no"
8651 LIBS="$ac_save_LIBS"
8654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8655 echo "$ac_t""yes" 1>&6
8656 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8658 echo "$ac_t""no" 1>&6
8665 if test $have_tcl != yes ; then
8666 echo "configure: warning: could not find -ltcl" 1>&2
8667 if test $ol_enable_tcl = yes ; then
8668 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8675 # ud needs termcap (should insert check here)
8677 for ac_hdr in termcap.h ncurses.h
8679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8681 echo "configure:8682: checking for $ac_hdr" >&5
8682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8691 { (eval echo configure:8692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8693 if test -z "$ac_err"; then
8695 eval "ac_cv_header_$ac_safe=yes"
8698 echo "configure: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8701 eval "ac_cv_header_$ac_safe=no"
8705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8706 echo "$ac_t""yes" 1>&6
8707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8708 cat >> confdefs.h <<EOF
8709 #define $ac_tr_hdr 1
8713 echo "$ac_t""no" 1>&6
8718 if test $ol_link_termcap = no ; then
8719 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8720 echo "configure:8721: checking for tputs in -ltermcap" >&5
8721 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8725 ac_save_LIBS="$LIBS"
8726 LIBS="-ltermcap $LIBS"
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8730 /* Override any gcc2 internal prototype to avoid an error. */
8731 /* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8739 if { (eval echo configure:8740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8741 eval "ac_cv_lib_$ac_lib_var=yes"
8743 echo "configure: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8746 eval "ac_cv_lib_$ac_lib_var=no"
8749 LIBS="$ac_save_LIBS"
8752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8753 echo "$ac_t""yes" 1>&6
8756 echo "$ac_t""no" 1>&6
8760 if test $have_termcap = yes ; then
8761 cat >> confdefs.h <<\EOF
8762 #define HAVE_TERMCAP 1
8766 TERMCAP_LIBS=-ltermcap
8770 if test $ol_link_termcap = no ; then
8771 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8772 echo "configure:8773: checking for initscr in -lncurses" >&5
8773 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8775 echo $ac_n "(cached) $ac_c" 1>&6
8777 ac_save_LIBS="$LIBS"
8778 LIBS="-lncurses $LIBS"
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8791 if { (eval echo configure:8792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8793 eval "ac_cv_lib_$ac_lib_var=yes"
8795 echo "configure: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8798 eval "ac_cv_lib_$ac_lib_var=no"
8801 LIBS="$ac_save_LIBS"
8804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8805 echo "$ac_t""yes" 1>&6
8808 echo "$ac_t""no" 1>&6
8812 if test $have_ncurses = yes ; then
8813 cat >> confdefs.h <<\EOF
8814 #define HAVE_NCURSES 1
8818 TERMCAP_LIBS=-lncurses
8822 if test $ol_link_termcap = no ; then
8823 cat >> confdefs.h <<\EOF
8824 #define NO_TERMCAP 1
8831 if test $ol_with_readline != no ; then
8832 for ac_hdr in readline/readline.h readline/history.h
8834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8836 echo "configure:8837: checking for $ac_hdr" >&5
8837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8838 echo $ac_n "(cached) $ac_c" 1>&6
8840 cat > conftest.$ac_ext <<EOF
8841 #line 8842 "configure"
8842 #include "confdefs.h"
8845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8846 { (eval echo configure:8847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8848 if test -z "$ac_err"; then
8850 eval "ac_cv_header_$ac_safe=yes"
8853 echo "configure: failed program was:" >&5
8854 cat conftest.$ac_ext >&5
8856 eval "ac_cv_header_$ac_safe=no"
8860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8861 echo "$ac_t""yes" 1>&6
8862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8863 cat >> confdefs.h <<EOF
8864 #define $ac_tr_hdr 1
8868 echo "$ac_t""no" 1>&6
8873 if test $ac_cv_header_readline_readline_h = yes ; then
8875 LIBS="$TERMCAP_LIBS $LIBS"
8876 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8877 echo "configure:8878: checking for readline in -lreadline" >&5
8878 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8880 echo $ac_n "(cached) $ac_c" 1>&6
8882 ac_save_LIBS="$LIBS"
8883 LIBS="-lreadline $LIBS"
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 /* Override any gcc2 internal prototype to avoid an error. */
8888 /* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8896 if { (eval echo configure:8897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8898 eval "ac_cv_lib_$ac_lib_var=yes"
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8903 eval "ac_cv_lib_$ac_lib_var=no"
8906 LIBS="$ac_save_LIBS"
8909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8910 echo "$ac_t""yes" 1>&6
8913 echo "$ac_t""no" 1>&6
8919 if test $have_readline = yes ; then
8920 ol_with_readline=found
8921 ol_link_readline=yes
8923 READLINE_LIBS="-lreadline"
8928 if test $ol_link_readline = yes ; then
8929 cat >> confdefs.h <<\EOF
8930 #define HAVE_READLINE 1
8936 # FreeBSD (and others) have crypt(3) in -lcrypt
8937 if test $ol_enable_crypt != no ; then
8938 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8939 echo "configure:8940: checking for crypt" >&5
8940 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 /* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char crypt(); below. */
8949 /* Override any gcc2 internal prototype to avoid an error. */
8950 /* We use char because int might match the return type of a gcc2
8951 builtin and then its argument prototype would still apply. */
8956 /* The GNU C library defines this for functions which it implements
8957 to always fail with ENOSYS. Some functions are actually named
8958 something starting with __ and the normal name is an alias. */
8959 #if defined (__stub_crypt) || defined (__stub___crypt)
8967 if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8969 eval "ac_cv_func_crypt=yes"
8971 echo "configure: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8974 eval "ac_cv_func_crypt=no"
8979 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8980 echo "$ac_t""yes" 1>&6
8983 echo "$ac_t""no" 1>&6
8985 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8986 echo "configure:8987: checking for crypt in -lcrypt" >&5
8987 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
8991 ac_save_LIBS="$LIBS"
8992 LIBS="-lcrypt $LIBS"
8993 cat > conftest.$ac_ext <<EOF
8994 #line 8995 "configure"
8995 #include "confdefs.h"
8996 /* Override any gcc2 internal prototype to avoid an error. */
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
9005 if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9007 eval "ac_cv_lib_$ac_lib_var=yes"
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9012 eval "ac_cv_lib_$ac_lib_var=no"
9015 LIBS="$ac_save_LIBS"
9018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9019 echo "$ac_t""yes" 1>&6
9020 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9023 echo "$ac_t""no" 1>&6
9030 if test $have_crypt = yes ; then
9031 cat >> confdefs.h <<\EOF
9032 #define HAVE_CRYPT 1
9036 echo "configure: warning: could not find crypt" 1>&2
9037 if test $ol_enable_crypt = yes ; then
9038 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9041 echo "configure: warning: disabling crypt support" 1>&2
9046 # FreeBSD (and others) have setproctitle(3) in -lutil
9047 if test $ol_enable_proctitle != no ; then
9048 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9049 echo "configure:9050: checking for setproctitle" >&5
9050 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9053 cat > conftest.$ac_ext <<EOF
9054 #line 9055 "configure"
9055 #include "confdefs.h"
9056 /* System header to define __stub macros and hopefully few prototypes,
9057 which can conflict with char setproctitle(); below. */
9059 /* Override any gcc2 internal prototype to avoid an error. */
9060 /* We use char because int might match the return type of a gcc2
9061 builtin and then its argument prototype would still apply. */
9062 char setproctitle();
9066 /* The GNU C library defines this for functions which it implements
9067 to always fail with ENOSYS. Some functions are actually named
9068 something starting with __ and the normal name is an alias. */
9069 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9077 if { (eval echo configure:9078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9079 eval "ac_cv_func_setproctitle=yes"
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9084 eval "ac_cv_func_setproctitle=no"
9089 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9090 echo "$ac_t""yes" 1>&6
9091 have_setproctitle=yes
9093 echo "$ac_t""no" 1>&6
9095 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9096 echo "configure:9097: checking for setproctitle in -lutil" >&5
9097 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9101 ac_save_LIBS="$LIBS"
9103 cat > conftest.$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9106 /* Override any gcc2 internal prototype to avoid an error. */
9107 /* We use char because int might match the return type of a gcc2
9108 builtin and then its argument prototype would still apply. */
9109 char setproctitle();
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9117 eval "ac_cv_lib_$ac_lib_var=yes"
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 eval "ac_cv_lib_$ac_lib_var=no"
9125 LIBS="$ac_save_LIBS"
9128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9129 echo "$ac_t""yes" 1>&6
9130 have_setproctitle=yes
9131 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9133 echo "$ac_t""no" 1>&6
9134 have_setproctitle=no
9135 LIBOBJS="$LIBOBJS setproctitle.o"
9141 if test $have_setproctitle = yes ; then
9142 cat >> confdefs.h <<\EOF
9143 #define HAVE_SETPROCTITLE 1
9150 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9151 echo "configure:9152: checking for EBCDIC" >&5
9152 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9153 echo $ac_n "(cached) $ac_c" 1>&6
9156 cat > conftest.$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9161 #include <__ASCII__/generate_error.h>
9165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9166 { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9168 if test -z "$ac_err"; then
9170 ol_cv_cpp_ebcdic=yes
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9181 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9182 if test $ol_cv_cpp_ebcdic = yes ; then
9183 cat >> confdefs.h <<\EOF
9184 #define HAVE_EBCDIC 1
9189 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9190 echo "configure:9191: checking for ANSI C header files" >&5
9191 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9192 echo $ac_n "(cached) $ac_c" 1>&6
9194 cat > conftest.$ac_ext <<EOF
9195 #line 9196 "configure"
9196 #include "confdefs.h"
9202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9203 { (eval echo configure:9204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9205 if test -z "$ac_err"; then
9207 ol_cv_header_stdc=yes
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 ol_cv_header_stdc=no
9217 if test $ol_cv_header_stdc = yes; then
9218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9219 cat > conftest.$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9225 egrep "memchr" >/dev/null 2>&1; then
9229 ol_cv_header_stdc=no
9235 if test $ol_cv_header_stdc = yes; then
9236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9237 cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure"
9239 #include "confdefs.h"
9242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9243 egrep "free" >/dev/null 2>&1; then
9247 ol_cv_header_stdc=no
9253 if test $ol_cv_header_stdc = yes; then
9254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9255 if test "$cross_compiling" = yes; then
9258 cat > conftest.$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9263 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9264 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9266 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9267 || ('j' <= (c) && (c) <= 'r') \
9268 || ('s' <= (c) && (c) <= 'z'))
9269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9272 int main () { int i; for (i = 0; i < 256; i++)
9273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9284 ol_cv_header_stdc=no
9292 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9293 if test $ol_cv_header_stdc = yes; then
9294 cat >> confdefs.h <<\EOF
9295 #define STDC_HEADERS 1
9299 ac_cv_header_stdc=disable
9302 if test $ol_cv_header_stdc != yes; then
9303 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9307 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9310 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9311 echo "configure:9312: checking for $ac_hdr that defines DIR" >&5
9312 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9313 echo $ac_n "(cached) $ac_c" 1>&6
9315 cat > conftest.$ac_ext <<EOF
9316 #line 9317 "configure"
9317 #include "confdefs.h"
9318 #include <sys/types.h>
9324 if { (eval echo configure:9325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9326 eval "ac_cv_header_dirent_$ac_safe=yes"
9328 echo "configure: failed program was:" >&5
9329 cat conftest.$ac_ext >&5
9331 eval "ac_cv_header_dirent_$ac_safe=no"
9335 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9336 echo "$ac_t""yes" 1>&6
9337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9338 cat >> confdefs.h <<EOF
9339 #define $ac_tr_hdr 1
9341 ac_header_dirent=$ac_hdr; break
9343 echo "$ac_t""no" 1>&6
9346 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9347 if test $ac_header_dirent = dirent.h; then
9348 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9349 echo "configure:9350: checking for opendir in -ldir" >&5
9350 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9352 echo $ac_n "(cached) $ac_c" 1>&6
9354 ac_save_LIBS="$LIBS"
9356 cat > conftest.$ac_ext <<EOF
9357 #line 9358 "configure"
9358 #include "confdefs.h"
9359 /* Override any gcc2 internal prototype to avoid an error. */
9360 /* We use char because int might match the return type of a gcc2
9361 builtin and then its argument prototype would still apply. */
9368 if { (eval echo configure:9369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9370 eval "ac_cv_lib_$ac_lib_var=yes"
9372 echo "configure: failed program was:" >&5
9373 cat conftest.$ac_ext >&5
9375 eval "ac_cv_lib_$ac_lib_var=no"
9378 LIBS="$ac_save_LIBS"
9381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9382 echo "$ac_t""yes" 1>&6
9385 echo "$ac_t""no" 1>&6
9389 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9390 echo "configure:9391: checking for opendir in -lx" >&5
9391 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9393 echo $ac_n "(cached) $ac_c" 1>&6
9395 ac_save_LIBS="$LIBS"
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 /* Override any gcc2 internal prototype to avoid an error. */
9401 /* We use char because int might match the return type of a gcc2
9402 builtin and then its argument prototype would still apply. */
9409 if { (eval echo configure:9410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9411 eval "ac_cv_lib_$ac_lib_var=yes"
9413 echo "configure: failed program was:" >&5
9414 cat conftest.$ac_ext >&5
9416 eval "ac_cv_lib_$ac_lib_var=no"
9419 LIBS="$ac_save_LIBS"
9422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9423 echo "$ac_t""yes" 1>&6
9426 echo "$ac_t""no" 1>&6
9431 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9432 echo "configure:9433: checking for sys/wait.h that is POSIX.1 compatible" >&5
9433 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 #include <sys/types.h>
9440 #include <sys/wait.h>
9442 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9445 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9450 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9453 if { (eval echo configure:9454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9455 ac_cv_header_sys_wait_h=yes
9457 echo "configure: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9460 ac_cv_header_sys_wait_h=no
9465 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9466 if test $ac_cv_header_sys_wait_h = yes; then
9467 cat >> confdefs.h <<\EOF
9468 #define HAVE_SYS_WAIT_H 1
9473 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9474 echo "configure:9475: checking POSIX termios" >&5
9475 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9478 cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9481 #include <sys/types.h>
9483 #include <termios.h>
9485 /* SunOS 4.0.3 has termios.h but not the library calls. */
9489 if { (eval echo configure:9490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9491 am_cv_sys_posix_termios=yes
9493 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9496 am_cv_sys_posix_termios=no
9501 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9504 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9505 echo "configure:9506: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9506 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9509 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9511 gwinsz_in_termios_h=no
9512 if test $am_cv_sys_posix_termios = yes; then
9513 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516 #include <sys/types.h>
9517 # include <termios.h>
9523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9524 egrep "yes" >/dev/null 2>&1; then
9526 gwinsz_in_termios_h=yes
9532 if test $gwinsz_in_termios_h = no; then
9533 cat > conftest.$ac_ext <<EOF
9534 #line 9535 "configure"
9535 #include "confdefs.h"
9536 #include <sys/types.h>
9537 # include <sys/ioctl.h>
9543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9544 egrep "yes" >/dev/null 2>&1; then
9546 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9554 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9555 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9556 cat >> confdefs.h <<\EOF
9557 #define GWINSZ_IN_SYS_IOCTL 1
9562 if test $am_cv_sys_posix_termios = yes ; then
9563 cat >> confdefs.h <<\EOF
9564 #define HAVE_POSIX_TERMIOS 1
9609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9611 echo "configure:9612: checking for $ac_hdr" >&5
9612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9615 cat > conftest.$ac_ext <<EOF
9616 #line 9617 "configure"
9617 #include "confdefs.h"
9620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9621 { (eval echo configure:9622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9623 if test -z "$ac_err"; then
9625 eval "ac_cv_header_$ac_safe=yes"
9628 echo "configure: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9631 eval "ac_cv_header_$ac_safe=no"
9635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9636 echo "$ac_t""yes" 1>&6
9637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9638 cat >> confdefs.h <<EOF
9639 #define $ac_tr_hdr 1
9643 echo "$ac_t""no" 1>&6
9648 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9649 echo "configure:9650: checking for uid_t in sys/types.h" >&5
9650 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 #include <sys/types.h>
9658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9659 egrep "uid_t" >/dev/null 2>&1; then
9661 ac_cv_type_uid_t=yes
9670 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9671 if test $ac_cv_type_uid_t = no; then
9672 cat >> confdefs.h <<\EOF
9676 cat >> confdefs.h <<\EOF
9682 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9683 echo "configure:9684: checking type of array argument to getgroups" >&5
9684 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9685 echo $ac_n "(cached) $ac_c" 1>&6
9687 if test "$cross_compiling" = yes; then
9688 ac_cv_type_getgroups=cross
9690 cat > conftest.$ac_ext <<EOF
9691 #line 9692 "configure"
9692 #include "confdefs.h"
9694 /* Thanks to Mike Rendell for this test. */
9695 #include <sys/types.h>
9698 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9703 union { gid_t gval; long lval; } val;
9706 for (i = 0; i < NGID; i++)
9707 gidset[i] = val.gval;
9708 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9710 /* Exit non-zero if getgroups seems to require an array of ints. This
9711 happens when gid_t is short but getgroups modifies an array of ints. */
9712 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9716 if { (eval echo configure:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9718 ac_cv_type_getgroups=gid_t
9720 echo "configure: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9723 ac_cv_type_getgroups=int
9728 if test $ac_cv_type_getgroups = cross; then
9729 cat > conftest.$ac_ext <<EOF
9730 #line 9731 "configure"
9731 #include "confdefs.h"
9734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9735 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9737 ac_cv_type_getgroups=gid_t
9740 ac_cv_type_getgroups=int
9747 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9748 cat >> confdefs.h <<EOF
9749 #define GETGROUPS_T $ac_cv_type_getgroups
9752 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9753 echo "configure:9754: checking for ANSI C header files" >&5
9754 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9757 cat > conftest.$ac_ext <<EOF
9758 #line 9759 "configure"
9759 #include "confdefs.h"
9765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9766 { (eval echo configure:9767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9768 if test -z "$ac_err"; then
9770 ac_cv_header_stdc=yes
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9776 ac_cv_header_stdc=no
9780 if test $ac_cv_header_stdc = yes; then
9781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9788 egrep "memchr" >/dev/null 2>&1; then
9792 ac_cv_header_stdc=no
9798 if test $ac_cv_header_stdc = yes; then
9799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9800 cat > conftest.$ac_ext <<EOF
9801 #line 9802 "configure"
9802 #include "confdefs.h"
9805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9806 egrep "free" >/dev/null 2>&1; then
9810 ac_cv_header_stdc=no
9816 if test $ac_cv_header_stdc = yes; then
9817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9818 if test "$cross_compiling" = yes; then
9821 cat > conftest.$ac_ext <<EOF
9822 #line 9823 "configure"
9823 #include "confdefs.h"
9825 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9826 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9828 int main () { int i; for (i = 0; i < 256; i++)
9829 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9833 if { (eval echo configure:9834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9840 ac_cv_header_stdc=no
9848 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9849 if test $ac_cv_header_stdc = yes; then
9850 cat >> confdefs.h <<\EOF
9851 #define STDC_HEADERS 1
9856 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9857 echo "configure:9858: checking for mode_t" >&5
9858 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9861 cat > conftest.$ac_ext <<EOF
9862 #line 9863 "configure"
9863 #include "confdefs.h"
9864 #include <sys/types.h>
9870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9871 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9873 ac_cv_type_mode_t=yes
9876 ac_cv_type_mode_t=no
9881 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9882 if test $ac_cv_type_mode_t = no; then
9883 cat >> confdefs.h <<\EOF
9889 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9890 echo "configure:9891: checking for off_t" >&5
9891 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9892 echo $ac_n "(cached) $ac_c" 1>&6
9894 cat > conftest.$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9897 #include <sys/types.h>
9903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9904 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9906 ac_cv_type_off_t=yes
9914 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9915 if test $ac_cv_type_off_t = no; then
9916 cat >> confdefs.h <<\EOF
9922 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9923 echo "configure:9924: checking for pid_t" >&5
9924 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9927 cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930 #include <sys/types.h>
9936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9937 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9939 ac_cv_type_pid_t=yes
9947 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9948 if test $ac_cv_type_pid_t = no; then
9949 cat >> confdefs.h <<\EOF
9955 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9956 echo "configure:9957: checking for ptrdiff_t" >&5
9957 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
9958 echo $ac_n "(cached) $ac_c" 1>&6
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9968 if { (eval echo configure:9969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9970 am_cv_type_ptrdiff_t=yes
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9975 am_cv_type_ptrdiff_t=no
9980 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
9981 if test $am_cv_type_ptrdiff_t = yes; then
9982 cat >> confdefs.h <<\EOF
9983 #define HAVE_PTRDIFF_T 1
9988 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
9989 echo "configure:9990: checking return type of signal handlers" >&5
9990 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9993 cat > conftest.$ac_ext <<EOF
9994 #line 9995 "configure"
9995 #include "confdefs.h"
9996 #include <sys/types.h>
10002 extern "C" void (*signal (int, void (*)(int)))(int);
10004 void (*signal ()) ();
10011 if { (eval echo configure:10012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10013 ac_cv_type_signal=void
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10018 ac_cv_type_signal=int
10023 echo "$ac_t""$ac_cv_type_signal" 1>&6
10024 cat >> confdefs.h <<EOF
10025 #define RETSIGTYPE $ac_cv_type_signal
10029 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10030 echo "configure:10031: checking for sig_atomic_t" >&5
10031 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <signal.h>
10039 sig_atomic_t atomic;
10042 if { (eval echo configure:10043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10044 ol_cv_type_sig_atomic_t=yes
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10049 ol_cv_type_sig_atomic_t=no
10054 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10055 if test $ol_cv_type_sig_atomic_t = no; then
10056 cat >> confdefs.h <<\EOF
10057 #define sig_atomic_t int
10062 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10063 echo "configure:10064: checking for size_t" >&5
10064 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10065 echo $ac_n "(cached) $ac_c" 1>&6
10067 cat > conftest.$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10070 #include <sys/types.h>
10072 #include <stdlib.h>
10073 #include <stddef.h>
10076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10077 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10079 ac_cv_type_size_t=yes
10082 ac_cv_type_size_t=no
10087 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10088 if test $ac_cv_type_size_t = no; then
10089 cat >> confdefs.h <<\EOF
10090 #define size_t unsigned
10095 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10096 echo "configure:10097: checking for st_blksize in struct stat" >&5
10097 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10098 echo $ac_n "(cached) $ac_c" 1>&6
10100 cat > conftest.$ac_ext <<EOF
10101 #line 10102 "configure"
10102 #include "confdefs.h"
10103 #include <sys/types.h>
10104 #include <sys/stat.h>
10106 struct stat s; s.st_blksize;
10109 if { (eval echo configure:10110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10111 ac_cv_struct_st_blksize=yes
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10116 ac_cv_struct_st_blksize=no
10121 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10122 if test $ac_cv_struct_st_blksize = yes; then
10123 cat >> confdefs.h <<\EOF
10124 #define HAVE_ST_BLKSIZE 1
10129 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10130 echo "configure:10131: checking whether time.h and sys/time.h may both be included" >&5
10131 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #include <sys/types.h>
10138 #include <sys/time.h>
10144 if { (eval echo configure:10145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10146 ac_cv_header_time=yes
10148 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10151 ac_cv_header_time=no
10156 echo "$ac_t""$ac_cv_header_time" 1>&6
10157 if test $ac_cv_header_time = yes; then
10158 cat >> confdefs.h <<\EOF
10159 #define TIME_WITH_SYS_TIME 1
10164 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10165 echo "configure:10166: checking whether struct tm is in sys/time.h or time.h" >&5
10166 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <sys/types.h>
10175 struct tm *tp; tp->tm_sec;
10178 if { (eval echo configure:10179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10180 ac_cv_struct_tm=time.h
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 ac_cv_struct_tm=sys/time.h
10190 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10191 if test $ac_cv_struct_tm = sys/time.h; then
10192 cat >> confdefs.h <<\EOF
10193 #define TM_IN_SYS_TIME 1
10198 # test for pw_gecos in struct passwd
10199 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10200 echo "configure:10201: checking struct passwd for pw_gecos" >&5
10201 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10205 cat > conftest.$ac_ext <<EOF
10206 #line 10207 "configure"
10207 #include "confdefs.h"
10212 pwd.pw_gecos = pwd.pw_name;
10216 if { (eval echo configure:10217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10218 ol_cv_struct_passwd_pw_gecos=yes
10220 echo "configure: failed program was:" >&5
10221 cat conftest.$ac_ext >&5
10223 ol_cv_struct_passwd_pw_gecos=no
10228 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10229 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10230 cat >> confdefs.h <<\EOF
10231 #define HAVE_PW_GECOS 1
10238 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10239 echo "configure:10240: checking if toupper() requires islower()" >&5
10240 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10241 echo $ac_n "(cached) $ac_c" 1>&6
10244 if test "$cross_compiling" = yes; then
10245 ol_cv_c_upper_lower=safe
10247 cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10254 if ('C' == toupper('C'))
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10262 ol_cv_c_upper_lower=no
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10267 ol_cv_c_upper_lower=yes
10274 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10275 if test $ol_cv_c_upper_lower != no ; then
10276 cat >> confdefs.h <<\EOF
10277 #define C_UPPER_LOWER 1
10282 echo $ac_n "checking for working const""... $ac_c" 1>&6
10283 echo "configure:10284: checking for working const" >&5
10284 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10285 echo $ac_n "(cached) $ac_c" 1>&6
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10293 /* Ultrix mips cc rejects this. */
10294 typedef int charset[2]; const charset x;
10295 /* SunOS 4.1.1 cc rejects this. */
10296 char const *const *ccp;
10298 /* NEC SVR4.0.2 mips cc rejects this. */
10299 struct point {int x, y;};
10300 static struct point const zero = {0,0};
10301 /* AIX XL C 1.02.0.0 rejects this.
10302 It does not let you subtract one const X* pointer from another in an arm
10303 of an if-expression whose if-part is not a constant expression */
10304 const char *g = "string";
10305 ccp = &g + (g ? g-g : 0);
10306 /* HPUX 7.0 cc rejects these. */
10309 ccp = (char const *const *) p;
10310 { /* SCO 3.2v4 cc rejects this. */
10312 char const *s = 0 ? (char *) 0 : (char const *) 0;
10316 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10317 int x[] = {25, 17};
10318 const int *foo = &x[0];
10321 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10322 typedef const int *iptr;
10326 { /* AIX XL C 1.02.0.0 rejects this saying
10327 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10328 struct s { int j; const int *ap[3]; };
10329 struct s *b; b->j = 5;
10331 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10332 const int foo = 10;
10337 if { (eval echo configure:10338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10349 echo "$ac_t""$ac_cv_c_const" 1>&6
10350 if test $ac_cv_c_const = no; then
10351 cat >> confdefs.h <<\EOF
10357 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10358 echo "configure:10359: checking if compiler understands volatile" >&5
10359 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10360 echo $ac_n "(cached) $ac_c" 1>&6
10362 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10367 volatile int a; int * volatile b = x ? &y : &z;
10368 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10372 if { (eval echo configure:10373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10374 ol_cv_c_volatile=yes
10376 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10379 ol_cv_c_volatile=no
10384 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10385 if test $ol_cv_c_volatile = yes; then
10388 cat >> confdefs.h <<\EOF
10395 if test $cross_compiling = yes ; then
10396 cat >> confdefs.h <<\EOF
10397 #define CROSS_COMPILING 1
10401 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10402 echo "configure:10403: checking whether byte ordering is bigendian" >&5
10403 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10406 ac_cv_c_bigendian=unknown
10407 # See if sys/param.h defines the BYTE_ORDER macro.
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10411 #include <sys/types.h>
10412 #include <sys/param.h>
10415 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10416 bogus endian macros
10420 if { (eval echo configure:10421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10422 # It does; now see whether it defined to BIG_ENDIAN or not.
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10426 #include <sys/types.h>
10427 #include <sys/param.h>
10430 #if BYTE_ORDER != BIG_ENDIAN
10435 if { (eval echo configure:10436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10437 ac_cv_c_bigendian=yes
10439 echo "configure: failed program was:" >&5
10440 cat conftest.$ac_ext >&5
10442 ac_cv_c_bigendian=no
10446 echo "configure: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10450 if test $ac_cv_c_bigendian = unknown; then
10451 if test "$cross_compiling" = yes; then
10452 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10458 /* Are we little or big endian? From Harbison&Steele. */
10462 char c[sizeof (long)];
10465 exit (u.c[sizeof (long) - 1] == 1);
10468 if { (eval echo configure:10469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10470 ac_cv_c_bigendian=no
10472 echo "configure: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10475 ac_cv_c_bigendian=yes
10483 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10484 if test $ac_cv_c_bigendian = yes; then
10485 cat >> confdefs.h <<\EOF
10486 #define WORDS_BIGENDIAN 1
10491 echo $ac_n "checking size of short""... $ac_c" 1>&6
10492 echo "configure:10493: checking size of short" >&5
10493 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10496 if test "$cross_compiling" = yes; then
10497 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10505 FILE *f=fopen("conftestval", "w");
10507 fprintf(f, "%d\n", sizeof(short));
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10513 ac_cv_sizeof_short=`cat conftestval`
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10518 ac_cv_sizeof_short=0
10524 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10525 cat >> confdefs.h <<EOF
10526 #define SIZEOF_SHORT $ac_cv_sizeof_short
10530 echo $ac_n "checking size of int""... $ac_c" 1>&6
10531 echo "configure:10532: checking size of int" >&5
10532 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10533 echo $ac_n "(cached) $ac_c" 1>&6
10535 if test "$cross_compiling" = yes; then
10536 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10538 cat > conftest.$ac_ext <<EOF
10539 #line 10540 "configure"
10540 #include "confdefs.h"
10544 FILE *f=fopen("conftestval", "w");
10546 fprintf(f, "%d\n", sizeof(int));
10550 if { (eval echo configure:10551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10552 ac_cv_sizeof_int=`cat conftestval`
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10563 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10564 cat >> confdefs.h <<EOF
10565 #define SIZEOF_INT $ac_cv_sizeof_int
10569 echo $ac_n "checking size of long""... $ac_c" 1>&6
10570 echo "configure:10571: checking size of long" >&5
10571 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
10574 if test "$cross_compiling" = yes; then
10575 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10583 FILE *f=fopen("conftestval", "w");
10585 fprintf(f, "%d\n", sizeof(long));
10589 if { (eval echo configure:10590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10591 ac_cv_sizeof_long=`cat conftestval`
10593 echo "configure: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10596 ac_cv_sizeof_long=0
10602 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10603 cat >> confdefs.h <<EOF
10604 #define SIZEOF_LONG $ac_cv_sizeof_long
10610 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10611 echo "configure:10612: checking for 8-bit clean memcmp" >&5
10612 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10613 echo $ac_n "(cached) $ac_c" 1>&6
10615 if test "$cross_compiling" = yes; then
10616 ac_cv_func_memcmp_clean=no
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10624 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10625 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10631 ac_cv_func_memcmp_clean=yes
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 ac_cv_func_memcmp_clean=no
10643 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10644 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10646 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10647 echo "configure:10648: checking for strftime" >&5
10648 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10654 /* System header to define __stub macros and hopefully few prototypes,
10655 which can conflict with char strftime(); below. */
10656 #include <assert.h>
10657 /* Override any gcc2 internal prototype to avoid an error. */
10658 /* We use char because int might match the return type of a gcc2
10659 builtin and then its argument prototype would still apply. */
10664 /* The GNU C library defines this for functions which it implements
10665 to always fail with ENOSYS. Some functions are actually named
10666 something starting with __ and the normal name is an alias. */
10667 #if defined (__stub_strftime) || defined (__stub___strftime)
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10677 eval "ac_cv_func_strftime=yes"
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 eval "ac_cv_func_strftime=no"
10687 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10688 echo "$ac_t""yes" 1>&6
10689 cat >> confdefs.h <<\EOF
10690 #define HAVE_STRFTIME 1
10694 echo "$ac_t""no" 1>&6
10695 # strftime is in -lintl on SCO UNIX.
10696 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10697 echo "configure:10698: checking for strftime in -lintl" >&5
10698 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10702 ac_save_LIBS="$LIBS"
10703 LIBS="-lintl $LIBS"
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 /* Override any gcc2 internal prototype to avoid an error. */
10708 /* We use char because int might match the return type of a gcc2
10709 builtin and then its argument prototype would still apply. */
10716 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10718 eval "ac_cv_lib_$ac_lib_var=yes"
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10723 eval "ac_cv_lib_$ac_lib_var=no"
10726 LIBS="$ac_save_LIBS"
10729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10730 echo "$ac_t""yes" 1>&6
10731 cat >> confdefs.h <<\EOF
10732 #define HAVE_STRFTIME 1
10735 LIBS="-lintl $LIBS"
10737 echo "$ac_t""no" 1>&6
10743 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10744 echo "configure:10745: checking for vprintf" >&5
10745 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 /* System header to define __stub macros and hopefully few prototypes,
10752 which can conflict with char vprintf(); below. */
10753 #include <assert.h>
10754 /* Override any gcc2 internal prototype to avoid an error. */
10755 /* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10761 /* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10774 eval "ac_cv_func_vprintf=yes"
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10779 eval "ac_cv_func_vprintf=no"
10784 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10785 echo "$ac_t""yes" 1>&6
10786 cat >> confdefs.h <<\EOF
10787 #define HAVE_VPRINTF 1
10791 echo "$ac_t""no" 1>&6
10794 if test "$ac_cv_func_vprintf" != yes; then
10795 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10796 echo "configure:10797: checking for _doprnt" >&5
10797 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10798 echo $ac_n "(cached) $ac_c" 1>&6
10800 cat > conftest.$ac_ext <<EOF
10801 #line 10802 "configure"
10802 #include "confdefs.h"
10803 /* System header to define __stub macros and hopefully few prototypes,
10804 which can conflict with char _doprnt(); below. */
10805 #include <assert.h>
10806 /* Override any gcc2 internal prototype to avoid an error. */
10807 /* We use char because int might match the return type of a gcc2
10808 builtin and then its argument prototype would still apply. */
10813 /* The GNU C library defines this for functions which it implements
10814 to always fail with ENOSYS. Some functions are actually named
10815 something starting with __ and the normal name is an alias. */
10816 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10824 if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10826 eval "ac_cv_func__doprnt=yes"
10828 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10831 eval "ac_cv_func__doprnt=no"
10836 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10837 echo "$ac_t""yes" 1>&6
10838 cat >> confdefs.h <<\EOF
10839 #define HAVE_DOPRNT 1
10843 echo "$ac_t""no" 1>&6
10849 if test $ac_cv_func_vprintf = yes ; then
10850 for ac_func in vsnprintf vsprintf
10852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10853 echo "configure:10854: checking for $ac_func" >&5
10854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10860 /* System header to define __stub macros and hopefully few prototypes,
10861 which can conflict with char $ac_func(); below. */
10862 #include <assert.h>
10863 /* Override any gcc2 internal prototype to avoid an error. */
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10870 /* The GNU C library defines this for functions which it implements
10871 to always fail with ENOSYS. Some functions are actually named
10872 something starting with __ and the normal name is an alias. */
10873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10881 if { (eval echo configure:10882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10883 eval "ac_cv_func_$ac_func=yes"
10885 echo "configure: failed program was:" >&5
10886 cat conftest.$ac_ext >&5
10888 eval "ac_cv_func_$ac_func=no"
10893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10894 echo "$ac_t""yes" 1>&6
10895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10896 cat >> confdefs.h <<EOF
10897 #define $ac_tr_func 1
10901 echo "$ac_t""no" 1>&6
10948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10949 echo "configure:10950: checking for $ac_func" >&5
10950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10951 echo $ac_n "(cached) $ac_c" 1>&6
10953 cat > conftest.$ac_ext <<EOF
10954 #line 10955 "configure"
10955 #include "confdefs.h"
10956 /* System header to define __stub macros and hopefully few prototypes,
10957 which can conflict with char $ac_func(); below. */
10958 #include <assert.h>
10959 /* Override any gcc2 internal prototype to avoid an error. */
10960 /* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10966 /* The GNU C library defines this for functions which it implements
10967 to always fail with ENOSYS. Some functions are actually named
10968 something starting with __ and the normal name is an alias. */
10969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10977 if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10979 eval "ac_cv_func_$ac_func=yes"
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10984 eval "ac_cv_func_$ac_func=no"
10989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10990 echo "$ac_t""yes" 1>&6
10991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10992 cat >> confdefs.h <<EOF
10993 #define $ac_tr_func 1
10997 echo "$ac_t""no" 1>&6
11002 for ac_func in getopt tempnam
11004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11005 echo "configure:11006: checking for $ac_func" >&5
11006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11007 echo $ac_n "(cached) $ac_c" 1>&6
11009 cat > conftest.$ac_ext <<EOF
11010 #line 11011 "configure"
11011 #include "confdefs.h"
11012 /* System header to define __stub macros and hopefully few prototypes,
11013 which can conflict with char $ac_func(); below. */
11014 #include <assert.h>
11015 /* Override any gcc2 internal prototype to avoid an error. */
11016 /* We use char because int might match the return type of a gcc2
11017 builtin and then its argument prototype would still apply. */
11022 /* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11035 eval "ac_cv_func_$ac_func=yes"
11037 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5
11040 eval "ac_cv_func_$ac_func=no"
11045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11046 echo "$ac_t""yes" 1>&6
11047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11048 cat >> confdefs.h <<EOF
11049 #define $ac_tr_func 1
11053 echo "$ac_t""no" 1>&6
11054 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11060 # Check Configuration
11062 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11063 echo "configure:11064: checking declaration of sys_errlist" >&5
11064 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
11068 cat > conftest.$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11073 #include <sys/types.h>
11076 char *c = (char *) *sys_errlist
11079 if { (eval echo configure:11080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11081 ol_cv_dcl_sys_errlist=yes
11083 echo "configure: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11086 ol_cv_dcl_sys_errlist=no
11091 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11092 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11093 if test $ol_cv_dcl_sys_errlist = no ; then
11094 cat >> confdefs.h <<\EOF
11095 #define DECL_SYS_ERRLIST 1
11098 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11099 echo "configure:11100: checking existence of sys_errlist" >&5
11100 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11101 echo $ac_n "(cached) $ac_c" 1>&6
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11109 char *c = (char *) *sys_errlist
11112 if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11114 ol_cv_have_sys_errlist=yes
11116 echo "configure: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11119 ol_cv_have_sys_errlist=no
11124 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11125 if test $ol_cv_have_sys_errlist = yes ; then
11126 cat >> confdefs.h <<\EOF
11127 #define HAVE_SYS_ERRLIST 1
11135 echo $ac_n "checking strdup declaration""... $ac_c" 1>&6
11136 echo "configure:11137: checking strdup declaration" >&5
11137 if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11141 cat > conftest.$ac_ext <<EOF
11142 #line 11143 "configure"
11143 #include "confdefs.h"
11145 #include <string.h>
11147 extern char *strdup();
11150 if { (eval echo configure:11151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11152 ol_cv_dcl_strdup=yes
11154 echo "configure: failed program was:" >&5
11155 cat conftest.$ac_ext >&5
11157 ol_cv_dcl_strdup=no
11162 echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
11163 if test $ol_cv_dcl_strdup = yes ; then
11164 cat >> confdefs.h <<\EOF
11165 #define DECL_STRDUP 1
11172 if test "$ol_enable_debug" != no ; then
11173 cat >> confdefs.h <<\EOF
11174 #define LDAP_DEBUG 1
11178 if test "$ol_enable_syslog" = yes ; then
11179 cat >> confdefs.h <<\EOF
11180 #define LDAP_SYSLOG 1
11184 if test "$ol_enable_libui" = yes ; then
11185 cat >> confdefs.h <<\EOF
11186 #define LDAP_LIBUI 1
11190 if test "$ol_enable_cache" = no ; then
11191 cat >> confdefs.h <<\EOF
11192 #define LDAP_NOCACHE 1
11196 if test "$ol_enable_dns" != no ; then
11197 cat >> confdefs.h <<\EOF
11198 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11202 if test "$ol_enable_proctitle" != no ; then
11203 cat >> confdefs.h <<\EOF
11204 #define LDAP_PROCTITLE 1
11208 if test "$ol_enable_referrals" != no ; then
11209 cat >> confdefs.h <<\EOF
11210 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11214 if test "$ol_enable_cldap" != no ; then
11215 cat >> confdefs.h <<\EOF
11216 #define LDAP_CONNECTIONLESS 1
11221 if test "$ol_enable_aclgroups" != no ; then
11222 cat >> confdefs.h <<\EOF
11223 #define SLAPD_ACLGROUPS 1
11227 if test "$ol_enable_crypt" != no ; then
11228 cat >> confdefs.h <<\EOF
11229 #define SLAPD_CRYPT 1
11233 if test "$ol_enable_cleartext" != no ; then
11234 cat >> confdefs.h <<\EOF
11235 #define SLAPD_CLEARTEXT 1
11239 if test "$ol_enable_phonetic" != no ; then
11240 cat >> confdefs.h <<\EOF
11241 #define SLAPD_PHONETIC 1
11245 if test "$ol_enable_rlookups" != no ; then
11246 cat >> confdefs.h <<\EOF
11247 #define SLAPD_RLOOKUPS 1
11252 if test "$ol_link_modules" != no ; then
11253 cat >> confdefs.h <<\EOF
11254 #define SLAPD_MODULES 1
11260 if test "$ol_link_bdb2" != no ; then
11261 cat >> confdefs.h <<\EOF
11262 #define SLAPD_BDB2 1
11269 if test "$ol_link_ldbm" != no ; then
11270 cat >> confdefs.h <<\EOF
11271 #define SLAPD_LDBM 1
11278 if test "$ol_enable_passwd" != no ; then
11279 cat >> confdefs.h <<\EOF
11280 #define SLAPD_PASSWD 1
11287 if test "$ol_link_perl" != no ; then
11288 cat >> confdefs.h <<\EOF
11289 #define SLAPD_PERL 1
11296 if test "$ol_enable_shell" != no ; then
11297 cat >> confdefs.h <<\EOF
11298 #define SLAPD_SHELL 1
11305 if test "$ol_enable_tcl" != no ; then
11306 cat >> confdefs.h <<\EOF
11307 #define SLAPD_TCL 1
11314 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11315 $BUILD_SLAPD = yes ; then
11319 if test "$ol_link_isode" != no ; then
11356 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11358 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11359 # Let make expand exec_prefix.
11360 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11362 # Any assignment to VPATH causes Sun make to only execute
11363 # the first set of double-colon rules, so remove it if not needed.
11364 # If there is a colon in the path, we need to keep it.
11365 if test "x$srcdir" = x.; then
11366 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11369 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11371 DEFS=-DHAVE_CONFIG_H
11373 # Without the "./", some shells look in PATH for config.status.
11374 : ${CONFIG_STATUS=./config.status}
11376 echo creating $CONFIG_STATUS
11377 rm -f $CONFIG_STATUS
11378 cat > $CONFIG_STATUS <<EOF
11380 # Generated automatically by configure.
11381 # Run this file to recreate the current configuration.
11382 # This directory was configured as follows,
11383 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11385 # $0 $ac_configure_args
11387 # Compiler output produced by configure, useful for debugging
11388 # configure, is in ./config.log if it exists.
11390 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11393 case "\$ac_option" in
11394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11395 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11396 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11397 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11398 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11400 -help | --help | --hel | --he | --h)
11401 echo "\$ac_cs_usage"; exit 0 ;;
11402 *) echo "\$ac_cs_usage"; exit 1 ;;
11406 ac_given_srcdir=$srcdir
11407 ac_given_INSTALL="$INSTALL"
11409 trap 'rm -fr `echo "\
11410 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11411 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11412 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11413 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11414 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11415 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11416 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11417 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11418 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11419 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11420 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11421 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11422 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11423 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11424 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11425 include/Makefile:build/top.mk:include/Makefile.in \
11426 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11427 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11428 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11429 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11430 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11431 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11432 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11433 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11434 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11435 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11436 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11437 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11438 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11439 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11440 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11441 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11442 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11443 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11444 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11445 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11446 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11447 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11448 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11449 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11450 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11451 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11453 cat >> $CONFIG_STATUS <<EOF
11455 # Protect against being on the right side of a sed subst in config.status.
11456 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11457 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11461 s%@CFLAGS@%$CFLAGS%g
11462 s%@CPPFLAGS@%$CPPFLAGS%g
11463 s%@CXXFLAGS@%$CXXFLAGS%g
11464 s%@FFLAGS@%$FFLAGS%g
11466 s%@LDFLAGS@%$LDFLAGS%g
11468 s%@exec_prefix@%$exec_prefix%g
11469 s%@prefix@%$prefix%g
11470 s%@program_transform_name@%$program_transform_name%g
11471 s%@bindir@%$bindir%g
11472 s%@sbindir@%$sbindir%g
11473 s%@libexecdir@%$libexecdir%g
11474 s%@datadir@%$datadir%g
11475 s%@sysconfdir@%$sysconfdir%g
11476 s%@sharedstatedir@%$sharedstatedir%g
11477 s%@localstatedir@%$localstatedir%g
11478 s%@libdir@%$libdir%g
11479 s%@includedir@%$includedir%g
11480 s%@oldincludedir@%$oldincludedir%g
11481 s%@infodir@%$infodir%g
11482 s%@mandir@%$mandir%g
11483 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11484 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11485 s%@INSTALL_DATA@%$INSTALL_DATA%g
11486 s%@PACKAGE@%$PACKAGE%g
11487 s%@VERSION@%$VERSION%g
11488 s%@ACLOCAL@%$ACLOCAL%g
11489 s%@AUTOCONF@%$AUTOCONF%g
11490 s%@AUTOMAKE@%$AUTOMAKE%g
11491 s%@AUTOHEADER@%$AUTOHEADER%g
11492 s%@MAKEINFO@%$MAKEINFO%g
11493 s%@SET_MAKE@%$SET_MAKE%g
11494 s%@top_builddir@%$top_builddir%g
11495 s%@ldap_subdir@%$ldap_subdir%g
11497 s%@host_alias@%$host_alias%g
11498 s%@host_cpu@%$host_cpu%g
11499 s%@host_vendor@%$host_vendor%g
11500 s%@host_os@%$host_os%g
11501 s%@RANLIB@%$RANLIB%g
11506 s%@LIBTOOL@%$LIBTOOL%g
11509 s%@SENDMAIL@%$SENDMAIL%g
11510 s%@EDITOR@%$EDITOR%g
11511 s%@FINGER@%$FINGER%g
11512 s%@GLIBCONFIG@%$GLIBCONFIG%g
11513 s%@PERLBIN@%$PERLBIN%g
11515 s%@EXEEXT@%$EXEEXT%g
11516 s%@OBJEXT@%$OBJEXT%g
11518 s%@LIBOBJS@%$LIBOBJS%g
11519 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11520 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11521 s%@BUILD_BDB2@%$BUILD_BDB2%g
11522 s%@BUILD_LDBM@%$BUILD_LDBM%g
11523 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11524 s%@BUILD_PERL@%$BUILD_PERL%g
11525 s%@BUILD_SHELL@%$BUILD_SHELL%g
11526 s%@BUILD_TCL@%$BUILD_TCL%g
11527 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11528 s%@LDAP_LIBS@%$LDAP_LIBS%g
11529 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11530 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11531 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11532 s%@LDBM_LIBS@%$LDBM_LIBS%g
11533 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11534 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11535 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11536 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11537 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11538 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11539 s%@KRB_LIBS@%$KRB_LIBS%g
11540 s%@READLINE_LIBS@%$READLINE_LIBS%g
11541 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11542 s%@TLS_LIBS@%$TLS_LIBS%g
11547 cat >> $CONFIG_STATUS <<\EOF
11549 # Split the substitutions into bite-sized pieces for seds with
11550 # small command number limits, like on Digital OSF/1 and HP-UX.
11551 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11552 ac_file=1 # Number of current file.
11553 ac_beg=1 # First line for current file.
11554 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11557 while $ac_more_lines; do
11558 if test $ac_beg -gt 1; then
11559 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11561 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11563 if test ! -s conftest.s$ac_file; then
11564 ac_more_lines=false
11565 rm -f conftest.s$ac_file
11567 if test -z "$ac_sed_cmds"; then
11568 ac_sed_cmds="sed -f conftest.s$ac_file"
11570 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11572 ac_file=`expr $ac_file + 1`
11574 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11577 if test -z "$ac_sed_cmds"; then
11582 cat >> $CONFIG_STATUS <<EOF
11584 CONFIG_FILES=\${CONFIG_FILES-"\
11585 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11586 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11587 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11588 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11589 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11590 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11591 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11592 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11593 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11594 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11595 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11596 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11597 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11598 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11599 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11600 include/Makefile:build/top.mk:include/Makefile.in \
11601 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11602 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11603 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11604 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11605 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11606 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11607 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11608 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11609 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11610 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11611 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11612 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11613 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11614 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11615 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11616 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11617 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11618 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11619 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11620 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11621 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11622 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11623 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11624 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11625 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11628 cat >> $CONFIG_STATUS <<\EOF
11629 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11632 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11633 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11634 *) ac_file_in="${ac_file}.in" ;;
11637 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11639 # Remove last slash and all that follows it. Not all systems have dirname.
11640 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11641 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11642 # The file is in a subdirectory.
11643 test ! -d "$ac_dir" && mkdir "$ac_dir"
11644 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11645 # A "../" for each directory in $ac_dir_suffix.
11646 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11648 ac_dir_suffix= ac_dots=
11651 case "$ac_given_srcdir" in
11653 if test -z "$ac_dots"; then top_srcdir=.
11654 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11655 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11656 *) # Relative path.
11657 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11658 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11661 case "$ac_given_INSTALL" in
11662 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11663 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11666 echo creating "$ac_file"
11668 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11670 *Makefile*) ac_comsub="1i\\
11671 # $configure_input" ;;
11675 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11677 s%@configure_input@%$configure_input%g
11678 s%@srcdir@%$srcdir%g
11679 s%@top_srcdir@%$top_srcdir%g
11680 s%@INSTALL@%$INSTALL%g
11681 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11688 # ac_d sets the value in "#define NAME VALUE" lines.
11689 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11690 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11693 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11694 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11695 ac_uB='\([ ]\)%\1#\2define\3'
11698 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11699 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11700 ac_eB='$%\1#\2define\3'
11704 if test "${CONFIG_HEADERS+set}" != set; then
11706 cat >> $CONFIG_STATUS <<EOF
11707 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11709 cat >> $CONFIG_STATUS <<\EOF
11711 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11714 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11715 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11716 *) ac_file_in="${ac_file}.in" ;;
11719 echo creating $ac_file
11721 rm -f conftest.frag conftest.in conftest.out
11722 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11723 cat $ac_file_inputs > conftest.in
11727 # Transform confdefs.h into a sed script conftest.vals that substitutes
11728 # the proper values into config.h.in to produce config.h. And first:
11729 # Protect against being on the right side of a sed subst in config.status.
11730 # Protect against being in an unquoted here document in config.status.
11731 rm -f conftest.vals
11732 cat > conftest.hdr <<\EOF
11735 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11739 sed -n -f conftest.hdr confdefs.h > conftest.vals
11742 # This sed command replaces #undef with comments. This is necessary, for
11743 # example, in the case of _POSIX_SOURCE, which is predefined and required
11744 # on some systems where configure will not decide to define it.
11745 cat >> conftest.vals <<\EOF
11746 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11749 # Break up conftest.vals because some shells have a limit on
11750 # the size of here documents, and old seds have small limits too.
11752 rm -f conftest.tail
11755 ac_lines=`grep -c . conftest.vals`
11756 # grep -c gives empty output for an empty file on some AIX systems.
11757 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11758 # Write a limited-size here document to conftest.frag.
11759 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11760 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11762 sed -f conftest.frag conftest.in > conftest.out
11764 mv conftest.out conftest.in
11765 ' >> $CONFIG_STATUS
11766 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11767 rm -f conftest.vals
11768 mv conftest.tail conftest.vals
11770 rm -f conftest.vals
11772 cat >> $CONFIG_STATUS <<\EOF
11773 rm -f conftest.frag conftest.h
11774 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11775 cat conftest.in >> conftest.h
11777 if cmp -s $ac_file conftest.h 2>/dev/null; then
11778 echo "$ac_file is unchanged"
11781 # Remove last slash and all that follows it. Not all systems have dirname.
11782 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11783 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11784 # The file is in a subdirectory.
11785 test ! -d "$ac_dir" && mkdir "$ac_dir"
11788 mv conftest.h $ac_file
11793 cat >> $CONFIG_STATUS <<EOF
11796 cat >> $CONFIG_STATUS <<\EOF
11799 echo Please \"make depend\" to build dependencies
11803 chmod +x $CONFIG_STATUS
11804 rm -fr confdefs* $ac_clean_files
11805 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1