3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos with Kerberos support (auto)"
36 --with-readline with readline support (auto)"
38 --with-threads use threads (auto)"
40 --with-tls with TLS/SSL support (auto)"
42 --with-yielding-select with implicitly yielding select (auto)"
46 --enable-ldapd enable building ldapd (no)"
50 --enable-slapd enable building slapd (yes)"
52 --enable-aclgroups enable ACL group support (auto)"
54 --enable-cleartext enable cleartext passwords (yes)"
56 --enable-crypt enable crypt(3) passwords (auto)"
58 --enable-wrappers enable tcp wrapper support (no)"
60 --enable-phonetic enable phonetic/soundex (no)"
62 --enable-rlookups enable reverse lookups (auto)"
64 --enable-bdb2 enable bdb2 backend (no)"
66 --enable-ldbm enable ldbm backend (yes)"
68 --with-ldbm-api use LDBM API (auto)"
70 --with-ldbm-type use LDBM type (auto)"
72 --enable-passwd enable passwd backend (no)"
74 --enable-perl enable perl backend (no)"
76 --enable-shell enable shell backend (no)"
78 --enable-tcl enable tcl backend (no)"
82 --enable-slurpd enable building slurpd (auto)"
84 Library Generation & Linking Options"
86 --enable-static build static libraries [default=yes]
87 --enable-static=PKGS only build shared libraries if the current package
88 appears as an element in the PKGS list"
90 --enable-shared build shared libraries [default=yes]
91 --enable-shared=PKGS only build shared libraries if the current package
92 appears as an element in the PKGS list"
94 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
96 # Initialize some variables set by options.
97 # The variables have the same names as the options, with
98 # dashes changed to underlines.
100 cache_file=./config.cache
109 program_transform_name=s,x,x,
117 bindir='${exec_prefix}/bin'
118 sbindir='${exec_prefix}/sbin'
119 libexecdir='${exec_prefix}/libexec'
120 datadir='${prefix}/share'
121 sysconfdir='${prefix}/etc'
122 sharedstatedir='${prefix}/com'
123 localstatedir='${prefix}/var'
124 libdir='${exec_prefix}/lib'
125 includedir='${prefix}/include'
126 oldincludedir='/usr/include'
127 infodir='${prefix}/info'
128 mandir='${prefix}/man'
130 # Initialize some other variables.
133 SHELL=${CONFIG_SHELL-/bin/sh}
134 # Maximum number of lines to put in a shell here document.
141 # If the previous option needs an argument, assign it.
142 if test -n "$ac_prev"; then
143 eval "$ac_prev=\$ac_option"
149 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153 # Accept the important Cygnus configure options, so we can diagnose typos.
157 -bindir | --bindir | --bindi | --bind | --bin | --bi)
159 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
160 bindir="$ac_optarg" ;;
162 -build | --build | --buil | --bui | --bu)
164 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
165 build="$ac_optarg" ;;
167 -cache-file | --cache-file | --cache-fil | --cache-fi \
168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
169 ac_prev=cache_file ;;
170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
172 cache_file="$ac_optarg" ;;
174 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
176 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
178 datadir="$ac_optarg" ;;
180 -disable-* | --disable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}=no" ;;
189 -enable-* | --enable-*)
190 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}='$ac_optarg'" ;;
202 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
203 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
204 | --exec | --exe | --ex)
205 ac_prev=exec_prefix ;;
206 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
207 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
208 | --exec=* | --exe=* | --ex=*)
209 exec_prefix="$ac_optarg" ;;
211 -gas | --gas | --ga | --g)
212 # Obsolete; use --with-gas.
215 -help | --help | --hel | --he)
216 # Omit some internal or obsolete options to make the list less imposing.
217 # This message is too long to be a string in the A/UX 3.1 sh.
219 Usage: configure [options] [host]
220 Options: [defaults in brackets after descriptions]
222 --cache-file=FILE cache test results in FILE
223 --help print this message
224 --no-create do not create output files
225 --quiet, --silent do not print \`checking...' messages
226 --version print the version of autoconf that created configure
227 Directory and file names:
228 --prefix=PREFIX install architecture-independent files in PREFIX
230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
232 --bindir=DIR user executables in DIR [EPREFIX/bin]
233 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
234 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
235 --datadir=DIR read-only architecture-independent data in DIR
237 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
238 --sharedstatedir=DIR modifiable architecture-independent data in DIR
240 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
241 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
242 --includedir=DIR C header files in DIR [PREFIX/include]
243 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
244 --infodir=DIR info documentation in DIR [PREFIX/info]
245 --mandir=DIR man documentation in DIR [PREFIX/man]
246 --srcdir=DIR find the sources in DIR [configure dir or ..]
247 --program-prefix=PREFIX prepend PREFIX to installed program names
248 --program-suffix=SUFFIX append SUFFIX to installed program names
249 --program-transform-name=PROGRAM
250 run sed PROGRAM on installed program names
254 --build=BUILD configure for building on BUILD [BUILD=HOST]
255 --host=HOST configure for HOST [guessed]
256 --target=TARGET configure for TARGET [TARGET=HOST]
257 Features and packages:
258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
262 --x-includes=DIR X include files are in DIR
263 --x-libraries=DIR X library files are in DIR
265 if test -n "$ac_help"; then
266 echo "--enable and --with options recognized:$ac_help"
270 -host | --host | --hos | --ho)
272 -host=* | --host=* | --hos=* | --ho=*)
275 -includedir | --includedir | --includedi | --included | --include \
276 | --includ | --inclu | --incl | --inc)
277 ac_prev=includedir ;;
278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
279 | --includ=* | --inclu=* | --incl=* | --inc=*)
280 includedir="$ac_optarg" ;;
282 -infodir | --infodir | --infodi | --infod | --info | --inf)
284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
285 infodir="$ac_optarg" ;;
287 -libdir | --libdir | --libdi | --libd)
289 -libdir=* | --libdir=* | --libdi=* | --libd=*)
290 libdir="$ac_optarg" ;;
292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
293 | --libexe | --libex | --libe)
294 ac_prev=libexecdir ;;
295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
296 | --libexe=* | --libex=* | --libe=*)
297 libexecdir="$ac_optarg" ;;
299 -localstatedir | --localstatedir | --localstatedi | --localstated \
300 | --localstate | --localstat | --localsta | --localst \
301 | --locals | --local | --loca | --loc | --lo)
302 ac_prev=localstatedir ;;
303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
306 localstatedir="$ac_optarg" ;;
308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
311 mandir="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
327 | --oldin | --oldi | --old | --ol | --o)
328 ac_prev=oldincludedir ;;
329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
332 oldincludedir="$ac_optarg" ;;
334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
337 prefix="$ac_optarg" ;;
339 -program-prefix | --program-prefix | --program-prefi | --program-pref \
340 | --program-pre | --program-pr | --program-p)
341 ac_prev=program_prefix ;;
342 -program-prefix=* | --program-prefix=* | --program-prefi=* \
343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
344 program_prefix="$ac_optarg" ;;
346 -program-suffix | --program-suffix | --program-suffi | --program-suff \
347 | --program-suf | --program-su | --program-s)
348 ac_prev=program_suffix ;;
349 -program-suffix=* | --program-suffix=* | --program-suffi=* \
350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
351 program_suffix="$ac_optarg" ;;
353 -program-transform-name | --program-transform-name \
354 | --program-transform-nam | --program-transform-na \
355 | --program-transform-n | --program-transform- \
356 | --program-transform | --program-transfor \
357 | --program-transfo | --program-transf \
358 | --program-trans | --program-tran \
359 | --progr-tra | --program-tr | --program-t)
360 ac_prev=program_transform_name ;;
361 -program-transform-name=* | --program-transform-name=* \
362 | --program-transform-nam=* | --program-transform-na=* \
363 | --program-transform-n=* | --program-transform-=* \
364 | --program-transform=* | --program-transfor=* \
365 | --program-transfo=* | --program-transf=* \
366 | --program-trans=* | --program-tran=* \
367 | --progr-tra=* | --program-tr=* | --program-t=*)
368 program_transform_name="$ac_optarg" ;;
370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
371 | -silent | --silent | --silen | --sile | --sil)
374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
378 sbindir="$ac_optarg" ;;
380 -sharedstatedir | --sharedstatedir | --sharedstatedi \
381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
382 | --sharedst | --shareds | --shared | --share | --shar \
384 ac_prev=sharedstatedir ;;
385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
389 sharedstatedir="$ac_optarg" ;;
391 -site | --site | --sit)
393 -site=* | --site=* | --sit=*)
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev=sysconfdir ;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.13"
421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev=x_includes ;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev=x_libraries ;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file=include/ldap.h
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE; then
563 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp='$CPP $CPPFLAGS'
586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
601 ac_n= ac_c='\c' ac_t=
605 for ac_dir in build $srcdir/build; do
606 if test -f $ac_dir/install-sh; then
608 ac_install_sh="$ac_aux_dir/install-sh -c"
610 elif test -f $ac_dir/install.sh; then
612 ac_install_sh="$ac_aux_dir/install.sh -c"
616 if test -z "$ac_aux_dir"; then
617 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
619 ac_config_guess=$ac_aux_dir/config.guess
620 ac_config_sub=$ac_aux_dir/config.sub
621 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 # Find a good install program. We prefer a C program (faster),
623 # so one script is as good as another. But avoid the broken or
624 # incompatible versions:
625 # SysV /etc/install, /usr/sbin/install
626 # SunOS /usr/etc/install
629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
632 # ./install, which can be erroneously created by make from ./install.sh.
633 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
634 echo "configure:635: checking for a BSD compatible install" >&5
635 if test -z "$INSTALL"; then
636 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
640 for ac_dir in $PATH; do
641 # Account for people who put trailing slashes in PATH elements.
643 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
645 # OSF1 and SCO ODT 3.0 have their own names for install.
646 # Don't use installbsd from OSF since it installs stuff as root
648 for ac_prog in ginstall scoinst install; do
649 if test -f $ac_dir/$ac_prog; then
650 if test $ac_prog = install &&
651 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
652 # AIX install. It has an incompatible calling convention.
655 ac_cv_path_install="$ac_dir/$ac_prog -c"
666 if test "${ac_cv_path_install+set}" = set; then
667 INSTALL="$ac_cv_path_install"
669 # As a last resort, use the slow shell script. We don't cache a
670 # path for INSTALL within a source directory, because that will
671 # break other packages using the cache if that directory is
672 # removed, or if the path is relative.
673 INSTALL="$ac_install_sh"
676 echo "$ac_t""$INSTALL" 1>&6
678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
679 # It thinks the first close brace ends the variable substitution.
680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
686 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
687 echo "configure:688: checking whether build environment is sane" >&5
690 echo timestamp > conftestfile
691 # Do `set' in a subshell so we don't clobber the current shell's
692 # arguments. Must try -L first in case configure is actually a
693 # symlink; some systems play weird games with the mod time of symlinks
694 # (eg FreeBSD returns the mod time of the symlink's containing
697 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
698 if test "$*" = "X"; then
700 set X `ls -t $srcdir/configure conftestfile`
702 if test "$*" != "X $srcdir/configure conftestfile" \
703 && test "$*" != "X conftestfile $srcdir/configure"; then
705 # If neither matched, then we have a broken ls. This can happen
706 # if, for instance, CONFIG_SHELL is bash and it inherits a
707 # broken ls alias from the environment. This has actually
708 # happened. Such a system could not be considered "sane".
709 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
710 alias in your environment" 1>&2; exit 1; }
713 test "$2" = conftestfile
719 { echo "configure: error: newly created file is older than distributed files!
720 Check your system clock" 1>&2; exit 1; }
723 echo "$ac_t""yes" 1>&6
724 if test "$program_transform_name" = s,x,x,; then
725 program_transform_name=
727 # Double any \ or $. echo might interpret backslashes.
728 cat <<\EOF_SED > conftestsed
729 s,\\,\\\\,g; s,\$,$$,g
731 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
734 test "$program_prefix" != NONE &&
735 program_transform_name="s,^,${program_prefix},; $program_transform_name"
736 # Use a double $ so make ignores it.
737 test "$program_suffix" != NONE &&
738 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
740 # sed with no file args requires a program.
741 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
743 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${MAKE-make} sets \${MAKE}" >&5
745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
746 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 cat > conftestmake <<\EOF
751 @echo 'ac_maketemp="${MAKE}"'
753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
754 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
755 if test -n "$ac_maketemp"; then
756 eval ac_cv_prog_make_${ac_make}_set=yes
758 eval ac_cv_prog_make_${ac_make}_set=no
762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
763 echo "$ac_t""yes" 1>&6
766 echo "$ac_t""no" 1>&6
767 SET_MAKE="MAKE=${MAKE-make}"
775 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
776 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
781 missing_dir=`cd $ac_aux_dir && pwd`
782 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
783 echo "configure:784: checking for working aclocal" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
789 echo "$ac_t""found" 1>&6
791 ACLOCAL="$missing_dir/missing aclocal"
792 echo "$ac_t""missing" 1>&6
795 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
796 echo "configure:797: checking for working autoconf" >&5
797 # Run test in a subshell; some versions of sh will print an error if
798 # an executable is not found, even if stderr is redirected.
799 # Redirect stdin to placate older versions of autoconf. Sigh.
800 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
802 echo "$ac_t""found" 1>&6
804 AUTOCONF="$missing_dir/missing autoconf"
805 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking for working automake""... $ac_c" 1>&6
809 echo "configure:810: checking for working automake" >&5
810 # Run test in a subshell; some versions of sh will print an error if
811 # an executable is not found, even if stderr is redirected.
812 # Redirect stdin to placate older versions of autoconf. Sigh.
813 if (automake --version) < /dev/null > /dev/null 2>&1; then
815 echo "$ac_t""found" 1>&6
817 AUTOMAKE="$missing_dir/missing automake"
818 echo "$ac_t""missing" 1>&6
821 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
822 echo "configure:823: checking for working autoheader" >&5
823 # Run test in a subshell; some versions of sh will print an error if
824 # an executable is not found, even if stderr is redirected.
825 # Redirect stdin to placate older versions of autoconf. Sigh.
826 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
827 AUTOHEADER=autoheader
828 echo "$ac_t""found" 1>&6
830 AUTOHEADER="$missing_dir/missing autoheader"
831 echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
835 echo "configure:836: checking for working makeinfo" >&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf. Sigh.
839 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
841 echo "$ac_t""found" 1>&6
843 MAKEINFO="$missing_dir/missing makeinfo"
844 echo "$ac_t""missing" 1>&6
850 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
851 echo "configure:852: checking configure arguments" >&5
856 ldap_subdir="openldap"
858 # Check whether --with-subdir or --without-subdir was given.
859 if test "${with_subdir+set}" = set; then
860 withval="$with_subdir"
862 if test "$withval" = "no"; then
864 elif test "$withval" != "yes"; then
865 ldap_subdir="$withval"
871 # OpenLDAP --enable-debug
872 # Check whether --enable-debug or --disable-debug was given.
873 if test "${enable_debug+set}" = set; then
874 enableval="$enable_debug"
877 for ol_val in auto yes no ; do
878 if test "$enableval" = "$ol_val" ; then
882 if test "$ol_arg" = "invalid" ; then
883 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
885 ol_enable_debug="$ol_arg"
888 ol_enable_debug="yes"
892 # OpenLDAP --enable-proctitle
893 # Check whether --enable-proctitle or --disable-proctitle was given.
894 if test "${enable_proctitle+set}" = set; then
895 enableval="$enable_proctitle"
898 for ol_val in auto yes no ; do
899 if test "$enableval" = "$ol_val" ; then
903 if test "$ol_arg" = "invalid" ; then
904 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
906 ol_enable_proctitle="$ol_arg"
909 ol_enable_proctitle="yes"
911 # end --enable-proctitle
912 # OpenLDAP --enable-cache
913 # Check whether --enable-cache or --disable-cache was given.
914 if test "${enable_cache+set}" = set; then
915 enableval="$enable_cache"
918 for ol_val in auto yes no ; do
919 if test "$enableval" = "$ol_val" ; then
923 if test "$ol_arg" = "invalid" ; then
924 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
926 ol_enable_cache="$ol_arg"
929 ol_enable_cache="yes"
932 # OpenLDAP --enable-dns
933 # Check whether --enable-dns or --disable-dns was given.
934 if test "${enable_dns+set}" = set; then
935 enableval="$enable_dns"
938 for ol_val in auto yes no ; do
939 if test "$enableval" = "$ol_val" ; then
943 if test "$ol_arg" = "invalid" ; then
944 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
946 ol_enable_dns="$ol_arg"
952 # OpenLDAP --enable-referrals
953 # Check whether --enable-referrals or --disable-referrals was given.
954 if test "${enable_referrals+set}" = set; then
955 enableval="$enable_referrals"
958 for ol_val in auto yes no ; do
959 if test "$enableval" = "$ol_val" ; then
963 if test "$ol_arg" = "invalid" ; then
964 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
966 ol_enable_referrals="$ol_arg"
969 ol_enable_referrals="yes"
971 # end --enable-referrals
972 # OpenLDAP --enable-cldap
973 # Check whether --enable-cldap or --disable-cldap was given.
974 if test "${enable_cldap+set}" = set; then
975 enableval="$enable_cldap"
978 for ol_val in auto yes no ; do
979 if test "$enableval" = "$ol_val" ; then
983 if test "$ol_arg" = "invalid" ; then
984 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
986 ol_enable_cldap="$ol_arg"
992 # OpenLDAP --enable-x_compile
993 # Check whether --enable-x_compile or --disable-x_compile was given.
994 if test "${enable_x_compile+set}" = set; then
995 enableval="$enable_x_compile"
998 for ol_val in yes no ; do
999 if test "$enableval" = "$ol_val" ; then
1003 if test "$ol_arg" = "invalid" ; then
1004 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1006 ol_enable_x_compile="$ol_arg"
1009 ol_enable_x_compile="no"
1011 # end --enable-x_compile
1013 # OpenLDAP --enable-dmalloc
1014 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1015 if test "${enable_dmalloc+set}" = set; then
1016 enableval="$enable_dmalloc"
1019 for ol_val in auto yes no ; do
1020 if test "$enableval" = "$ol_val" ; then
1024 if test "$ol_arg" = "invalid" ; then
1025 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1027 ol_enable_dmalloc="$ol_arg"
1030 ol_enable_dmalloc="no"
1032 # end --enable-dmalloc
1034 # OpenLDAP --with-kerberos
1035 # Check whether --with-kerberos or --without-kerberos was given.
1036 if test "${with_kerberos+set}" = set; then
1037 withval="$with_kerberos"
1040 for ol_val in auto k5 k4 afs yes no ; do
1041 if test "$withval" = "$ol_val" ; then
1045 if test "$ol_arg" = "invalid" ; then
1046 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1048 ol_with_kerberos="$ol_arg"
1051 ol_with_kerberos="auto"
1053 # end --with-kerberos
1055 # OpenLDAP --with-readline
1056 # Check whether --with-readline or --without-readline was given.
1057 if test "${with_readline+set}" = set; then
1058 withval="$with_readline"
1061 for ol_val in auto yes no ; do
1062 if test "$withval" = "$ol_val" ; then
1066 if test "$ol_arg" = "invalid" ; then
1067 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1069 ol_with_readline="$ol_arg"
1072 ol_with_readline="auto"
1074 # end --with-readline
1076 # OpenLDAP --with-threads
1077 # Check whether --with-threads or --without-threads was given.
1078 if test "${with_threads+set}" = set; then
1079 withval="$with_threads"
1082 for ol_val in auto posix mach lwp yes no manual ; do
1083 if test "$withval" = "$ol_val" ; then
1087 if test "$ol_arg" = "invalid" ; then
1088 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1090 ol_with_threads="$ol_arg"
1093 ol_with_threads="auto"
1095 # end --with-threads
1097 # OpenLDAP --with-tls
1098 # Check whether --with-tls or --without-tls was given.
1099 if test "${with_tls+set}" = set; then
1103 for ol_val in auto ssleay openssl yes no ; do
1104 if test "$withval" = "$ol_val" ; then
1108 if test "$ol_arg" = "invalid" ; then
1109 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1111 ol_with_tls="$ol_arg"
1118 # OpenLDAP --with-yielding_select
1119 # Check whether --with-yielding_select or --without-yielding_select was given.
1120 if test "${with_yielding_select+set}" = set; then
1121 withval="$with_yielding_select"
1124 for ol_val in auto yes no manual ; do
1125 if test "$withval" = "$ol_val" ; then
1129 if test "$ol_arg" = "invalid" ; then
1130 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1132 ol_with_yielding_select="$ol_arg"
1135 ol_with_yielding_select="auto"
1137 # end --with-yielding_select
1141 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1142 if test "${with_xxldapdoptions+set}" = set; then
1143 withval="$with_xxldapdoptions"
1147 # OpenLDAP --enable-ldapd
1148 # Check whether --enable-ldapd or --disable-ldapd was given.
1149 if test "${enable_ldapd+set}" = set; then
1150 enableval="$enable_ldapd"
1153 for ol_val in auto yes no ; do
1154 if test "$enableval" = "$ol_val" ; then
1158 if test "$ol_arg" = "invalid" ; then
1159 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1161 ol_enable_ldapd="$ol_arg"
1164 ol_enable_ldapd="no"
1166 # end --enable-ldapd
1168 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1169 if test "${with_xxslapdoptions+set}" = set; then
1170 withval="$with_xxslapdoptions"
1174 # OpenLDAP --enable-slapd
1175 # Check whether --enable-slapd or --disable-slapd was given.
1176 if test "${enable_slapd+set}" = set; then
1177 enableval="$enable_slapd"
1180 for ol_val in auto yes no ; do
1181 if test "$enableval" = "$ol_val" ; then
1185 if test "$ol_arg" = "invalid" ; then
1186 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1188 ol_enable_slapd="$ol_arg"
1191 ol_enable_slapd="yes"
1193 # end --enable-slapd
1194 # OpenLDAP --enable-aclgroups
1195 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1196 if test "${enable_aclgroups+set}" = set; then
1197 enableval="$enable_aclgroups"
1200 for ol_val in auto yes no ; do
1201 if test "$enableval" = "$ol_val" ; then
1205 if test "$ol_arg" = "invalid" ; then
1206 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1208 ol_enable_aclgroups="$ol_arg"
1211 ol_enable_aclgroups="auto"
1213 # end --enable-aclgroups
1214 # OpenLDAP --enable-cleartext
1215 # Check whether --enable-cleartext or --disable-cleartext was given.
1216 if test "${enable_cleartext+set}" = set; then
1217 enableval="$enable_cleartext"
1220 for ol_val in auto yes no ; do
1221 if test "$enableval" = "$ol_val" ; then
1225 if test "$ol_arg" = "invalid" ; then
1226 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1228 ol_enable_cleartext="$ol_arg"
1231 ol_enable_cleartext="yes"
1233 # end --enable-cleartext
1234 # OpenLDAP --enable-crypt
1235 # Check whether --enable-crypt or --disable-crypt was given.
1236 if test "${enable_crypt+set}" = set; then
1237 enableval="$enable_crypt"
1240 for ol_val in auto yes no ; do
1241 if test "$enableval" = "$ol_val" ; then
1245 if test "$ol_arg" = "invalid" ; then
1246 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1248 ol_enable_crypt="$ol_arg"
1251 ol_enable_crypt="auto"
1253 # end --enable-crypt
1254 # OpenLDAP --enable-wrappers
1255 # Check whether --enable-wrappers or --disable-wrappers was given.
1256 if test "${enable_wrappers+set}" = set; then
1257 enableval="$enable_wrappers"
1260 for ol_val in auto yes no ; do
1261 if test "$enableval" = "$ol_val" ; then
1265 if test "$ol_arg" = "invalid" ; then
1266 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1268 ol_enable_wrappers="$ol_arg"
1271 ol_enable_wrappers="no"
1273 # end --enable-wrappers
1274 # OpenLDAP --enable-phonetic
1275 # Check whether --enable-phonetic or --disable-phonetic was given.
1276 if test "${enable_phonetic+set}" = set; then
1277 enableval="$enable_phonetic"
1280 for ol_val in auto yes no ; do
1281 if test "$enableval" = "$ol_val" ; then
1285 if test "$ol_arg" = "invalid" ; then
1286 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1288 ol_enable_phonetic="$ol_arg"
1291 ol_enable_phonetic="no"
1293 # end --enable-phonetic
1294 # OpenLDAP --enable-rlookups
1295 # Check whether --enable-rlookups or --disable-rlookups was given.
1296 if test "${enable_rlookups+set}" = set; then
1297 enableval="$enable_rlookups"
1300 for ol_val in auto yes no ; do
1301 if test "$enableval" = "$ol_val" ; then
1305 if test "$ol_arg" = "invalid" ; then
1306 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1308 ol_enable_rlookups="$ol_arg"
1311 ol_enable_rlookups="auto"
1313 # end --enable-rlookups
1315 # OpenLDAP --enable-bdb2
1316 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1317 if test "${enable_bdb2+set}" = set; then
1318 enableval="$enable_bdb2"
1321 for ol_val in auto yes no ; do
1322 if test "$enableval" = "$ol_val" ; then
1326 if test "$ol_arg" = "invalid" ; then
1327 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1329 ol_enable_bdb2="$ol_arg"
1335 # OpenLDAP --enable-ldbm
1336 # Check whether --enable-ldbm or --disable-ldbm was given.
1337 if test "${enable_ldbm+set}" = set; then
1338 enableval="$enable_ldbm"
1341 for ol_val in auto yes no ; do
1342 if test "$enableval" = "$ol_val" ; then
1346 if test "$ol_arg" = "invalid" ; then
1347 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1349 ol_enable_ldbm="$ol_arg"
1352 ol_enable_ldbm="yes"
1355 # OpenLDAP --with-ldbm_api
1356 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1357 if test "${with_ldbm_api+set}" = set; then
1358 withval="$with_ldbm_api"
1361 for ol_val in auto db2 db gdbm ndbm manual ; do
1362 if test "$withval" = "$ol_val" ; then
1366 if test "$ol_arg" = "invalid" ; then
1367 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1369 ol_with_ldbm_api="$ol_arg"
1372 ol_with_ldbm_api="auto"
1374 # end --with-ldbm_api
1376 # OpenLDAP --with-ldbm_type
1377 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1378 if test "${with_ldbm_type+set}" = set; then
1379 withval="$with_ldbm_type"
1382 for ol_val in auto btree hash ; do
1383 if test "$withval" = "$ol_val" ; then
1387 if test "$ol_arg" = "invalid" ; then
1388 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1390 ol_with_ldbm_type="$ol_arg"
1393 ol_with_ldbm_type="auto"
1395 # end --with-ldbm_type
1398 # OpenLDAP --enable-passwd
1399 # Check whether --enable-passwd or --disable-passwd was given.
1400 if test "${enable_passwd+set}" = set; then
1401 enableval="$enable_passwd"
1404 for ol_val in auto yes no ; do
1405 if test "$enableval" = "$ol_val" ; then
1409 if test "$ol_arg" = "invalid" ; then
1410 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1412 ol_enable_passwd="$ol_arg"
1415 ol_enable_passwd="no"
1417 # end --enable-passwd
1418 # OpenLDAP --enable-perl
1419 # Check whether --enable-perl or --disable-perl was given.
1420 if test "${enable_perl+set}" = set; then
1421 enableval="$enable_perl"
1424 for ol_val in auto yes no ; do
1425 if test "$enableval" = "$ol_val" ; then
1429 if test "$ol_arg" = "invalid" ; then
1430 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1432 ol_enable_perl="$ol_arg"
1438 # OpenLDAP --enable-shell
1439 # Check whether --enable-shell or --disable-shell was given.
1440 if test "${enable_shell+set}" = set; then
1441 enableval="$enable_shell"
1444 for ol_val in auto yes no ; do
1445 if test "$enableval" = "$ol_val" ; then
1449 if test "$ol_arg" = "invalid" ; then
1450 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1452 ol_enable_shell="$ol_arg"
1455 ol_enable_shell="no"
1457 # end --enable-shell
1458 # OpenLDAP --enable-tcl
1459 # Check whether --enable-tcl or --disable-tcl was given.
1460 if test "${enable_tcl+set}" = set; then
1461 enableval="$enable_tcl"
1464 for ol_val in auto yes no ; do
1465 if test "$enableval" = "$ol_val" ; then
1469 if test "$ol_arg" = "invalid" ; then
1470 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1472 ol_enable_tcl="$ol_arg"
1479 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1480 if test "${with_xxslurpdoptions+set}" = set; then
1481 withval="$with_xxslurpdoptions"
1485 # OpenLDAP --enable-slurpd
1486 # Check whether --enable-slurpd or --disable-slurpd was given.
1487 if test "${enable_slurpd+set}" = set; then
1488 enableval="$enable_slurpd"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1499 ol_enable_slurpd="$ol_arg"
1502 ol_enable_slurpd="auto"
1504 # end --enable-slurpd
1506 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1507 if test "${with_xxliboptions+set}" = set; then
1508 withval="$with_xxliboptions"
1512 # Check whether --enable-static or --disable-static was given.
1513 if test "${enable_static+set}" = set; then
1514 enableval="$enable_static"
1515 p=${PACKAGE-default}
1516 case "$enableval" in
1517 yes) enable_static=yes ;;
1518 no) enable_static=no ;;
1521 # Look at the argument we got. We use all the common list separators.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1523 for pkg in $enableval; do
1524 if test "X$pkg" = "X$p"; then
1535 # Check whether --enable-shared or --disable-shared was given.
1536 if test "${enable_shared+set}" = set; then
1537 enableval="$enable_shared"
1538 p=${PACKAGE-default}
1539 case "$enableval" in
1540 yes) enable_shared=yes ;;
1541 no) enable_shared=no ;;
1544 # Look at the argument we got. We use all the common list separators.
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1546 for pkg in $enableval; do
1547 if test "X$pkg" = "X$p"; then
1560 if test $ol_enable_dns = yes ; then
1561 if test $ol_enable_referrals = no ; then
1562 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1564 if test $ol_enable_referrals = auto ; then
1565 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1566 ol_enable_referrals=yes
1570 if test $ol_enable_slapd = no ; then
1571 if test $ol_enable_bdb2 = yes ; then
1572 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1574 if test $ol_enable_ldbm = yes ; then
1575 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1577 if test $ol_enable_passwd = yes ; then
1578 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1580 if test $ol_enable_perl = yes ; then
1581 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1583 if test $ol_enable_shell = yes ; then
1584 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1586 if test $ol_enable_tcl = yes ; then
1587 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1589 if test $ol_enable_aclgroups = yes ; then
1590 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1592 if test $ol_enable_wrappers = yes ; then
1593 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1595 if test $ol_enable_phonetic = yes ; then
1596 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1598 if test $ol_enable_rlookups = yes ; then
1599 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1601 if test $ol_with_ldbm_api != auto ; then
1602 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1604 if test $ol_with_ldbm_type != auto ; then
1605 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1607 if test $ol_enable_slurpd = yes ; then
1608 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1611 # force settings to no
1618 ol_enable_aclgroups=no
1619 ol_enable_wrappers=no
1620 ol_enable_phonetic=no
1621 ol_enable_rlookups=no
1623 ol_with_ldbm_type=no
1626 elif test $ol_enable_ldbm = no ; then
1628 if test $ol_with_ldbm_api != auto ; then
1629 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1632 if test $ol_with_ldbm_type != auto ; then
1633 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1636 if test $ol_enable_bdb2 = yes ; then
1637 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1640 if test $ol_enable_passwd = no -a \
1641 $ol_enable_perl = no -a \
1642 $ol_enable_shell = no -a \
1643 $ol_enable_tcl = no ; then
1644 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1648 ol_with_ldbm_type=no
1650 elif test $ol_enable_bdb2 = yes ; then
1652 if test $ol_with_ldbm_api != auto -a \
1653 $ol_with_ldbm_api != db2 ; then
1654 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1657 ol_with_ldbm_api=db2
1661 if test $ol_enable_bdb2 != no ; then
1662 if test $ol_with_ldbm_api != auto -a \
1663 $ol_with_ldbm_api != db2 ; then
1664 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1669 if test $ol_with_ldbm_api = gdbm -a \
1670 $ol_with_ldbm_type = btree ; then
1671 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1673 if test $ol_with_ldbm_api = ndbm -a \
1674 $ol_with_ldbm_type = btree ; then
1675 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1679 if test $ol_enable_slurpd = yes ; then
1680 if test $ol_with_threads = no ; then
1681 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1685 echo "$ac_t""done" 1>&6
1688 # Make sure we can run config.sub.
1689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1693 echo $ac_n "checking host system type""... $ac_c" 1>&6
1694 echo "configure:1695: checking host system type" >&5
1697 case "$host_alias" in
1701 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1704 *) host_alias=$nonopt ;;
1708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1712 echo "$ac_t""$host" 1>&6
1738 SLAPD_PERL_CPPFLAGS=
1746 # Find a good install program. We prefer a C program (faster),
1747 # so one script is as good as another. But avoid the broken or
1748 # incompatible versions:
1749 # SysV /etc/install, /usr/sbin/install
1750 # SunOS /usr/etc/install
1751 # IRIX /sbin/install
1753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1756 # ./install, which can be erroneously created by make from ./install.sh.
1757 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1758 echo "configure:1759: checking for a BSD compatible install" >&5
1759 if test -z "$INSTALL"; then
1760 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1764 for ac_dir in $PATH; do
1765 # Account for people who put trailing slashes in PATH elements.
1767 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1769 # OSF1 and SCO ODT 3.0 have their own names for install.
1770 # Don't use installbsd from OSF since it installs stuff as root
1772 for ac_prog in ginstall scoinst install; do
1773 if test -f $ac_dir/$ac_prog; then
1774 if test $ac_prog = install &&
1775 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1776 # AIX install. It has an incompatible calling convention.
1779 ac_cv_path_install="$ac_dir/$ac_prog -c"
1790 if test "${ac_cv_path_install+set}" = set; then
1791 INSTALL="$ac_cv_path_install"
1793 # As a last resort, use the slow shell script. We don't cache a
1794 # path for INSTALL within a source directory, because that will
1795 # break other packages using the cache if that directory is
1796 # removed, or if the path is relative.
1797 INSTALL="$ac_install_sh"
1800 echo "$ac_t""$INSTALL" 1>&6
1802 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1803 # It thinks the first close brace ends the variable substitution.
1804 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1806 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1808 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1814 # Extract the first word of "ranlib", so it can be a program name with args.
1815 set dummy ranlib; ac_word=$2
1816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1817 echo "configure:1818: checking for $ac_word" >&5
1818 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 if test -n "$RANLIB"; then
1822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1826 for ac_dir in $ac_dummy; do
1827 test -z "$ac_dir" && ac_dir=.
1828 if test -f $ac_dir/$ac_word; then
1829 ac_cv_prog_RANLIB="ranlib"
1834 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1837 RANLIB="$ac_cv_prog_RANLIB"
1838 if test -n "$RANLIB"; then
1839 echo "$ac_t""$RANLIB" 1>&6
1841 echo "$ac_t""no" 1>&6
1844 # Extract the first word of "gcc", so it can be a program name with args.
1845 set dummy gcc; ac_word=$2
1846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1847 echo "configure:1848: checking for $ac_word" >&5
1848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 for ac_dir in $ac_dummy; do
1857 test -z "$ac_dir" && ac_dir=.
1858 if test -f $ac_dir/$ac_word; then
1867 if test -n "$CC"; then
1868 echo "$ac_t""$CC" 1>&6
1870 echo "$ac_t""no" 1>&6
1873 if test -z "$CC"; then
1874 # Extract the first word of "cc", so it can be a program name with args.
1875 set dummy cc; ac_word=$2
1876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1877 echo "configure:1878: checking for $ac_word" >&5
1878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1887 for ac_dir in $ac_dummy; do
1888 test -z "$ac_dir" && ac_dir=.
1889 if test -f $ac_dir/$ac_word; then
1890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1891 ac_prog_rejected=yes
1899 if test $ac_prog_rejected = yes; then
1900 # We found a bogon in the path, so make sure we never use it.
1901 set dummy $ac_cv_prog_CC
1903 if test $# -gt 0; then
1904 # We chose a different compiler from the bogus one.
1905 # However, it has the same basename, so the bogon will be chosen
1906 # first if we set CC to just the basename; use the full file name.
1908 set dummy "$ac_dir/$ac_word" "$@"
1916 if test -n "$CC"; then
1917 echo "$ac_t""$CC" 1>&6
1919 echo "$ac_t""no" 1>&6
1922 if test -z "$CC"; then
1923 case "`uname -s`" in
1925 # Extract the first word of "cl", so it can be a program name with args.
1926 set dummy cl; ac_word=$2
1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_word" >&5
1929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 if test -n "$CC"; then
1933 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1937 for ac_dir in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir=.
1939 if test -f $ac_dir/$ac_word; then
1948 if test -n "$CC"; then
1949 echo "$ac_t""$CC" 1>&6
1951 echo "$ac_t""no" 1>&6
1956 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1960 echo "configure:1961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1967 cross_compiling=$ac_cv_prog_cc_cross
1969 cat > conftest.$ac_ext << EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1977 ac_cv_prog_cc_works=yes
1978 # If we can't run a trivial program, we are probably using a cross compiler.
1979 if (./conftest; exit) 2>/dev/null; then
1980 ac_cv_prog_cc_cross=no
1982 ac_cv_prog_cc_cross=yes
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1987 ac_cv_prog_cc_works=no
1991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1995 cross_compiling=$ac_cv_prog_cc_cross
1997 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1998 if test $ac_cv_prog_cc_works = no; then
1999 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2001 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2002 echo "configure:2003: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2003 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2004 cross_compiling=$ac_cv_prog_cc_cross
2006 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2007 echo "configure:2008: checking whether we are using GNU C" >&5
2008 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 cat > conftest.c <<EOF
2016 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2023 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2025 if test $ac_cv_prog_gcc = yes; then
2031 ac_test_CFLAGS="${CFLAGS+set}"
2032 ac_save_CFLAGS="$CFLAGS"
2034 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2035 echo "configure:2036: checking whether ${CC-cc} accepts -g" >&5
2036 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 echo 'void f(){}' > conftest.c
2040 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2049 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2050 if test "$ac_test_CFLAGS" = set; then
2051 CFLAGS="$ac_save_CFLAGS"
2052 elif test $ac_cv_prog_cc_g = yes; then
2053 if test "$GCC" = yes; then
2059 if test "$GCC" = yes; then
2066 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2067 if test "${with_gnu_ld+set}" = set; then
2068 withval="$with_gnu_ld"
2069 test "$withval" = no || with_gnu_ld=yes
2076 if test "$ac_cv_prog_gcc" = yes; then
2077 # Check if gcc -print-prog-name=ld gives a path.
2078 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2079 echo "configure:2080: checking for ld used by GCC" >&5
2080 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2082 # Accept absolute paths.
2084 test -z "$LD" && LD="$ac_prog"
2087 # If it fails, then pretend we aren't using GCC.
2091 # If it is relative, then search for the first ld in PATH.
2095 elif test "$with_gnu_ld" = yes; then
2096 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2097 echo "configure:2098: checking for GNU ld" >&5
2099 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2100 echo "configure:2101: checking for non-GNU ld" >&5
2102 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 if test -z "$LD"; then
2106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2107 for ac_dir in $PATH; do
2108 test -z "$ac_dir" && ac_dir=.
2109 if test -f "$ac_dir/$ac_prog"; then
2110 ac_cv_path_LD="$ac_dir/$ac_prog"
2111 # Check to see if the program is GNU ld. I'd rather use --version,
2112 # but apparently some GNU ld's only accept -v.
2113 # Break only if it was the GNU/non-GNU ld that we prefer.
2114 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2115 test "$with_gnu_ld" != no && break
2117 test "$with_gnu_ld" != yes && break
2123 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2128 if test -n "$LD"; then
2129 echo "$ac_t""$LD" 1>&6
2131 echo "$ac_t""no" 1>&6
2133 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2135 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2136 echo "configure:2137: checking if the linker ($LD) is GNU ld" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2141 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2142 ac_cv_prog_gnu_ld=yes
2144 ac_cv_prog_gnu_ld=no
2148 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2151 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2152 echo "configure:2153: checking for BSD-compatible nm" >&5
2153 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2158 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2162 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2163 test -z "$ac_dir" && ac_dir=.
2164 if test -f $ac_dir/nm; then
2165 # Check to see if the nm accepts a BSD-compat flag.
2166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2167 # nm: unknown option "B" ignored
2168 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2169 ac_cv_path_NM="$ac_dir/nm -B"
2170 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2171 ac_cv_path_NM="$ac_dir/nm -p"
2173 ac_cv_path_NM="$ac_dir/nm"
2179 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2185 echo "$ac_t""$NM" 1>&6
2188 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2189 echo "configure:2190: checking whether ln -s works" >&5
2190 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2194 if ln -s X conftestdata 2>/dev/null
2197 ac_cv_prog_LN_S="ln -s"
2202 LN_S="$ac_cv_prog_LN_S"
2203 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2204 echo "$ac_t""yes" 1>&6
2206 echo "$ac_t""no" 1>&6
2209 # Always use our own libtool.
2210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2212 # Check for any special flags to pass to ltconfig.
2214 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2215 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2216 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2217 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2218 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2220 # Some flags need to be propagated to the compiler or linker for good
2224 # Find out which ABI we are using.
2225 echo '#line 2226 "configure"' > conftest.$ac_ext
2226 if { (eval echo configure:2227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2227 case "`/usr/bin/file conftest.o`" in
2243 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2244 CFLAGS="$CFLAGS -belf"
2248 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2249 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2250 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2251 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2252 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2253 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2256 for ac_prog in mawk gawk nawk awk
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_word" >&5
2262 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 if test -n "$AWK"; then
2266 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2270 for ac_dir in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir=.
2272 if test -f $ac_dir/$ac_word; then
2273 ac_cv_prog_AWK="$ac_prog"
2280 AWK="$ac_cv_prog_AWK"
2281 if test -n "$AWK"; then
2282 echo "$ac_t""$AWK" 1>&6
2284 echo "$ac_t""no" 1>&6
2287 test -n "$AWK" && break
2290 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether ln -s works" >&5
2292 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2296 if ln -s X conftestdata 2>/dev/null
2299 ac_cv_prog_LN_S="ln -s"
2304 LN_S="$ac_cv_prog_LN_S"
2305 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2306 echo "$ac_t""yes" 1>&6
2308 echo "$ac_t""no" 1>&6
2312 # Extract the first word of "sendmail", so it can be a program name with args.
2313 set dummy sendmail; ac_word=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2321 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2324 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2328 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2329 for ac_dir in $ac_dummy; do
2330 test -z "$ac_dir" && ac_dir=.
2331 if test -f $ac_dir/$ac_word; then
2332 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2337 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2341 SENDMAIL="$ac_cv_path_SENDMAIL"
2342 if test -n "$SENDMAIL"; then
2343 echo "$ac_t""$SENDMAIL" 1>&6
2345 echo "$ac_t""no" 1>&6
2348 # Extract the first word of "vi", so it can be a program name with args.
2349 set dummy vi; ac_word=$2
2350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2351 echo "configure:2352: checking for $ac_word" >&5
2352 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2357 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2360 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2364 ac_dummy="$PATH:/usr/ucb"
2365 for ac_dir in $ac_dummy; do
2366 test -z "$ac_dir" && ac_dir=.
2367 if test -f $ac_dir/$ac_word; then
2368 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2373 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2377 EDITOR="$ac_cv_path_EDITOR"
2378 if test -n "$EDITOR"; then
2379 echo "$ac_t""$EDITOR" 1>&6
2381 echo "$ac_t""no" 1>&6
2384 # Extract the first word of "finger", so it can be a program name with args.
2385 set dummy finger; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2393 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2396 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2400 ac_dummy="$PATH:/usr/ucb"
2401 for ac_dir in $ac_dummy; do
2402 test -z "$ac_dir" && ac_dir=.
2403 if test -f $ac_dir/$ac_word; then
2404 ac_cv_path_FINGER="$ac_dir/$ac_word"
2409 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2413 FINGER="$ac_cv_path_FINGER"
2414 if test -n "$FINGER"; then
2415 echo "$ac_t""$FINGER" 1>&6
2417 echo "$ac_t""no" 1>&6
2421 if test $ol_enable_perl = yes ; then
2422 # Extract the first word of "perl", so it can be a program name with args.
2423 set dummy perl; ac_word=$2
2424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_word" >&5
2426 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2431 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2434 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2439 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 if test -f $ac_dir/$ac_word; then
2442 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2447 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2451 PERLBIN="$ac_cv_path_PERLBIN"
2452 if test -n "$PERLBIN"; then
2453 echo "$ac_t""$PERLBIN" 1>&6
2455 echo "$ac_t""no" 1>&6
2459 if test "no$PERLBIN" = "no" ; then
2463 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2464 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2467 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2468 echo "configure:2469: checking how to run the C preprocessor" >&5
2469 # On Suns, sometimes $CPP names a directory.
2470 if test -n "$CPP" && test -d "$CPP"; then
2473 if test -z "$CPP"; then
2474 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 # This must be in double quotes, not single quotes, because CPP may get
2478 # substituted into the Makefile and "${CC-cc}" will confuse make.
2480 # On the NeXT, cc -E runs the code through the compiler's parser,
2481 # not just through cpp.
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 CPP="${CC-cc} -E -traditional-cpp"
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2512 echo "configure: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2515 CPP="${CC-cc} -nologo -E"
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2523 { (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2525 if test -z "$ac_err"; then
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2539 ac_cv_prog_CPP="$CPP"
2541 CPP="$ac_cv_prog_CPP"
2543 ac_cv_prog_CPP="$CPP"
2545 echo "$ac_t""$CPP" 1>&6
2548 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2549 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2551 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2552 echo "configure: warning: programs compiled here do run here..." 1>&2
2553 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2555 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2556 echo "configure: warning: programs compiled here do not run here..." 1>&2
2557 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2560 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2561 echo "configure:2562: checking for AIX" >&5
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571 egrep "yes" >/dev/null 2>&1; then
2573 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2574 #define _ALL_SOURCE 1
2579 echo "$ac_t""no" 1>&6
2584 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2585 echo "configure:2586: checking for POSIXized ISC" >&5
2586 if test -d /etc/conf/kconfig.d &&
2587 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2589 echo "$ac_t""yes" 1>&6
2590 ISC=yes # If later tests want to check for ISC.
2591 cat >> confdefs.h <<\EOF
2592 #define _POSIX_SOURCE 1
2595 if test "$GCC" = yes; then
2601 echo "$ac_t""no" 1>&6
2605 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2606 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2607 echo "configure:2608: checking for minix/config.h" >&5
2608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 #include <minix/config.h>
2616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2617 { (eval echo configure:2618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2619 if test -z "$ac_err"; then
2621 eval "ac_cv_header_$ac_safe=yes"
2624 echo "configure: failed program was:" >&5
2625 cat conftest.$ac_ext >&5
2627 eval "ac_cv_header_$ac_safe=no"
2631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2635 echo "$ac_t""no" 1>&6
2639 if test "$MINIX" = yes; then
2640 cat >> confdefs.h <<\EOF
2641 #define _POSIX_SOURCE 1
2644 cat >> confdefs.h <<\EOF
2645 #define _POSIX_1_SOURCE 2
2648 cat >> confdefs.h <<\EOF
2655 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2656 echo "configure:2657: checking for Cygwin environment" >&5
2657 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2667 #define __CYGWIN__ __CYGWIN32__
2672 if { (eval echo configure:2673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2685 echo "$ac_t""$ac_cv_cygwin" 1>&6
2687 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2688 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2689 echo "configure:2690: checking for mingw32 environment" >&5
2690 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2701 if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2705 echo "configure: failed program was:" >&5
2706 cat conftest.$ac_ext >&5
2714 echo "$ac_t""$ac_cv_mingw32" 1>&6
2716 test "$ac_cv_mingw32" = yes && MINGW32=yes
2719 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2720 echo "configure:2721: checking for executable suffix" >&5
2721 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2728 echo 'int main () { return 0; }' > conftest.$ac_ext
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2731 for file in conftest.*; do
2733 *.c | *.o | *.obj) ;;
2734 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2738 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2741 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2746 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2747 echo "$ac_t""${ac_cv_exeext}" 1>&6
2750 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2751 echo "configure:2752: checking for object suffix" >&5
2752 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2756 echo 'int i = 1;' > conftest.$ac_ext
2757 if { (eval echo configure:2758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2758 for ac_file in conftest.*; do
2761 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2765 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2770 echo "$ac_t""$ac_cv_objext" 1>&6
2771 OBJEXT=$ac_cv_objext
2772 ac_objext=$ac_cv_objext
2778 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2779 echo "configure:2780: checking for ${CC-cc} option to accept ANSI C" >&5
2780 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 am_cv_prog_cc_stdc=no
2785 # Don't try gcc -ansi; that turns off useful extensions and
2786 # breaks some systems' header files.
2787 # AIX -qlanglvl=ansi
2788 # Ultrix and OSF/1 -std1
2789 # HP-UX -Aa -D_HPUX_SOURCE
2790 # SVR4 -Xc -D__EXTENSIONS__
2791 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2793 CC="$ac_save_CC $ac_arg"
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2799 #include <sys/types.h>
2800 #include <sys/stat.h>
2801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2802 struct buf { int x; };
2803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2804 static char *e (p, i)
2810 static char *f (char * (*g) (char **, int), char **p, ...)
2815 s = g (p, va_arg (v,int));
2819 int test (int i, double x);
2820 struct s1 {int (*f) (int a);};
2821 struct s2 {int (*f) (double a);};
2822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2832 if { (eval echo configure:2833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2834 am_cv_prog_cc_stdc="$ac_arg"; break
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2845 if test -z "$am_cv_prog_cc_stdc"; then
2846 echo "$ac_t""none needed" 1>&6
2848 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2850 case "x$am_cv_prog_cc_stdc" in
2852 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2855 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2856 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2862 echo $ac_n "checking for socket""... $ac_c" 1>&6
2863 echo "configure:2864: checking for socket" >&5
2864 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 /* System header to define __stub macros and hopefully few prototypes,
2871 which can conflict with char socket(); below. */
2873 /* Override any gcc2 internal prototype to avoid an error. */
2874 /* We use char because int might match the return type of a gcc2
2875 builtin and then its argument prototype would still apply. */
2880 /* The GNU C library defines this for functions which it implements
2881 to always fail with ENOSYS. Some functions are actually named
2882 something starting with __ and the normal name is an alias. */
2883 #if defined (__stub_socket) || defined (__stub___socket)
2891 if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2893 eval "ac_cv_func_socket=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 eval "ac_cv_func_socket=no"
2903 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2907 echo "$ac_t""no" 1>&6
2909 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2910 echo "configure:2911: checking for main in -lsocket" >&5
2911 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 ac_save_LIBS="$LIBS"
2916 LIBS="-lsocket $LIBS"
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927 eval "ac_cv_lib_$ac_lib_var=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 eval "ac_cv_lib_$ac_lib_var=no"
2935 LIBS="$ac_save_LIBS"
2938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2942 cat >> confdefs.h <<EOF
2943 #define $ac_tr_lib 1
2946 LIBS="-lsocket $LIBS"
2949 echo "$ac_t""no" 1>&6
2952 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2953 echo "configure:2954: checking for main in -lnet" >&5
2954 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 ac_save_LIBS="$LIBS"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2970 eval "ac_cv_lib_$ac_lib_var=yes"
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2975 eval "ac_cv_lib_$ac_lib_var=no"
2978 LIBS="$ac_save_LIBS"
2981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2982 echo "$ac_t""yes" 1>&6
2983 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2985 cat >> confdefs.h <<EOF
2986 #define $ac_tr_lib 1
2992 echo "$ac_t""no" 1>&6
2995 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2996 echo "configure:2997: checking for main in -lnsl_s" >&5
2997 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 ac_save_LIBS="$LIBS"
3002 LIBS="-lnsl_s $LIBS"
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3011 if { (eval echo configure:3012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3013 eval "ac_cv_lib_$ac_lib_var=yes"
3015 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3018 eval "ac_cv_lib_$ac_lib_var=no"
3021 LIBS="$ac_save_LIBS"
3024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3025 echo "$ac_t""yes" 1>&6
3026 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3028 cat >> confdefs.h <<EOF
3029 #define $ac_tr_lib 1
3032 LIBS="-lnsl_s $LIBS"
3035 echo "$ac_t""no" 1>&6
3038 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3039 echo "configure:3040: checking for main in -lnsl" >&5
3040 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 ac_save_LIBS="$LIBS"
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3054 if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3056 eval "ac_cv_lib_$ac_lib_var=yes"
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3061 eval "ac_cv_lib_$ac_lib_var=no"
3064 LIBS="$ac_save_LIBS"
3067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3071 cat >> confdefs.h <<EOF
3072 #define $ac_tr_lib 1
3078 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3082 echo "configure:3083: checking for socket in -linet" >&5
3083 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 ac_save_LIBS="$LIBS"
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3103 eval "ac_cv_lib_$ac_lib_var=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3108 eval "ac_cv_lib_$ac_lib_var=no"
3111 LIBS="$ac_save_LIBS"
3114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3116 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3118 cat >> confdefs.h <<EOF
3119 #define $ac_tr_lib 1
3125 echo "$ac_t""no" 1>&6
3128 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3129 echo "configure:3130: checking for main in -lgen" >&5
3130 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 ac_save_LIBS="$LIBS"
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 eval "ac_cv_lib_$ac_lib_var=yes"
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 eval "ac_cv_lib_$ac_lib_var=no"
3154 LIBS="$ac_save_LIBS"
3157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3159 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3161 cat >> confdefs.h <<EOF
3162 #define $ac_tr_lib 1
3168 echo "$ac_t""no" 1>&6
3175 for ac_func in res_search
3177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3178 echo "configure:3179: checking for $ac_func" >&5
3179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 /* System header to define __stub macros and hopefully few prototypes,
3186 which can conflict with char $ac_func(); below. */
3188 /* Override any gcc2 internal prototype to avoid an error. */
3189 /* We use char because int might match the return type of a gcc2
3190 builtin and then its argument prototype would still apply. */
3195 /* The GNU C library defines this for functions which it implements
3196 to always fail with ENOSYS. Some functions are actually named
3197 something starting with __ and the normal name is an alias. */
3198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3208 eval "ac_cv_func_$ac_func=yes"
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 eval "ac_cv_func_$ac_func=no"
3218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3221 cat >> confdefs.h <<EOF
3222 #define $ac_tr_func 1
3226 echo "$ac_t""no" 1>&6
3230 if test $ac_cv_func_res_search = "no" ; then
3231 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3232 echo "configure:3233: checking for res_search in -lbind" >&5
3233 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 ac_save_LIBS="$LIBS"
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3253 eval "ac_cv_lib_$ac_lib_var=yes"
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 eval "ac_cv_lib_$ac_lib_var=no"
3261 LIBS="$ac_save_LIBS"
3264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3265 echo "$ac_t""yes" 1>&6
3266 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3268 cat >> confdefs.h <<EOF
3269 #define $ac_tr_lib 1
3275 echo "$ac_t""no" 1>&6
3278 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3279 cat >> confdefs.h <<\EOF
3280 #define HAVE_RES_SEARCH 1
3284 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3285 echo "configure:3286: checking for res_search in -lresolv" >&5
3286 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 ac_save_LIBS="$LIBS"
3291 LIBS="-lresolv $LIBS"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 eval "ac_cv_lib_$ac_lib_var=yes"
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3311 eval "ac_cv_lib_$ac_lib_var=no"
3314 LIBS="$ac_save_LIBS"
3317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3318 echo "$ac_t""yes" 1>&6
3319 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3321 cat >> confdefs.h <<EOF
3322 #define $ac_tr_lib 1
3325 LIBS="-lresolv $LIBS"
3328 echo "$ac_t""no" 1>&6
3331 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3332 cat >> confdefs.h <<\EOF
3333 #define HAVE_RES_SEARCH 1
3340 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3341 echo "configure:3342: checking for sigset in -lV3" >&5
3342 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 ac_save_LIBS="$LIBS"
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3362 eval "ac_cv_lib_$ac_lib_var=yes"
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 eval "ac_cv_lib_$ac_lib_var=no"
3370 LIBS="$ac_save_LIBS"
3373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3377 cat >> confdefs.h <<EOF
3378 #define $ac_tr_lib 1
3384 echo "$ac_t""no" 1>&6
3390 if test $ol_enable_ldapd != no ; then
3391 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3392 echo "configure:3393: checking for main in -lxtpp" >&5
3393 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 ac_save_LIBS="$LIBS"
3398 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 eval "ac_cv_lib_$ac_lib_var=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_lib_$ac_lib_var=no"
3417 LIBS="$ac_save_LIBS"
3420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3421 echo "$ac_t""yes" 1>&6
3424 cat >> confdefs.h <<\EOF
3428 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3431 echo "$ac_t""no" 1>&6
3435 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3436 echo "configure:3437: checking for main in -ldsap" >&5
3437 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 ac_save_LIBS="$LIBS"
3442 LIBS="-ldsap -lisode $LIBS"
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3451 if { (eval echo configure:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3453 eval "ac_cv_lib_$ac_lib_var=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3458 eval "ac_cv_lib_$ac_lib_var=no"
3461 LIBS="$ac_save_LIBS"
3464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3468 cat >> confdefs.h <<\EOF
3472 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3475 echo "$ac_t""no" 1>&6
3479 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3480 echo "configure:3481: checking for main in -lisode" >&5
3481 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 ac_save_LIBS="$LIBS"
3486 LIBS="-lisode $LIBS"
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3495 if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3497 eval "ac_cv_lib_$ac_lib_var=yes"
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3502 eval "ac_cv_lib_$ac_lib_var=no"
3505 LIBS="$ac_save_LIBS"
3508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3509 echo "$ac_t""yes" 1>&6
3512 cat >> confdefs.h <<\EOF
3513 #define HAVE_ISODE 1
3516 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3519 echo "$ac_t""no" 1>&6
3525 if test $ol_link_isode != no; then
3526 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3527 echo "configure:3528: checking for main in -lpp" >&5
3528 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 ac_save_LIBS="$LIBS"
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3544 eval "ac_cv_lib_$ac_lib_var=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 eval "ac_cv_lib_$ac_lib_var=no"
3552 LIBS="$ac_save_LIBS"
3555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3558 cat >> confdefs.h <<\EOF
3562 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3565 echo "$ac_t""no" 1>&6
3570 # Extract the first word of "pepsy", so it can be a program name with args.
3571 set dummy pepsy; ac_word=$2
3572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3573 echo "configure:3574: checking for $ac_word" >&5
3574 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3579 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3582 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3587 for ac_dir in $ac_dummy; do
3588 test -z "$ac_dir" && ac_dir=.
3589 if test -f $ac_dir/$ac_word; then
3590 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3598 PEPSY="$ac_cv_path_PEPSY"
3599 if test -n "$PEPSY"; then
3600 echo "$ac_t""$PEPSY" 1>&6
3602 echo "$ac_t""no" 1>&6
3609 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3610 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_hdr" >&5
3615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3624 { (eval echo configure:3625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3626 if test -z "$ac_err"; then
3628 eval "ac_cv_header_$ac_safe=yes"
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3634 eval "ac_cv_header_$ac_safe=no"
3638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3641 cat >> confdefs.h <<EOF
3642 #define $ac_tr_hdr 1
3646 echo "$ac_t""no" 1>&6
3651 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3652 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3653 echo "configure:3654: checking for main in -lkrb4" >&5
3654 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 ac_save_LIBS="$LIBS"
3659 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3668 if { (eval echo configure:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3670 eval "ac_cv_lib_$ac_lib_var=yes"
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 eval "ac_cv_lib_$ac_lib_var=no"
3678 LIBS="$ac_save_LIBS"
3681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3682 echo "$ac_t""yes" 1>&6
3685 echo "$ac_t""no" 1>&6
3690 if test $have_k5 = yes ; then
3691 ol_with_kerberos=found
3692 ol_link_kerberos=yes
3694 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3696 LIBS="$KRB_LIBS $LIBS"
3698 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3699 echo "configure:3700: checking for des_debug in Kerberos libraries" >&5
3700 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3705 LIBS="$KRB_LIBS $LIBS"
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3710 #include <kerberosIV/krb.h>
3711 #include <kerberosIV/des.h>
3712 extern int des_debug;
3720 if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3722 ol_cv_var_des_debug=yes
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 ol_cv_var_des_debug=no
3734 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3736 if test $ol_cv_var_des_debug= yes ; then
3737 cat >> confdefs.h <<\EOF
3738 #define HAVE_DES_DEBUG 1
3748 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3749 for ac_hdr in krb.h des.h
3751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_hdr" >&5
3754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3763 { (eval echo configure:3764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3765 if test -z "$ac_err"; then
3767 eval "ac_cv_header_$ac_safe=yes"
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3773 eval "ac_cv_header_$ac_safe=no"
3777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3780 cat >> confdefs.h <<EOF
3781 #define $ac_tr_hdr 1
3785 echo "$ac_t""no" 1>&6
3790 if test $ac_cv_header_krb_h = yes ; then
3791 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3792 echo "configure:3793: checking for main in -lkrb" >&5
3793 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 ac_save_LIBS="$LIBS"
3798 LIBS="-lkrb -ldes $LIBS"
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 eval "ac_cv_lib_$ac_lib_var=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_lib_$ac_lib_var=no"
3817 LIBS="$ac_save_LIBS"
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3824 echo "$ac_t""no" 1>&6
3829 if test $have_k4 = yes ; then
3830 ol_with_kerberos=found
3831 ol_link_kerberos=yes
3833 KRB_LIBS="-lkrb -ldes"
3838 if test $ol_link_kerberos = yes ; then
3839 cat >> confdefs.h <<\EOF
3840 #define HAVE_KERBEROS 1
3846 if test $ol_with_readline != no ; then
3847 for ac_hdr in readline/readline.h readline/history.h
3849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3851 echo "configure:3852: checking for $ac_hdr" >&5
3852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3861 { (eval echo configure:3862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3863 if test -z "$ac_err"; then
3865 eval "ac_cv_header_$ac_safe=yes"
3868 echo "configure: failed program was:" >&5
3869 cat conftest.$ac_ext >&5
3871 eval "ac_cv_header_$ac_safe=no"
3875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3878 cat >> confdefs.h <<EOF
3879 #define $ac_tr_hdr 1
3883 echo "$ac_t""no" 1>&6
3888 if test $ac_cv_header_readline_readline_h = yes ; then
3889 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3890 echo "configure:3891: checking for readline in -lreadline" >&5
3891 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3895 ac_save_LIBS="$LIBS"
3896 LIBS="-lreadline $LIBS"
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 eval "ac_cv_lib_$ac_lib_var=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_lib_$ac_lib_var=no"
3919 LIBS="$ac_save_LIBS"
3922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3926 echo "$ac_t""no" 1>&6
3931 if test $have_readline = yes ; then
3932 ol_with_readline=found
3933 ol_link_readline=yes
3935 READLINE_LIBS="-lreadline"
3940 if test $ol_link_readline = yes ; then
3941 cat >> confdefs.h <<\EOF
3942 #define HAVE_READLINE 1
3948 if test $ol_with_tls != no ; then
3952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3954 echo "configure:3955: checking for $ac_hdr" >&5
3955 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3964 { (eval echo configure:3965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3966 if test -z "$ac_err"; then
3968 eval "ac_cv_header_$ac_safe=yes"
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 eval "ac_cv_header_$ac_safe=no"
3978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3981 cat >> confdefs.h <<EOF
3982 #define $ac_tr_hdr 1
3986 echo "$ac_t""no" 1>&6
3991 if test $ac_cv_header_ssl_h = yes ; then
3992 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3993 echo "configure:3994: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3994 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 ac_save_LIBS="$LIBS"
3999 LIBS="-lssl -lcrypto $LIBS"
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 /* Override any gcc2 internal prototype to avoid an error. */
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4006 char SSLeay_add_ssl_algorithms();
4009 SSLeay_add_ssl_algorithms()
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4014 eval "ac_cv_lib_$ac_lib_var=yes"
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4019 eval "ac_cv_lib_$ac_lib_var=no"
4022 LIBS="$ac_save_LIBS"
4025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4026 echo "$ac_t""yes" 1>&6
4030 echo "$ac_t""no" 1>&6
4035 if test $have_ssleay = no ; then
4036 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4037 echo "configure:4038: checking for ssl3_accept in -lssl" >&5
4038 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 ac_save_LIBS="$LIBS"
4043 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4056 if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4058 eval "ac_cv_lib_$ac_lib_var=yes"
4060 echo "configure: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4063 eval "ac_cv_lib_$ac_lib_var=no"
4066 LIBS="$ac_save_LIBS"
4069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4070 echo "$ac_t""yes" 1>&6
4074 echo "$ac_t""no" 1>&6
4080 if test $have_ssleay = yes ; then
4084 cat >> confdefs.h <<\EOF
4085 #define HAVE_SSLEAY 1
4089 if test $need_rsaref = yes; then
4090 cat >> confdefs.h <<\EOF
4091 #define HAVE_RSAREF 1
4095 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4097 TLS_LIBS="-lssl -lcrypto"
4103 if test $ol_link_tls = yes ; then
4104 cat >> confdefs.h <<\EOF
4112 gethostbyname_r gethostbyaddr_r \
4115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4116 echo "configure:4117: checking for $ac_func" >&5
4117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4123 /* System header to define __stub macros and hopefully few prototypes,
4124 which can conflict with char $ac_func(); below. */
4126 /* Override any gcc2 internal prototype to avoid an error. */
4127 /* We use char because int might match the return type of a gcc2
4128 builtin and then its argument prototype would still apply. */
4133 /* The GNU C library defines this for functions which it implements
4134 to always fail with ENOSYS. Some functions are actually named
4135 something starting with __ and the normal name is an alias. */
4136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 eval "ac_cv_func_$ac_func=yes"
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 eval "ac_cv_func_$ac_func=no"
4156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4159 cat >> confdefs.h <<EOF
4160 #define $ac_tr_func 1
4164 echo "$ac_t""no" 1>&6
4169 if test "$ac_cv_func_ctime_r" = no ; then
4170 ol_cv_func_ctime_r_nargs=0
4172 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4173 echo "configure:4174: checking number of arguments of ctime_r" >&5
4174 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4182 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4185 if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4187 ol_cv_func_ctime_r_nargs=3
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4197 time_t ti; char *buffer; ctime_r(&ti,buffer);
4200 if { (eval echo configure:4201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 ol_cv_func_ctime_r_nargs=2
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 ol_cv_func_ctime_r_nargs=0
4214 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4215 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4216 cat >> confdefs.h <<EOF
4217 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4224 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4225 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4226 echo "configure:4227: checking number of arguments of gethostbyname_r" >&5
4227 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4233 #include <sys/types.h>
4234 #include <sys/socket.h>
4235 #include <netinet/in.h>
4237 #define BUFSIZE (sizeof(struct hostent)+10)
4239 struct hostent hent; char buffer[BUFSIZE];
4240 int bufsize=BUFSIZE;int h_errno;
4241 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4242 buffer, bufsize, &h_errno);
4246 if { (eval echo configure:4247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4248 ol_cv_func_gethostbyname_r_nargs=5
4250 echo "configure: failed program was:" >&5
4251 cat conftest.$ac_ext >&5
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 #include <sys/types.h>
4257 #include <sys/socket.h>
4258 #include <netinet/in.h>
4260 #define BUFSIZE (sizeof(struct hostent)+10)
4262 struct hostent hent;struct hostent *rhent;
4263 char buffer[BUFSIZE];
4264 int bufsize=BUFSIZE;int h_errno;
4265 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4270 if { (eval echo configure:4271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4272 ol_cv_func_gethostbyname_r_nargs=6
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4277 ol_cv_func_gethostbyname_r_nargs=0
4284 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4285 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4286 cat >> confdefs.h <<EOF
4287 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4293 ol_cv_func_gethostbyname_r_nargs=0
4296 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4297 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4298 echo "configure:4299: checking number of arguments of gethostbyaddr_r" >&5
4299 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 #include <sys/types.h>
4306 #include <sys/socket.h>
4307 #include <netinet/in.h>
4309 #define BUFSIZE (sizeof(struct hostent)+10)
4311 struct hostent hent; char buffer[BUFSIZE];
4312 struct in_addr add={0x70707070};
4313 size_t alen=sizeof(struct in_addr);
4314 int bufsize=BUFSIZE;int h_errno;
4315 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4316 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4320 if { (eval echo configure:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322 ol_cv_func_gethostbyaddr_r_nargs=7
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 #include <sys/types.h>
4331 #include <sys/socket.h>
4332 #include <netinet/in.h>
4334 #define BUFSIZE (sizeof(struct hostent)+10)
4336 struct hostent hent;
4337 struct hostent *rhent; char buffer[BUFSIZE];
4338 struct in_addr add={0x70707070};
4339 size_t alen=sizeof(struct in_addr);
4340 int bufsize=BUFSIZE;int h_errno;
4341 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4342 alen, AF_INET, &hent, buffer, bufsize,
4347 if { (eval echo configure:4348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4349 ol_cv_func_gethostbyaddr_r_nargs=8
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 ol_cv_func_gethostbyaddr_r_nargs=0
4361 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4362 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4363 cat >> confdefs.h <<EOF
4364 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4370 ol_cv_func_gethostbyaddr_r_nargs=0
4373 if test "$ac_cv_func_ctime_r" = yes \
4374 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4375 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4376 -a "$ac_cv_func_gethostbyname_r" = yes \
4377 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4378 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4379 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4380 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4381 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4384 cat >> confdefs.h <<\EOF
4385 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4391 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4392 -o $ol_with_threads = posix ; then
4394 for ac_hdr in pthread.h sched.h
4396 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4397 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4398 echo "configure:4399: checking for $ac_hdr" >&5
4399 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4408 { (eval echo configure:4409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4410 if test -z "$ac_err"; then
4412 eval "ac_cv_header_$ac_safe=yes"
4415 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4418 eval "ac_cv_header_$ac_safe=no"
4422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4425 cat >> confdefs.h <<EOF
4426 #define $ac_tr_hdr 1
4430 echo "$ac_t""no" 1>&6
4435 if test $ac_cv_header_pthread_h = yes ; then
4436 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4437 echo "configure:4438: checking POSIX thread version" >&5
4438 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4446 # include <pthread.h>
4447 /* this check could be improved */
4448 # ifdef PTHREAD_ONCE_INIT
4449 pthread_version_final
4453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4454 egrep "pthread_version_final" >/dev/null 2>&1; then
4456 ol_pthread_final=yes
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4468 # include <pthread.h>
4469 /* this check could be improved */
4470 # ifdef pthread_once_init
4471 pthread_version_draft4
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4478 ol_pthread_draft4=yes
4481 ol_pthread_draft4=no
4486 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4487 ol_cv_pthread_version=final
4488 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4489 ol_cv_pthread_version=draft4
4491 ol_cv_pthread_version=unknown
4496 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4499 if test $ol_cv_pthread_version = final ; then
4500 cat >> confdefs.h <<\EOF
4501 #define HAVE_PTHREADS_FINAL 1
4504 elif test $ol_cv_pthread_version = draft4 ; then
4505 cat >> confdefs.h <<\EOF
4506 #define HAVE_PTHREADS_D4 1
4510 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4513 # consider threads found
4514 ol_with_threads=found
4517 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4518 echo "configure:4519: checking for LinuxThreads" >&5
4519 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4523 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4524 if test "$res" -gt 0 ; then
4525 ol_cv_linux_threads=yes
4527 ol_cv_linux_threads=no
4532 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4535 if test $ol_cv_linux_threads = yes ; then
4536 cat >> confdefs.h <<\EOF
4537 #define HAVE_LINUX_THREADS 1
4543 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
4544 echo "configure:4545: checking for pthread_create" >&5
4545 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4548 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 /* System header to define __stub macros and hopefully few prototypes,
4552 which can conflict with char pthread_create(); below. */
4554 /* Override any gcc2 internal prototype to avoid an error. */
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4557 char pthread_create();
4561 /* The GNU C library defines this for functions which it implements
4562 to always fail with ENOSYS. Some functions are actually named
4563 something starting with __ and the normal name is an alias. */
4564 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4574 eval "ac_cv_func_pthread_create=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4579 eval "ac_cv_func_pthread_create=no"
4584 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
4585 echo "$ac_t""yes" 1>&6
4588 echo "$ac_t""no" 1>&6
4592 if test $ol_link_threads = no ; then
4593 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4594 echo "configure:4595: checking for pthread_create with -kthread" >&5
4595 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4600 LIBS="-kthread $LIBS"
4601 cat > conftest.$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4604 #include <pthread.h>
4607 #if HAVE_PTHREADS_D4
4608 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4610 pthread_create(NULL,NULL,NULL,NULL);
4615 if { (eval echo configure:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4617 ol_cv_kthread_flag=yes
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4622 ol_cv_kthread_flag=no
4629 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4631 if test $ol_cv_kthread_flag = yes ; then
4632 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4633 ol_link_threads=posix
4637 if test $ol_link_threads = no ; then
4638 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4639 echo "configure:4640: checking for pthread_create with -pthread" >&5
4640 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4645 LIBS="-pthread $LIBS"
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 #include <pthread.h>
4652 #if HAVE_PTHREADS_D4
4653 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4655 pthread_create(NULL,NULL,NULL,NULL);
4660 if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4662 ol_cv_pthread_flag=yes
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 ol_cv_pthread_flag=no
4674 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4676 if test $ol_cv_pthread_flag = yes ; then
4677 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4678 ol_link_threads=posix
4682 if test $ol_link_threads = no ; then
4683 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4684 echo "configure:4685: checking for pthread_create with -pthreads" >&5
4685 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4690 LIBS="-pthreads $LIBS"
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 #include <pthread.h>
4697 #if HAVE_PTHREADS_D4
4698 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4700 pthread_create(NULL,NULL,NULL,NULL);
4705 if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4707 ol_cv_pthreads_flag=yes
4709 echo "configure: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4712 ol_cv_pthreads_flag=no
4719 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4721 if test $ol_cv_pthreads_flag = yes ; then
4722 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4723 ol_link_threads=posix
4727 if test $ol_link_threads = no ; then
4728 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4729 echo "configure:4730: checking for pthread_create with -thread" >&5
4730 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4735 LIBS="-thread $LIBS"
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 char pthread_create();
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4746 ol_cv_thread_flag=yes
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4751 ol_cv_thread_flag=no
4758 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4760 if test $ol_cv_thread_flag = yes ; then
4761 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4762 ol_link_threads=posix
4766 if test $ol_link_threads = no ; then
4767 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4768 echo "configure:4769: checking for pthread_create with -mt" >&5
4769 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 char pthread_create();
4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4785 ol_cv_thread_flag=yes
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 ol_cv_thread_flag=no
4797 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4799 if test $ol_cv_thread_flag = yes ; then
4800 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4801 ol_link_threads=posix
4805 if test $ol_link_threads = no ; then
4807 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4808 echo "configure:4809: checking for pthread_mutex_unlock in -lpthread" >&5
4809 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 ac_save_LIBS="$LIBS"
4814 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 /* Override any gcc2 internal prototype to avoid an error. */
4819 /* We use char because int might match the return type of a gcc2
4820 builtin and then its argument prototype would still apply. */
4821 char pthread_mutex_unlock();
4824 pthread_mutex_unlock()
4827 if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4829 eval "ac_cv_lib_$ac_lib_var=yes"
4831 echo "configure: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4834 eval "ac_cv_lib_$ac_lib_var=no"
4837 LIBS="$ac_save_LIBS"
4840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4841 echo "$ac_t""yes" 1>&6
4843 ol_link_threads=posix
4844 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4845 if test $ol_with_yielding_select = auto ; then
4846 ol_with_yielding_select=yes
4850 echo "$ac_t""no" 1>&6
4857 if test $ol_link_threads = no ; then
4859 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4860 echo "configure:4861: checking for pthread_mutex_lock in -lpthread" >&5
4861 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 ac_save_LIBS="$LIBS"
4866 LIBS="-lpthread -lmach -lexc $LIBS"
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* Override any gcc2 internal prototype to avoid an error. */
4871 /* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
4873 char pthread_mutex_lock();
4876 pthread_mutex_lock()
4879 if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4881 eval "ac_cv_lib_$ac_lib_var=yes"
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4886 eval "ac_cv_lib_$ac_lib_var=no"
4889 LIBS="$ac_save_LIBS"
4892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4895 ol_link_threads=posix
4896 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4897 if test $ol_with_yielding_select = auto ; then
4898 ol_with_yielding_select=yes
4902 echo "$ac_t""no" 1>&6
4909 if test $ol_link_threads = no ; then
4911 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4912 echo "configure:4913: checking for pthread_mutex_trylock in -lpthread" >&5
4913 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 ac_save_LIBS="$LIBS"
4918 LIBS="-lpthread -lexc $LIBS"
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 /* Override any gcc2 internal prototype to avoid an error. */
4923 /* We use char because int might match the return type of a gcc2
4924 builtin and then its argument prototype would still apply. */
4925 char pthread_mutex_trylock();
4928 pthread_mutex_trylock()
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4933 eval "ac_cv_lib_$ac_lib_var=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 eval "ac_cv_lib_$ac_lib_var=no"
4941 LIBS="$ac_save_LIBS"
4944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4945 echo "$ac_t""yes" 1>&6
4947 ol_link_threads=posix
4948 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4949 if test $ol_with_yielding_select = auto ; then
4950 ol_with_yielding_select=yes
4954 echo "$ac_t""no" 1>&6
4961 if test $ol_link_threads = no ; then
4963 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4964 echo "configure:4965: checking for pthread_create in -lpthread" >&5
4965 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4969 ac_save_LIBS="$LIBS"
4970 LIBS="-lpthread $LIBS"
4971 cat > conftest.$ac_ext <<EOF
4972 #line 4973 "configure"
4973 #include "confdefs.h"
4974 /* Override any gcc2 internal prototype to avoid an error. */
4975 /* We use char because int might match the return type of a gcc2
4976 builtin and then its argument prototype would still apply. */
4977 char pthread_create();
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4985 eval "ac_cv_lib_$ac_lib_var=yes"
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 eval "ac_cv_lib_$ac_lib_var=no"
4993 LIBS="$ac_save_LIBS"
4996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4997 echo "$ac_t""yes" 1>&6
4999 ol_link_threads=posix
5000 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
5002 echo "$ac_t""no" 1>&6
5009 if test $ol_link_threads = no ; then
5011 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
5012 echo "configure:5013: checking for pthread_create in -lc_r" >&5
5013 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
5014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 ac_save_LIBS="$LIBS"
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5022 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5025 char pthread_create();
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 eval "ac_cv_lib_$ac_lib_var=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_lib_$ac_lib_var=no"
5041 LIBS="$ac_save_LIBS"
5044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5047 ol_link_threads=posix
5048 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
5050 echo "$ac_t""no" 1>&6
5057 if test $ol_link_threads = no ; then
5059 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
5060 echo "configure:5061: checking for pthread_create in -lpthreads" >&5
5061 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
5062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5063 echo $ac_n "(cached) $ac_c" 1>&6
5065 ac_save_LIBS="$LIBS"
5066 LIBS="-lpthreads $LIBS"
5067 cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 /* Override any gcc2 internal prototype to avoid an error. */
5071 /* We use char because int might match the return type of a gcc2
5072 builtin and then its argument prototype would still apply. */
5073 char pthread_create();
5079 if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 eval "ac_cv_lib_$ac_lib_var=yes"
5083 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5086 eval "ac_cv_lib_$ac_lib_var=no"
5089 LIBS="$ac_save_LIBS"
5092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5093 echo "$ac_t""yes" 1>&6
5095 ol_link_threads=posix
5096 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
5098 echo "$ac_t""no" 1>&6
5105 if test $ol_link_threads = no ; then
5107 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
5108 echo "configure:5109: checking for pthread_join in -lpthreads" >&5
5109 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
5110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5113 ac_save_LIBS="$LIBS"
5114 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5118 /* Override any gcc2 internal prototype to avoid an error. */
5119 /* We use char because int might match the return type of a gcc2
5120 builtin and then its argument prototype would still apply. */
5121 char pthread_join();
5127 if { (eval echo configure:5128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5129 eval "ac_cv_lib_$ac_lib_var=yes"
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5134 eval "ac_cv_lib_$ac_lib_var=no"
5137 LIBS="$ac_save_LIBS"
5140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5141 echo "$ac_t""yes" 1>&6
5143 ol_link_threads=posix
5144 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
5147 echo "$ac_t""no" 1>&6
5154 if test $ol_link_threads = no ; then
5155 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
5156 echo "configure:5157: checking for pthread_create with -threads" >&5
5157 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5162 LIBS="-threads $LIBS"
5163 cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5166 char pthread_create();
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 ol_cv_thread_flag=yes
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5180 ol_cv_thread_flag=no
5187 echo "$ac_t""$ol_cv_thread_flag" 1>&6
5189 if test $ol_cv_thread_flag = yes ; then
5190 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
5191 ol_link_threads=posix
5195 if test $ol_link_threads = no ; then
5197 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
5198 echo "configure:5199: checking for pthread_mutex_unlock in -lpthreads" >&5
5199 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
5200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 ac_save_LIBS="$LIBS"
5204 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5211 char pthread_mutex_unlock();
5214 pthread_mutex_unlock()
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 eval "ac_cv_lib_$ac_lib_var=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_lib_$ac_lib_var=no"
5227 LIBS="$ac_save_LIBS"
5230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5231 echo "$ac_t""yes" 1>&6
5233 ol_link_threads=posix
5234 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
5235 if test $ol_with_yielding_select = auto ; then
5236 ol_with_yielding_select=yes
5240 echo "$ac_t""no" 1>&6
5247 if test $ol_link_threads = no ; then
5249 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
5250 echo "configure:5251: checking for pthread_mutex_lock in -lpthreads" >&5
5251 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
5252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5255 ac_save_LIBS="$LIBS"
5256 LIBS="-lpthreads -lmach -lexc $LIBS"
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5260 /* Override any gcc2 internal prototype to avoid an error. */
5261 /* We use char because int might match the return type of a gcc2
5262 builtin and then its argument prototype would still apply. */
5263 char pthread_mutex_lock();
5266 pthread_mutex_lock()
5269 if { (eval echo configure:5270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5271 eval "ac_cv_lib_$ac_lib_var=yes"
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5276 eval "ac_cv_lib_$ac_lib_var=no"
5279 LIBS="$ac_save_LIBS"
5282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5283 echo "$ac_t""yes" 1>&6
5285 ol_link_threads=posix
5286 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
5287 if test $ol_with_yielding_select = auto ; then
5288 ol_with_yielding_select=yes
5292 echo "$ac_t""no" 1>&6
5299 if test $ol_link_threads = no ; then
5301 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
5302 echo "configure:5303: checking for pthread_mutex_trylock in -lpthreads" >&5
5303 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
5304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 ac_save_LIBS="$LIBS"
5308 LIBS="-lpthreads -lexc $LIBS"
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5312 /* Override any gcc2 internal prototype to avoid an error. */
5313 /* We use char because int might match the return type of a gcc2
5314 builtin and then its argument prototype would still apply. */
5315 char pthread_mutex_trylock();
5318 pthread_mutex_trylock()
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 eval "ac_cv_lib_$ac_lib_var=yes"
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 eval "ac_cv_lib_$ac_lib_var=no"
5331 LIBS="$ac_save_LIBS"
5334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5335 echo "$ac_t""yes" 1>&6
5337 ol_link_threads=posix
5338 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
5339 if test $ol_with_yielding_select = auto ; then
5340 ol_with_yielding_select=yes
5344 echo "$ac_t""no" 1>&6
5351 if test $ol_link_threads != no ; then
5352 cat >> confdefs.h <<\EOF
5353 #define HAVE_PTHREADS 1
5357 save_CPPFLAGS="$CPPFLAGS"
5359 LIBS="$LTHREAD_LIBS $LIBS"
5361 for ac_func in sched_yield pthread_yield
5363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5364 echo "configure:5365: checking for $ac_func" >&5
5365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 /* System header to define __stub macros and hopefully few prototypes,
5372 which can conflict with char $ac_func(); below. */
5374 /* Override any gcc2 internal prototype to avoid an error. */
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5381 /* The GNU C library defines this for functions which it implements
5382 to always fail with ENOSYS. Some functions are actually named
5383 something starting with __ and the normal name is an alias. */
5384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5394 eval "ac_cv_func_$ac_func=yes"
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5399 eval "ac_cv_func_$ac_func=no"
5404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5407 cat >> confdefs.h <<EOF
5408 #define $ac_tr_func 1
5412 echo "$ac_t""no" 1>&6
5417 if test $ac_cv_func_sched_yield = no -a \
5418 $ac_cv_func_pthread_yield = no ; then
5419 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5420 echo "configure:5421: checking for sched_yield in -lrt" >&5
5421 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5425 ac_save_LIBS="$LIBS"
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 /* Override any gcc2 internal prototype to avoid an error. */
5431 /* We use char because int might match the return type of a gcc2
5432 builtin and then its argument prototype would still apply. */
5439 if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5441 eval "ac_cv_lib_$ac_lib_var=yes"
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 eval "ac_cv_lib_$ac_lib_var=no"
5449 LIBS="$ac_save_LIBS"
5452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5453 echo "$ac_t""yes" 1>&6
5454 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5455 cat >> confdefs.h <<\EOF
5456 #define HAVE_SCHED_YIELD 1
5459 ac_cv_func_sched_yield=yes
5461 echo "$ac_t""no" 1>&6
5462 ac_cv_func_sched_yield=no
5466 if test $ac_cv_func_sched_yield = no -a \
5467 $ac_cv_func_pthread_yield = no ; then
5468 for ac_func in thr_yield
5470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5471 echo "configure:5472: checking for $ac_func" >&5
5472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5475 cat > conftest.$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5478 /* System header to define __stub macros and hopefully few prototypes,
5479 which can conflict with char $ac_func(); below. */
5481 /* Override any gcc2 internal prototype to avoid an error. */
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5488 /* The GNU C library defines this for functions which it implements
5489 to always fail with ENOSYS. Some functions are actually named
5490 something starting with __ and the normal name is an alias. */
5491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5501 eval "ac_cv_func_$ac_func=yes"
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5506 eval "ac_cv_func_$ac_func=no"
5511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5512 echo "$ac_t""yes" 1>&6
5513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5514 cat >> confdefs.h <<EOF
5515 #define $ac_tr_func 1
5519 echo "$ac_t""no" 1>&6
5524 if test $ac_cv_func_sched_yield = no -a \
5525 $ac_cv_func_pthread_yield = no -a \
5526 "$ac_cv_func_thr_yield" = no ; then
5527 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5530 for ac_func in pthread_kill
5532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_func" >&5
5534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func(); below. */
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5550 /* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5563 eval "ac_cv_func_$ac_func=yes"
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5568 eval "ac_cv_func_$ac_func=no"
5573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5576 cat >> confdefs.h <<EOF
5577 #define $ac_tr_func 1
5581 echo "$ac_t""no" 1>&6
5586 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5587 echo "configure:5588: checking for pthread_detach with <pthread.h>" >&5
5588 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 #include <pthread.h>
5597 pthread_detach(NULL);
5600 if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5602 ol_cv_func_pthread_detach=yes
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5607 ol_cv_func_pthread_detach=no
5613 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5615 if test $ol_cv_func_pthread_detach = no ; then
5616 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5619 cat >> confdefs.h <<\EOF
5620 #define HAVE_PTHREAD_DETACH 1
5625 pthread_setconcurrency \
5626 pthread_getconcurrency \
5627 thr_setconcurrency \
5628 thr_getconcurrency \
5631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5632 echo "configure:5633: checking for $ac_func" >&5
5633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5636 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 /* System header to define __stub macros and hopefully few prototypes,
5640 which can conflict with char $ac_func(); below. */
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5649 /* The GNU C library defines this for functions which it implements
5650 to always fail with ENOSYS. Some functions are actually named
5651 something starting with __ and the normal name is an alias. */
5652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5662 eval "ac_cv_func_$ac_func=yes"
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5667 eval "ac_cv_func_$ac_func=no"
5672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5673 echo "$ac_t""yes" 1>&6
5674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5675 cat >> confdefs.h <<EOF
5676 #define $ac_tr_func 1
5680 echo "$ac_t""no" 1>&6
5685 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5686 echo "configure:5687: checking if pthread_create() works" >&5
5687 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5691 if test "$cross_compiling" = yes; then
5692 ol_cv_pthread_create_works=yes
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5698 #include <pthread.h>
5700 #define NULL (void*)0
5703 static void *task(p)
5706 return (void *) (p == NULL);
5709 int main(argc, argv)
5714 #if HAVE_PTHREADS_D4
5715 exit(pthread_create(&t, pthread_attr_default, task, NULL));
5717 exit(pthread_create(&t, NULL, task, NULL));
5722 if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5724 ol_cv_pthread_create_works=yes
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5729 ol_cv_pthread_create_works=no
5736 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5738 if test $ol_cv_pthread_create_works = no ; then
5739 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
5742 if test $ol_with_yielding_select = auto ; then
5743 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5744 echo "configure:5745: checking if select yields when using pthreads" >&5
5745 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5749 if test "$cross_compiling" = yes; then
5751 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5757 #include <sys/types.h>
5758 #include <sys/time.h>
5760 #include <pthread.h>
5762 #define NULL (void*) 0
5765 static int fildes[2];
5767 static void *task(p)
5779 FD_SET(fildes[0], &rfds);
5781 /* we're not interested in any fds */
5782 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5789 exit(0); /* if we exit here, the select blocked the whole process */
5792 int main(argc, argv)
5798 /* create a pipe to select */
5799 if(pipe(&fildes[0])) {
5804 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5805 (void) pthread_setconcurrency(2);
5807 #ifdef HAVE_THR_SETCONCURRENCY
5808 /* Set Solaris LWP concurrency to 2 */
5809 thr_setconcurrency(2);
5813 #if HAVE_PTHREADS_D4
5814 pthread_create(&t, pthread_attr_default, task, NULL);
5816 pthread_create(&t, NULL, task, NULL);
5819 #if HAVE_SCHED_YIELD
5820 sched_yield(); /* make sure task runs first */
5822 #ifdef HAVE_PTHREAD_YIELD
5823 pthread_yield(); /* make sure task runs first */
5830 if { (eval echo configure:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5832 ol_cv_pthread_select_yields=no
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5837 ol_cv_pthread_select_yields=yes
5844 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5846 if test $ol_cv_pthread_select_yields = yes ; then
5847 ol_with_yielding_select=yes
5851 CPPFLAGS="$save_CPPFLAGS"
5854 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5858 if test $ol_with_threads = posix ; then
5859 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5863 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5864 -o $ol_with_threads = mach ; then
5866 for ac_hdr in mach/cthreads.h
5868 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5870 echo "configure:5871: checking for $ac_hdr" >&5
5871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 cat > conftest.$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5880 { (eval echo configure:5881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5882 if test -z "$ac_err"; then
5884 eval "ac_cv_header_$ac_safe=yes"
5887 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5890 eval "ac_cv_header_$ac_safe=no"
5894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5895 echo "$ac_t""yes" 1>&6
5896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5897 cat >> confdefs.h <<EOF
5898 #define $ac_tr_hdr 1
5902 echo "$ac_t""no" 1>&6
5906 if test $ac_cv_header_mach_cthreads_h = yes ; then
5907 ol_with_threads=found
5909 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5910 echo "configure:5911: checking for cthread_fork" >&5
5911 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5912 echo $ac_n "(cached) $ac_c" 1>&6
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 /* System header to define __stub macros and hopefully few prototypes,
5918 which can conflict with char cthread_fork(); below. */
5920 /* Override any gcc2 internal prototype to avoid an error. */
5921 /* We use char because int might match the return type of a gcc2
5922 builtin and then its argument prototype would still apply. */
5923 char cthread_fork();
5927 /* The GNU C library defines this for functions which it implements
5928 to always fail with ENOSYS. Some functions are actually named
5929 something starting with __ and the normal name is an alias. */
5930 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5938 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5940 eval "ac_cv_func_cthread_fork=yes"
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5945 eval "ac_cv_func_cthread_fork=no"
5950 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5951 echo "$ac_t""yes" 1>&6
5954 echo "$ac_t""no" 1>&6
5958 if test $ol_link_threads = no ; then
5959 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5960 echo "configure:5961: checking for cthread_fork with -all_load" >&5
5961 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5962 echo $ac_n "(cached) $ac_c" 1>&6
5966 LIBS="-all_load $LIBS"
5967 cat > conftest.$ac_ext <<EOF
5968 #line 5969 "configure"
5969 #include "confdefs.h"
5970 #include <mach/cthreads.h>
5973 cthread_fork((void *)0, (void *)0);
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5979 ol_cv_cthread_all_load=yes
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 ol_cv_cthread_all_load=no
5991 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5993 if test $ol_cv_cthread_all_load = yes ; then
5994 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5995 ol_link_threads=mach
5999 if test $ol_link_threads != no ; then
6000 : check for cthread specific functionality here
6001 cat >> confdefs.h <<\EOF
6002 #define HAVE_MACH_CTHREADS 1
6006 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6010 if test $ol_with_threads = mach ; then
6011 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6015 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6016 -o $ol_with_threads = lwp ; then
6018 for ac_hdr in thread.h synch.h
6020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6022 echo "configure:6023: checking for $ac_hdr" >&5
6023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6032 { (eval echo configure:6033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6034 if test -z "$ac_err"; then
6036 eval "ac_cv_header_$ac_safe=yes"
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6042 eval "ac_cv_header_$ac_safe=no"
6046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6049 cat >> confdefs.h <<EOF
6050 #define $ac_tr_hdr 1
6054 echo "$ac_t""no" 1>&6
6058 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6059 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6060 echo "configure:6061: checking for thr_create in -lthread" >&5
6061 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6065 ac_save_LIBS="$LIBS"
6066 LIBS="-lthread $LIBS"
6067 cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6070 /* Override any gcc2 internal prototype to avoid an error. */
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6079 if { (eval echo configure:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6081 eval "ac_cv_lib_$ac_lib_var=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6086 eval "ac_cv_lib_$ac_lib_var=no"
6089 LIBS="$ac_save_LIBS"
6092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6093 echo "$ac_t""yes" 1>&6
6096 echo "$ac_t""no" 1>&6
6101 if test $have_thr = yes ; then
6102 cat >> confdefs.h <<\EOF
6106 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6109 if test $ol_with_yielding_select = auto ; then
6110 ol_with_yielding_select=yes
6114 thr_setconcurrency \
6115 thr_getconcurrency \
6118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6119 echo "configure:6120: checking for $ac_func" >&5
6120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 /* System header to define __stub macros and hopefully few prototypes,
6127 which can conflict with char $ac_func(); below. */
6129 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6136 /* The GNU C library defines this for functions which it implements
6137 to always fail with ENOSYS. Some functions are actually named
6138 something starting with __ and the normal name is an alias. */
6139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6147 if { (eval echo configure:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6149 eval "ac_cv_func_$ac_func=yes"
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 eval "ac_cv_func_$ac_func=no"
6159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6162 cat >> confdefs.h <<EOF
6163 #define $ac_tr_func 1
6167 echo "$ac_t""no" 1>&6
6174 for ac_hdr in lwp/lwp.h
6176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6178 echo "configure:6179: checking for $ac_hdr" >&5
6179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6188 { (eval echo configure:6189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6190 if test -z "$ac_err"; then
6192 eval "ac_cv_header_$ac_safe=yes"
6195 echo "configure: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6198 eval "ac_cv_header_$ac_safe=no"
6202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6205 cat >> confdefs.h <<EOF
6206 #define $ac_tr_hdr 1
6210 echo "$ac_t""no" 1>&6
6214 if test $ac_cv_header_lwp_lwp_h = yes ; then
6215 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6216 echo "configure:6217: checking for lwp_create in -llwp" >&5
6217 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 ac_save_LIBS="$LIBS"
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6235 if { (eval echo configure:6236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6237 eval "ac_cv_lib_$ac_lib_var=yes"
6239 echo "configure: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6242 eval "ac_cv_lib_$ac_lib_var=no"
6245 LIBS="$ac_save_LIBS"
6248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6252 echo "$ac_t""no" 1>&6
6257 if test $have_lwp = yes ; then
6258 cat >> confdefs.h <<\EOF
6262 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6265 if test $ol_with_yielding_select = auto ; then
6266 ol_with_yielding_select=no
6272 if test $ol_with_yielding_select = yes ; then
6273 cat >> confdefs.h <<\EOF
6274 #define HAVE_YIELDING_SELECT 1
6279 if test $ol_with_threads = manual ; then
6282 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6284 for ac_hdr in pthread.h sched.h
6286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6288 echo "configure:6289: checking for $ac_hdr" >&5
6289 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6292 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6298 { (eval echo configure:6299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6300 if test -z "$ac_err"; then
6302 eval "ac_cv_header_$ac_safe=yes"
6305 echo "configure: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6308 eval "ac_cv_header_$ac_safe=no"
6312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6313 echo "$ac_t""yes" 1>&6
6314 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6315 cat >> confdefs.h <<EOF
6316 #define $ac_tr_hdr 1
6320 echo "$ac_t""no" 1>&6
6324 for ac_func in sched_yield pthread_yield
6326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6327 echo "configure:6328: checking for $ac_func" >&5
6328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6329 echo $ac_n "(cached) $ac_c" 1>&6
6331 cat > conftest.$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6334 /* System header to define __stub macros and hopefully few prototypes,
6335 which can conflict with char $ac_func(); below. */
6337 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6344 /* The GNU C library defines this for functions which it implements
6345 to always fail with ENOSYS. Some functions are actually named
6346 something starting with __ and the normal name is an alias. */
6347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6355 if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 eval "ac_cv_func_$ac_func=yes"
6359 echo "configure: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6362 eval "ac_cv_func_$ac_func=no"
6367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6368 echo "$ac_t""yes" 1>&6
6369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6370 cat >> confdefs.h <<EOF
6371 #define $ac_tr_func 1
6375 echo "$ac_t""no" 1>&6
6380 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
6381 echo "configure:6382: checking for LinuxThreads" >&5
6382 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6386 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
6387 if test "$res" -gt 0 ; then
6388 ol_cv_linux_threads=yes
6390 ol_cv_linux_threads=no
6395 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6398 for ac_hdr in mach/cthreads.h
6400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_hdr" >&5
6403 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6412 { (eval echo configure:6413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6414 if test -z "$ac_err"; then
6416 eval "ac_cv_header_$ac_safe=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_header_$ac_safe=no"
6426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6429 cat >> confdefs.h <<EOF
6430 #define $ac_tr_hdr 1
6434 echo "$ac_t""no" 1>&6
6438 for ac_hdr in lwp/lwp.h
6440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6442 echo "configure:6443: checking for $ac_hdr" >&5
6443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6452 { (eval echo configure:6453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6454 if test -z "$ac_err"; then
6456 eval "ac_cv_header_$ac_safe=yes"
6459 echo "configure: failed program was:" >&5
6460 cat conftest.$ac_ext >&5
6462 eval "ac_cv_header_$ac_safe=no"
6466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6467 echo "$ac_t""yes" 1>&6
6468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6469 cat >> confdefs.h <<EOF
6470 #define $ac_tr_hdr 1
6474 echo "$ac_t""no" 1>&6
6478 for ac_hdr in thread.h synch.h
6480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6482 echo "configure:6483: checking for $ac_hdr" >&5
6483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6484 echo $ac_n "(cached) $ac_c" 1>&6
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6492 { (eval echo configure:6493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6494 if test -z "$ac_err"; then
6496 eval "ac_cv_header_$ac_safe=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 eval "ac_cv_header_$ac_safe=no"
6506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6509 cat >> confdefs.h <<EOF
6510 #define $ac_tr_hdr 1
6514 echo "$ac_t""no" 1>&6
6520 if test $ol_link_threads != no ; then
6521 cat >> confdefs.h <<\EOF
6525 cat >> confdefs.h <<\EOF
6526 #define _REENTRANT 1
6529 cat >> confdefs.h <<\EOF
6530 #define THREAD_SAFE 1
6533 cat >> confdefs.h <<\EOF
6534 #define _THREAD_SAFE 1
6537 cat >> confdefs.h <<\EOF
6538 #define THREADSAFE 1
6541 cat >> confdefs.h <<\EOF
6542 #define _THREADSAFE 1
6546 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6547 echo "configure:6548: checking for thread specific errno" >&5
6548 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6560 if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6562 ol_cv_errno_thread_specific=yes
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 ol_cv_errno_thread_specific=no
6573 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6575 if test $ol_cv_errno_thread_specific != yes ; then
6576 LIBS="$LTHREAD_LIBS $LIBS"
6582 if test $ol_link_threads = no ; then
6583 if test $ol_with_threads = yes ; then
6584 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6587 if test $ol_with_threads = auto ; then
6588 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6592 cat >> confdefs.h <<\EOF
6593 #define NO_THREADS 1
6599 if test $ol_link_threads != no ; then
6600 cat >> confdefs.h <<\EOF
6601 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
6608 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6609 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6610 echo "configure:6611: checking for DB2 library" >&5
6611 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6615 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6616 echo "configure:6617: checking for db_open in -ldb" >&5
6617 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6621 ac_save_LIBS="$LIBS"
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6637 eval "ac_cv_lib_$ac_lib_var=yes"
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6642 eval "ac_cv_lib_$ac_lib_var=no"
6645 LIBS="$ac_save_LIBS"
6648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6652 echo "$ac_t""no" 1>&6
6660 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6666 echo "configure:6667: checking for $ac_hdr" >&5
6667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6676 { (eval echo configure:6677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6678 if test -z "$ac_err"; then
6680 eval "ac_cv_header_$ac_safe=yes"
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 eval "ac_cv_header_$ac_safe=no"
6690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6691 echo "$ac_t""yes" 1>&6
6692 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6693 cat >> confdefs.h <<EOF
6694 #define $ac_tr_hdr 1
6698 echo "$ac_t""no" 1>&6
6702 if test $ac_cv_header_db_h = yes ; then
6703 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6704 echo "configure:6705: checking if db.h is DB2" >&5
6705 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6709 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6714 /* this check could be improved */
6715 # ifdef DB_VERSION_MAJOR
6716 # if DB_VERSION_MAJOR == 2
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 egrep "__db_version_2" >/dev/null 2>&1; then
6725 ol_cv_header_db2=yes
6734 echo "$ac_t""$ol_cv_header_db2" 1>&6
6741 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6742 echo "configure:6743: checking for Berkeley DB2" >&5
6743 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6744 echo $ac_n "(cached) $ac_c" 1>&6
6747 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6748 ol_cv_berkeley_db2=no
6750 ol_cv_berkeley_db2=yes
6755 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6756 if test $ol_cv_berkeley_db2 = yes ; then
6757 cat >> confdefs.h <<\EOF
6758 #define HAVE_BERKELEY_DB2 1
6764 if test $ol_cv_berkeley_db2 = yes ; then
6766 ol_with_ldbm_api=db2
6768 if test $ol_with_ldbm_type = hash ; then
6769 cat >> confdefs.h <<\EOF
6770 #define LDBM_USE_DBHASH 1
6774 cat >> confdefs.h <<\EOF
6775 #define LDBM_USE_DBBTREE 1
6780 if test $ol_cv_lib_db2 != yes ; then
6781 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6787 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6791 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6792 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6793 echo "configure:6794: checking for Berkeley DB library" >&5
6794 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6798 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6799 echo "configure:6800: checking for dbopen" >&5
6800 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6801 echo $ac_n "(cached) $ac_c" 1>&6
6803 cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6806 /* System header to define __stub macros and hopefully few prototypes,
6807 which can conflict with char dbopen(); below. */
6809 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6816 /* The GNU C library defines this for functions which it implements
6817 to always fail with ENOSYS. Some functions are actually named
6818 something starting with __ and the normal name is an alias. */
6819 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6829 eval "ac_cv_func_dbopen=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_func_dbopen=no"
6839 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6843 echo "$ac_t""no" 1>&6
6845 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6846 echo "configure:6847: checking for dbopen in -ldb" >&5
6847 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6849 echo $ac_n "(cached) $ac_c" 1>&6
6851 ac_save_LIBS="$LIBS"
6853 cat > conftest.$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6856 /* Override any gcc2 internal prototype to avoid an error. */
6857 /* We use char because int might match the return type of a gcc2
6858 builtin and then its argument prototype would still apply. */
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6867 eval "ac_cv_lib_$ac_lib_var=yes"
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 eval "ac_cv_lib_$ac_lib_var=no"
6875 LIBS="$ac_save_LIBS"
6878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6879 echo "$ac_t""yes" 1>&6
6882 echo "$ac_t""no" 1>&6
6893 echo "$ac_t""$ol_cv_lib_db" 1>&6
6896 for ac_hdr in db_185.h
6898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6900 echo "configure:6901: checking for $ac_hdr" >&5
6901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6910 { (eval echo configure:6911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6912 if test -z "$ac_err"; then
6914 eval "ac_cv_header_$ac_safe=yes"
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6920 eval "ac_cv_header_$ac_safe=no"
6924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6925 echo "$ac_t""yes" 1>&6
6926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6927 cat >> confdefs.h <<EOF
6928 #define $ac_tr_hdr 1
6932 echo "$ac_t""no" 1>&6
6936 if test "$ol_cv_header_db2" = yes ; then
6938 ol_cv_header_db=$ac_cv_header_db_185_h
6940 ol_cv_header_db=$ac_cv_header_db_h
6945 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6946 echo "configure:6947: checking for Berkeley DB" >&5
6947 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6948 echo $ac_n "(cached) $ac_c" 1>&6
6951 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6952 ol_cv_berkeley_db=no
6954 ol_cv_berkeley_db=yes
6959 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6960 if test $ol_cv_berkeley_db = yes ; then
6961 cat >> confdefs.h <<\EOF
6962 #define HAVE_BERKELEY_DB 1
6968 if test $ol_cv_berkeley_db = yes ; then
6972 if test $ol_with_ldbm_type = hash ; then
6973 cat >> confdefs.h <<\EOF
6974 #define LDBM_USE_DBHASH 1
6978 cat >> confdefs.h <<\EOF
6979 #define LDBM_USE_DBBTREE 1
6984 if test $ol_cv_lib_db != yes ; then
6985 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6990 if test $ol_with_ldbm_api = manual ; then
6993 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6995 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6999 echo "configure:7000: checking for $ac_hdr" >&5
7000 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6
7003 cat > conftest.$ac_ext <<EOF
7004 #line 7005 "configure"
7005 #include "confdefs.h"
7008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7009 { (eval echo configure:7010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7011 if test -z "$ac_err"; then
7013 eval "ac_cv_header_$ac_safe=yes"
7016 echo "configure: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7019 eval "ac_cv_header_$ac_safe=no"
7023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7024 echo "$ac_t""yes" 1>&6
7025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7026 cat >> confdefs.h <<EOF
7027 #define $ac_tr_hdr 1
7031 echo "$ac_t""no" 1>&6
7037 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7038 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7039 ol_with_ldbm_api=none
7042 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7043 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7044 echo "configure:7045: checking for GDBM library" >&5
7045 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7049 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7050 echo "configure:7051: checking for gdbm_open" >&5
7051 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057 /* System header to define __stub macros and hopefully few prototypes,
7058 which can conflict with char gdbm_open(); below. */
7060 /* Override any gcc2 internal prototype to avoid an error. */
7061 /* We use char because int might match the return type of a gcc2
7062 builtin and then its argument prototype would still apply. */
7067 /* The GNU C library defines this for functions which it implements
7068 to always fail with ENOSYS. Some functions are actually named
7069 something starting with __ and the normal name is an alias. */
7070 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7078 if { (eval echo configure:7079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7080 eval "ac_cv_func_gdbm_open=yes"
7082 echo "configure: failed program was:" >&5
7083 cat conftest.$ac_ext >&5
7085 eval "ac_cv_func_gdbm_open=no"
7090 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7091 echo "$ac_t""yes" 1>&6
7094 echo "$ac_t""no" 1>&6
7096 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7097 echo "configure:7098: checking for gdbm_open in -lgdbm" >&5
7098 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7102 ac_save_LIBS="$LIBS"
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7107 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7118 eval "ac_cv_lib_$ac_lib_var=yes"
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 eval "ac_cv_lib_$ac_lib_var=no"
7126 LIBS="$ac_save_LIBS"
7129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7130 echo "$ac_t""yes" 1>&6
7131 ol_cv_lib_gdbm=-lgdbm
7133 echo "$ac_t""no" 1>&6
7144 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7147 for ac_hdr in gdbm.h
7149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7151 echo "configure:7152: checking for $ac_hdr" >&5
7152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7161 { (eval echo configure:7162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7163 if test -z "$ac_err"; then
7165 eval "ac_cv_header_$ac_safe=yes"
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7171 eval "ac_cv_header_$ac_safe=no"
7175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7178 cat >> confdefs.h <<EOF
7179 #define $ac_tr_hdr 1
7183 echo "$ac_t""no" 1>&6
7187 echo $ac_n "checking for db""... $ac_c" 1>&6
7188 echo "configure:7189: checking for db" >&5
7189 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
7190 echo $ac_n "(cached) $ac_c" 1>&6
7193 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
7201 echo "$ac_t""$ol_cv_gdbm" 1>&6
7202 if test $ol_cv_gdbm = yes ; then
7203 cat >> confdefs.h <<\EOF
7210 if test $ol_cv_gdbm = yes ; then
7212 ol_with_ldbm_api=gdbm
7214 if test $ol_cv_lib_gdbm != yes ; then
7215 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
7220 if test $ol_with_ldbm_api = auto ; then
7221 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
7222 elif test $ol_with_ldbm_api = ndbm ; then
7223 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
7224 echo "configure:7225: checking for NDBM library" >&5
7225 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7229 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
7230 echo "configure:7231: checking for dbm_open" >&5
7231 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
7232 echo $ac_n "(cached) $ac_c" 1>&6
7234 cat > conftest.$ac_ext <<EOF
7235 #line 7236 "configure"
7236 #include "confdefs.h"
7237 /* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char dbm_open(); below. */
7240 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7247 /* The GNU C library defines this for functions which it implements
7248 to always fail with ENOSYS. Some functions are actually named
7249 something starting with __ and the normal name is an alias. */
7250 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
7258 if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 eval "ac_cv_func_dbm_open=yes"
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 eval "ac_cv_func_dbm_open=no"
7270 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
7271 echo "$ac_t""yes" 1>&6
7274 echo "$ac_t""no" 1>&6
7276 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
7277 echo "configure:7278: checking for dbm_open in -lndbm" >&5
7278 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
7279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7282 ac_save_LIBS="$LIBS"
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 /* Override any gcc2 internal prototype to avoid an error. */
7288 /* We use char because int might match the return type of a gcc2
7289 builtin and then its argument prototype would still apply. */
7296 if { (eval echo configure:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7298 eval "ac_cv_lib_$ac_lib_var=yes"
7300 echo "configure: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7303 eval "ac_cv_lib_$ac_lib_var=no"
7306 LIBS="$ac_save_LIBS"
7309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7311 ol_cv_lib_ndbm=-lndbm
7313 echo "$ac_t""no" 1>&6
7315 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
7316 echo "configure:7317: checking for dbm_open in -ldbm" >&5
7317 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
7318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7319 echo $ac_n "(cached) $ac_c" 1>&6
7321 ac_save_LIBS="$LIBS"
7323 cat > conftest.$ac_ext <<EOF
7324 #line 7325 "configure"
7325 #include "confdefs.h"
7326 /* Override any gcc2 internal prototype to avoid an error. */
7327 /* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7337 eval "ac_cv_lib_$ac_lib_var=yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 eval "ac_cv_lib_$ac_lib_var=no"
7345 LIBS="$ac_save_LIBS"
7348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7349 echo "$ac_t""yes" 1>&6
7350 ol_cv_lib_ndbm=-ldbm
7352 echo "$ac_t""no" 1>&6
7365 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
7368 for ac_hdr in ndbm.h
7370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7372 echo "configure:7373: checking for $ac_hdr" >&5
7373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6
7376 cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7382 { (eval echo configure:7383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7384 if test -z "$ac_err"; then
7386 eval "ac_cv_header_$ac_safe=yes"
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 eval "ac_cv_header_$ac_safe=no"
7396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7397 echo "$ac_t""yes" 1>&6
7398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7399 cat >> confdefs.h <<EOF
7400 #define $ac_tr_hdr 1
7404 echo "$ac_t""no" 1>&6
7408 echo $ac_n "checking for db""... $ac_c" 1>&6
7409 echo "configure:7410: checking for db" >&5
7410 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
7411 echo $ac_n "(cached) $ac_c" 1>&6
7414 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
7422 echo "$ac_t""$ol_cv_ndbm" 1>&6
7423 if test $ol_cv_ndbm = yes ; then
7424 cat >> confdefs.h <<\EOF
7431 if test $ol_cv_ndbm = yes ; then
7433 ol_with_ldbm_api=ndbm
7435 if test $ol_cv_lib_ndbm != yes ; then
7436 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7441 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7442 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7443 if test $ol_enable_ldbm = yes ; then
7444 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7447 echo "configure: warning: disabling LDBM" 1>&2
7451 if test $ol_enable_wrappers != no ; then
7452 for ac_hdr in tcpd.h
7454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7456 echo "configure:7457: checking for $ac_hdr" >&5
7457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7458 echo $ac_n "(cached) $ac_c" 1>&6
7460 cat > conftest.$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7466 { (eval echo configure:7467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7468 if test -z "$ac_err"; then
7470 eval "ac_cv_header_$ac_safe=yes"
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7476 eval "ac_cv_header_$ac_safe=no"
7480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7481 echo "$ac_t""yes" 1>&6
7482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7483 cat >> confdefs.h <<EOF
7484 #define $ac_tr_hdr 1
7488 echo "$ac_t""no" 1>&6
7493 if test $ac_cv_header_tcpd_h != yes ; then
7496 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7497 echo "configure:7498: checking for main in -lwrap" >&5
7498 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7502 ac_save_LIBS="$LIBS"
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7512 if { (eval echo configure:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7514 eval "ac_cv_lib_$ac_lib_var=yes"
7516 echo "configure: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7519 eval "ac_cv_lib_$ac_lib_var=no"
7522 LIBS="$ac_save_LIBS"
7525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7526 echo "$ac_t""yes" 1>&6
7529 echo "$ac_t""no" 1>&6
7535 if test $have_wrappers = yes ; then
7536 cat >> confdefs.h <<\EOF
7540 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7542 echo "configure: warning: could not find -lwrap" 1>&2
7543 if test $ol_enable_wrappers = yes ; then
7544 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7547 echo "configure: warning: disabling wrappers support" 1>&2
7548 ol_enable_wrappers=no
7552 if test $ol_enable_syslog != no ; then
7553 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7554 echo "configure:7555: checking for openlog" >&5
7555 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561 /* System header to define __stub macros and hopefully few prototypes,
7562 which can conflict with char openlog(); below. */
7564 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7571 /* The GNU C library defines this for functions which it implements
7572 to always fail with ENOSYS. Some functions are actually named
7573 something starting with __ and the normal name is an alias. */
7574 #if defined (__stub_openlog) || defined (__stub___openlog)
7582 if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7584 eval "ac_cv_func_openlog=yes"
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7589 eval "ac_cv_func_openlog=no"
7594 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7598 echo "$ac_t""no" 1>&6
7601 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7602 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7604 ol_enable_syslog=$ac_cv_func_openlog
7607 if test $ol_enable_dmalloc != no ; then
7608 for ac_hdr in dmalloc.h
7610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_hdr" >&5
7613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7622 { (eval echo configure:7623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7624 if test -z "$ac_err"; then
7626 eval "ac_cv_header_$ac_safe=yes"
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7632 eval "ac_cv_header_$ac_safe=no"
7636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7639 cat >> confdefs.h <<EOF
7640 #define $ac_tr_hdr 1
7644 echo "$ac_t""no" 1>&6
7648 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7649 echo "configure:7650: checking for dmalloc_shutdown in -ldmalloc" >&5
7650 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7654 ac_save_LIBS="$LIBS"
7655 LIBS="-ldmalloc $LIBS"
7656 cat > conftest.$ac_ext <<EOF
7657 #line 7658 "configure"
7658 #include "confdefs.h"
7659 /* Override any gcc2 internal prototype to avoid an error. */
7660 /* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */
7662 char dmalloc_shutdown();
7668 if { (eval echo configure:7669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7670 eval "ac_cv_lib_$ac_lib_var=yes"
7672 echo "configure: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7675 eval "ac_cv_lib_$ac_lib_var=no"
7678 LIBS="$ac_save_LIBS"
7681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7682 echo "$ac_t""yes" 1>&6
7683 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7684 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7685 cat >> confdefs.h <<EOF
7686 #define $ac_tr_lib 1
7689 LIBS="-ldmalloc $LIBS"
7692 echo "$ac_t""no" 1>&6
7697 if test $ol_enable_tcl != no ; then
7700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7702 echo "configure:7703: checking for $ac_hdr" >&5
7703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7712 { (eval echo configure:7713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7714 if test -z "$ac_err"; then
7716 eval "ac_cv_header_$ac_safe=yes"
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7722 eval "ac_cv_header_$ac_safe=no"
7726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7729 cat >> confdefs.h <<EOF
7730 #define $ac_tr_hdr 1
7734 echo "$ac_t""no" 1>&6
7739 if test $ac_cv_header_tcl_h != yes ; then
7742 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7743 echo "configure:7744: checking for main in -ltcl" >&5
7744 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7748 ac_save_LIBS="$LIBS"
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7758 if { (eval echo configure:7759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7760 eval "ac_cv_lib_$ac_lib_var=yes"
7762 echo "configure: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7765 eval "ac_cv_lib_$ac_lib_var=no"
7768 LIBS="$ac_save_LIBS"
7771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7775 echo "$ac_t""no" 1>&6
7780 if test $have_tcl != yes; then
7781 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7782 echo "configure:7783: checking for main in -ltcl7.6" >&5
7783 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7787 ac_save_LIBS="$LIBS"
7788 LIBS="-ltcl7.6 $LIBS"
7789 cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7797 if { (eval echo configure:7798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7799 eval "ac_cv_lib_$ac_lib_var=yes"
7801 echo "configure: failed program was:" >&5
7802 cat conftest.$ac_ext >&5
7804 eval "ac_cv_lib_$ac_lib_var=no"
7807 LIBS="$ac_save_LIBS"
7810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7812 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7814 echo "$ac_t""no" 1>&6
7820 if test $have_tcl != yes; then
7821 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7822 echo "configure:7823: checking for main in -ltcl8.0" >&5
7823 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7827 ac_save_LIBS="$LIBS"
7828 LIBS="-ltcl8.0 $LIBS"
7829 cat > conftest.$ac_ext <<EOF
7830 #line 7831 "configure"
7831 #include "confdefs.h"
7837 if { (eval echo configure:7838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7839 eval "ac_cv_lib_$ac_lib_var=yes"
7841 echo "configure: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7844 eval "ac_cv_lib_$ac_lib_var=no"
7847 LIBS="$ac_save_LIBS"
7850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7851 echo "$ac_t""yes" 1>&6
7852 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7854 echo "$ac_t""no" 1>&6
7861 if test $have_tcl != yes ; then
7862 echo "configure: warning: could not find -ltcl" 1>&2
7863 if test $ol_enable_tcl = yes ; then
7864 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7871 # ud needs termcap (should insert check here)
7873 for ac_hdr in termcap.h ncurses.h
7875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7877 echo "configure:7878: checking for $ac_hdr" >&5
7878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7881 cat > conftest.$ac_ext <<EOF
7882 #line 7883 "configure"
7883 #include "confdefs.h"
7886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7887 { (eval echo configure:7888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7889 if test -z "$ac_err"; then
7891 eval "ac_cv_header_$ac_safe=yes"
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7897 eval "ac_cv_header_$ac_safe=no"
7901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7902 echo "$ac_t""yes" 1>&6
7903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7904 cat >> confdefs.h <<EOF
7905 #define $ac_tr_hdr 1
7909 echo "$ac_t""no" 1>&6
7914 if test $ol_link_termcap = no ; then
7915 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7916 echo "configure:7917: checking for tputs in -ltermcap" >&5
7917 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7921 ac_save_LIBS="$LIBS"
7922 LIBS="-ltermcap $LIBS"
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 /* Override any gcc2 internal prototype to avoid an error. */
7927 /* We use char because int might match the return type of a gcc2
7928 builtin and then its argument prototype would still apply. */
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 eval "ac_cv_lib_$ac_lib_var=yes"
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 eval "ac_cv_lib_$ac_lib_var=no"
7945 LIBS="$ac_save_LIBS"
7948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7952 echo "$ac_t""no" 1>&6
7956 if test $have_termcap = yes ; then
7957 cat >> confdefs.h <<\EOF
7958 #define HAVE_TERMCAP 1
7962 TERMCAP_LIBS=-ltermcap
7966 if test $ol_link_termcap = no ; then
7967 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7968 echo "configure:7969: checking for initscr in -lncurses" >&5
7969 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7971 echo $ac_n "(cached) $ac_c" 1>&6
7973 ac_save_LIBS="$LIBS"
7974 LIBS="-lncurses $LIBS"
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 /* Override any gcc2 internal prototype to avoid an error. */
7979 /* We use char because int might match the return type of a gcc2
7980 builtin and then its argument prototype would still apply. */
7987 if { (eval echo configure:7988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7989 eval "ac_cv_lib_$ac_lib_var=yes"
7991 echo "configure: failed program was:" >&5
7992 cat conftest.$ac_ext >&5
7994 eval "ac_cv_lib_$ac_lib_var=no"
7997 LIBS="$ac_save_LIBS"
8000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8001 echo "$ac_t""yes" 1>&6
8004 echo "$ac_t""no" 1>&6
8008 if test $have_ncurses = yes ; then
8009 cat >> confdefs.h <<\EOF
8010 #define HAVE_NCURSES 1
8014 TERMCAP_LIBS=-lncurses
8018 if test $ol_link_termcap = no ; then
8019 cat >> confdefs.h <<\EOF
8020 #define NO_TERMCAP 1
8026 # FreeBSD (and others) have crypt(3) in -lcrypt
8027 if test $ol_enable_crypt != no ; then
8028 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8029 echo "configure:8030: checking for crypt" >&5
8030 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8036 /* System header to define __stub macros and hopefully few prototypes,
8037 which can conflict with char crypt(); below. */
8039 /* Override any gcc2 internal prototype to avoid an error. */
8040 /* We use char because int might match the return type of a gcc2
8041 builtin and then its argument prototype would still apply. */
8046 /* The GNU C library defines this for functions which it implements
8047 to always fail with ENOSYS. Some functions are actually named
8048 something starting with __ and the normal name is an alias. */
8049 #if defined (__stub_crypt) || defined (__stub___crypt)
8057 if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8059 eval "ac_cv_func_crypt=yes"
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8064 eval "ac_cv_func_crypt=no"
8069 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8070 echo "$ac_t""yes" 1>&6
8073 echo "$ac_t""no" 1>&6
8075 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8076 echo "configure:8077: checking for crypt in -lcrypt" >&5
8077 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8079 echo $ac_n "(cached) $ac_c" 1>&6
8081 ac_save_LIBS="$LIBS"
8082 LIBS="-lcrypt $LIBS"
8083 cat > conftest.$ac_ext <<EOF
8084 #line 8085 "configure"
8085 #include "confdefs.h"
8086 /* Override any gcc2 internal prototype to avoid an error. */
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8095 if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8097 eval "ac_cv_lib_$ac_lib_var=yes"
8099 echo "configure: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8102 eval "ac_cv_lib_$ac_lib_var=no"
8105 LIBS="$ac_save_LIBS"
8108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8109 echo "$ac_t""yes" 1>&6
8110 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
8113 echo "$ac_t""no" 1>&6
8120 if test $have_crypt = yes ; then
8121 cat >> confdefs.h <<\EOF
8122 #define HAVE_CRYPT 1
8126 echo "configure: warning: could not find crypt" 1>&2
8127 if test $ol_enable_crypt = yes ; then
8128 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
8131 echo "configure: warning: disabling crypt support" 1>&2
8136 # FreeBSD (and others) have setproctitle(3) in -lutil
8137 if test $ol_enable_proctitle != no ; then
8138 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
8139 echo "configure:8140: checking for setproctitle" >&5
8140 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146 /* System header to define __stub macros and hopefully few prototypes,
8147 which can conflict with char setproctitle(); below. */
8149 /* Override any gcc2 internal prototype to avoid an error. */
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152 char setproctitle();
8156 /* The GNU C library defines this for functions which it implements
8157 to always fail with ENOSYS. Some functions are actually named
8158 something starting with __ and the normal name is an alias. */
8159 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
8167 if { (eval echo configure:8168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8169 eval "ac_cv_func_setproctitle=yes"
8171 echo "configure: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8174 eval "ac_cv_func_setproctitle=no"
8179 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
8180 echo "$ac_t""yes" 1>&6
8181 have_setproctitle=yes
8183 echo "$ac_t""no" 1>&6
8185 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
8186 echo "configure:8187: checking for setproctitle in -lutil" >&5
8187 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
8188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8191 ac_save_LIBS="$LIBS"
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 /* We use char because int might match the return type of a gcc2
8198 builtin and then its argument prototype would still apply. */
8199 char setproctitle();
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8207 eval "ac_cv_lib_$ac_lib_var=yes"
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 eval "ac_cv_lib_$ac_lib_var=no"
8215 LIBS="$ac_save_LIBS"
8218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8219 echo "$ac_t""yes" 1>&6
8220 have_setproctitle=yes
8221 LUTIL_LIBS="$LUTIL_LIBS -lutil"
8223 echo "$ac_t""no" 1>&6
8224 have_setproctitle=no
8225 LIBOBJS="$LIBOBJS setproctitle.o"
8231 if test $have_setproctitle = yes ; then
8232 cat >> confdefs.h <<\EOF
8233 #define HAVE_SETPROCTITLE 1
8239 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8240 echo "configure:8241: checking for ANSI C header files" >&5
8241 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8253 { (eval echo configure:8254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8255 if test -z "$ac_err"; then
8257 ac_cv_header_stdc=yes
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 ac_cv_header_stdc=no
8267 if test $ac_cv_header_stdc = yes; then
8268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8275 egrep "memchr" >/dev/null 2>&1; then
8279 ac_cv_header_stdc=no
8285 if test $ac_cv_header_stdc = yes; then
8286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8293 egrep "free" >/dev/null 2>&1; then
8297 ac_cv_header_stdc=no
8303 if test $ac_cv_header_stdc = yes; then
8304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8305 if test "$cross_compiling" = yes; then
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8312 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8313 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8315 int main () { int i; for (i = 0; i < 256; i++)
8316 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 ac_cv_header_stdc=no
8335 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8336 if test $ac_cv_header_stdc = yes; then
8337 cat >> confdefs.h <<\EOF
8338 #define STDC_HEADERS 1
8344 if test $ac_cv_header_stdc != yes; then
8345 echo "configure: warning: could not Standard C compliant headers" 1>&2
8349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8351 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8352 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8353 echo "configure:8354: checking for $ac_hdr that defines DIR" >&5
8354 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 #include <sys/types.h>
8366 if { (eval echo configure:8367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8368 eval "ac_cv_header_dirent_$ac_safe=yes"
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8373 eval "ac_cv_header_dirent_$ac_safe=no"
8377 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8378 echo "$ac_t""yes" 1>&6
8379 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8380 cat >> confdefs.h <<EOF
8381 #define $ac_tr_hdr 1
8383 ac_header_dirent=$ac_hdr; break
8385 echo "$ac_t""no" 1>&6
8388 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8389 if test $ac_header_dirent = dirent.h; then
8390 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8391 echo "configure:8392: checking for opendir in -ldir" >&5
8392 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8396 ac_save_LIBS="$LIBS"
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8401 /* Override any gcc2 internal prototype to avoid an error. */
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8410 if { (eval echo configure:8411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8412 eval "ac_cv_lib_$ac_lib_var=yes"
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 eval "ac_cv_lib_$ac_lib_var=no"
8420 LIBS="$ac_save_LIBS"
8423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8424 echo "$ac_t""yes" 1>&6
8427 echo "$ac_t""no" 1>&6
8431 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8432 echo "configure:8433: checking for opendir in -lx" >&5
8433 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 ac_save_LIBS="$LIBS"
8439 cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8451 if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8453 eval "ac_cv_lib_$ac_lib_var=yes"
8455 echo "configure: failed program was:" >&5
8456 cat conftest.$ac_ext >&5
8458 eval "ac_cv_lib_$ac_lib_var=no"
8461 LIBS="$ac_save_LIBS"
8464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8465 echo "$ac_t""yes" 1>&6
8468 echo "$ac_t""no" 1>&6
8473 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8474 echo "configure:8475: checking for sys/wait.h that is POSIX.1 compatible" >&5
8475 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8476 echo $ac_n "(cached) $ac_c" 1>&6
8478 cat > conftest.$ac_ext <<EOF
8479 #line 8480 "configure"
8480 #include "confdefs.h"
8481 #include <sys/types.h>
8482 #include <sys/wait.h>
8484 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8487 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8492 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8495 if { (eval echo configure:8496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8497 ac_cv_header_sys_wait_h=yes
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8502 ac_cv_header_sys_wait_h=no
8507 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8508 if test $ac_cv_header_sys_wait_h = yes; then
8509 cat >> confdefs.h <<\EOF
8510 #define HAVE_SYS_WAIT_H 1
8515 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8516 echo "configure:8517: checking POSIX termios" >&5
8517 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8520 cat > conftest.$ac_ext <<EOF
8521 #line 8522 "configure"
8522 #include "confdefs.h"
8523 #include <sys/types.h>
8525 #include <termios.h>
8527 /* SunOS 4.0.3 has termios.h but not the library calls. */
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8533 am_cv_sys_posix_termios=yes
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 am_cv_sys_posix_termios=no
8543 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8546 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8547 echo "configure:8548: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8548 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8551 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8553 gwinsz_in_termios_h=no
8554 if test $am_cv_sys_posix_termios = yes; then
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 #include <sys/types.h>
8559 # include <termios.h>
8565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8566 egrep "yes" >/dev/null 2>&1; then
8568 gwinsz_in_termios_h=yes
8574 if test $gwinsz_in_termios_h = no; then
8575 cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 #include <sys/types.h>
8579 # include <sys/ioctl.h>
8585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8586 egrep "yes" >/dev/null 2>&1; then
8588 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8596 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8597 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8598 cat >> confdefs.h <<\EOF
8599 #define GWINSZ_IN_SYS_IOCTL 1
8604 if test $am_cv_sys_posix_termios = yes ; then
8605 cat >> confdefs.h <<\EOF
8606 #define HAVE_POSIX_TERMIOS 1
8648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8650 echo "configure:8651: checking for $ac_hdr" >&5
8651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8654 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8660 { (eval echo configure:8661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8662 if test -z "$ac_err"; then
8664 eval "ac_cv_header_$ac_safe=yes"
8667 echo "configure: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8670 eval "ac_cv_header_$ac_safe=no"
8674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8675 echo "$ac_t""yes" 1>&6
8676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8677 cat >> confdefs.h <<EOF
8678 #define $ac_tr_hdr 1
8682 echo "$ac_t""no" 1>&6
8687 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8688 echo "configure:8689: checking for uid_t in sys/types.h" >&5
8689 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8690 echo $ac_n "(cached) $ac_c" 1>&6
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8695 #include <sys/types.h>
8697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8698 egrep "uid_t" >/dev/null 2>&1; then
8700 ac_cv_type_uid_t=yes
8709 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8710 if test $ac_cv_type_uid_t = no; then
8711 cat >> confdefs.h <<\EOF
8715 cat >> confdefs.h <<\EOF
8721 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8722 echo "configure:8723: checking type of array argument to getgroups" >&5
8723 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8724 echo $ac_n "(cached) $ac_c" 1>&6
8726 if test "$cross_compiling" = yes; then
8727 ac_cv_type_getgroups=cross
8729 cat > conftest.$ac_ext <<EOF
8730 #line 8731 "configure"
8731 #include "confdefs.h"
8733 /* Thanks to Mike Rendell for this test. */
8734 #include <sys/types.h>
8737 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8742 union { gid_t gval; long lval; } val;
8745 for (i = 0; i < NGID; i++)
8746 gidset[i] = val.gval;
8747 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8749 /* Exit non-zero if getgroups seems to require an array of ints. This
8750 happens when gid_t is short but getgroups modifies an array of ints. */
8751 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8757 ac_cv_type_getgroups=gid_t
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8762 ac_cv_type_getgroups=int
8767 if test $ac_cv_type_getgroups = cross; then
8768 cat > conftest.$ac_ext <<EOF
8769 #line 8770 "configure"
8770 #include "confdefs.h"
8773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8774 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8776 ac_cv_type_getgroups=gid_t
8779 ac_cv_type_getgroups=int
8786 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8787 cat >> confdefs.h <<EOF
8788 #define GETGROUPS_T $ac_cv_type_getgroups
8791 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8792 echo "configure:8793: checking for mode_t" >&5
8793 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8794 echo $ac_n "(cached) $ac_c" 1>&6
8796 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8799 #include <sys/types.h>
8805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8808 ac_cv_type_mode_t=yes
8811 ac_cv_type_mode_t=no
8816 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8817 if test $ac_cv_type_mode_t = no; then
8818 cat >> confdefs.h <<\EOF
8824 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8825 echo "configure:8826: checking for off_t" >&5
8826 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8829 cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8832 #include <sys/types.h>
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8841 ac_cv_type_off_t=yes
8849 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8850 if test $ac_cv_type_off_t = no; then
8851 cat >> confdefs.h <<\EOF
8857 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8858 echo "configure:8859: checking for pid_t" >&5
8859 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 #include <sys/types.h>
8871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8872 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8874 ac_cv_type_pid_t=yes
8882 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8883 if test $ac_cv_type_pid_t = no; then
8884 cat >> confdefs.h <<\EOF
8890 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8891 echo "configure:8892: checking for ptrdiff_t" >&5
8892 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8893 echo $ac_n "(cached) $ac_c" 1>&6
8895 cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8903 if { (eval echo configure:8904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8905 am_cv_type_ptrdiff_t=yes
8907 echo "configure: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8910 am_cv_type_ptrdiff_t=no
8915 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8916 if test $am_cv_type_ptrdiff_t = yes; then
8917 cat >> confdefs.h <<\EOF
8918 #define HAVE_PTRDIFF_T 1
8923 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8924 echo "configure:8925: checking return type of signal handlers" >&5
8925 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8926 echo $ac_n "(cached) $ac_c" 1>&6
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8931 #include <sys/types.h>
8937 extern "C" void (*signal (int, void (*)(int)))(int);
8939 void (*signal ()) ();
8946 if { (eval echo configure:8947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8948 ac_cv_type_signal=void
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 ac_cv_type_signal=int
8958 echo "$ac_t""$ac_cv_type_signal" 1>&6
8959 cat >> confdefs.h <<EOF
8960 #define RETSIGTYPE $ac_cv_type_signal
8964 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8965 echo "configure:8966: checking for sig_atomic_t" >&5
8966 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
8969 cat > conftest.$ac_ext <<EOF
8970 #line 8971 "configure"
8971 #include "confdefs.h"
8974 sig_atomic_t atomic;
8977 if { (eval echo configure:8978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8979 ol_cv_type_sig_atomic_t=yes
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8984 ol_cv_type_sig_atomic_t=no
8989 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8990 if test $ol_cv_type_sig_atomic_t = no; then
8991 cat >> confdefs.h <<\EOF
8992 #define sig_atomic_t int
8997 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8998 echo "configure:8999: checking for size_t" >&5
8999 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9005 #include <sys/types.h>
9011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9012 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9014 ac_cv_type_size_t=yes
9017 ac_cv_type_size_t=no
9022 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9023 if test $ac_cv_type_size_t = no; then
9024 cat >> confdefs.h <<\EOF
9025 #define size_t unsigned
9030 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9031 echo "configure:9032: checking for st_blksize in struct stat" >&5
9032 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9033 echo $ac_n "(cached) $ac_c" 1>&6
9035 cat > conftest.$ac_ext <<EOF
9036 #line 9037 "configure"
9037 #include "confdefs.h"
9038 #include <sys/types.h>
9039 #include <sys/stat.h>
9041 struct stat s; s.st_blksize;
9044 if { (eval echo configure:9045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9046 ac_cv_struct_st_blksize=yes
9048 echo "configure: failed program was:" >&5
9049 cat conftest.$ac_ext >&5
9051 ac_cv_struct_st_blksize=no
9056 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9057 if test $ac_cv_struct_st_blksize = yes; then
9058 cat >> confdefs.h <<\EOF
9059 #define HAVE_ST_BLKSIZE 1
9064 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
9065 echo "configure:9066: checking whether time.h and sys/time.h may both be included" >&5
9066 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
9067 echo $ac_n "(cached) $ac_c" 1>&6
9069 cat > conftest.$ac_ext <<EOF
9070 #line 9071 "configure"
9071 #include "confdefs.h"
9072 #include <sys/types.h>
9073 #include <sys/time.h>
9079 if { (eval echo configure:9080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9081 ac_cv_header_time=yes
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 ac_cv_header_time=no
9091 echo "$ac_t""$ac_cv_header_time" 1>&6
9092 if test $ac_cv_header_time = yes; then
9093 cat >> confdefs.h <<\EOF
9094 #define TIME_WITH_SYS_TIME 1
9099 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9100 echo "configure:9101: checking whether struct tm is in sys/time.h or time.h" >&5
9101 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 #include <sys/types.h>
9110 struct tm *tp; tp->tm_sec;
9113 if { (eval echo configure:9114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9115 ac_cv_struct_tm=time.h
9117 echo "configure: failed program was:" >&5
9118 cat conftest.$ac_ext >&5
9120 ac_cv_struct_tm=sys/time.h
9125 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9126 if test $ac_cv_struct_tm = sys/time.h; then
9127 cat >> confdefs.h <<\EOF
9128 #define TM_IN_SYS_TIME 1
9135 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
9136 echo "configure:9137: checking if toupper() requires islower()" >&5
9137 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9141 if test "$cross_compiling" = yes; then
9142 ol_cv_c_upper_lower=safe
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9151 if ('C' == toupper('C'))
9157 if { (eval echo configure:9158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9159 ol_cv_c_upper_lower=no
9161 echo "configure: failed program was:" >&5
9162 cat conftest.$ac_ext >&5
9164 ol_cv_c_upper_lower=yes
9171 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
9172 if test $ol_cv_c_upper_lower != no ; then
9173 cat >> confdefs.h <<\EOF
9174 #define C_UPPER_LOWER 1
9179 echo $ac_n "checking for working const""... $ac_c" 1>&6
9180 echo "configure:9181: checking for working const" >&5
9181 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9182 echo $ac_n "(cached) $ac_c" 1>&6
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9190 /* Ultrix mips cc rejects this. */
9191 typedef int charset[2]; const charset x;
9192 /* SunOS 4.1.1 cc rejects this. */
9193 char const *const *ccp;
9195 /* NEC SVR4.0.2 mips cc rejects this. */
9196 struct point {int x, y;};
9197 static struct point const zero = {0,0};
9198 /* AIX XL C 1.02.0.0 rejects this.
9199 It does not let you subtract one const X* pointer from another in an arm
9200 of an if-expression whose if-part is not a constant expression */
9201 const char *g = "string";
9202 ccp = &g + (g ? g-g : 0);
9203 /* HPUX 7.0 cc rejects these. */
9206 ccp = (char const *const *) p;
9207 { /* SCO 3.2v4 cc rejects this. */
9209 char const *s = 0 ? (char *) 0 : (char const *) 0;
9213 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9215 const int *foo = &x[0];
9218 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9219 typedef const int *iptr;
9223 { /* AIX XL C 1.02.0.0 rejects this saying
9224 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9225 struct s { int j; const int *ap[3]; };
9226 struct s *b; b->j = 5;
9228 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9234 if { (eval echo configure:9235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9246 echo "$ac_t""$ac_cv_c_const" 1>&6
9247 if test $ac_cv_c_const = no; then
9248 cat >> confdefs.h <<\EOF
9254 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
9255 echo "configure:9256: checking if compiler understands volatile" >&5
9256 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9259 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9264 volatile int a; int * volatile b = x ? &y : &z;
9265 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
9269 if { (eval echo configure:9270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9271 ol_cv_c_volatile=yes
9273 echo "configure: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9281 echo "$ac_t""$ol_cv_c_volatile" 1>&6
9282 if test $ol_cv_c_volatile = yes; then
9285 cat >> confdefs.h <<\EOF
9292 if test $cross_compiling = yes ; then
9293 cat >> confdefs.h <<\EOF
9294 #define CROSS_COMPILING 1
9298 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9299 echo "configure:9300: checking whether byte ordering is bigendian" >&5
9300 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9301 echo $ac_n "(cached) $ac_c" 1>&6
9303 ac_cv_c_bigendian=unknown
9304 # See if sys/param.h defines the BYTE_ORDER macro.
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9308 #include <sys/types.h>
9309 #include <sys/param.h>
9312 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9317 if { (eval echo configure:9318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9319 # It does; now see whether it defined to BIG_ENDIAN or not.
9320 cat > conftest.$ac_ext <<EOF
9321 #line 9322 "configure"
9322 #include "confdefs.h"
9323 #include <sys/types.h>
9324 #include <sys/param.h>
9327 #if BYTE_ORDER != BIG_ENDIAN
9332 if { (eval echo configure:9333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9334 ac_cv_c_bigendian=yes
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9339 ac_cv_c_bigendian=no
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9347 if test $ac_cv_c_bigendian = unknown; then
9348 if test "$cross_compiling" = yes; then
9349 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9351 cat > conftest.$ac_ext <<EOF
9352 #line 9353 "configure"
9353 #include "confdefs.h"
9355 /* Are we little or big endian? From Harbison&Steele. */
9359 char c[sizeof (long)];
9362 exit (u.c[sizeof (long) - 1] == 1);
9365 if { (eval echo configure:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9367 ac_cv_c_bigendian=no
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9372 ac_cv_c_bigendian=yes
9380 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9381 if test $ac_cv_c_bigendian = yes; then
9382 cat >> confdefs.h <<\EOF
9383 #define WORDS_BIGENDIAN 1
9388 echo $ac_n "checking size of short""... $ac_c" 1>&6
9389 echo "configure:9390: checking size of short" >&5
9390 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9391 echo $ac_n "(cached) $ac_c" 1>&6
9393 if test "$cross_compiling" = yes; then
9394 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9396 cat > conftest.$ac_ext <<EOF
9397 #line 9398 "configure"
9398 #include "confdefs.h"
9402 FILE *f=fopen("conftestval", "w");
9404 fprintf(f, "%d\n", sizeof(short));
9408 if { (eval echo configure:9409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9410 ac_cv_sizeof_short=`cat conftestval`
9412 echo "configure: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9415 ac_cv_sizeof_short=0
9421 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9422 cat >> confdefs.h <<EOF
9423 #define SIZEOF_SHORT $ac_cv_sizeof_short
9427 echo $ac_n "checking size of int""... $ac_c" 1>&6
9428 echo "configure:9429: checking size of int" >&5
9429 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9432 if test "$cross_compiling" = yes; then
9433 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9441 FILE *f=fopen("conftestval", "w");
9443 fprintf(f, "%d\n", sizeof(int));
9447 if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9449 ac_cv_sizeof_int=`cat conftestval`
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9460 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9461 cat >> confdefs.h <<EOF
9462 #define SIZEOF_INT $ac_cv_sizeof_int
9466 echo $ac_n "checking size of long""... $ac_c" 1>&6
9467 echo "configure:9468: checking size of long" >&5
9468 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9471 if test "$cross_compiling" = yes; then
9472 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9474 cat > conftest.$ac_ext <<EOF
9475 #line 9476 "configure"
9476 #include "confdefs.h"
9480 FILE *f=fopen("conftestval", "w");
9482 fprintf(f, "%d\n", sizeof(long));
9486 if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9488 ac_cv_sizeof_long=`cat conftestval`
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9499 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9500 cat >> confdefs.h <<EOF
9501 #define SIZEOF_LONG $ac_cv_sizeof_long
9507 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9508 echo "configure:9509: checking for 8-bit clean memcmp" >&5
9509 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9512 if test "$cross_compiling" = yes; then
9513 ac_cv_func_memcmp_clean=no
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9521 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9522 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9526 if { (eval echo configure:9527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9528 ac_cv_func_memcmp_clean=yes
9530 echo "configure: failed program was:" >&5
9531 cat conftest.$ac_ext >&5
9533 ac_cv_func_memcmp_clean=no
9540 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
9541 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
9543 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9544 echo "configure:9545: checking for strftime" >&5
9545 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9548 cat > conftest.$ac_ext <<EOF
9549 #line 9550 "configure"
9550 #include "confdefs.h"
9551 /* System header to define __stub macros and hopefully few prototypes,
9552 which can conflict with char strftime(); below. */
9554 /* Override any gcc2 internal prototype to avoid an error. */
9555 /* We use char because int might match the return type of a gcc2
9556 builtin and then its argument prototype would still apply. */
9561 /* The GNU C library defines this for functions which it implements
9562 to always fail with ENOSYS. Some functions are actually named
9563 something starting with __ and the normal name is an alias. */
9564 #if defined (__stub_strftime) || defined (__stub___strftime)
9572 if { (eval echo configure:9573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9574 eval "ac_cv_func_strftime=yes"
9576 echo "configure: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9579 eval "ac_cv_func_strftime=no"
9584 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9585 echo "$ac_t""yes" 1>&6
9586 cat >> confdefs.h <<\EOF
9587 #define HAVE_STRFTIME 1
9591 echo "$ac_t""no" 1>&6
9592 # strftime is in -lintl on SCO UNIX.
9593 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9594 echo "configure:9595: checking for strftime in -lintl" >&5
9595 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9599 ac_save_LIBS="$LIBS"
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9604 /* Override any gcc2 internal prototype to avoid an error. */
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9613 if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9615 eval "ac_cv_lib_$ac_lib_var=yes"
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9620 eval "ac_cv_lib_$ac_lib_var=no"
9623 LIBS="$ac_save_LIBS"
9626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9627 echo "$ac_t""yes" 1>&6
9628 cat >> confdefs.h <<\EOF
9629 #define HAVE_STRFTIME 1
9634 echo "$ac_t""no" 1>&6
9639 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9640 echo "configure:9641: checking for vprintf" >&5
9641 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9642 echo $ac_n "(cached) $ac_c" 1>&6
9644 cat > conftest.$ac_ext <<EOF
9645 #line 9646 "configure"
9646 #include "confdefs.h"
9647 /* System header to define __stub macros and hopefully few prototypes,
9648 which can conflict with char vprintf(); below. */
9650 /* Override any gcc2 internal prototype to avoid an error. */
9651 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9657 /* The GNU C library defines this for functions which it implements
9658 to always fail with ENOSYS. Some functions are actually named
9659 something starting with __ and the normal name is an alias. */
9660 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9668 if { (eval echo configure:9669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9670 eval "ac_cv_func_vprintf=yes"
9672 echo "configure: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9675 eval "ac_cv_func_vprintf=no"
9680 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9681 echo "$ac_t""yes" 1>&6
9682 cat >> confdefs.h <<\EOF
9683 #define HAVE_VPRINTF 1
9687 echo "$ac_t""no" 1>&6
9690 if test "$ac_cv_func_vprintf" != yes; then
9691 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9692 echo "configure:9693: checking for _doprnt" >&5
9693 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9694 echo $ac_n "(cached) $ac_c" 1>&6
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char _doprnt(); below. */
9702 /* Override any gcc2 internal prototype to avoid an error. */
9703 /* We use char because int might match the return type of a gcc2
9704 builtin and then its argument prototype would still apply. */
9709 /* The GNU C library defines this for functions which it implements
9710 to always fail with ENOSYS. Some functions are actually named
9711 something starting with __ and the normal name is an alias. */
9712 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9720 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9722 eval "ac_cv_func__doprnt=yes"
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 eval "ac_cv_func__doprnt=no"
9732 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9733 echo "$ac_t""yes" 1>&6
9734 cat >> confdefs.h <<\EOF
9735 #define HAVE_DOPRNT 1
9739 echo "$ac_t""no" 1>&6
9745 if test $ac_cv_func_vprintf = yes ; then
9746 for ac_func in vsnprintf vsprintf
9748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9749 echo "configure:9750: checking for $ac_func" >&5
9750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9756 /* System header to define __stub macros and hopefully few prototypes,
9757 which can conflict with char $ac_func(); below. */
9759 /* Override any gcc2 internal prototype to avoid an error. */
9760 /* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */
9766 /* The GNU C library defines this for functions which it implements
9767 to always fail with ENOSYS. Some functions are actually named
9768 something starting with __ and the normal name is an alias. */
9769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9777 if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779 eval "ac_cv_func_$ac_func=yes"
9781 echo "configure: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9784 eval "ac_cv_func_$ac_func=no"
9789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9790 echo "$ac_t""yes" 1>&6
9791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9792 cat >> confdefs.h <<EOF
9793 #define $ac_tr_func 1
9797 echo "$ac_t""no" 1>&6
9834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9835 echo "configure:9836: checking for $ac_func" >&5
9836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 /* System header to define __stub macros and hopefully few prototypes,
9843 which can conflict with char $ac_func(); below. */
9845 /* Override any gcc2 internal prototype to avoid an error. */
9846 /* We use char because int might match the return type of a gcc2
9847 builtin and then its argument prototype would still apply. */
9852 /* The GNU C library defines this for functions which it implements
9853 to always fail with ENOSYS. Some functions are actually named
9854 something starting with __ and the normal name is an alias. */
9855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9863 if { (eval echo configure:9864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9865 eval "ac_cv_func_$ac_func=yes"
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9870 eval "ac_cv_func_$ac_func=no"
9875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9876 echo "$ac_t""yes" 1>&6
9877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9878 cat >> confdefs.h <<EOF
9879 #define $ac_tr_func 1
9883 echo "$ac_t""no" 1>&6
9888 for ac_func in getopt tempnam
9890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9891 echo "configure:9892: checking for $ac_func" >&5
9892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9898 /* System header to define __stub macros and hopefully few prototypes,
9899 which can conflict with char $ac_func(); below. */
9901 /* Override any gcc2 internal prototype to avoid an error. */
9902 /* We use char because int might match the return type of a gcc2
9903 builtin and then its argument prototype would still apply. */
9908 /* The GNU C library defines this for functions which it implements
9909 to always fail with ENOSYS. Some functions are actually named
9910 something starting with __ and the normal name is an alias. */
9911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9921 eval "ac_cv_func_$ac_func=yes"
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9926 eval "ac_cv_func_$ac_func=no"
9931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9932 echo "$ac_t""yes" 1>&6
9933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9934 cat >> confdefs.h <<EOF
9935 #define $ac_tr_func 1
9939 echo "$ac_t""no" 1>&6
9940 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9946 # Check Configuration
9948 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9949 echo "configure:9950: checking declaration of sys_errlist" >&5
9950 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9951 echo $ac_n "(cached) $ac_c" 1>&6
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9959 #include <sys/types.h>
9962 char *c = (char *) *sys_errlist
9965 if { (eval echo configure:9966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9967 ol_cv_dcl_sys_errlist=yes
9969 echo "configure: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9972 ol_cv_dcl_sys_errlist=no
9977 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9978 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9979 if test $ol_cv_dcl_sys_errlist = no ; then
9980 cat >> confdefs.h <<\EOF
9981 #define DECL_SYS_ERRLIST 1
9984 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9985 echo "configure:9986: checking existence of sys_errlist" >&5
9986 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9987 echo $ac_n "(cached) $ac_c" 1>&6
9990 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure"
9992 #include "confdefs.h"
9995 char *c = (char *) *sys_errlist
9998 if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10000 ol_cv_have_sys_errlist=yes
10002 echo "configure: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10005 ol_cv_have_sys_errlist=no
10010 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
10015 if test "$ol_enable_debug" != no ; then
10016 cat >> confdefs.h <<\EOF
10017 #define LDAP_DEBUG 1
10021 if test "$ol_enable_syslog" = yes ; then
10022 cat >> confdefs.h <<\EOF
10023 #define LDAP_SYSLOG 1
10027 if test "$ol_enable_libui" = yes ; then
10028 cat >> confdefs.h <<\EOF
10029 #define LDAP_LIBUI 1
10033 if test "$ol_enable_cache" = no ; then
10034 cat >> confdefs.h <<\EOF
10035 #define LDAP_NOCACHE 1
10039 if test "$ol_enable_dns" != no ; then
10040 cat >> confdefs.h <<\EOF
10041 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
10045 if test "$ol_enable_proctitle" != no ; then
10046 cat >> confdefs.h <<\EOF
10047 #define LDAP_PROCTITLE 1
10051 if test "$ol_enable_referrals" != no ; then
10052 cat >> confdefs.h <<\EOF
10053 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
10057 if test "$ol_enable_cldap" != no ; then
10058 cat >> confdefs.h <<\EOF
10059 #define LDAP_CONNECTIONLESS 1
10064 if test "$ol_enable_aclgroups" != no ; then
10065 cat >> confdefs.h <<\EOF
10066 #define SLAPD_ACLGROUPS 1
10070 if test "$ol_enable_crypt" != no ; then
10071 cat >> confdefs.h <<\EOF
10072 #define SLAPD_CRYPT 1
10076 if test "$ol_enable_cleartext" != no ; then
10077 cat >> confdefs.h <<\EOF
10078 #define SLAPD_CLEARTEXT 1
10082 if test "$ol_enable_phonetic" != no ; then
10083 cat >> confdefs.h <<\EOF
10084 #define SLAPD_PHONETIC 1
10088 if test "$ol_enable_rlookups" != no ; then
10089 cat >> confdefs.h <<\EOF
10090 #define SLAPD_RLOOKUPS 1
10095 if test "$ol_link_bdb2" != no ; then
10096 cat >> confdefs.h <<\EOF
10097 #define SLAPD_BDB2 1
10104 if test "$ol_link_ldbm" != no ; then
10105 cat >> confdefs.h <<\EOF
10106 #define SLAPD_LDBM 1
10113 if test "$ol_enable_passwd" != no ; then
10114 cat >> confdefs.h <<\EOF
10115 #define SLAPD_PASSWD 1
10122 if test "$ol_enable_perl" != no ; then
10123 cat >> confdefs.h <<\EOF
10124 #define SLAPD_PERL 1
10131 if test "$ol_enable_shell" != no ; then
10132 cat >> confdefs.h <<\EOF
10133 #define SLAPD_SHELL 1
10140 if test "$ol_enable_tcl" != no ; then
10141 cat >> confdefs.h <<\EOF
10142 #define SLAPD_TCL 1
10149 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
10150 $BUILD_SLAPD = yes ; then
10154 if test "$ol_link_isode" != no ; then
10187 cat > confcache <<\EOF
10188 # This file is a shell script that caches the results of configure
10189 # tests run on this system so they can be shared between configure
10190 # scripts and configure runs. It is not useful on other systems.
10191 # If it contains results you don't want to keep, you may remove or edit it.
10193 # By default, configure uses ./config.cache as the cache file,
10194 # creating it if it does not exist already. You can give configure
10195 # the --cache-file=FILE option to use a different cache file; that is
10196 # what configure does when it calls configure scripts in
10197 # subdirectories, so they share the cache.
10198 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10199 # config.status only pays attention to the cache file if you give it the
10200 # --recheck option to rerun configure.
10203 # The following way of writing the cache mishandles newlines in values,
10204 # but we know of no workaround that is simple, portable, and efficient.
10205 # So, don't put newlines in cache variables' values.
10206 # Ultrix sh set writes to stderr and can't be redirected directly,
10207 # and sets the high bit in the cache file unless we assign to the vars.
10209 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10211 # `set' does not quote correctly, so add quotes (double-quote substitution
10212 # turns \\\\ into \\, and sed turns \\ into \).
10214 -e "s/'/'\\\\''/g" \
10215 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10218 # `set' quotes correctly as required by POSIX, so do not add quotes.
10219 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10222 if cmp -s $cache_file confcache; then
10225 if test -w $cache_file; then
10226 echo "updating cache $cache_file"
10227 cat confcache > $cache_file
10229 echo "not updating unwritable cache $cache_file"
10234 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10237 # Let make expand exec_prefix.
10238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10240 # Any assignment to VPATH causes Sun make to only execute
10241 # the first set of double-colon rules, so remove it if not needed.
10242 # If there is a colon in the path, we need to keep it.
10243 if test "x$srcdir" = x.; then
10244 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10247 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10249 DEFS=-DHAVE_CONFIG_H
10251 # Without the "./", some shells look in PATH for config.status.
10252 : ${CONFIG_STATUS=./config.status}
10254 echo creating $CONFIG_STATUS
10255 rm -f $CONFIG_STATUS
10256 cat > $CONFIG_STATUS <<EOF
10258 # Generated automatically by configure.
10259 # Run this file to recreate the current configuration.
10260 # This directory was configured as follows,
10261 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10263 # $0 $ac_configure_args
10265 # Compiler output produced by configure, useful for debugging
10266 # configure, is in ./config.log if it exists.
10268 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10271 case "\$ac_option" in
10272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10273 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10274 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10275 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10276 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10278 -help | --help | --hel | --he | --h)
10279 echo "\$ac_cs_usage"; exit 0 ;;
10280 *) echo "\$ac_cs_usage"; exit 1 ;;
10284 ac_given_srcdir=$srcdir
10285 ac_given_INSTALL="$INSTALL"
10287 trap 'rm -fr `echo "\
10288 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10289 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10290 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10291 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10292 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10293 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10294 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10295 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10296 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10297 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10298 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10299 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10300 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10301 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10302 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10303 include/Makefile:build/top.mk:include/Makefile.in \
10304 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10305 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10306 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10307 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10308 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10309 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10310 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10311 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10312 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10313 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10314 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10315 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10316 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10317 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10318 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10319 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10320 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10321 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10322 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10323 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10324 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10325 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10326 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10328 cat >> $CONFIG_STATUS <<EOF
10330 # Protect against being on the right side of a sed subst in config.status.
10331 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10332 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10336 s%@CFLAGS@%$CFLAGS%g
10337 s%@CPPFLAGS@%$CPPFLAGS%g
10338 s%@CXXFLAGS@%$CXXFLAGS%g
10339 s%@FFLAGS@%$FFLAGS%g
10341 s%@LDFLAGS@%$LDFLAGS%g
10343 s%@exec_prefix@%$exec_prefix%g
10344 s%@prefix@%$prefix%g
10345 s%@program_transform_name@%$program_transform_name%g
10346 s%@bindir@%$bindir%g
10347 s%@sbindir@%$sbindir%g
10348 s%@libexecdir@%$libexecdir%g
10349 s%@datadir@%$datadir%g
10350 s%@sysconfdir@%$sysconfdir%g
10351 s%@sharedstatedir@%$sharedstatedir%g
10352 s%@localstatedir@%$localstatedir%g
10353 s%@libdir@%$libdir%g
10354 s%@includedir@%$includedir%g
10355 s%@oldincludedir@%$oldincludedir%g
10356 s%@infodir@%$infodir%g
10357 s%@mandir@%$mandir%g
10358 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10359 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10360 s%@INSTALL_DATA@%$INSTALL_DATA%g
10361 s%@PACKAGE@%$PACKAGE%g
10362 s%@VERSION@%$VERSION%g
10363 s%@ACLOCAL@%$ACLOCAL%g
10364 s%@AUTOCONF@%$AUTOCONF%g
10365 s%@AUTOMAKE@%$AUTOMAKE%g
10366 s%@AUTOHEADER@%$AUTOHEADER%g
10367 s%@MAKEINFO@%$MAKEINFO%g
10368 s%@SET_MAKE@%$SET_MAKE%g
10369 s%@top_builddir@%$top_builddir%g
10370 s%@ldap_subdir@%$ldap_subdir%g
10372 s%@host_alias@%$host_alias%g
10373 s%@host_cpu@%$host_cpu%g
10374 s%@host_vendor@%$host_vendor%g
10375 s%@host_os@%$host_os%g
10376 s%@RANLIB@%$RANLIB%g
10381 s%@LIBTOOL@%$LIBTOOL%g
10383 s%@SENDMAIL@%$SENDMAIL%g
10384 s%@EDITOR@%$EDITOR%g
10385 s%@FINGER@%$FINGER%g
10386 s%@PERLBIN@%$PERLBIN%g
10388 s%@EXEEXT@%$EXEEXT%g
10389 s%@OBJEXT@%$OBJEXT%g
10391 s%@LIBOBJS@%$LIBOBJS%g
10392 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10393 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10394 s%@BUILD_BDB2@%$BUILD_BDB2%g
10395 s%@BUILD_LDBM@%$BUILD_LDBM%g
10396 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10397 s%@BUILD_PERL@%$BUILD_PERL%g
10398 s%@BUILD_SHELL@%$BUILD_SHELL%g
10399 s%@BUILD_TCL@%$BUILD_TCL%g
10400 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10401 s%@LDAP_LIBS@%$LDAP_LIBS%g
10402 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10403 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10404 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10405 s%@LDBM_LIBS@%$LDBM_LIBS%g
10406 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10407 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10408 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10409 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10410 s%@KRB_LIBS@%$KRB_LIBS%g
10411 s%@READLINE_LIBS@%$READLINE_LIBS%g
10412 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10413 s%@TLS_LIBS@%$TLS_LIBS%g
10418 cat >> $CONFIG_STATUS <<\EOF
10420 # Split the substitutions into bite-sized pieces for seds with
10421 # small command number limits, like on Digital OSF/1 and HP-UX.
10422 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10423 ac_file=1 # Number of current file.
10424 ac_beg=1 # First line for current file.
10425 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10428 while $ac_more_lines; do
10429 if test $ac_beg -gt 1; then
10430 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10432 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10434 if test ! -s conftest.s$ac_file; then
10435 ac_more_lines=false
10436 rm -f conftest.s$ac_file
10438 if test -z "$ac_sed_cmds"; then
10439 ac_sed_cmds="sed -f conftest.s$ac_file"
10441 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10443 ac_file=`expr $ac_file + 1`
10445 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10448 if test -z "$ac_sed_cmds"; then
10453 cat >> $CONFIG_STATUS <<EOF
10455 CONFIG_FILES=\${CONFIG_FILES-"\
10456 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10457 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10458 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10459 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10460 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10461 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10462 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10463 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10464 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10465 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10466 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10467 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10468 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10469 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10470 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10471 include/Makefile:build/top.mk:include/Makefile.in \
10472 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10473 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10474 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10475 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10476 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10477 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10478 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10479 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10480 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10481 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10482 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10483 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10484 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10485 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10486 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10487 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10488 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10489 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10490 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10491 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10492 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10493 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10496 cat >> $CONFIG_STATUS <<\EOF
10497 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10500 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10501 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10502 *) ac_file_in="${ac_file}.in" ;;
10505 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10507 # Remove last slash and all that follows it. Not all systems have dirname.
10508 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10509 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10510 # The file is in a subdirectory.
10511 test ! -d "$ac_dir" && mkdir "$ac_dir"
10512 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10513 # A "../" for each directory in $ac_dir_suffix.
10514 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10516 ac_dir_suffix= ac_dots=
10519 case "$ac_given_srcdir" in
10521 if test -z "$ac_dots"; then top_srcdir=.
10522 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10523 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10524 *) # Relative path.
10525 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10526 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10529 case "$ac_given_INSTALL" in
10530 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10531 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10534 echo creating "$ac_file"
10536 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10538 *Makefile*) ac_comsub="1i\\
10539 # $configure_input" ;;
10543 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10545 s%@configure_input@%$configure_input%g
10546 s%@srcdir@%$srcdir%g
10547 s%@top_srcdir@%$top_srcdir%g
10548 s%@INSTALL@%$INSTALL%g
10549 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10553 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10554 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10556 # ac_d sets the value in "#define NAME VALUE" lines.
10557 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10558 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10561 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10562 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10563 ac_uB='\([ ]\)%\1#\2define\3'
10566 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10567 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10568 ac_eB='$%\1#\2define\3'
10572 if test "${CONFIG_HEADERS+set}" != set; then
10574 cat >> $CONFIG_STATUS <<EOF
10575 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10577 cat >> $CONFIG_STATUS <<\EOF
10579 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10580 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10582 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10583 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10584 *) ac_file_in="${ac_file}.in" ;;
10587 echo creating $ac_file
10589 rm -f conftest.frag conftest.in conftest.out
10590 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10591 cat $ac_file_inputs > conftest.in
10595 # Transform confdefs.h into a sed script conftest.vals that substitutes
10596 # the proper values into config.h.in to produce config.h. And first:
10597 # Protect against being on the right side of a sed subst in config.status.
10598 # Protect against being in an unquoted here document in config.status.
10599 rm -f conftest.vals
10600 cat > conftest.hdr <<\EOF
10603 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10607 sed -n -f conftest.hdr confdefs.h > conftest.vals
10610 # This sed command replaces #undef with comments. This is necessary, for
10611 # example, in the case of _POSIX_SOURCE, which is predefined and required
10612 # on some systems where configure will not decide to define it.
10613 cat >> conftest.vals <<\EOF
10614 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10617 # Break up conftest.vals because some shells have a limit on
10618 # the size of here documents, and old seds have small limits too.
10620 rm -f conftest.tail
10623 ac_lines=`grep -c . conftest.vals`
10624 # grep -c gives empty output for an empty file on some AIX systems.
10625 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10626 # Write a limited-size here document to conftest.frag.
10627 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10628 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10630 sed -f conftest.frag conftest.in > conftest.out
10632 mv conftest.out conftest.in
10633 ' >> $CONFIG_STATUS
10634 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10635 rm -f conftest.vals
10636 mv conftest.tail conftest.vals
10638 rm -f conftest.vals
10640 cat >> $CONFIG_STATUS <<\EOF
10641 rm -f conftest.frag conftest.h
10642 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10643 cat conftest.in >> conftest.h
10645 if cmp -s $ac_file conftest.h 2>/dev/null; then
10646 echo "$ac_file is unchanged"
10649 # Remove last slash and all that follows it. Not all systems have dirname.
10650 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10651 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10652 # The file is in a subdirectory.
10653 test ! -d "$ac_dir" && mkdir "$ac_dir"
10656 mv conftest.h $ac_file
10661 cat >> $CONFIG_STATUS <<EOF
10664 cat >> $CONFIG_STATUS <<\EOF
10667 echo Please \"make depend\" to build dependencies
10671 chmod +x $CONFIG_STATUS
10672 rm -fr confdefs* $ac_clean_files
10673 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1