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'
1813 # Extract the first word of "ranlib", so it can be a program name with args.
1814 set dummy ranlib; ac_word=$2
1815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1816 echo "configure:1817: checking for $ac_word" >&5
1817 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 if test -n "$RANLIB"; then
1821 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1825 for ac_dir in $ac_dummy; do
1826 test -z "$ac_dir" && ac_dir=.
1827 if test -f $ac_dir/$ac_word; then
1828 ac_cv_prog_RANLIB="ranlib"
1833 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1836 RANLIB="$ac_cv_prog_RANLIB"
1837 if test -n "$RANLIB"; then
1838 echo "$ac_t""$RANLIB" 1>&6
1840 echo "$ac_t""no" 1>&6
1843 # Extract the first word of "gcc", so it can be a program name with args.
1844 set dummy gcc; ac_word=$2
1845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_word" >&5
1847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 if test -n "$CC"; then
1851 ac_cv_prog_CC="$CC" # Let the user override the test.
1853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1855 for ac_dir in $ac_dummy; do
1856 test -z "$ac_dir" && ac_dir=.
1857 if test -f $ac_dir/$ac_word; then
1866 if test -n "$CC"; then
1867 echo "$ac_t""$CC" 1>&6
1869 echo "$ac_t""no" 1>&6
1872 if test -z "$CC"; then
1873 # Extract the first word of "cc", so it can be a program name with args.
1874 set dummy cc; ac_word=$2
1875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_word" >&5
1877 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1886 for ac_dir in $ac_dummy; do
1887 test -z "$ac_dir" && ac_dir=.
1888 if test -f $ac_dir/$ac_word; then
1889 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1890 ac_prog_rejected=yes
1898 if test $ac_prog_rejected = yes; then
1899 # We found a bogon in the path, so make sure we never use it.
1900 set dummy $ac_cv_prog_CC
1902 if test $# -gt 0; then
1903 # We chose a different compiler from the bogus one.
1904 # However, it has the same basename, so the bogon will be chosen
1905 # first if we set CC to just the basename; use the full file name.
1907 set dummy "$ac_dir/$ac_word" "$@"
1915 if test -n "$CC"; then
1916 echo "$ac_t""$CC" 1>&6
1918 echo "$ac_t""no" 1>&6
1921 if test -z "$CC"; then
1922 case "`uname -s`" in
1924 # Extract the first word of "cl", so it can be a program name with args.
1925 set dummy cl; ac_word=$2
1926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1927 echo "configure:1928: checking for $ac_word" >&5
1928 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1936 for ac_dir in $ac_dummy; do
1937 test -z "$ac_dir" && ac_dir=.
1938 if test -f $ac_dir/$ac_word; then
1947 if test -n "$CC"; then
1948 echo "$ac_t""$CC" 1>&6
1950 echo "$ac_t""no" 1>&6
1955 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1958 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1959 echo "configure:1960: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1966 cross_compiling=$ac_cv_prog_cc_cross
1968 cat > conftest.$ac_ext << EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976 ac_cv_prog_cc_works=yes
1977 # If we can't run a trivial program, we are probably using a cross compiler.
1978 if (./conftest; exit) 2>/dev/null; then
1979 ac_cv_prog_cc_cross=no
1981 ac_cv_prog_cc_cross=yes
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1986 ac_cv_prog_cc_works=no
1990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1994 cross_compiling=$ac_cv_prog_cc_cross
1996 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1997 if test $ac_cv_prog_cc_works = no; then
1998 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2000 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2001 echo "configure:2002: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2002 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2003 cross_compiling=$ac_cv_prog_cc_cross
2005 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2006 echo "configure:2007: checking whether we are using GNU C" >&5
2007 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2010 cat > conftest.c <<EOF
2015 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2022 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2024 if test $ac_cv_prog_gcc = yes; then
2030 ac_test_CFLAGS="${CFLAGS+set}"
2031 ac_save_CFLAGS="$CFLAGS"
2033 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether ${CC-cc} accepts -g" >&5
2035 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 echo 'void f(){}' > conftest.c
2039 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2048 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2049 if test "$ac_test_CFLAGS" = set; then
2050 CFLAGS="$ac_save_CFLAGS"
2051 elif test $ac_cv_prog_cc_g = yes; then
2052 if test "$GCC" = yes; then
2058 if test "$GCC" = yes; then
2065 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2066 if test "${with_gnu_ld+set}" = set; then
2067 withval="$with_gnu_ld"
2068 test "$withval" = no || with_gnu_ld=yes
2075 if test "$ac_cv_prog_gcc" = yes; then
2076 # Check if gcc -print-prog-name=ld gives a path.
2077 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2078 echo "configure:2079: checking for ld used by GCC" >&5
2079 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2081 # Accept absolute paths.
2083 test -z "$LD" && LD="$ac_prog"
2086 # If it fails, then pretend we aren't using GCC.
2090 # If it is relative, then search for the first ld in PATH.
2094 elif test "$with_gnu_ld" = yes; then
2095 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2096 echo "configure:2097: checking for GNU ld" >&5
2098 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2099 echo "configure:2100: checking for non-GNU ld" >&5
2101 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 if test -z "$LD"; then
2105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2106 for ac_dir in $PATH; do
2107 test -z "$ac_dir" && ac_dir=.
2108 if test -f "$ac_dir/$ac_prog"; then
2109 ac_cv_path_LD="$ac_dir/$ac_prog"
2110 # Check to see if the program is GNU ld. I'd rather use --version,
2111 # but apparently some GNU ld's only accept -v.
2112 # Break only if it was the GNU/non-GNU ld that we prefer.
2113 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2114 test "$with_gnu_ld" != no && break
2116 test "$with_gnu_ld" != yes && break
2122 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2127 if test -n "$LD"; then
2128 echo "$ac_t""$LD" 1>&6
2130 echo "$ac_t""no" 1>&6
2132 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2134 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2135 echo "configure:2136: checking if the linker ($LD) is GNU ld" >&5
2136 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2140 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2141 ac_cv_prog_gnu_ld=yes
2143 ac_cv_prog_gnu_ld=no
2147 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2150 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2151 echo "configure:2152: checking for BSD-compatible nm" >&5
2152 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2157 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2161 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2162 test -z "$ac_dir" && ac_dir=.
2163 if test -f $ac_dir/nm; then
2164 # Check to see if the nm accepts a BSD-compat flag.
2165 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2166 # nm: unknown option "B" ignored
2167 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2168 ac_cv_path_NM="$ac_dir/nm -B"
2169 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2170 ac_cv_path_NM="$ac_dir/nm -p"
2172 ac_cv_path_NM="$ac_dir/nm"
2178 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2184 echo "$ac_t""$NM" 1>&6
2187 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2188 echo "configure:2189: checking whether ln -s works" >&5
2189 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2193 if ln -s X conftestdata 2>/dev/null
2196 ac_cv_prog_LN_S="ln -s"
2201 LN_S="$ac_cv_prog_LN_S"
2202 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2203 echo "$ac_t""yes" 1>&6
2205 echo "$ac_t""no" 1>&6
2208 # Always use our own libtool.
2209 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2211 # Check for any special flags to pass to ltconfig.
2213 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2214 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2215 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2216 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2217 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2219 # Some flags need to be propagated to the compiler or linker for good
2223 # Find out which ABI we are using.
2224 echo '#line 2225 "configure"' > conftest.$ac_ext
2225 if { (eval echo configure:2226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2226 case "`/usr/bin/file conftest.o`" in
2242 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2243 CFLAGS="$CFLAGS -belf"
2247 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2248 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2249 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2250 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2251 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2252 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2255 for ac_prog in mawk gawk nawk awk
2257 # Extract the first word of "$ac_prog", so it can be a program name with args.
2258 set dummy $ac_prog; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 if test -n "$AWK"; then
2265 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_AWK="$ac_prog"
2279 AWK="$ac_cv_prog_AWK"
2280 if test -n "$AWK"; then
2281 echo "$ac_t""$AWK" 1>&6
2283 echo "$ac_t""no" 1>&6
2286 test -n "$AWK" && break
2289 # test for ln hardlink support
2290 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether ln works" >&5
2292 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 rm -f conftest.src conftest.dst
2296 echo "conftest" > conftest.src
2297 if ln conftest.src conftest.dst 2>/dev/null
2299 ol_cv_prog_LN_H="ln"
2301 ol_cv_prog_LN_H="cp"
2303 rm -f conftest.src conftest.dst
2306 LN_H="$ol_cv_prog_LN_H"
2307 if test "$ol_cv_prog_LN_H" = "ln"; then
2308 echo "$ac_t""yes" 1>&6
2310 echo "$ac_t""no" 1>&6
2313 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2314 echo "configure:2315: checking whether ln -s works" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2319 if ln -s X conftestdata 2>/dev/null
2322 ac_cv_prog_LN_S="ln -s"
2327 LN_S="$ac_cv_prog_LN_S"
2328 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2329 echo "$ac_t""yes" 1>&6
2331 echo "$ac_t""no" 1>&6
2335 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2339 # Extract the first word of "sendmail", so it can be a program name with args.
2340 set dummy sendmail; ac_word=$2
2341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_word" >&5
2343 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2348 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2351 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2355 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2356 for ac_dir in $ac_dummy; do
2357 test -z "$ac_dir" && ac_dir=.
2358 if test -f $ac_dir/$ac_word; then
2359 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2364 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2368 SENDMAIL="$ac_cv_path_SENDMAIL"
2369 if test -n "$SENDMAIL"; then
2370 echo "$ac_t""$SENDMAIL" 1>&6
2372 echo "$ac_t""no" 1>&6
2375 # Extract the first word of "vi", so it can be a program name with args.
2376 set dummy vi; ac_word=$2
2377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_word" >&5
2379 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2384 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2387 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2391 ac_dummy="$PATH:/usr/ucb"
2392 for ac_dir in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir=.
2394 if test -f $ac_dir/$ac_word; then
2395 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2400 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2404 EDITOR="$ac_cv_path_EDITOR"
2405 if test -n "$EDITOR"; then
2406 echo "$ac_t""$EDITOR" 1>&6
2408 echo "$ac_t""no" 1>&6
2411 # Extract the first word of "finger", so it can be a program name with args.
2412 set dummy finger; ac_word=$2
2413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2414 echo "configure:2415: checking for $ac_word" >&5
2415 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2420 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2423 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2427 ac_dummy="$PATH:/usr/ucb"
2428 for ac_dir in $ac_dummy; do
2429 test -z "$ac_dir" && ac_dir=.
2430 if test -f $ac_dir/$ac_word; then
2431 ac_cv_path_FINGER="$ac_dir/$ac_word"
2436 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2440 FINGER="$ac_cv_path_FINGER"
2441 if test -n "$FINGER"; then
2442 echo "$ac_t""$FINGER" 1>&6
2444 echo "$ac_t""no" 1>&6
2448 if test $ol_enable_perl = yes ; then
2449 # Extract the first word of "perl", so it can be a program name with args.
2450 set dummy perl; ac_word=$2
2451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2452 echo "configure:2453: checking for $ac_word" >&5
2453 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2458 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2461 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2466 for ac_dir in $ac_dummy; do
2467 test -z "$ac_dir" && ac_dir=.
2468 if test -f $ac_dir/$ac_word; then
2469 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2474 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2478 PERLBIN="$ac_cv_path_PERLBIN"
2479 if test -n "$PERLBIN"; then
2480 echo "$ac_t""$PERLBIN" 1>&6
2482 echo "$ac_t""no" 1>&6
2486 if test "no$PERLBIN" = "no" ; then
2490 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2491 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2494 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2495 echo "configure:2496: checking how to run the C preprocessor" >&5
2496 # On Suns, sometimes $CPP names a directory.
2497 if test -n "$CPP" && test -d "$CPP"; then
2500 if test -z "$CPP"; then
2501 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 # This must be in double quotes, not single quotes, because CPP may get
2505 # substituted into the Makefile and "${CC-cc}" will confuse make.
2507 # On the NeXT, cc -E runs the code through the compiler's parser,
2508 # not just through cpp.
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2525 CPP="${CC-cc} -E -traditional-cpp"
2526 cat > conftest.$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2533 { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2535 if test -z "$ac_err"; then
2539 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2542 CPP="${CC-cc} -nologo -E"
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2556 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2566 ac_cv_prog_CPP="$CPP"
2568 CPP="$ac_cv_prog_CPP"
2570 ac_cv_prog_CPP="$CPP"
2572 echo "$ac_t""$CPP" 1>&6
2575 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2576 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2578 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2579 echo "configure: warning: programs compiled here do run here..." 1>&2
2580 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2582 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2583 echo "configure: warning: programs compiled here do not run here..." 1>&2
2584 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2587 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2588 echo "configure:2589: checking for AIX" >&5
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2598 egrep "yes" >/dev/null 2>&1; then
2600 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2601 #define _ALL_SOURCE 1
2606 echo "$ac_t""no" 1>&6
2611 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2612 echo "configure:2613: checking for POSIXized ISC" >&5
2613 if test -d /etc/conf/kconfig.d &&
2614 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2616 echo "$ac_t""yes" 1>&6
2617 ISC=yes # If later tests want to check for ISC.
2618 cat >> confdefs.h <<\EOF
2619 #define _POSIX_SOURCE 1
2622 if test "$GCC" = yes; then
2628 echo "$ac_t""no" 1>&6
2632 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2633 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2634 echo "configure:2635: checking for minix/config.h" >&5
2635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 #include <minix/config.h>
2643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2644 { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2646 if test -z "$ac_err"; then
2648 eval "ac_cv_header_$ac_safe=yes"
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2654 eval "ac_cv_header_$ac_safe=no"
2658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2659 echo "$ac_t""yes" 1>&6
2662 echo "$ac_t""no" 1>&6
2666 if test "$MINIX" = yes; then
2667 cat >> confdefs.h <<\EOF
2668 #define _POSIX_SOURCE 1
2671 cat >> confdefs.h <<\EOF
2672 #define _POSIX_1_SOURCE 2
2675 cat >> confdefs.h <<\EOF
2682 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2683 echo "configure:2684: checking for be_app in -lbe" >&5
2684 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 ac_save_LIBS="$LIBS"
2689 LIBS="-lbe -lroot $LIBS"
2690 cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2693 /* Override any gcc2 internal prototype to avoid an error. */
2694 /* We use char because int might match the return type of a gcc2
2695 builtin and then its argument prototype would still apply. */
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2704 eval "ac_cv_lib_$ac_lib_var=yes"
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2709 eval "ac_cv_lib_$ac_lib_var=no"
2712 LIBS="$ac_save_LIBS"
2715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 LIBS="$LIBS -lbe -lroot"
2719 echo "$ac_t""no" 1>&6
2724 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2725 echo "configure:2726: checking for Cygwin environment" >&5
2726 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2736 #define __CYGWIN__ __CYGWIN32__
2741 if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2754 echo "$ac_t""$ac_cv_cygwin" 1>&6
2756 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2757 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2758 echo "configure:2759: checking for mingw32 environment" >&5
2759 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2770 if { (eval echo configure:2771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2783 echo "$ac_t""$ac_cv_mingw32" 1>&6
2785 test "$ac_cv_mingw32" = yes && MINGW32=yes
2788 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2789 echo "configure:2790: checking for executable suffix" >&5
2790 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2797 echo 'int main () { return 0; }' > conftest.$ac_ext
2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2800 for file in conftest.*; do
2802 *.c | *.o | *.obj) ;;
2803 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2807 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2810 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2815 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2816 echo "$ac_t""${ac_cv_exeext}" 1>&6
2819 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2820 echo "configure:2821: checking for object suffix" >&5
2821 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2825 echo 'int i = 1;' > conftest.$ac_ext
2826 if { (eval echo configure:2827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2827 for ac_file in conftest.*; do
2830 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2834 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2839 echo "$ac_t""$ac_cv_objext" 1>&6
2840 OBJEXT=$ac_cv_objext
2841 ac_objext=$ac_cv_objext
2847 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2848 echo "configure:2849: checking for ${CC-cc} option to accept ANSI C" >&5
2849 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 am_cv_prog_cc_stdc=no
2854 # Don't try gcc -ansi; that turns off useful extensions and
2855 # breaks some systems' header files.
2856 # AIX -qlanglvl=ansi
2857 # Ultrix and OSF/1 -std1
2858 # HP-UX -Aa -D_HPUX_SOURCE
2859 # SVR4 -Xc -D__EXTENSIONS__
2860 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2862 CC="$ac_save_CC $ac_arg"
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2868 #include <sys/types.h>
2869 #include <sys/stat.h>
2870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2871 struct buf { int x; };
2872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2873 static char *e (p, i)
2879 static char *f (char * (*g) (char **, int), char **p, ...)
2884 s = g (p, va_arg (v,int));
2888 int test (int i, double x);
2889 struct s1 {int (*f) (int a);};
2890 struct s2 {int (*f) (double a);};
2891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2901 if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2903 am_cv_prog_cc_stdc="$ac_arg"; break
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2914 if test -z "$am_cv_prog_cc_stdc"; then
2915 echo "$ac_t""none needed" 1>&6
2917 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2919 case "x$am_cv_prog_cc_stdc" in
2921 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2924 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2925 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2931 echo $ac_n "checking for socket""... $ac_c" 1>&6
2932 echo "configure:2933: checking for socket" >&5
2933 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 /* System header to define __stub macros and hopefully few prototypes,
2940 which can conflict with char socket(); below. */
2942 /* Override any gcc2 internal prototype to avoid an error. */
2943 /* We use char because int might match the return type of a gcc2
2944 builtin and then its argument prototype would still apply. */
2949 /* The GNU C library defines this for functions which it implements
2950 to always fail with ENOSYS. Some functions are actually named
2951 something starting with __ and the normal name is an alias. */
2952 #if defined (__stub_socket) || defined (__stub___socket)
2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2962 eval "ac_cv_func_socket=yes"
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2967 eval "ac_cv_func_socket=no"
2972 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2976 echo "$ac_t""no" 1>&6
2978 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2979 echo "configure:2980: checking for main in -lsocket" >&5
2980 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 ac_save_LIBS="$LIBS"
2985 LIBS="-lsocket $LIBS"
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2994 if { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2996 eval "ac_cv_lib_$ac_lib_var=yes"
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3001 eval "ac_cv_lib_$ac_lib_var=no"
3004 LIBS="$ac_save_LIBS"
3007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3011 cat >> confdefs.h <<EOF
3012 #define $ac_tr_lib 1
3015 LIBS="-lsocket $LIBS"
3018 echo "$ac_t""no" 1>&6
3021 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3022 echo "configure:3023: checking for main in -lnet" >&5
3023 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 ac_save_LIBS="$LIBS"
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3037 if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3039 eval "ac_cv_lib_$ac_lib_var=yes"
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 eval "ac_cv_lib_$ac_lib_var=no"
3047 LIBS="$ac_save_LIBS"
3050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3051 echo "$ac_t""yes" 1>&6
3052 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3053 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3054 cat >> confdefs.h <<EOF
3055 #define $ac_tr_lib 1
3061 echo "$ac_t""no" 1>&6
3064 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3065 echo "configure:3066: checking for main in -lnsl_s" >&5
3066 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 ac_save_LIBS="$LIBS"
3071 LIBS="-lnsl_s $LIBS"
3072 cat > conftest.$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3082 eval "ac_cv_lib_$ac_lib_var=yes"
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3087 eval "ac_cv_lib_$ac_lib_var=no"
3090 LIBS="$ac_save_LIBS"
3093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3097 cat >> confdefs.h <<EOF
3098 #define $ac_tr_lib 1
3101 LIBS="-lnsl_s $LIBS"
3104 echo "$ac_t""no" 1>&6
3107 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3108 echo "configure:3109: checking for main in -lnsl" >&5
3109 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 ac_save_LIBS="$LIBS"
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3123 if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3125 eval "ac_cv_lib_$ac_lib_var=yes"
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3130 eval "ac_cv_lib_$ac_lib_var=no"
3133 LIBS="$ac_save_LIBS"
3136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3137 echo "$ac_t""yes" 1>&6
3138 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3140 cat >> confdefs.h <<EOF
3141 #define $ac_tr_lib 1
3147 echo "$ac_t""no" 1>&6
3150 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3151 echo "configure:3152: checking for socket in -linet" >&5
3152 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 ac_save_LIBS="$LIBS"
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 /* Override any gcc2 internal prototype to avoid an error. */
3162 /* We use char because int might match the return type of a gcc2
3163 builtin and then its argument prototype would still apply. */
3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3172 eval "ac_cv_lib_$ac_lib_var=yes"
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3177 eval "ac_cv_lib_$ac_lib_var=no"
3180 LIBS="$ac_save_LIBS"
3183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3184 echo "$ac_t""yes" 1>&6
3185 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3187 cat >> confdefs.h <<EOF
3188 #define $ac_tr_lib 1
3194 echo "$ac_t""no" 1>&6
3197 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3198 echo "configure:3199: checking for main in -lgen" >&5
3199 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 ac_save_LIBS="$LIBS"
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215 eval "ac_cv_lib_$ac_lib_var=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 eval "ac_cv_lib_$ac_lib_var=no"
3223 LIBS="$ac_save_LIBS"
3226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3228 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3230 cat >> confdefs.h <<EOF
3231 #define $ac_tr_lib 1
3237 echo "$ac_t""no" 1>&6
3244 for ac_func in res_search
3246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_func" >&5
3248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 /* System header to define __stub macros and hopefully few prototypes,
3255 which can conflict with char $ac_func(); below. */
3257 /* Override any gcc2 internal prototype to avoid an error. */
3258 /* We use char because int might match the return type of a gcc2
3259 builtin and then its argument prototype would still apply. */
3264 /* The GNU C library defines this for functions which it implements
3265 to always fail with ENOSYS. Some functions are actually named
3266 something starting with __ and the normal name is an alias. */
3267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3275 if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3277 eval "ac_cv_func_$ac_func=yes"
3279 echo "configure: failed program was:" >&5
3280 cat conftest.$ac_ext >&5
3282 eval "ac_cv_func_$ac_func=no"
3287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3290 cat >> confdefs.h <<EOF
3291 #define $ac_tr_func 1
3295 echo "$ac_t""no" 1>&6
3299 if test $ac_cv_func_res_search = "no" ; then
3300 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3301 echo "configure:3302: checking for res_search in -lbind" >&5
3302 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 ac_save_LIBS="$LIBS"
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 /* Override any gcc2 internal prototype to avoid an error. */
3312 /* We use char because int might match the return type of a gcc2
3313 builtin and then its argument prototype would still apply. */
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3322 eval "ac_cv_lib_$ac_lib_var=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 eval "ac_cv_lib_$ac_lib_var=no"
3330 LIBS="$ac_save_LIBS"
3333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3334 echo "$ac_t""yes" 1>&6
3335 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3337 cat >> confdefs.h <<EOF
3338 #define $ac_tr_lib 1
3344 echo "$ac_t""no" 1>&6
3347 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3348 cat >> confdefs.h <<\EOF
3349 #define HAVE_RES_SEARCH 1
3353 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3354 echo "configure:3355: checking for res_search in -lresolv" >&5
3355 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 ac_save_LIBS="$LIBS"
3360 LIBS="-lresolv $LIBS"
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 /* We use char because int might match the return type of a gcc2
3366 builtin and then its argument prototype would still apply. */
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_lib_$ac_lib_var=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_lib_$ac_lib_var=no"
3383 LIBS="$ac_save_LIBS"
3386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3390 cat >> confdefs.h <<EOF
3391 #define $ac_tr_lib 1
3394 LIBS="-lresolv $LIBS"
3397 echo "$ac_t""no" 1>&6
3400 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3401 cat >> confdefs.h <<\EOF
3402 #define HAVE_RES_SEARCH 1
3409 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3410 echo "configure:3411: checking for sigset in -lV3" >&5
3411 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 ac_save_LIBS="$LIBS"
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 /* Override any gcc2 internal prototype to avoid an error. */
3421 /* We use char because int might match the return type of a gcc2
3422 builtin and then its argument prototype would still apply. */
3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3431 eval "ac_cv_lib_$ac_lib_var=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 eval "ac_cv_lib_$ac_lib_var=no"
3439 LIBS="$ac_save_LIBS"
3442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3443 echo "$ac_t""yes" 1>&6
3444 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3446 cat >> confdefs.h <<EOF
3447 #define $ac_tr_lib 1
3453 echo "$ac_t""no" 1>&6
3459 if test $ol_enable_ldapd != no ; then
3460 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3461 echo "configure:3462: checking for main in -lxtpp" >&5
3462 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 ac_save_LIBS="$LIBS"
3467 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3478 eval "ac_cv_lib_$ac_lib_var=yes"
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3483 eval "ac_cv_lib_$ac_lib_var=no"
3486 LIBS="$ac_save_LIBS"
3489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3493 cat >> confdefs.h <<\EOF
3497 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3500 echo "$ac_t""no" 1>&6
3504 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3505 echo "configure:3506: checking for main in -ldsap" >&5
3506 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 ac_save_LIBS="$LIBS"
3511 LIBS="-ldsap -lisode $LIBS"
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3520 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3522 eval "ac_cv_lib_$ac_lib_var=yes"
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 eval "ac_cv_lib_$ac_lib_var=no"
3530 LIBS="$ac_save_LIBS"
3533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3534 echo "$ac_t""yes" 1>&6
3537 cat >> confdefs.h <<\EOF
3541 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3544 echo "$ac_t""no" 1>&6
3548 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3549 echo "configure:3550: checking for main in -lisode" >&5
3550 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 ac_save_LIBS="$LIBS"
3555 LIBS="-lisode $LIBS"
3556 cat > conftest.$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 eval "ac_cv_lib_$ac_lib_var=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 eval "ac_cv_lib_$ac_lib_var=no"
3574 LIBS="$ac_save_LIBS"
3577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3581 cat >> confdefs.h <<\EOF
3582 #define HAVE_ISODE 1
3585 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3588 echo "$ac_t""no" 1>&6
3594 if test $ol_link_isode != no; then
3595 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3596 echo "configure:3597: checking for main in -lpp" >&5
3597 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 ac_save_LIBS="$LIBS"
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3611 if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 eval "ac_cv_lib_$ac_lib_var=yes"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 eval "ac_cv_lib_$ac_lib_var=no"
3621 LIBS="$ac_save_LIBS"
3624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3627 cat >> confdefs.h <<\EOF
3631 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3634 echo "$ac_t""no" 1>&6
3639 # Extract the first word of "pepsy", so it can be a program name with args.
3640 set dummy pepsy; ac_word=$2
3641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3642 echo "configure:3643: checking for $ac_word" >&5
3643 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3648 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3651 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3656 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/$ac_word; then
3659 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3667 PEPSY="$ac_cv_path_PEPSY"
3668 if test -n "$PEPSY"; then
3669 echo "$ac_t""$PEPSY" 1>&6
3671 echo "$ac_t""no" 1>&6
3678 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3679 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3683 echo "configure:3684: checking for $ac_hdr" >&5
3684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3693 { (eval echo configure:3694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3695 if test -z "$ac_err"; then
3697 eval "ac_cv_header_$ac_safe=yes"
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3703 eval "ac_cv_header_$ac_safe=no"
3707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3708 echo "$ac_t""yes" 1>&6
3709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3710 cat >> confdefs.h <<EOF
3711 #define $ac_tr_hdr 1
3715 echo "$ac_t""no" 1>&6
3720 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3721 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3722 echo "configure:3723: checking for main in -lkrb4" >&5
3723 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_save_LIBS="$LIBS"
3728 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3737 if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 eval "ac_cv_lib_$ac_lib_var=yes"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 eval "ac_cv_lib_$ac_lib_var=no"
3747 LIBS="$ac_save_LIBS"
3750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3754 echo "$ac_t""no" 1>&6
3759 if test $have_k5 = yes ; then
3760 ol_with_kerberos=found
3761 ol_link_kerberos=yes
3763 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3765 LIBS="$KRB_LIBS $LIBS"
3767 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3768 echo "configure:3769: checking for des_debug in Kerberos libraries" >&5
3769 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3774 LIBS="$KRB_LIBS $LIBS"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3779 #include <kerberosIV/krb.h>
3780 #include <kerberosIV/des.h>
3781 extern int des_debug;
3789 if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3791 ol_cv_var_des_debug=yes
3793 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3796 ol_cv_var_des_debug=no
3803 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3805 if test $ol_cv_var_des_debug = yes ; then
3806 cat >> confdefs.h <<\EOF
3807 #define HAVE_DES_DEBUG 1
3817 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3818 for ac_hdr in krb.h des.h
3820 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3821 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3822 echo "configure:3823: checking for $ac_hdr" >&5
3823 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3832 { (eval echo configure:3833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3834 if test -z "$ac_err"; then
3836 eval "ac_cv_header_$ac_safe=yes"
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3842 eval "ac_cv_header_$ac_safe=no"
3846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3847 echo "$ac_t""yes" 1>&6
3848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3849 cat >> confdefs.h <<EOF
3850 #define $ac_tr_hdr 1
3854 echo "$ac_t""no" 1>&6
3859 if test $ac_cv_header_krb_h = yes ; then
3860 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3861 echo "configure:3862: checking for main in -lkrb" >&5
3862 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 ac_save_LIBS="$LIBS"
3867 LIBS="-lkrb -ldes $LIBS"
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 eval "ac_cv_lib_$ac_lib_var=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 eval "ac_cv_lib_$ac_lib_var=no"
3886 LIBS="$ac_save_LIBS"
3889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3893 echo "$ac_t""no" 1>&6
3898 if test $have_k4 = yes ; then
3899 ol_with_kerberos=found
3900 ol_link_kerberos=yes
3902 KRB_LIBS="-lkrb -ldes"
3907 if test $ol_link_kerberos = yes ; then
3908 cat >> confdefs.h <<\EOF
3909 #define HAVE_KERBEROS 1
3915 if test $ol_with_tls != no ; then
3919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3921 echo "configure:3922: checking for $ac_hdr" >&5
3922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3931 { (eval echo configure:3932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3933 if test -z "$ac_err"; then
3935 eval "ac_cv_header_$ac_safe=yes"
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3941 eval "ac_cv_header_$ac_safe=no"
3945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3948 cat >> confdefs.h <<EOF
3949 #define $ac_tr_hdr 1
3953 echo "$ac_t""no" 1>&6
3958 if test $ac_cv_header_ssl_h = yes ; then
3959 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3960 echo "configure:3961: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3961 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 ac_save_LIBS="$LIBS"
3966 LIBS="-lssl -lcrypto $LIBS"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 /* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3973 char SSLeay_add_ssl_algorithms();
3976 SSLeay_add_ssl_algorithms()
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 eval "ac_cv_lib_$ac_lib_var=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3986 eval "ac_cv_lib_$ac_lib_var=no"
3989 LIBS="$ac_save_LIBS"
3992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3997 echo "$ac_t""no" 1>&6
4002 if test $have_ssleay = no ; then
4003 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4004 echo "configure:4005: checking for ssl3_accept in -lssl" >&5
4005 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 ac_save_LIBS="$LIBS"
4010 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 /* Override any gcc2 internal prototype to avoid an error. */
4015 /* We use char because int might match the return type of a gcc2
4016 builtin and then its argument prototype would still apply. */
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4025 eval "ac_cv_lib_$ac_lib_var=yes"
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4030 eval "ac_cv_lib_$ac_lib_var=no"
4033 LIBS="$ac_save_LIBS"
4036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4037 echo "$ac_t""yes" 1>&6
4041 echo "$ac_t""no" 1>&6
4047 if test $have_ssleay = yes ; then
4051 cat >> confdefs.h <<\EOF
4052 #define HAVE_SSLEAY 1
4056 if test $need_rsaref = yes; then
4057 cat >> confdefs.h <<\EOF
4058 #define HAVE_RSAREF 1
4062 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4064 TLS_LIBS="-lssl -lcrypto"
4070 if test $ol_link_tls = yes ; then
4071 cat >> confdefs.h <<\EOF
4079 gethostbyname_r gethostbyaddr_r \
4082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4083 echo "configure:4084: checking for $ac_func" >&5
4084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 /* System header to define __stub macros and hopefully few prototypes,
4091 which can conflict with char $ac_func(); below. */
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4100 /* The GNU C library defines this for functions which it implements
4101 to always fail with ENOSYS. Some functions are actually named
4102 something starting with __ and the normal name is an alias. */
4103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4111 if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4113 eval "ac_cv_func_$ac_func=yes"
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4118 eval "ac_cv_func_$ac_func=no"
4123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4124 echo "$ac_t""yes" 1>&6
4125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4126 cat >> confdefs.h <<EOF
4127 #define $ac_tr_func 1
4131 echo "$ac_t""no" 1>&6
4136 if test "$ac_cv_func_ctime_r" = no ; then
4137 ol_cv_func_ctime_r_nargs=0
4139 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4140 echo "configure:4141: checking number of arguments of ctime_r" >&5
4141 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4149 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4152 if { (eval echo configure:4153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4154 ol_cv_func_ctime_r_nargs=3
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4164 time_t ti; char *buffer; ctime_r(&ti,buffer);
4167 if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4169 ol_cv_func_ctime_r_nargs=2
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 ol_cv_func_ctime_r_nargs=0
4181 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4182 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4183 cat >> confdefs.h <<EOF
4184 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4191 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4192 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4193 echo "configure:4194: checking number of arguments of gethostbyname_r" >&5
4194 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4200 #include <sys/types.h>
4201 #include <sys/socket.h>
4202 #include <netinet/in.h>
4204 #define BUFSIZE (sizeof(struct hostent)+10)
4206 struct hostent hent; char buffer[BUFSIZE];
4207 int bufsize=BUFSIZE;int h_errno;
4208 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4209 buffer, bufsize, &h_errno);
4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4214 ol_cv_func_gethostbyname_r_nargs=5
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222 #include <sys/types.h>
4223 #include <sys/socket.h>
4224 #include <netinet/in.h>
4226 #define BUFSIZE (sizeof(struct hostent)+10)
4228 struct hostent hent;struct hostent *rhent;
4229 char buffer[BUFSIZE];
4230 int bufsize=BUFSIZE;int h_errno;
4231 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4235 if { (eval echo configure:4236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4237 ol_cv_func_gethostbyname_r_nargs=6
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4242 ol_cv_func_gethostbyname_r_nargs=0
4249 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4250 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4251 cat >> confdefs.h <<EOF
4252 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4258 ol_cv_func_gethostbyname_r_nargs=0
4261 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4262 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4263 echo "configure:4264: checking number of arguments of gethostbyaddr_r" >&5
4264 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 #include <sys/types.h>
4271 #include <sys/socket.h>
4272 #include <netinet/in.h>
4274 #define BUFSIZE (sizeof(struct hostent)+10)
4276 struct hostent hent; char buffer[BUFSIZE];
4278 size_t alen=sizeof(struct in_addr);
4279 int bufsize=BUFSIZE;int h_errno;
4280 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4281 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4284 if { (eval echo configure:4285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4286 ol_cv_func_gethostbyaddr_r_nargs=7
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 cat > conftest.$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4294 #include <sys/types.h>
4295 #include <sys/socket.h>
4296 #include <netinet/in.h>
4298 #define BUFSIZE (sizeof(struct hostent)+10)
4300 struct hostent hent;
4301 struct hostent *rhent; char buffer[BUFSIZE];
4303 size_t alen=sizeof(struct in_addr);
4304 int bufsize=BUFSIZE;int h_errno;
4305 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4306 alen, AF_INET, &hent, buffer, bufsize,
4310 if { (eval echo configure:4311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4312 ol_cv_func_gethostbyaddr_r_nargs=8
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4317 ol_cv_func_gethostbyaddr_r_nargs=0
4324 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4325 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4326 cat >> confdefs.h <<EOF
4327 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4333 ol_cv_func_gethostbyaddr_r_nargs=0
4336 if test "$ac_cv_func_ctime_r" = yes \
4337 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4338 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4339 -a "$ac_cv_func_gethostbyname_r" = yes \
4340 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4341 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4342 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4343 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4344 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4347 cat >> confdefs.h <<\EOF
4348 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4354 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4355 -o $ol_with_threads = posix ; then
4357 for ac_hdr in pthread.h sched.h
4359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4361 echo "configure:4362: checking for $ac_hdr" >&5
4362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4371 { (eval echo configure:4372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4373 if test -z "$ac_err"; then
4375 eval "ac_cv_header_$ac_safe=yes"
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4381 eval "ac_cv_header_$ac_safe=no"
4385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4386 echo "$ac_t""yes" 1>&6
4387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4388 cat >> confdefs.h <<EOF
4389 #define $ac_tr_hdr 1
4393 echo "$ac_t""no" 1>&6
4398 if test $ac_cv_header_pthread_h = yes ; then
4399 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4400 echo "configure:4401: checking POSIX thread version" >&5
4401 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4409 # include <pthread.h>
4410 /* this check could be improved */
4411 # ifdef PTHREAD_ONCE_INIT
4412 pthread_version_final
4416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4417 egrep "pthread_version_final" >/dev/null 2>&1; then
4419 ol_pthread_final=yes
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4431 # include <pthread.h>
4432 /* this check could be improved */
4433 # ifdef pthread_once_init
4434 pthread_version_draft4
4438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4441 ol_pthread_draft4=yes
4444 ol_pthread_draft4=no
4449 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4450 ol_cv_pthread_version=final
4451 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4452 ol_cv_pthread_version=draft4
4454 ol_cv_pthread_version=unknown
4459 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4462 if test $ol_cv_pthread_version = final ; then
4463 cat >> confdefs.h <<\EOF
4464 #define HAVE_PTHREADS_FINAL 1
4467 elif test $ol_cv_pthread_version = draft4 ; then
4468 cat >> confdefs.h <<\EOF
4469 #define HAVE_PTHREADS_D4 1
4473 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4476 # consider threads found
4477 ol_with_threads=found
4480 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4481 echo "configure:4482: checking for LinuxThreads" >&5
4482 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4486 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4487 if test "$res" -gt 0 ; then
4488 ol_cv_linux_threads=yes
4490 ol_cv_linux_threads=no
4495 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4498 if test $ol_cv_linux_threads = yes ; then
4499 cat >> confdefs.h <<\EOF
4500 #define HAVE_LINUX_THREADS 1
4506 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4507 echo "configure:4508: checking for pthread_create in default libraries" >&5
4508 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4512 if test "$cross_compiling" = yes; then
4513 ol_cv_pthread_create=yes
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4519 #include <pthread.h>
4521 #define NULL (void*)0
4524 static void *task(p)
4527 return (void *) (p == NULL);
4530 int main(argc, argv)
4535 #if HAVE_PTHREADS_D4
4536 exit(pthread_create(&t, pthread_attr_default, task, NULL));
4538 exit(pthread_create(&t, NULL, task, NULL));
4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4545 ol_cv_pthread_create=yes
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4550 ol_cv_pthread_create=no
4557 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4559 if test $ol_cv_pthread_create != no ; then
4560 ol_link_threads=posix
4563 if test $ol_link_threads = no ; then
4564 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4565 echo "configure:4566: checking for pthread_create with -mt" >&5
4566 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 char pthread_create();
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4582 ol_cv_thread_flag=yes
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 ol_cv_thread_flag=no
4594 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4596 if test $ol_cv_thread_flag = yes ; then
4597 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4598 ol_link_threads=posix
4602 if test $ol_link_threads = no ; then
4603 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4604 echo "configure:4605: checking for pthread_create with -kthread" >&5
4605 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4610 LIBS="-kthread $LIBS"
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 #include <pthread.h>
4617 #if HAVE_PTHREADS_D4
4618 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4620 pthread_create(NULL,NULL,NULL,NULL);
4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4627 ol_cv_kthread_flag=yes
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4632 ol_cv_kthread_flag=no
4639 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4641 if test $ol_cv_kthread_flag = yes ; then
4642 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4643 ol_link_threads=posix
4647 if test $ol_link_threads = no ; then
4648 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4649 echo "configure:4650: checking for pthread_create with -pthread" >&5
4650 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4655 LIBS="-pthread $LIBS"
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 #include <pthread.h>
4662 #if HAVE_PTHREADS_D4
4663 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4665 pthread_create(NULL,NULL,NULL,NULL);
4670 if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4672 ol_cv_pthread_flag=yes
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4677 ol_cv_pthread_flag=no
4684 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4686 if test $ol_cv_pthread_flag = yes ; then
4687 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4688 ol_link_threads=posix
4692 if test $ol_link_threads = no ; then
4693 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4694 echo "configure:4695: checking for pthread_create with -pthreads" >&5
4695 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4700 LIBS="-pthreads $LIBS"
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 #include <pthread.h>
4707 #if HAVE_PTHREADS_D4
4708 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4710 pthread_create(NULL,NULL,NULL,NULL);
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4717 ol_cv_pthreads_flag=yes
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4722 ol_cv_pthreads_flag=no
4729 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4731 if test $ol_cv_pthreads_flag = yes ; then
4732 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4733 ol_link_threads=posix
4737 if test $ol_link_threads = no ; then
4738 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4739 echo "configure:4740: checking for pthread_create with -thread" >&5
4740 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4745 LIBS="-thread $LIBS"
4746 cat > conftest.$ac_ext <<EOF
4747 #line 4748 "configure"
4748 #include "confdefs.h"
4749 char pthread_create();
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4756 ol_cv_thread_flag=yes
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 ol_cv_thread_flag=no
4768 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4770 if test $ol_cv_thread_flag = yes ; then
4771 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4772 ol_link_threads=posix
4776 if test $ol_link_threads = no ; then
4778 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4779 echo "configure:4780: checking for pthread_mutex_unlock in -lpthread" >&5
4780 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 ac_save_LIBS="$LIBS"
4785 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 /* Override any gcc2 internal prototype to avoid an error. */
4790 /* We use char because int might match the return type of a gcc2
4791 builtin and then its argument prototype would still apply. */
4792 char pthread_mutex_unlock();
4795 pthread_mutex_unlock()
4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4800 eval "ac_cv_lib_$ac_lib_var=yes"
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4805 eval "ac_cv_lib_$ac_lib_var=no"
4808 LIBS="$ac_save_LIBS"
4811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4812 echo "$ac_t""yes" 1>&6
4814 ol_link_threads=posix
4815 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4816 if test $ol_with_yielding_select = auto ; then
4817 ol_with_yielding_select=yes
4821 echo "$ac_t""no" 1>&6
4828 if test $ol_link_threads = no ; then
4830 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4831 echo "configure:4832: checking for pthread_mutex_lock in -lpthread" >&5
4832 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 ac_save_LIBS="$LIBS"
4837 LIBS="-lpthread -lmach -lexc $LIBS"
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4844 char pthread_mutex_lock();
4847 pthread_mutex_lock()
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4852 eval "ac_cv_lib_$ac_lib_var=yes"
4854 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4857 eval "ac_cv_lib_$ac_lib_var=no"
4860 LIBS="$ac_save_LIBS"
4863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4864 echo "$ac_t""yes" 1>&6
4866 ol_link_threads=posix
4867 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4868 if test $ol_with_yielding_select = auto ; then
4869 ol_with_yielding_select=yes
4873 echo "$ac_t""no" 1>&6
4880 if test $ol_link_threads = no ; then
4882 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4883 echo "configure:4884: checking for pthread_mutex_trylock in -lpthread" >&5
4884 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 ac_save_LIBS="$LIBS"
4889 LIBS="-lpthread -lexc $LIBS"
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 /* Override any gcc2 internal prototype to avoid an error. */
4894 /* We use char because int might match the return type of a gcc2
4895 builtin and then its argument prototype would still apply. */
4896 char pthread_mutex_trylock();
4899 pthread_mutex_trylock()
4902 if { (eval echo configure:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4904 eval "ac_cv_lib_$ac_lib_var=yes"
4906 echo "configure: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4909 eval "ac_cv_lib_$ac_lib_var=no"
4912 LIBS="$ac_save_LIBS"
4915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4916 echo "$ac_t""yes" 1>&6
4918 ol_link_threads=posix
4919 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4920 if test $ol_with_yielding_select = auto ; then
4921 ol_with_yielding_select=yes
4925 echo "$ac_t""no" 1>&6
4932 if test $ol_link_threads = no ; then
4934 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4935 echo "configure:4936: checking for pthread_create in -lpthread" >&5
4936 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 ac_save_LIBS="$LIBS"
4941 LIBS="-lpthread $LIBS"
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4948 char pthread_create();
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4956 eval "ac_cv_lib_$ac_lib_var=yes"
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4961 eval "ac_cv_lib_$ac_lib_var=no"
4964 LIBS="$ac_save_LIBS"
4967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4968 echo "$ac_t""yes" 1>&6
4970 ol_link_threads=posix
4971 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4973 echo "$ac_t""no" 1>&6
4980 if test $ol_link_threads = no ; then
4982 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4983 echo "configure:4984: checking for pthread_create in -lc_r" >&5
4984 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 ac_save_LIBS="$LIBS"
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4993 /* Override any gcc2 internal prototype to avoid an error. */
4994 /* We use char because int might match the return type of a gcc2
4995 builtin and then its argument prototype would still apply. */
4996 char pthread_create();
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 eval "ac_cv_lib_$ac_lib_var=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "ac_cv_lib_$ac_lib_var=no"
5012 LIBS="$ac_save_LIBS"
5015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5016 echo "$ac_t""yes" 1>&6
5018 ol_link_threads=posix
5019 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
5021 echo "$ac_t""no" 1>&6
5028 if test $ol_link_threads = no ; then
5030 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
5031 echo "configure:5032: checking for pthread_create in -lpthreads" >&5
5032 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
5033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 ac_save_LIBS="$LIBS"
5037 LIBS="-lpthreads $LIBS"
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 /* Override any gcc2 internal prototype to avoid an error. */
5042 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */
5044 char pthread_create();
5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5052 eval "ac_cv_lib_$ac_lib_var=yes"
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5057 eval "ac_cv_lib_$ac_lib_var=no"
5060 LIBS="$ac_save_LIBS"
5063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5064 echo "$ac_t""yes" 1>&6
5066 ol_link_threads=posix
5067 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
5069 echo "$ac_t""no" 1>&6
5076 if test $ol_link_threads = no ; then
5078 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
5079 echo "configure:5080: checking for pthread_join in -lpthreads" >&5
5080 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
5081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 ac_save_LIBS="$LIBS"
5085 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5089 /* Override any gcc2 internal prototype to avoid an error. */
5090 /* We use char because int might match the return type of a gcc2
5091 builtin and then its argument prototype would still apply. */
5092 char pthread_join();
5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 eval "ac_cv_lib_$ac_lib_var=yes"
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 eval "ac_cv_lib_$ac_lib_var=no"
5108 LIBS="$ac_save_LIBS"
5111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5112 echo "$ac_t""yes" 1>&6
5114 ol_link_threads=posix
5115 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
5118 echo "$ac_t""no" 1>&6
5125 if test $ol_link_threads = no ; then
5126 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
5127 echo "configure:5128: checking for pthread_create with -threads" >&5
5128 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5133 LIBS="-threads $LIBS"
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 char pthread_create();
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5146 ol_cv_thread_flag=yes
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 ol_cv_thread_flag=no
5158 echo "$ac_t""$ol_cv_thread_flag" 1>&6
5160 if test $ol_cv_thread_flag = yes ; then
5161 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
5162 ol_link_threads=posix
5166 if test $ol_link_threads = no ; then
5168 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
5169 echo "configure:5170: checking for pthread_mutex_unlock in -lpthreads" >&5
5170 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
5171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 ac_save_LIBS="$LIBS"
5175 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* Override any gcc2 internal prototype to avoid an error. */
5180 /* We use char because int might match the return type of a gcc2
5181 builtin and then its argument prototype would still apply. */
5182 char pthread_mutex_unlock();
5185 pthread_mutex_unlock()
5188 if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 eval "ac_cv_lib_$ac_lib_var=yes"
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5195 eval "ac_cv_lib_$ac_lib_var=no"
5198 LIBS="$ac_save_LIBS"
5201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5204 ol_link_threads=posix
5205 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
5206 if test $ol_with_yielding_select = auto ; then
5207 ol_with_yielding_select=yes
5211 echo "$ac_t""no" 1>&6
5218 if test $ol_link_threads = no ; then
5220 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
5221 echo "configure:5222: checking for pthread_mutex_lock in -lpthreads" >&5
5222 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
5223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5226 ac_save_LIBS="$LIBS"
5227 LIBS="-lpthreads -lmach -lexc $LIBS"
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */
5234 char pthread_mutex_lock();
5237 pthread_mutex_lock()
5240 if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5242 eval "ac_cv_lib_$ac_lib_var=yes"
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5247 eval "ac_cv_lib_$ac_lib_var=no"
5250 LIBS="$ac_save_LIBS"
5253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5254 echo "$ac_t""yes" 1>&6
5256 ol_link_threads=posix
5257 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
5258 if test $ol_with_yielding_select = auto ; then
5259 ol_with_yielding_select=yes
5263 echo "$ac_t""no" 1>&6
5270 if test $ol_link_threads = no ; then
5272 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
5273 echo "configure:5274: checking for pthread_mutex_trylock in -lpthreads" >&5
5274 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
5275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 ac_save_LIBS="$LIBS"
5279 LIBS="-lpthreads -lexc $LIBS"
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5283 /* Override any gcc2 internal prototype to avoid an error. */
5284 /* We use char because int might match the return type of a gcc2
5285 builtin and then its argument prototype would still apply. */
5286 char pthread_mutex_trylock();
5289 pthread_mutex_trylock()
5292 if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5294 eval "ac_cv_lib_$ac_lib_var=yes"
5296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5299 eval "ac_cv_lib_$ac_lib_var=no"
5302 LIBS="$ac_save_LIBS"
5305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5306 echo "$ac_t""yes" 1>&6
5308 ol_link_threads=posix
5309 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
5310 if test $ol_with_yielding_select = auto ; then
5311 ol_with_yielding_select=yes
5315 echo "$ac_t""no" 1>&6
5322 if test $ol_link_threads != no ; then
5323 cat >> confdefs.h <<\EOF
5324 #define HAVE_PTHREADS 1
5328 save_CPPFLAGS="$CPPFLAGS"
5330 LIBS="$LTHREAD_LIBS $LIBS"
5332 for ac_func in sched_yield pthread_yield
5334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5335 echo "configure:5336: checking for $ac_func" >&5
5336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 /* System header to define __stub macros and hopefully few prototypes,
5343 which can conflict with char $ac_func(); below. */
5345 /* Override any gcc2 internal prototype to avoid an error. */
5346 /* We use char because int might match the return type of a gcc2
5347 builtin and then its argument prototype would still apply. */
5352 /* The GNU C library defines this for functions which it implements
5353 to always fail with ENOSYS. Some functions are actually named
5354 something starting with __ and the normal name is an alias. */
5355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5365 eval "ac_cv_func_$ac_func=yes"
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5370 eval "ac_cv_func_$ac_func=no"
5375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5378 cat >> confdefs.h <<EOF
5379 #define $ac_tr_func 1
5383 echo "$ac_t""no" 1>&6
5388 if test $ac_cv_func_sched_yield = no -a \
5389 $ac_cv_func_pthread_yield = no ; then
5390 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5391 echo "configure:5392: checking for sched_yield in -lrt" >&5
5392 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 ac_save_LIBS="$LIBS"
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 eval "ac_cv_lib_$ac_lib_var=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_lib_$ac_lib_var=no"
5420 LIBS="$ac_save_LIBS"
5423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5425 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5426 cat >> confdefs.h <<\EOF
5427 #define HAVE_SCHED_YIELD 1
5430 ac_cv_func_sched_yield=yes
5432 echo "$ac_t""no" 1>&6
5433 ac_cv_func_sched_yield=no
5437 if test $ac_cv_func_sched_yield = no -a \
5438 $ac_cv_func_pthread_yield = no ; then
5439 for ac_func in thr_yield
5441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5442 echo "configure:5443: checking for $ac_func" >&5
5443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5449 /* System header to define __stub macros and hopefully few prototypes,
5450 which can conflict with char $ac_func(); below. */
5452 /* Override any gcc2 internal prototype to avoid an error. */
5453 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */
5459 /* The GNU C library defines this for functions which it implements
5460 to always fail with ENOSYS. Some functions are actually named
5461 something starting with __ and the normal name is an alias. */
5462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5470 if { (eval echo configure:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5472 eval "ac_cv_func_$ac_func=yes"
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5477 eval "ac_cv_func_$ac_func=no"
5482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5483 echo "$ac_t""yes" 1>&6
5484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5485 cat >> confdefs.h <<EOF
5486 #define $ac_tr_func 1
5490 echo "$ac_t""no" 1>&6
5495 if test $ac_cv_func_sched_yield = no -a \
5496 $ac_cv_func_pthread_yield = no -a \
5497 "$ac_cv_func_thr_yield" = no ; then
5498 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5501 for ac_func in pthread_kill
5503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5504 echo "configure:5505: checking for $ac_func" >&5
5505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5511 /* System header to define __stub macros and hopefully few prototypes,
5512 which can conflict with char $ac_func(); below. */
5514 /* Override any gcc2 internal prototype to avoid an error. */
5515 /* We use char because int might match the return type of a gcc2
5516 builtin and then its argument prototype would still apply. */
5521 /* The GNU C library defines this for functions which it implements
5522 to always fail with ENOSYS. Some functions are actually named
5523 something starting with __ and the normal name is an alias. */
5524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5534 eval "ac_cv_func_$ac_func=yes"
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5539 eval "ac_cv_func_$ac_func=no"
5544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5545 echo "$ac_t""yes" 1>&6
5546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5547 cat >> confdefs.h <<EOF
5548 #define $ac_tr_func 1
5552 echo "$ac_t""no" 1>&6
5557 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5558 echo "configure:5559: checking for pthread_detach with <pthread.h>" >&5
5559 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5567 #include <pthread.h>
5569 #define NULL (void*)0
5573 pthread_detach(NULL);
5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 ol_cv_func_pthread_detach=yes
5580 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5583 ol_cv_func_pthread_detach=no
5589 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5591 if test $ol_cv_func_pthread_detach = no ; then
5592 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5595 cat >> confdefs.h <<\EOF
5596 #define HAVE_PTHREAD_DETACH 1
5601 pthread_setconcurrency \
5602 pthread_getconcurrency \
5603 thr_setconcurrency \
5604 thr_getconcurrency \
5607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5608 echo "configure:5609: checking for $ac_func" >&5
5609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 /* System header to define __stub macros and hopefully few prototypes,
5616 which can conflict with char $ac_func(); below. */
5618 /* Override any gcc2 internal prototype to avoid an error. */
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5625 /* The GNU C library defines this for functions which it implements
5626 to always fail with ENOSYS. Some functions are actually named
5627 something starting with __ and the normal name is an alias. */
5628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5638 eval "ac_cv_func_$ac_func=yes"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 eval "ac_cv_func_$ac_func=no"
5648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5651 cat >> confdefs.h <<EOF
5652 #define $ac_tr_func 1
5656 echo "$ac_t""no" 1>&6
5661 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5662 echo "configure:5663: checking if pthread_create() works" >&5
5663 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5667 if test "$cross_compiling" = yes; then
5668 ol_cv_pthread_create_works=yes
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5674 #include <pthread.h>
5676 #define NULL (void*)0
5679 static void *task(p)
5682 return (void *) (p == NULL);
5685 int main(argc, argv)
5690 #if HAVE_PTHREADS_D4
5691 exit(pthread_create(&t, pthread_attr_default, task, NULL));
5693 exit(pthread_create(&t, NULL, task, NULL));
5698 if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5700 ol_cv_pthread_create_works=yes
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5705 ol_cv_pthread_create_works=no
5712 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5714 if test $ol_cv_pthread_create_works = no ; then
5715 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
5718 if test $ol_with_yielding_select = auto ; then
5719 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5720 echo "configure:5721: checking if select yields when using pthreads" >&5
5721 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5725 if test "$cross_compiling" = yes; then
5727 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5729 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5733 #include <sys/types.h>
5734 #include <sys/time.h>
5736 #include <pthread.h>
5738 #define NULL (void*) 0
5741 static int fildes[2];
5743 static void *task(p)
5755 FD_SET(fildes[0], &rfds);
5757 /* we're not interested in any fds */
5758 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5765 exit(0); /* if we exit here, the select blocked the whole process */
5768 int main(argc, argv)
5774 /* create a pipe to select */
5775 if(pipe(&fildes[0])) {
5780 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5781 (void) pthread_setconcurrency(2);
5783 #ifdef HAVE_THR_SETCONCURRENCY
5784 /* Set Solaris LWP concurrency to 2 */
5785 thr_setconcurrency(2);
5789 #if HAVE_PTHREADS_D4
5790 pthread_create(&t, pthread_attr_default, task, NULL);
5792 pthread_create(&t, NULL, task, NULL);
5795 #if HAVE_SCHED_YIELD
5796 sched_yield(); /* make sure task runs first */
5798 #ifdef HAVE_PTHREAD_YIELD
5799 pthread_yield(); /* make sure task runs first */
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5808 ol_cv_pthread_select_yields=no
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5813 ol_cv_pthread_select_yields=yes
5820 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5822 if test $ol_cv_pthread_select_yields = yes ; then
5823 ol_with_yielding_select=yes
5827 CPPFLAGS="$save_CPPFLAGS"
5830 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5834 if test $ol_with_threads = posix ; then
5835 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5839 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5840 -o $ol_with_threads = mach ; then
5842 for ac_hdr in mach/cthreads.h
5844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5846 echo "configure:5847: checking for $ac_hdr" >&5
5847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5848 echo $ac_n "(cached) $ac_c" 1>&6
5850 cat > conftest.$ac_ext <<EOF
5851 #line 5852 "configure"
5852 #include "confdefs.h"
5855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5856 { (eval echo configure:5857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5858 if test -z "$ac_err"; then
5860 eval "ac_cv_header_$ac_safe=yes"
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5866 eval "ac_cv_header_$ac_safe=no"
5870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5873 cat >> confdefs.h <<EOF
5874 #define $ac_tr_hdr 1
5878 echo "$ac_t""no" 1>&6
5882 if test $ac_cv_header_mach_cthreads_h = yes ; then
5883 ol_with_threads=found
5885 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5886 echo "configure:5887: checking for cthread_fork" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char cthread_fork(); below. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5899 char cthread_fork();
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916 eval "ac_cv_func_cthread_fork=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval "ac_cv_func_cthread_fork=no"
5926 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5930 echo "$ac_t""no" 1>&6
5934 if test $ol_link_threads = no ; then
5935 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5936 echo "configure:5937: checking for cthread_fork with -all_load" >&5
5937 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5938 echo $ac_n "(cached) $ac_c" 1>&6
5942 LIBS="-all_load $LIBS"
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 #include <mach/cthreads.h>
5949 cthread_fork((void *)0, (void *)0);
5953 if { (eval echo configure:5954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5955 ol_cv_cthread_all_load=yes
5957 echo "configure: failed program was:" >&5
5958 cat conftest.$ac_ext >&5
5960 ol_cv_cthread_all_load=no
5967 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5969 if test $ol_cv_cthread_all_load = yes ; then
5970 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5971 ol_link_threads=mach
5975 if test $ol_link_threads != no ; then
5976 : check for cthread specific functionality here
5977 cat >> confdefs.h <<\EOF
5978 #define HAVE_MACH_CTHREADS 1
5982 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5986 if test $ol_with_threads = mach ; then
5987 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5991 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5992 -o $ol_with_threads = lwp ; then
5994 for ac_hdr in thread.h synch.h
5996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5998 echo "configure:5999: checking for $ac_hdr" >&5
5999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6002 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6008 { (eval echo configure:6009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6010 if test -z "$ac_err"; then
6012 eval "ac_cv_header_$ac_safe=yes"
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 eval "ac_cv_header_$ac_safe=no"
6022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6023 echo "$ac_t""yes" 1>&6
6024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6025 cat >> confdefs.h <<EOF
6026 #define $ac_tr_hdr 1
6030 echo "$ac_t""no" 1>&6
6034 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6035 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6036 echo "configure:6037: checking for thr_create in -lthread" >&5
6037 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6041 ac_save_LIBS="$LIBS"
6042 LIBS="-lthread $LIBS"
6043 cat > conftest.$ac_ext <<EOF
6044 #line 6045 "configure"
6045 #include "confdefs.h"
6046 /* Override any gcc2 internal prototype to avoid an error. */
6047 /* We use char because int might match the return type of a gcc2
6048 builtin and then its argument prototype would still apply. */
6055 if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6057 eval "ac_cv_lib_$ac_lib_var=yes"
6059 echo "configure: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6062 eval "ac_cv_lib_$ac_lib_var=no"
6065 LIBS="$ac_save_LIBS"
6068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6072 echo "$ac_t""no" 1>&6
6077 if test $have_thr = yes ; then
6078 cat >> confdefs.h <<\EOF
6082 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6085 if test $ol_with_yielding_select = auto ; then
6086 ol_with_yielding_select=yes
6090 thr_setconcurrency \
6091 thr_getconcurrency \
6094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6095 echo "configure:6096: checking for $ac_func" >&5
6096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6097 echo $ac_n "(cached) $ac_c" 1>&6
6099 cat > conftest.$ac_ext <<EOF
6100 #line 6101 "configure"
6101 #include "confdefs.h"
6102 /* System header to define __stub macros and hopefully few prototypes,
6103 which can conflict with char $ac_func(); below. */
6105 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6112 /* The GNU C library defines this for functions which it implements
6113 to always fail with ENOSYS. Some functions are actually named
6114 something starting with __ and the normal name is an alias. */
6115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6125 eval "ac_cv_func_$ac_func=yes"
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6130 eval "ac_cv_func_$ac_func=no"
6135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6136 echo "$ac_t""yes" 1>&6
6137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6138 cat >> confdefs.h <<EOF
6139 #define $ac_tr_func 1
6143 echo "$ac_t""no" 1>&6
6150 for ac_hdr in lwp/lwp.h
6152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_hdr" >&5
6155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6164 { (eval echo configure:6165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6166 if test -z "$ac_err"; then
6168 eval "ac_cv_header_$ac_safe=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_header_$ac_safe=no"
6178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6181 cat >> confdefs.h <<EOF
6182 #define $ac_tr_hdr 1
6186 echo "$ac_t""no" 1>&6
6190 if test $ac_cv_header_lwp_lwp_h = yes ; then
6191 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6192 echo "configure:6193: checking for lwp_create in -llwp" >&5
6193 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 ac_save_LIBS="$LIBS"
6199 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6202 /* Override any gcc2 internal prototype to avoid an error. */
6203 /* We use char because int might match the return type of a gcc2
6204 builtin and then its argument prototype would still apply. */
6211 if { (eval echo configure:6212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6213 eval "ac_cv_lib_$ac_lib_var=yes"
6215 echo "configure: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6218 eval "ac_cv_lib_$ac_lib_var=no"
6221 LIBS="$ac_save_LIBS"
6224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6225 echo "$ac_t""yes" 1>&6
6228 echo "$ac_t""no" 1>&6
6233 if test $have_lwp = yes ; then
6234 cat >> confdefs.h <<\EOF
6238 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6241 if test $ol_with_yielding_select = auto ; then
6242 ol_with_yielding_select=no
6248 if test $ol_with_yielding_select = yes ; then
6249 cat >> confdefs.h <<\EOF
6250 #define HAVE_YIELDING_SELECT 1
6255 if test $ol_with_threads = manual ; then
6258 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6260 for ac_hdr in pthread.h sched.h
6262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6264 echo "configure:6265: checking for $ac_hdr" >&5
6265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6268 cat > conftest.$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6274 { (eval echo configure:6275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6276 if test -z "$ac_err"; then
6278 eval "ac_cv_header_$ac_safe=yes"
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 eval "ac_cv_header_$ac_safe=no"
6288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6289 echo "$ac_t""yes" 1>&6
6290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6291 cat >> confdefs.h <<EOF
6292 #define $ac_tr_hdr 1
6296 echo "$ac_t""no" 1>&6
6300 for ac_func in sched_yield pthread_yield
6302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6303 echo "configure:6304: checking for $ac_func" >&5
6304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6305 echo $ac_n "(cached) $ac_c" 1>&6
6307 cat > conftest.$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6310 /* System header to define __stub macros and hopefully few prototypes,
6311 which can conflict with char $ac_func(); below. */
6313 /* Override any gcc2 internal prototype to avoid an error. */
6314 /* We use char because int might match the return type of a gcc2
6315 builtin and then its argument prototype would still apply. */
6320 /* The GNU C library defines this for functions which it implements
6321 to always fail with ENOSYS. Some functions are actually named
6322 something starting with __ and the normal name is an alias. */
6323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6333 eval "ac_cv_func_$ac_func=yes"
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6338 eval "ac_cv_func_$ac_func=no"
6343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6346 cat >> confdefs.h <<EOF
6347 #define $ac_tr_func 1
6351 echo "$ac_t""no" 1>&6
6356 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
6357 echo "configure:6358: checking for LinuxThreads" >&5
6358 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6359 echo $ac_n "(cached) $ac_c" 1>&6
6362 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
6363 if test "$res" -gt 0 ; then
6364 ol_cv_linux_threads=yes
6366 ol_cv_linux_threads=no
6371 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6374 for ac_hdr in mach/cthreads.h
6376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_hdr" >&5
6379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 cat > conftest.$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6388 { (eval echo configure:6389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6390 if test -z "$ac_err"; then
6392 eval "ac_cv_header_$ac_safe=yes"
6395 echo "configure: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 eval "ac_cv_header_$ac_safe=no"
6402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6403 echo "$ac_t""yes" 1>&6
6404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6405 cat >> confdefs.h <<EOF
6406 #define $ac_tr_hdr 1
6410 echo "$ac_t""no" 1>&6
6414 for ac_hdr in lwp/lwp.h
6416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6418 echo "configure:6419: checking for $ac_hdr" >&5
6419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6420 echo $ac_n "(cached) $ac_c" 1>&6
6422 cat > conftest.$ac_ext <<EOF
6423 #line 6424 "configure"
6424 #include "confdefs.h"
6427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6428 { (eval echo configure:6429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6430 if test -z "$ac_err"; then
6432 eval "ac_cv_header_$ac_safe=yes"
6435 echo "configure: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 eval "ac_cv_header_$ac_safe=no"
6442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6443 echo "$ac_t""yes" 1>&6
6444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6445 cat >> confdefs.h <<EOF
6446 #define $ac_tr_hdr 1
6450 echo "$ac_t""no" 1>&6
6454 for ac_hdr in thread.h synch.h
6456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6458 echo "configure:6459: checking for $ac_hdr" >&5
6459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6460 echo $ac_n "(cached) $ac_c" 1>&6
6462 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6468 { (eval echo configure:6469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6470 if test -z "$ac_err"; then
6472 eval "ac_cv_header_$ac_safe=yes"
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 eval "ac_cv_header_$ac_safe=no"
6482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6483 echo "$ac_t""yes" 1>&6
6484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6485 cat >> confdefs.h <<EOF
6486 #define $ac_tr_hdr 1
6490 echo "$ac_t""no" 1>&6
6496 if test $ol_link_threads != no ; then
6497 cat >> confdefs.h <<\EOF
6501 cat >> confdefs.h <<\EOF
6502 #define _REENTRANT 1
6505 cat >> confdefs.h <<\EOF
6506 #define THREAD_SAFE 1
6509 cat >> confdefs.h <<\EOF
6510 #define _THREAD_SAFE 1
6513 cat >> confdefs.h <<\EOF
6514 #define THREADSAFE 1
6517 cat >> confdefs.h <<\EOF
6518 #define _THREADSAFE 1
6522 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6523 echo "configure:6524: checking for thread specific errno" >&5
6524 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6538 ol_cv_errno_thread_specific=yes
6540 echo "configure: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6543 ol_cv_errno_thread_specific=no
6549 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6551 if test $ol_cv_errno_thread_specific != yes ; then
6552 LIBS="$LTHREAD_LIBS $LIBS"
6558 if test $ol_link_threads = no ; then
6559 if test $ol_with_threads = yes ; then
6560 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6563 if test $ol_with_threads = auto ; then
6564 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6568 cat >> confdefs.h <<\EOF
6569 #define NO_THREADS 1
6575 if test $ol_link_threads != no ; then
6576 cat >> confdefs.h <<\EOF
6577 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
6584 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6585 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6586 echo "configure:6587: checking for DB2 library" >&5
6587 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6591 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6592 echo "configure:6593: checking for db_open in -ldb" >&5
6593 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6
6597 ac_save_LIBS="$LIBS"
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* Override any gcc2 internal prototype to avoid an error. */
6603 /* We use char because int might match the return type of a gcc2
6604 builtin and then its argument prototype would still apply. */
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 eval "ac_cv_lib_$ac_lib_var=yes"
6615 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6618 eval "ac_cv_lib_$ac_lib_var=no"
6621 LIBS="$ac_save_LIBS"
6624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6625 echo "$ac_t""yes" 1>&6
6628 echo "$ac_t""no" 1>&6
6636 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6642 echo "configure:6643: checking for $ac_hdr" >&5
6643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6652 { (eval echo configure:6653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6654 if test -z "$ac_err"; then
6656 eval "ac_cv_header_$ac_safe=yes"
6659 echo "configure: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6662 eval "ac_cv_header_$ac_safe=no"
6666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6667 echo "$ac_t""yes" 1>&6
6668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6669 cat >> confdefs.h <<EOF
6670 #define $ac_tr_hdr 1
6674 echo "$ac_t""no" 1>&6
6678 if test $ac_cv_header_db_h = yes ; then
6679 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6680 echo "configure:6681: checking if db.h is DB2" >&5
6681 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6690 /* this check could be improved */
6691 # ifdef DB_VERSION_MAJOR
6692 # if DB_VERSION_MAJOR == 2
6698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6699 egrep "__db_version_2" >/dev/null 2>&1; then
6701 ol_cv_header_db2=yes
6710 echo "$ac_t""$ol_cv_header_db2" 1>&6
6717 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6718 echo "configure:6719: checking for Berkeley DB2" >&5
6719 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6720 echo $ac_n "(cached) $ac_c" 1>&6
6723 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6724 ol_cv_berkeley_db2=no
6726 ol_cv_berkeley_db2=yes
6731 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6732 if test $ol_cv_berkeley_db2 = yes ; then
6733 cat >> confdefs.h <<\EOF
6734 #define HAVE_BERKELEY_DB2 1
6740 if test $ol_cv_berkeley_db2 = yes ; then
6742 ol_with_ldbm_api=db2
6744 if test $ol_with_ldbm_type = hash ; then
6745 cat >> confdefs.h <<\EOF
6746 #define LDBM_USE_DBHASH 1
6750 cat >> confdefs.h <<\EOF
6751 #define LDBM_USE_DBBTREE 1
6756 if test $ol_cv_lib_db2 != yes ; then
6757 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6763 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6767 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6768 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6769 echo "configure:6770: checking for Berkeley DB library" >&5
6770 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6774 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6775 echo "configure:6776: checking for dbopen" >&5
6776 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* System header to define __stub macros and hopefully few prototypes,
6783 which can conflict with char dbopen(); below. */
6785 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6792 /* The GNU C library defines this for functions which it implements
6793 to always fail with ENOSYS. Some functions are actually named
6794 something starting with __ and the normal name is an alias. */
6795 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6805 eval "ac_cv_func_dbopen=yes"
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6810 eval "ac_cv_func_dbopen=no"
6815 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6816 echo "$ac_t""yes" 1>&6
6819 echo "$ac_t""no" 1>&6
6821 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6822 echo "configure:6823: checking for dbopen in -ldb" >&5
6823 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 ac_save_LIBS="$LIBS"
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6843 eval "ac_cv_lib_$ac_lib_var=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 eval "ac_cv_lib_$ac_lib_var=no"
6851 LIBS="$ac_save_LIBS"
6854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6858 echo "$ac_t""no" 1>&6
6869 echo "$ac_t""$ol_cv_lib_db" 1>&6
6872 for ac_hdr in db_185.h
6874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6876 echo "configure:6877: checking for $ac_hdr" >&5
6877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6886 { (eval echo configure:6887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6888 if test -z "$ac_err"; then
6890 eval "ac_cv_header_$ac_safe=yes"
6893 echo "configure: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6896 eval "ac_cv_header_$ac_safe=no"
6900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6901 echo "$ac_t""yes" 1>&6
6902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6903 cat >> confdefs.h <<EOF
6904 #define $ac_tr_hdr 1
6908 echo "$ac_t""no" 1>&6
6912 if test "$ol_cv_header_db2" = yes ; then
6914 ol_cv_header_db=$ac_cv_header_db_185_h
6916 ol_cv_header_db=$ac_cv_header_db_h
6921 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6922 echo "configure:6923: checking for Berkeley DB" >&5
6923 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6927 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6928 ol_cv_berkeley_db=no
6930 ol_cv_berkeley_db=yes
6935 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6936 if test $ol_cv_berkeley_db = yes ; then
6937 cat >> confdefs.h <<\EOF
6938 #define HAVE_BERKELEY_DB 1
6944 if test $ol_cv_berkeley_db = yes ; then
6948 if test $ol_with_ldbm_type = hash ; then
6949 cat >> confdefs.h <<\EOF
6950 #define LDBM_USE_DBHASH 1
6954 cat >> confdefs.h <<\EOF
6955 #define LDBM_USE_DBBTREE 1
6960 if test $ol_cv_lib_db != yes ; then
6961 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6966 if test $ol_with_ldbm_api = manual ; then
6969 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6971 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6975 echo "configure:6976: checking for $ac_hdr" >&5
6976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6985 { (eval echo configure:6986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6987 if test -z "$ac_err"; then
6989 eval "ac_cv_header_$ac_safe=yes"
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6995 eval "ac_cv_header_$ac_safe=no"
6999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7002 cat >> confdefs.h <<EOF
7003 #define $ac_tr_hdr 1
7007 echo "$ac_t""no" 1>&6
7013 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7014 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7015 ol_with_ldbm_api=none
7018 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7019 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7020 echo "configure:7021: checking for GDBM library" >&5
7021 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7025 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7026 echo "configure:7027: checking for gdbm_open" >&5
7027 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* System header to define __stub macros and hopefully few prototypes,
7034 which can conflict with char gdbm_open(); below. */
7036 /* Override any gcc2 internal prototype to avoid an error. */
7037 /* We use char because int might match the return type of a gcc2
7038 builtin and then its argument prototype would still apply. */
7043 /* The GNU C library defines this for functions which it implements
7044 to always fail with ENOSYS. Some functions are actually named
7045 something starting with __ and the normal name is an alias. */
7046 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7056 eval "ac_cv_func_gdbm_open=yes"
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7061 eval "ac_cv_func_gdbm_open=no"
7066 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7067 echo "$ac_t""yes" 1>&6
7070 echo "$ac_t""no" 1>&6
7072 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7073 echo "configure:7074: checking for gdbm_open in -lgdbm" >&5
7074 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7078 ac_save_LIBS="$LIBS"
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 /* Override any gcc2 internal prototype to avoid an error. */
7084 /* We use char because int might match the return type of a gcc2
7085 builtin and then its argument prototype would still apply. */
7092 if { (eval echo configure:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 eval "ac_cv_lib_$ac_lib_var=yes"
7096 echo "configure: failed program was:" >&5
7097 cat conftest.$ac_ext >&5
7099 eval "ac_cv_lib_$ac_lib_var=no"
7102 LIBS="$ac_save_LIBS"
7105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7106 echo "$ac_t""yes" 1>&6
7107 ol_cv_lib_gdbm=-lgdbm
7109 echo "$ac_t""no" 1>&6
7120 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7123 for ac_hdr in gdbm.h
7125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7127 echo "configure:7128: checking for $ac_hdr" >&5
7128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7137 { (eval echo configure:7138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7139 if test -z "$ac_err"; then
7141 eval "ac_cv_header_$ac_safe=yes"
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 eval "ac_cv_header_$ac_safe=no"
7151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7152 echo "$ac_t""yes" 1>&6
7153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7154 cat >> confdefs.h <<EOF
7155 #define $ac_tr_hdr 1
7159 echo "$ac_t""no" 1>&6
7163 echo $ac_n "checking for db""... $ac_c" 1>&6
7164 echo "configure:7165: checking for db" >&5
7165 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7169 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
7177 echo "$ac_t""$ol_cv_gdbm" 1>&6
7178 if test $ol_cv_gdbm = yes ; then
7179 cat >> confdefs.h <<\EOF
7186 if test $ol_cv_gdbm = yes ; then
7188 ol_with_ldbm_api=gdbm
7190 if test $ol_cv_lib_gdbm != yes ; then
7191 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
7196 if test $ol_with_ldbm_api = auto ; then
7197 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
7198 elif test $ol_with_ldbm_api = ndbm ; then
7199 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
7200 echo "configure:7201: checking for NDBM library" >&5
7201 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7205 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
7206 echo "configure:7207: checking for dbm_open" >&5
7207 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7213 /* System header to define __stub macros and hopefully few prototypes,
7214 which can conflict with char dbm_open(); below. */
7216 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */
7223 /* The GNU C library defines this for functions which it implements
7224 to always fail with ENOSYS. Some functions are actually named
7225 something starting with __ and the normal name is an alias. */
7226 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7236 eval "ac_cv_func_dbm_open=yes"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 eval "ac_cv_func_dbm_open=no"
7246 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
7247 echo "$ac_t""yes" 1>&6
7250 echo "$ac_t""no" 1>&6
7252 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
7253 echo "configure:7254: checking for dbm_open in -lndbm" >&5
7254 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
7255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7258 ac_save_LIBS="$LIBS"
7260 cat > conftest.$ac_ext <<EOF
7261 #line 7262 "configure"
7262 #include "confdefs.h"
7263 /* Override any gcc2 internal prototype to avoid an error. */
7264 /* We use char because int might match the return type of a gcc2
7265 builtin and then its argument prototype would still apply. */
7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7274 eval "ac_cv_lib_$ac_lib_var=yes"
7276 echo "configure: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7279 eval "ac_cv_lib_$ac_lib_var=no"
7282 LIBS="$ac_save_LIBS"
7285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ol_cv_lib_ndbm=-lndbm
7289 echo "$ac_t""no" 1>&6
7291 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
7292 echo "configure:7293: checking for dbm_open in -ldbm" >&5
7293 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
7294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7297 ac_save_LIBS="$LIBS"
7299 cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7302 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7311 if { (eval echo configure:7312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7313 eval "ac_cv_lib_$ac_lib_var=yes"
7315 echo "configure: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7318 eval "ac_cv_lib_$ac_lib_var=no"
7321 LIBS="$ac_save_LIBS"
7324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7325 echo "$ac_t""yes" 1>&6
7326 ol_cv_lib_ndbm=-ldbm
7328 echo "$ac_t""no" 1>&6
7341 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
7344 for ac_hdr in ndbm.h
7346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7348 echo "configure:7349: checking for $ac_hdr" >&5
7349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7358 { (eval echo configure:7359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7360 if test -z "$ac_err"; then
7362 eval "ac_cv_header_$ac_safe=yes"
7365 echo "configure: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 eval "ac_cv_header_$ac_safe=no"
7372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7373 echo "$ac_t""yes" 1>&6
7374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7375 cat >> confdefs.h <<EOF
7376 #define $ac_tr_hdr 1
7380 echo "$ac_t""no" 1>&6
7384 echo $ac_n "checking for db""... $ac_c" 1>&6
7385 echo "configure:7386: checking for db" >&5
7386 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
7387 echo $ac_n "(cached) $ac_c" 1>&6
7390 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
7398 echo "$ac_t""$ol_cv_ndbm" 1>&6
7399 if test $ol_cv_ndbm = yes ; then
7400 cat >> confdefs.h <<\EOF
7407 if test $ol_cv_ndbm = yes ; then
7409 ol_with_ldbm_api=ndbm
7411 if test $ol_cv_lib_ndbm != yes ; then
7412 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7417 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7418 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7419 if test $ol_enable_ldbm = yes ; then
7420 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7423 echo "configure: warning: disabling LDBM" 1>&2
7427 if test $ol_enable_wrappers != no ; then
7428 for ac_hdr in tcpd.h
7430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7432 echo "configure:7433: checking for $ac_hdr" >&5
7433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7436 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7442 { (eval echo configure:7443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7444 if test -z "$ac_err"; then
7446 eval "ac_cv_header_$ac_safe=yes"
7449 echo "configure: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7452 eval "ac_cv_header_$ac_safe=no"
7456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7457 echo "$ac_t""yes" 1>&6
7458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7459 cat >> confdefs.h <<EOF
7460 #define $ac_tr_hdr 1
7464 echo "$ac_t""no" 1>&6
7469 if test $ac_cv_header_tcpd_h != yes ; then
7472 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7473 echo "configure:7474: checking for main in -lwrap" >&5
7474 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7478 ac_save_LIBS="$LIBS"
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7488 if { (eval echo configure:7489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7490 eval "ac_cv_lib_$ac_lib_var=yes"
7492 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7495 eval "ac_cv_lib_$ac_lib_var=no"
7498 LIBS="$ac_save_LIBS"
7501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7502 echo "$ac_t""yes" 1>&6
7505 echo "$ac_t""no" 1>&6
7511 if test $have_wrappers = yes ; then
7512 cat >> confdefs.h <<\EOF
7516 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7518 echo "configure: warning: could not find -lwrap" 1>&2
7519 if test $ol_enable_wrappers = yes ; then
7520 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7523 echo "configure: warning: disabling wrappers support" 1>&2
7524 ol_enable_wrappers=no
7528 if test $ol_enable_syslog != no ; then
7529 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7530 echo "configure:7531: checking for openlog" >&5
7531 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7534 cat > conftest.$ac_ext <<EOF
7535 #line 7536 "configure"
7536 #include "confdefs.h"
7537 /* System header to define __stub macros and hopefully few prototypes,
7538 which can conflict with char openlog(); below. */
7540 /* Override any gcc2 internal prototype to avoid an error. */
7541 /* We use char because int might match the return type of a gcc2
7542 builtin and then its argument prototype would still apply. */
7547 /* The GNU C library defines this for functions which it implements
7548 to always fail with ENOSYS. Some functions are actually named
7549 something starting with __ and the normal name is an alias. */
7550 #if defined (__stub_openlog) || defined (__stub___openlog)
7558 if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7560 eval "ac_cv_func_openlog=yes"
7562 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7565 eval "ac_cv_func_openlog=no"
7570 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7571 echo "$ac_t""yes" 1>&6
7574 echo "$ac_t""no" 1>&6
7577 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7578 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7580 ol_enable_syslog=$ac_cv_func_openlog
7583 if test $ol_enable_dmalloc != no ; then
7584 for ac_hdr in dmalloc.h
7586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7588 echo "configure:7589: checking for $ac_hdr" >&5
7589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7590 echo $ac_n "(cached) $ac_c" 1>&6
7592 cat > conftest.$ac_ext <<EOF
7593 #line 7594 "configure"
7594 #include "confdefs.h"
7597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7598 { (eval echo configure:7599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7600 if test -z "$ac_err"; then
7602 eval "ac_cv_header_$ac_safe=yes"
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7608 eval "ac_cv_header_$ac_safe=no"
7612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7613 echo "$ac_t""yes" 1>&6
7614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7615 cat >> confdefs.h <<EOF
7616 #define $ac_tr_hdr 1
7620 echo "$ac_t""no" 1>&6
7624 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7625 echo "configure:7626: checking for dmalloc_shutdown in -ldmalloc" >&5
7626 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 ac_save_LIBS="$LIBS"
7631 LIBS="-ldmalloc $LIBS"
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7635 /* Override any gcc2 internal prototype to avoid an error. */
7636 /* We use char because int might match the return type of a gcc2
7637 builtin and then its argument prototype would still apply. */
7638 char dmalloc_shutdown();
7644 if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7646 eval "ac_cv_lib_$ac_lib_var=yes"
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7651 eval "ac_cv_lib_$ac_lib_var=no"
7654 LIBS="$ac_save_LIBS"
7657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7658 echo "$ac_t""yes" 1>&6
7659 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7661 cat >> confdefs.h <<EOF
7662 #define $ac_tr_lib 1
7665 LIBS="-ldmalloc $LIBS"
7668 echo "$ac_t""no" 1>&6
7673 if test $ol_enable_tcl != no ; then
7676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7678 echo "configure:7679: checking for $ac_hdr" >&5
7679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7688 { (eval echo configure:7689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7690 if test -z "$ac_err"; then
7692 eval "ac_cv_header_$ac_safe=yes"
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7698 eval "ac_cv_header_$ac_safe=no"
7702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7703 echo "$ac_t""yes" 1>&6
7704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7705 cat >> confdefs.h <<EOF
7706 #define $ac_tr_hdr 1
7710 echo "$ac_t""no" 1>&6
7715 if test $ac_cv_header_tcl_h != yes ; then
7718 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7719 echo "configure:7720: checking for main in -ltcl" >&5
7720 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7724 ac_save_LIBS="$LIBS"
7726 cat > conftest.$ac_ext <<EOF
7727 #line 7728 "configure"
7728 #include "confdefs.h"
7734 if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7736 eval "ac_cv_lib_$ac_lib_var=yes"
7738 echo "configure: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7741 eval "ac_cv_lib_$ac_lib_var=no"
7744 LIBS="$ac_save_LIBS"
7747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7748 echo "$ac_t""yes" 1>&6
7749 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7751 echo "$ac_t""no" 1>&6
7756 if test $have_tcl != yes; then
7757 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7758 echo "configure:7759: checking for main in -ltcl7.6" >&5
7759 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7761 echo $ac_n "(cached) $ac_c" 1>&6
7763 ac_save_LIBS="$LIBS"
7764 LIBS="-ltcl7.6 $LIBS"
7765 cat > conftest.$ac_ext <<EOF
7766 #line 7767 "configure"
7767 #include "confdefs.h"
7773 if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7775 eval "ac_cv_lib_$ac_lib_var=yes"
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7780 eval "ac_cv_lib_$ac_lib_var=no"
7783 LIBS="$ac_save_LIBS"
7786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7787 echo "$ac_t""yes" 1>&6
7788 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7790 echo "$ac_t""no" 1>&6
7796 if test $have_tcl != yes; then
7797 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7798 echo "configure:7799: checking for main in -ltcl8.0" >&5
7799 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7801 echo $ac_n "(cached) $ac_c" 1>&6
7803 ac_save_LIBS="$LIBS"
7804 LIBS="-ltcl8.0 $LIBS"
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7813 if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7815 eval "ac_cv_lib_$ac_lib_var=yes"
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7820 eval "ac_cv_lib_$ac_lib_var=no"
7823 LIBS="$ac_save_LIBS"
7826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7827 echo "$ac_t""yes" 1>&6
7828 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7830 echo "$ac_t""no" 1>&6
7837 if test $have_tcl != yes ; then
7838 echo "configure: warning: could not find -ltcl" 1>&2
7839 if test $ol_enable_tcl = yes ; then
7840 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7847 # ud needs termcap (should insert check here)
7849 for ac_hdr in termcap.h ncurses.h
7851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7853 echo "configure:7854: checking for $ac_hdr" >&5
7854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7855 echo $ac_n "(cached) $ac_c" 1>&6
7857 cat > conftest.$ac_ext <<EOF
7858 #line 7859 "configure"
7859 #include "confdefs.h"
7862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7863 { (eval echo configure:7864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7865 if test -z "$ac_err"; then
7867 eval "ac_cv_header_$ac_safe=yes"
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 eval "ac_cv_header_$ac_safe=no"
7877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7878 echo "$ac_t""yes" 1>&6
7879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7880 cat >> confdefs.h <<EOF
7881 #define $ac_tr_hdr 1
7885 echo "$ac_t""no" 1>&6
7890 if test $ol_link_termcap = no ; then
7891 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7892 echo "configure:7893: checking for tputs in -ltermcap" >&5
7893 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 ac_save_LIBS="$LIBS"
7898 LIBS="-ltermcap $LIBS"
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7911 if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7913 eval "ac_cv_lib_$ac_lib_var=yes"
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 eval "ac_cv_lib_$ac_lib_var=no"
7921 LIBS="$ac_save_LIBS"
7924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7925 echo "$ac_t""yes" 1>&6
7928 echo "$ac_t""no" 1>&6
7932 if test $have_termcap = yes ; then
7933 cat >> confdefs.h <<\EOF
7934 #define HAVE_TERMCAP 1
7938 TERMCAP_LIBS=-ltermcap
7942 if test $ol_link_termcap = no ; then
7943 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7944 echo "configure:7945: checking for initscr in -lncurses" >&5
7945 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7949 ac_save_LIBS="$LIBS"
7950 LIBS="-lncurses $LIBS"
7951 cat > conftest.$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7963 if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7965 eval "ac_cv_lib_$ac_lib_var=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 eval "ac_cv_lib_$ac_lib_var=no"
7973 LIBS="$ac_save_LIBS"
7976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7977 echo "$ac_t""yes" 1>&6
7980 echo "$ac_t""no" 1>&6
7984 if test $have_ncurses = yes ; then
7985 cat >> confdefs.h <<\EOF
7986 #define HAVE_NCURSES 1
7990 TERMCAP_LIBS=-lncurses
7994 if test $ol_link_termcap = no ; then
7995 cat >> confdefs.h <<\EOF
7996 #define NO_TERMCAP 1
8003 if test $ol_with_readline != no ; then
8004 for ac_hdr in readline/readline.h readline/history.h
8006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8008 echo "configure:8009: checking for $ac_hdr" >&5
8009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8018 { (eval echo configure:8019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8020 if test -z "$ac_err"; then
8022 eval "ac_cv_header_$ac_safe=yes"
8025 echo "configure: failed program was:" >&5
8026 cat conftest.$ac_ext >&5
8028 eval "ac_cv_header_$ac_safe=no"
8032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8033 echo "$ac_t""yes" 1>&6
8034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8035 cat >> confdefs.h <<EOF
8036 #define $ac_tr_hdr 1
8040 echo "$ac_t""no" 1>&6
8045 if test $ac_cv_header_readline_readline_h = yes ; then
8047 LIBS="$TERMCAP_LIBS $LIBS"
8048 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8049 echo "configure:8050: checking for readline in -lreadline" >&5
8050 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8054 ac_save_LIBS="$LIBS"
8055 LIBS="-lreadline $LIBS"
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 /* Override any gcc2 internal prototype to avoid an error. */
8060 /* We use char because int might match the return type of a gcc2
8061 builtin and then its argument prototype would still apply. */
8068 if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8070 eval "ac_cv_lib_$ac_lib_var=yes"
8072 echo "configure: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8075 eval "ac_cv_lib_$ac_lib_var=no"
8078 LIBS="$ac_save_LIBS"
8081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8082 echo "$ac_t""yes" 1>&6
8085 echo "$ac_t""no" 1>&6
8091 if test $have_readline = yes ; then
8092 ol_with_readline=found
8093 ol_link_readline=yes
8095 READLINE_LIBS="-lreadline"
8100 if test $ol_link_readline = yes ; then
8101 cat >> confdefs.h <<\EOF
8102 #define HAVE_READLINE 1
8108 # FreeBSD (and others) have crypt(3) in -lcrypt
8109 if test $ol_enable_crypt != no ; then
8110 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8111 echo "configure:8112: checking for crypt" >&5
8112 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8113 echo $ac_n "(cached) $ac_c" 1>&6
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 /* System header to define __stub macros and hopefully few prototypes,
8119 which can conflict with char crypt(); below. */
8121 /* Override any gcc2 internal prototype to avoid an error. */
8122 /* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8128 /* The GNU C library defines this for functions which it implements
8129 to always fail with ENOSYS. Some functions are actually named
8130 something starting with __ and the normal name is an alias. */
8131 #if defined (__stub_crypt) || defined (__stub___crypt)
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8141 eval "ac_cv_func_crypt=yes"
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8146 eval "ac_cv_func_crypt=no"
8151 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8152 echo "$ac_t""yes" 1>&6
8155 echo "$ac_t""no" 1>&6
8157 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8158 echo "configure:8159: checking for crypt in -lcrypt" >&5
8159 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8161 echo $ac_n "(cached) $ac_c" 1>&6
8163 ac_save_LIBS="$LIBS"
8164 LIBS="-lcrypt $LIBS"
8165 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8168 /* Override any gcc2 internal prototype to avoid an error. */
8169 /* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8177 if { (eval echo configure:8178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8179 eval "ac_cv_lib_$ac_lib_var=yes"
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8184 eval "ac_cv_lib_$ac_lib_var=no"
8187 LIBS="$ac_save_LIBS"
8190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8191 echo "$ac_t""yes" 1>&6
8192 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
8195 echo "$ac_t""no" 1>&6
8202 if test $have_crypt = yes ; then
8203 cat >> confdefs.h <<\EOF
8204 #define HAVE_CRYPT 1
8208 echo "configure: warning: could not find crypt" 1>&2
8209 if test $ol_enable_crypt = yes ; then
8210 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
8213 echo "configure: warning: disabling crypt support" 1>&2
8218 # FreeBSD (and others) have setproctitle(3) in -lutil
8219 if test $ol_enable_proctitle != no ; then
8220 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
8221 echo "configure:8222: checking for setproctitle" >&5
8222 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8225 cat > conftest.$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8228 /* System header to define __stub macros and hopefully few prototypes,
8229 which can conflict with char setproctitle(); below. */
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8234 char setproctitle();
8238 /* The GNU C library defines this for functions which it implements
8239 to always fail with ENOSYS. Some functions are actually named
8240 something starting with __ and the normal name is an alias. */
8241 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
8249 if { (eval echo configure:8250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 eval "ac_cv_func_setproctitle=yes"
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8256 eval "ac_cv_func_setproctitle=no"
8261 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
8262 echo "$ac_t""yes" 1>&6
8263 have_setproctitle=yes
8265 echo "$ac_t""no" 1>&6
8267 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
8268 echo "configure:8269: checking for setproctitle in -lutil" >&5
8269 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
8270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8271 echo $ac_n "(cached) $ac_c" 1>&6
8273 ac_save_LIBS="$LIBS"
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 /* Override any gcc2 internal prototype to avoid an error. */
8279 /* We use char because int might match the return type of a gcc2
8280 builtin and then its argument prototype would still apply. */
8281 char setproctitle();
8287 if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8289 eval "ac_cv_lib_$ac_lib_var=yes"
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8294 eval "ac_cv_lib_$ac_lib_var=no"
8297 LIBS="$ac_save_LIBS"
8300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8301 echo "$ac_t""yes" 1>&6
8302 have_setproctitle=yes
8303 LUTIL_LIBS="$LUTIL_LIBS -lutil"
8305 echo "$ac_t""no" 1>&6
8306 have_setproctitle=no
8307 LIBOBJS="$LIBOBJS setproctitle.o"
8313 if test $have_setproctitle = yes ; then
8314 cat >> confdefs.h <<\EOF
8315 #define HAVE_SETPROCTITLE 1
8322 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8323 echo "configure:8324: checking for EBCDIC" >&5
8324 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8333 #include <__ASCII__/generate_error.h>
8337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8338 { (eval echo configure:8339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8340 if test -z "$ac_err"; then
8342 ol_cv_cpp_ebcdic=yes
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8353 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8354 if test $ol_cv_cpp_ebcdic = yes ; then
8355 cat >> confdefs.h <<\EOF
8356 #define HAVE_EBCDIC 1
8361 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8362 echo "configure:8363: checking for ANSI C header files" >&5
8363 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
8364 echo $ac_n "(cached) $ac_c" 1>&6
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8368 "configure"
8368 #include "confdefs.h"
8374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8375 { (eval echo configure:8376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8377 if test -z "$ac_err"; then
8379 ol_cv_header_stdc=yes
8382 echo "configure: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8385 ol_cv_header_stdc=no
8389 if test $ol_cv_header_stdc = yes; then
8390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8391 cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8397 egrep "memchr" >/dev/null 2>&1; then
8401 ol_cv_header_stdc=no
8407 if test $ol_cv_header_stdc = yes; then
8408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8409 cat > conftest.$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8415 egrep "free" >/dev/null 2>&1; then
8419 ol_cv_header_stdc=no
8425 if test $ol_cv_header_stdc = yes; then
8426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8427 if test "$cross_compiling" = yes; then
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8438 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8439 || ('j' <= (c) && (c) <= 'r') \
8440 || ('s' <= (c) && (c) <= 'z'))
8441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8444 int main () { int i; for (i = 0; i < 256; i++)
8445 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8449 if { (eval echo configure:8450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 ol_cv_header_stdc=no
8464 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8465 if test $ol_cv_header_stdc = yes; then
8466 cat >> confdefs.h <<\EOF
8467 #define STDC_HEADERS 1
8471 ac_cv_header_stdc=disable
8474 if test $ol_cv_header_stdc != yes; then
8475 echo "configure: warning: could not Standard C compliant headers" 1>&2
8479 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8482 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8483 echo "configure:8484: checking for $ac_hdr that defines DIR" >&5
8484 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8487 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8490 #include <sys/types.h>
8496 if { (eval echo configure:8497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8498 eval "ac_cv_header_dirent_$ac_safe=yes"
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8503 eval "ac_cv_header_dirent_$ac_safe=no"
8507 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8508 echo "$ac_t""yes" 1>&6
8509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8510 cat >> confdefs.h <<EOF
8511 #define $ac_tr_hdr 1
8513 ac_header_dirent=$ac_hdr; break
8515 echo "$ac_t""no" 1>&6
8518 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8519 if test $ac_header_dirent = dirent.h; then
8520 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8521 echo "configure:8522: checking for opendir in -ldir" >&5
8522 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8524 echo $ac_n "(cached) $ac_c" 1>&6
8526 ac_save_LIBS="$LIBS"
8528 cat > conftest.$ac_ext <<EOF
8529 #line 8530 "configure"
8530 #include "confdefs.h"
8531 /* Override any gcc2 internal prototype to avoid an error. */
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8540 if { (eval echo configure:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8542 eval "ac_cv_lib_$ac_lib_var=yes"
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8547 eval "ac_cv_lib_$ac_lib_var=no"
8550 LIBS="$ac_save_LIBS"
8553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8554 echo "$ac_t""yes" 1>&6
8557 echo "$ac_t""no" 1>&6
8561 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8562 echo "configure:8563: checking for opendir in -lx" >&5
8563 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8565 echo $ac_n "(cached) $ac_c" 1>&6
8567 ac_save_LIBS="$LIBS"
8569 cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8572 /* Override any gcc2 internal prototype to avoid an error. */
8573 /* We use char because int might match the return type of a gcc2
8574 builtin and then its argument prototype would still apply. */
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8583 eval "ac_cv_lib_$ac_lib_var=yes"
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 eval "ac_cv_lib_$ac_lib_var=no"
8591 LIBS="$ac_save_LIBS"
8594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8595 echo "$ac_t""yes" 1>&6
8598 echo "$ac_t""no" 1>&6
8603 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8604 echo "configure:8605: checking for sys/wait.h that is POSIX.1 compatible" >&5
8605 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8608 cat > conftest.$ac_ext <<EOF
8609 #line 8610 "configure"
8610 #include "confdefs.h"
8611 #include <sys/types.h>
8612 #include <sys/wait.h>
8614 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8617 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8625 if { (eval echo configure:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8627 ac_cv_header_sys_wait_h=yes
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8632 ac_cv_header_sys_wait_h=no
8637 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8638 if test $ac_cv_header_sys_wait_h = yes; then
8639 cat >> confdefs.h <<\EOF
8640 #define HAVE_SYS_WAIT_H 1
8645 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8646 echo "configure:8647: checking POSIX termios" >&5
8647 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8650 cat > conftest.$ac_ext <<EOF
8651 #line 8652 "configure"
8652 #include "confdefs.h"
8653 #include <sys/types.h>
8655 #include <termios.h>
8657 /* SunOS 4.0.3 has termios.h but not the library calls. */
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8663 am_cv_sys_posix_termios=yes
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8668 am_cv_sys_posix_termios=no
8673 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8676 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8677 echo "configure:8678: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8678 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8679 echo $ac_n "(cached) $ac_c" 1>&6
8681 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8683 gwinsz_in_termios_h=no
8684 if test $am_cv_sys_posix_termios = yes; then
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 #include <sys/types.h>
8689 # include <termios.h>
8695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8696 egrep "yes" >/dev/null 2>&1; then
8698 gwinsz_in_termios_h=yes
8704 if test $gwinsz_in_termios_h = no; then
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 #include <sys/types.h>
8709 # include <sys/ioctl.h>
8715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8716 egrep "yes" >/dev/null 2>&1; then
8718 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8726 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8727 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8728 cat >> confdefs.h <<\EOF
8729 #define GWINSZ_IN_SYS_IOCTL 1
8734 if test $am_cv_sys_posix_termios = yes ; then
8735 cat >> confdefs.h <<\EOF
8736 #define HAVE_POSIX_TERMIOS 1
8780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8782 echo "configure:8783: checking for $ac_hdr" >&5
8783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8792 { (eval echo configure:8793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8794 if test -z "$ac_err"; then
8796 eval "ac_cv_header_$ac_safe=yes"
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8802 eval "ac_cv_header_$ac_safe=no"
8806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8807 echo "$ac_t""yes" 1>&6
8808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8809 cat >> confdefs.h <<EOF
8810 #define $ac_tr_hdr 1
8814 echo "$ac_t""no" 1>&6
8819 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8820 echo "configure:8821: checking for uid_t in sys/types.h" >&5
8821 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8827 #include <sys/types.h>
8829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8830 egrep "uid_t" >/dev/null 2>&1; then
8832 ac_cv_type_uid_t=yes
8841 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8842 if test $ac_cv_type_uid_t = no; then
8843 cat >> confdefs.h <<\EOF
8847 cat >> confdefs.h <<\EOF
8853 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8854 echo "configure:8855: checking type of array argument to getgroups" >&5
8855 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8858 if test "$cross_compiling" = yes; then
8859 ac_cv_type_getgroups=cross
8861 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8865 /* Thanks to Mike Rendell for this test. */
8866 #include <sys/types.h>
8869 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8874 union { gid_t gval; long lval; } val;
8877 for (i = 0; i < NGID; i++)
8878 gidset[i] = val.gval;
8879 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8881 /* Exit non-zero if getgroups seems to require an array of ints. This
8882 happens when gid_t is short but getgroups modifies an array of ints. */
8883 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8887 if { (eval echo configure:8888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8889 ac_cv_type_getgroups=gid_t
8891 echo "configure: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8894 ac_cv_type_getgroups=int
8899 if test $ac_cv_type_getgroups = cross; then
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8908 ac_cv_type_getgroups=gid_t
8911 ac_cv_type_getgroups=int
8918 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8919 cat >> confdefs.h <<EOF
8920 #define GETGROUPS_T $ac_cv_type_getgroups
8923 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8924 echo "configure:8925: checking for ANSI C header files" >&5
8925 if eval "test \"`echo '$''{'ac_cv_header_stdc'+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"
8936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8937 { (eval echo configure:8938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8939 if test -z "$ac_err"; then
8941 ac_cv_header_stdc=yes
8944 echo "configure: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8947 ac_cv_header_stdc=no
8951 if test $ac_cv_header_stdc = yes; then
8952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8959 egrep "memchr" >/dev/null 2>&1; then
8963 ac_cv_header_stdc=no
8969 if test $ac_cv_header_stdc = yes; then
8970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8971 cat > conftest.$ac_ext <<EOF
8972 #line 8973 "configure"
8973 #include "confdefs.h"
8976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8977 egrep "free" >/dev/null 2>&1; then
8981 ac_cv_header_stdc=no
8987 if test $ac_cv_header_stdc = yes; then
8988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8989 if test "$cross_compiling" = yes; then
8992 cat > conftest.$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
8996 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8997 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8999 int main () { int i; for (i = 0; i < 256; i++)
9000 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9004 if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9008 echo "configure: failed program was:" >&5
9009 cat conftest.$ac_ext >&5
9011 ac_cv_header_stdc=no
9019 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9020 if test $ac_cv_header_stdc = yes; then
9021 cat >> confdefs.h <<\EOF
9022 #define STDC_HEADERS 1
9027 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9028 echo "configure:9029: checking for mode_t" >&5
9029 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9030 echo $ac_n "(cached) $ac_c" 1>&6
9032 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9035 #include <sys/types.h>
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9044 ac_cv_type_mode_t=yes
9047 ac_cv_type_mode_t=no
9052 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9053 if test $ac_cv_type_mode_t = no; then
9054 cat >> confdefs.h <<\EOF
9060 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9061 echo "configure:9062: checking for off_t" >&5
9062 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9063 echo $ac_n "(cached) $ac_c" 1>&6
9065 cat > conftest.$ac_ext <<EOF
9066 #line 9067 "configure"
9067 #include "confdefs.h"
9068 #include <sys/types.h>
9074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9075 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9077 ac_cv_type_off_t=yes
9085 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9086 if test $ac_cv_type_off_t = no; then
9087 cat >> confdefs.h <<\EOF
9093 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9094 echo "configure:9095: checking for pid_t" >&5
9095 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 #include <sys/types.h>
9107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9108 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9110 ac_cv_type_pid_t=yes
9118 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9119 if test $ac_cv_type_pid_t = no; then
9120 cat >> confdefs.h <<\EOF
9126 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9127 echo "configure:9128: checking for ptrdiff_t" >&5
9128 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9139 if { (eval echo configure:9140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9141 am_cv_type_ptrdiff_t=yes
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9146 am_cv_type_ptrdiff_t=no
9151 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
9152 if test $am_cv_type_ptrdiff_t = yes; then
9153 cat >> confdefs.h <<\EOF
9154 #define HAVE_PTRDIFF_T 1
9159 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
9160 echo "configure:9161: checking return type of signal handlers" >&5
9161 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9164 cat > conftest.$ac_ext <<EOF
9165 #line 9166 "configure"
9166 #include "confdefs.h"
9167 #include <sys/types.h>
9173 extern "C" void (*signal (int, void (*)(int)))(int);
9175 void (*signal ()) ();
9182 if { (eval echo configure:9183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9184 ac_cv_type_signal=void
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9189 ac_cv_type_signal=int
9194 echo "$ac_t""$ac_cv_type_signal" 1>&6
9195 cat >> confdefs.h <<EOF
9196 #define RETSIGTYPE $ac_cv_type_signal
9200 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
9201 echo "configure:9202: checking for sig_atomic_t" >&5
9202 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9210 sig_atomic_t atomic;
9213 if { (eval echo configure:9214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9215 ol_cv_type_sig_atomic_t=yes
9217 echo "configure: failed program was:" >&5
9218 cat conftest.$ac_ext >&5
9220 ol_cv_type_sig_atomic_t=no
9225 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
9226 if test $ol_cv_type_sig_atomic_t = no; then
9227 cat >> confdefs.h <<\EOF
9228 #define sig_atomic_t int
9233 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9234 echo "configure:9235: checking for size_t" >&5
9235 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9241 #include <sys/types.h>
9247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9248 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9250 ac_cv_type_size_t=yes
9253 ac_cv_type_size_t=no
9258 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9259 if test $ac_cv_type_size_t = no; then
9260 cat >> confdefs.h <<\EOF
9261 #define size_t unsigned
9266 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9267 echo "configure:9268: checking for st_blksize in struct stat" >&5
9268 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9274 #include <sys/types.h>
9275 #include <sys/stat.h>
9277 struct stat s; s.st_blksize;
9280 if { (eval echo configure:9281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9282 ac_cv_struct_st_blksize=yes
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9287 ac_cv_struct_st_blksize=no
9292 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9293 if test $ac_cv_struct_st_blksize = yes; then
9294 cat >> confdefs.h <<\EOF
9295 #define HAVE_ST_BLKSIZE 1
9300 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
9301 echo "configure:9302: checking whether time.h and sys/time.h may both be included" >&5
9302 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9308 #include <sys/types.h>
9309 #include <sys/time.h>
9315 if { (eval echo configure:9316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9317 ac_cv_header_time=yes
9319 echo "configure: failed program was:" >&5
9320 cat conftest.$ac_ext >&5
9322 ac_cv_header_time=no
9327 echo "$ac_t""$ac_cv_header_time" 1>&6
9328 if test $ac_cv_header_time = yes; then
9329 cat >> confdefs.h <<\EOF
9330 #define TIME_WITH_SYS_TIME 1
9335 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9336 echo "configure:9337: checking whether struct tm is in sys/time.h or time.h" >&5
9337 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9338 echo $ac_n "(cached) $ac_c" 1>&6
9340 cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9343 #include <sys/types.h>
9346 struct tm *tp; tp->tm_sec;
9349 if { (eval echo configure:9350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9351 ac_cv_struct_tm=time.h
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9356 ac_cv_struct_tm=sys/time.h
9361 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9362 if test $ac_cv_struct_tm = sys/time.h; then
9363 cat >> confdefs.h <<\EOF
9364 #define TM_IN_SYS_TIME 1
9369 # test for pw_gecos in struct passwd
9370 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
9371 echo "configure:9372: checking struct passwd for pw_gecos" >&5
9372 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9383 pwd.pw_gecos = pwd.pw_name;
9387 if { (eval echo configure:9388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9389 ol_cv_struct_passwd_pw_gecos=yes
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 ol_cv_struct_passwd_pw_gecos=no
9399 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
9400 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
9401 cat >> confdefs.h <<\EOF
9402 #define HAVE_PW_GECOS 1
9409 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
9410 echo "configure:9411: checking if toupper() requires islower()" >&5
9411 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9415 if test "$cross_compiling" = yes; then
9416 ol_cv_c_upper_lower=safe
9418 cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure"
9420 #include "confdefs.h"
9425 if ('C' == toupper('C'))
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9433 ol_cv_c_upper_lower=no
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9438 ol_cv_c_upper_lower=yes
9445 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
9446 if test $ol_cv_c_upper_lower != no ; then
9447 cat >> confdefs.h <<\EOF
9448 #define C_UPPER_LOWER 1
9453 echo $ac_n "checking for working const""... $ac_c" 1>&6
9454 echo "configure:9455: checking for working const" >&5
9455 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9464 /* Ultrix mips cc rejects this. */
9465 typedef int charset[2]; const charset x;
9466 /* SunOS 4.1.1 cc rejects this. */
9467 char const *const *ccp;
9469 /* NEC SVR4.0.2 mips cc rejects this. */
9470 struct point {int x, y;};
9471 static struct point const zero = {0,0};
9472 /* AIX XL C 1.02.0.0 rejects this.
9473 It does not let you subtract one const X* pointer from another in an arm
9474 of an if-expression whose if-part is not a constant expression */
9475 const char *g = "string";
9476 ccp = &g + (g ? g-g : 0);
9477 /* HPUX 7.0 cc rejects these. */
9480 ccp = (char const *const *) p;
9481 { /* SCO 3.2v4 cc rejects this. */
9483 char const *s = 0 ? (char *) 0 : (char const *) 0;
9487 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9489 const int *foo = &x[0];
9492 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9493 typedef const int *iptr;
9497 { /* AIX XL C 1.02.0.0 rejects this saying
9498 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9499 struct s { int j; const int *ap[3]; };
9500 struct s *b; b->j = 5;
9502 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9508 if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9520 echo "$ac_t""$ac_cv_c_const" 1>&6
9521 if test $ac_cv_c_const = no; then
9522 cat >> confdefs.h <<\EOF
9528 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
9529 echo "configure:9530: checking if compiler understands volatile" >&5
9530 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
9531 echo $ac_n "(cached) $ac_c" 1>&6
9533 cat > conftest.$ac_ext <<EOF
9534 #line 9535 "configure"
9535 #include "confdefs.h"
9538 volatile int a; int * volatile b = x ? &y : &z;
9539 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
9543 if { (eval echo configure:9544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9545 ol_cv_c_volatile=yes
9547 echo "configure: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9555 echo "$ac_t""$ol_cv_c_volatile" 1>&6
9556 if test $ol_cv_c_volatile = yes; then
9559 cat >> confdefs.h <<\EOF
9566 if test $cross_compiling = yes ; then
9567 cat >> confdefs.h <<\EOF
9568 #define CROSS_COMPILING 1
9572 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9573 echo "configure:9574: checking whether byte ordering is bigendian" >&5
9574 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9575 echo $ac_n "(cached) $ac_c" 1>&6
9577 ac_cv_c_bigendian=unknown
9578 # See if sys/param.h defines the BYTE_ORDER macro.
9579 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 #include <sys/types.h>
9583 #include <sys/param.h>
9586 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9591 if { (eval echo configure:9592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9593 # It does; now see whether it defined to BIG_ENDIAN or not.
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9597 #include <sys/types.h>
9598 #include <sys/param.h>
9601 #if BYTE_ORDER != BIG_ENDIAN
9606 if { (eval echo configure:9607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9608 ac_cv_c_bigendian=yes
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9613 ac_cv_c_bigendian=no
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9621 if test $ac_cv_c_bigendian = unknown; then
9622 if test "$cross_compiling" = yes; then
9623 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9625 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9629 /* Are we little or big endian? From Harbison&Steele. */
9633 char c[sizeof (long)];
9636 exit (u.c[sizeof (long) - 1] == 1);
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9641 ac_cv_c_bigendian=no
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9646 ac_cv_c_bigendian=yes
9654 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9655 if test $ac_cv_c_bigendian = yes; then
9656 cat >> confdefs.h <<\EOF
9657 #define WORDS_BIGENDIAN 1
9662 echo $ac_n "checking size of short""... $ac_c" 1>&6
9663 echo "configure:9664: checking size of short" >&5
9664 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9667 if test "$cross_compiling" = yes; then
9668 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9670 cat > conftest.$ac_ext <<EOF
9671 #line 9672 "configure"
9672 #include "confdefs.h"
9676 FILE *f=fopen("conftestval", "w");
9678 fprintf(f, "%d\n", sizeof(short));
9682 if { (eval echo configure:9683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9684 ac_cv_sizeof_short=`cat conftestval`
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9689 ac_cv_sizeof_short=0
9695 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9696 cat >> confdefs.h <<EOF
9697 #define SIZEOF_SHORT $ac_cv_sizeof_short
9701 echo $ac_n "checking size of int""... $ac_c" 1>&6
9702 echo "configure:9703: checking size of int" >&5
9703 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9706 if test "$cross_compiling" = yes; then
9707 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9715 FILE *f=fopen("conftestval", "w");
9717 fprintf(f, "%d\n", sizeof(int));
9721 if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9723 ac_cv_sizeof_int=`cat conftestval`
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9734 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9735 cat >> confdefs.h <<EOF
9736 #define SIZEOF_INT $ac_cv_sizeof_int
9740 echo $ac_n "checking size of long""... $ac_c" 1>&6
9741 echo "configure:9742: checking size of long" >&5
9742 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9745 if test "$cross_compiling" = yes; then
9746 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9748 cat > conftest.$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9754 FILE *f=fopen("conftestval", "w");
9756 fprintf(f, "%d\n", sizeof(long));
9760 if { (eval echo configure:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9762 ac_cv_sizeof_long=`cat conftestval`
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9773 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9774 cat >> confdefs.h <<EOF
9775 #define SIZEOF_LONG $ac_cv_sizeof_long
9781 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9782 echo "configure:9783: checking for 8-bit clean memcmp" >&5
9783 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9786 if test "$cross_compiling" = yes; then
9787 ac_cv_func_memcmp_clean=no
9789 cat > conftest.$ac_ext <<EOF
9790 #line 9791 "configure"
9791 #include "confdefs.h"
9795 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9796 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9800 if { (eval echo configure:9801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9802 ac_cv_func_memcmp_clean=yes
9804 echo "configure: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9807 ac_cv_func_memcmp_clean=no
9814 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
9815 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
9817 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9818 echo "configure:9819: checking for strftime" >&5
9819 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9820 echo $ac_n "(cached) $ac_c" 1>&6
9822 cat > conftest.$ac_ext <<EOF
9823 #line 9824 "configure"
9824 #include "confdefs.h"
9825 /* System header to define __stub macros and hopefully few prototypes,
9826 which can conflict with char strftime(); below. */
9828 /* Override any gcc2 internal prototype to avoid an error. */
9829 /* We use char because int might match the return type of a gcc2
9830 builtin and then its argument prototype would still apply. */
9835 /* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838 #if defined (__stub_strftime) || defined (__stub___strftime)
9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9848 eval "ac_cv_func_strftime=yes"
9850 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9853 eval "ac_cv_func_strftime=no"
9858 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9859 echo "$ac_t""yes" 1>&6
9860 cat >> confdefs.h <<\EOF
9861 #define HAVE_STRFTIME 1
9865 echo "$ac_t""no" 1>&6
9866 # strftime is in -lintl on SCO UNIX.
9867 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9868 echo "configure:9869: checking for strftime in -lintl" >&5
9869 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9871 echo $ac_n "(cached) $ac_c" 1>&6
9873 ac_save_LIBS="$LIBS"
9875 cat > conftest.$ac_ext <<EOF
9876 #line 9877 "configure"
9877 #include "confdefs.h"
9878 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9887 if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9889 eval "ac_cv_lib_$ac_lib_var=yes"
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9894 eval "ac_cv_lib_$ac_lib_var=no"
9897 LIBS="$ac_save_LIBS"
9900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9901 echo "$ac_t""yes" 1>&6
9902 cat >> confdefs.h <<\EOF
9903 #define HAVE_STRFTIME 1
9908 echo "$ac_t""no" 1>&6
9913 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9914 echo "configure:9915: checking for vprintf" >&5
9915 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* System header to define __stub macros and hopefully few prototypes,
9922 which can conflict with char vprintf(); below. */
9924 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9942 if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9944 eval "ac_cv_func_vprintf=yes"
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9949 eval "ac_cv_func_vprintf=no"
9954 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9955 echo "$ac_t""yes" 1>&6
9956 cat >> confdefs.h <<\EOF
9957 #define HAVE_VPRINTF 1
9961 echo "$ac_t""no" 1>&6
9964 if test "$ac_cv_func_vprintf" != yes; then
9965 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9966 echo "configure:9967: checking for _doprnt" >&5
9967 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 /* System header to define __stub macros and hopefully few prototypes,
9974 which can conflict with char _doprnt(); below. */
9976 /* Override any gcc2 internal prototype to avoid an error. */
9977 /* We use char because int might match the return type of a gcc2
9978 builtin and then its argument prototype would still apply. */
9983 /* The GNU C library defines this for functions which it implements
9984 to always fail with ENOSYS. Some functions are actually named
9985 something starting with __ and the normal name is an alias. */
9986 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9994 if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9996 eval "ac_cv_func__doprnt=yes"
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10001 eval "ac_cv_func__doprnt=no"
10006 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10007 echo "$ac_t""yes" 1>&6
10008 cat >> confdefs.h <<\EOF
10009 #define HAVE_DOPRNT 1
10013 echo "$ac_t""no" 1>&6
10019 if test $ac_cv_func_vprintf = yes ; then
10020 for ac_func in vsnprintf vsprintf
10022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10023 echo "configure:10024: checking for $ac_func" >&5
10024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10027 cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 /* System header to define __stub macros and hopefully few prototypes,
10031 which can conflict with char $ac_func(); below. */
10032 #include <assert.h>
10033 /* Override any gcc2 internal prototype to avoid an error. */
10034 /* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10040 /* The GNU C library defines this for functions which it implements
10041 to always fail with ENOSYS. Some functions are actually named
10042 something starting with __ and the normal name is an alias. */
10043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10051 if { (eval echo configure:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10053 eval "ac_cv_func_$ac_func=yes"
10055 echo "configure: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10058 eval "ac_cv_func_$ac_func=no"
10063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10064 echo "$ac_t""yes" 1>&6
10065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10066 cat >> confdefs.h <<EOF
10067 #define $ac_tr_func 1
10071 echo "$ac_t""no" 1>&6
10109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10110 echo "configure:10111: checking for $ac_func" >&5
10111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 /* System header to define __stub macros and hopefully few prototypes,
10118 which can conflict with char $ac_func(); below. */
10119 #include <assert.h>
10120 /* Override any gcc2 internal prototype to avoid an error. */
10121 /* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10127 /* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
10130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10138 if { (eval echo configure:10139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10140 eval "ac_cv_func_$ac_func=yes"
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10145 eval "ac_cv_func_$ac_func=no"
10150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10151 echo "$ac_t""yes" 1>&6
10152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10153 cat >> confdefs.h <<EOF
10154 #define $ac_tr_func 1
10158 echo "$ac_t""no" 1>&6
10163 for ac_func in getopt tempnam
10165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10166 echo "configure:10167: checking for $ac_func" >&5
10167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10170 cat > conftest.$ac_ext <<EOF
10171 #line 10172 "configure"
10172 #include "confdefs.h"
10173 /* System header to define __stub macros and hopefully few prototypes,
10174 which can conflict with char $ac_func(); below. */
10175 #include <assert.h>
10176 /* Override any gcc2 internal prototype to avoid an error. */
10177 /* We use char because int might match the return type of a gcc2
10178 builtin and then its argument prototype would still apply. */
10183 /* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
10186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10194 if { (eval echo configure:10195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10196 eval "ac_cv_func_$ac_func=yes"
10198 echo "configure: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10201 eval "ac_cv_func_$ac_func=no"
10206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10207 echo "$ac_t""yes" 1>&6
10208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10209 cat >> confdefs.h <<EOF
10210 #define $ac_tr_func 1
10214 echo "$ac_t""no" 1>&6
10215 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10221 # Check Configuration
10223 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
10224 echo "configure:10225: checking declaration of sys_errlist" >&5
10225 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10229 cat > conftest.$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10234 #include <sys/types.h>
10237 char *c = (char *) *sys_errlist
10240 if { (eval echo configure:10241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10242 ol_cv_dcl_sys_errlist=yes
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10247 ol_cv_dcl_sys_errlist=no
10252 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
10253 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
10254 if test $ol_cv_dcl_sys_errlist = no ; then
10255 cat >> confdefs.h <<\EOF
10256 #define DECL_SYS_ERRLIST 1
10259 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
10260 echo "configure:10261: checking existence of sys_errlist" >&5
10261 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
10262 echo $ac_n "(cached) $ac_c" 1>&6
10265 cat > conftest.$ac_ext <<EOF
10266 #line 10267 "configure"
10267 #include "confdefs.h"
10270 char *c = (char *) *sys_errlist
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10275 ol_cv_have_sys_errlist=yes
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10280 ol_cv_have_sys_errlist=no
10285 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
10286 if test $ol_cv_have_sys_errlist = yes ; then
10287 cat >> confdefs.h <<\EOF
10288 #define HAVE_SYS_ERRLIST 1
10296 echo $ac_n "checking strdup declaration""... $ac_c" 1>&6
10297 echo "configure:10298: checking strdup declaration" >&5
10298 if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10306 #include <string.h>
10308 extern char *strdup();
10311 if { (eval echo configure:10312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10313 ol_cv_dcl_strdup=yes
10315 echo "configure: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10318 ol_cv_dcl_strdup=no
10323 echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
10324 if test $ol_cv_dcl_strdup = yes ; then
10325 cat >> confdefs.h <<\EOF
10326 #define DECL_STRDUP 1
10333 if test "$ol_enable_debug" != no ; then
10334 cat >> confdefs.h <<\EOF
10335 #define LDAP_DEBUG 1
10339 if test "$ol_enable_syslog" = yes ; then
10340 cat >> confdefs.h <<\EOF
10341 #define LDAP_SYSLOG 1
10345 if test "$ol_enable_libui" = yes ; then
10346 cat >> confdefs.h <<\EOF
10347 #define LDAP_LIBUI 1
10351 if test "$ol_enable_cache" = no ; then
10352 cat >> confdefs.h <<\EOF
10353 #define LDAP_NOCACHE 1
10357 if test "$ol_enable_dns" != no ; then
10358 cat >> confdefs.h <<\EOF
10359 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
10363 if test "$ol_enable_proctitle" != no ; then
10364 cat >> confdefs.h <<\EOF
10365 #define LDAP_PROCTITLE 1
10369 if test "$ol_enable_referrals" != no ; then
10370 cat >> confdefs.h <<\EOF
10371 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
10375 if test "$ol_enable_cldap" != no ; then
10376 cat >> confdefs.h <<\EOF
10377 #define LDAP_CONNECTIONLESS 1
10382 if test "$ol_enable_aclgroups" != no ; then
10383 cat >> confdefs.h <<\EOF
10384 #define SLAPD_ACLGROUPS 1
10388 if test "$ol_enable_crypt" != no ; then
10389 cat >> confdefs.h <<\EOF
10390 #define SLAPD_CRYPT 1
10394 if test "$ol_enable_cleartext" != no ; then
10395 cat >> confdefs.h <<\EOF
10396 #define SLAPD_CLEARTEXT 1
10400 if test "$ol_enable_phonetic" != no ; then
10401 cat >> confdefs.h <<\EOF
10402 #define SLAPD_PHONETIC 1
10406 if test "$ol_enable_rlookups" != no ; then
10407 cat >> confdefs.h <<\EOF
10408 #define SLAPD_RLOOKUPS 1
10413 if test "$ol_link_bdb2" != no ; then
10414 cat >> confdefs.h <<\EOF
10415 #define SLAPD_BDB2 1
10422 if test "$ol_link_ldbm" != no ; then
10423 cat >> confdefs.h <<\EOF
10424 #define SLAPD_LDBM 1
10431 if test "$ol_enable_passwd" != no ; then
10432 cat >> confdefs.h <<\EOF
10433 #define SLAPD_PASSWD 1
10440 if test "$ol_enable_perl" != no ; then
10441 cat >> confdefs.h <<\EOF
10442 #define SLAPD_PERL 1
10449 if test "$ol_enable_shell" != no ; then
10450 cat >> confdefs.h <<\EOF
10451 #define SLAPD_SHELL 1
10458 if test "$ol_enable_tcl" != no ; then
10459 cat >> confdefs.h <<\EOF
10460 #define SLAPD_TCL 1
10467 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
10468 $BUILD_SLAPD = yes ; then
10472 if test "$ol_link_isode" != no ; then
10505 cat > confcache <<\EOF
10506 # This file is a shell script that caches the results of configure
10507 # tests run on this system so they can be shared between configure
10508 # scripts and configure runs. It is not useful on other systems.
10509 # If it contains results you don't want to keep, you may remove or edit it.
10511 # By default, configure uses ./config.cache as the cache file,
10512 # creating it if it does not exist already. You can give configure
10513 # the --cache-file=FILE option to use a different cache file; that is
10514 # what configure does when it calls configure scripts in
10515 # subdirectories, so they share the cache.
10516 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10517 # config.status only pays attention to the cache file if you give it the
10518 # --recheck option to rerun configure.
10521 # The following way of writing the cache mishandles newlines in values,
10522 # but we know of no workaround that is simple, portable, and efficient.
10523 # So, don't put newlines in cache variables' values.
10524 # Ultrix sh set writes to stderr and can't be redirected directly,
10525 # and sets the high bit in the cache file unless we assign to the vars.
10527 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10529 # `set' does not quote correctly, so add quotes (double-quote substitution
10530 # turns \\\\ into \\, and sed turns \\ into \).
10532 -e "s/'/'\\\\''/g" \
10533 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10536 # `set' quotes correctly as required by POSIX, so do not add quotes.
10537 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10540 if cmp -s $cache_file confcache; then
10543 if test -w $cache_file; then
10544 echo "updating cache $cache_file"
10545 cat confcache > $cache_file
10547 echo "not updating unwritable cache $cache_file"
10552 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10555 # Let make expand exec_prefix.
10556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10558 # Any assignment to VPATH causes Sun make to only execute
10559 # the first set of double-colon rules, so remove it if not needed.
10560 # If there is a colon in the path, we need to keep it.
10561 if test "x$srcdir" = x.; then
10562 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10565 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10567 DEFS=-DHAVE_CONFIG_H
10569 # Without the "./", some shells look in PATH for config.status.
10570 : ${CONFIG_STATUS=./config.status}
10572 echo creating $CONFIG_STATUS
10573 rm -f $CONFIG_STATUS
10574 cat > $CONFIG_STATUS <<EOF
10576 # Generated automatically by configure.
10577 # Run this file to recreate the current configuration.
10578 # This directory was configured as follows,
10579 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10581 # $0 $ac_configure_args
10583 # Compiler output produced by configure, useful for debugging
10584 # configure, is in ./config.log if it exists.
10586 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10589 case "\$ac_option" in
10590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10591 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10592 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10593 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10594 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10596 -help | --help | --hel | --he | --h)
10597 echo "\$ac_cs_usage"; exit 0 ;;
10598 *) echo "\$ac_cs_usage"; exit 1 ;;
10602 ac_given_srcdir=$srcdir
10603 ac_given_INSTALL="$INSTALL"
10605 trap 'rm -fr `echo "\
10606 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10607 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10608 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10609 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10610 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10611 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10612 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10613 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10614 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10615 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10616 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10617 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10618 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10619 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10620 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10621 include/Makefile:build/top.mk:include/Makefile.in \
10622 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10623 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10624 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10625 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10626 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10627 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10628 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10629 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10630 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10631 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10632 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10633 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10634 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10635 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10636 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10637 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10638 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10639 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10640 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10641 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10642 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10643 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10644 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
10645 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
10646 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10648 cat >> $CONFIG_STATUS <<EOF
10650 # Protect against being on the right side of a sed subst in config.status.
10651 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10652 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10656 s%@CFLAGS@%$CFLAGS%g
10657 s%@CPPFLAGS@%$CPPFLAGS%g
10658 s%@CXXFLAGS@%$CXXFLAGS%g
10659 s%@FFLAGS@%$FFLAGS%g
10661 s%@LDFLAGS@%$LDFLAGS%g
10663 s%@exec_prefix@%$exec_prefix%g
10664 s%@prefix@%$prefix%g
10665 s%@program_transform_name@%$program_transform_name%g
10666 s%@bindir@%$bindir%g
10667 s%@sbindir@%$sbindir%g
10668 s%@libexecdir@%$libexecdir%g
10669 s%@datadir@%$datadir%g
10670 s%@sysconfdir@%$sysconfdir%g
10671 s%@sharedstatedir@%$sharedstatedir%g
10672 s%@localstatedir@%$localstatedir%g
10673 s%@libdir@%$libdir%g
10674 s%@includedir@%$includedir%g
10675 s%@oldincludedir@%$oldincludedir%g
10676 s%@infodir@%$infodir%g
10677 s%@mandir@%$mandir%g
10678 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10679 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10680 s%@INSTALL_DATA@%$INSTALL_DATA%g
10681 s%@PACKAGE@%$PACKAGE%g
10682 s%@VERSION@%$VERSION%g
10683 s%@ACLOCAL@%$ACLOCAL%g
10684 s%@AUTOCONF@%$AUTOCONF%g
10685 s%@AUTOMAKE@%$AUTOMAKE%g
10686 s%@AUTOHEADER@%$AUTOHEADER%g
10687 s%@MAKEINFO@%$MAKEINFO%g
10688 s%@SET_MAKE@%$SET_MAKE%g
10689 s%@top_builddir@%$top_builddir%g
10690 s%@ldap_subdir@%$ldap_subdir%g
10692 s%@host_alias@%$host_alias%g
10693 s%@host_cpu@%$host_cpu%g
10694 s%@host_vendor@%$host_vendor%g
10695 s%@host_os@%$host_os%g
10696 s%@RANLIB@%$RANLIB%g
10701 s%@LIBTOOL@%$LIBTOOL%g
10704 s%@SENDMAIL@%$SENDMAIL%g
10705 s%@EDITOR@%$EDITOR%g
10706 s%@FINGER@%$FINGER%g
10707 s%@PERLBIN@%$PERLBIN%g
10709 s%@EXEEXT@%$EXEEXT%g
10710 s%@OBJEXT@%$OBJEXT%g
10712 s%@LIBOBJS@%$LIBOBJS%g
10713 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10714 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10715 s%@BUILD_BDB2@%$BUILD_BDB2%g
10716 s%@BUILD_LDBM@%$BUILD_LDBM%g
10717 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10718 s%@BUILD_PERL@%$BUILD_PERL%g
10719 s%@BUILD_SHELL@%$BUILD_SHELL%g
10720 s%@BUILD_TCL@%$BUILD_TCL%g
10721 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10722 s%@LDAP_LIBS@%$LDAP_LIBS%g
10723 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10724 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10725 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10726 s%@LDBM_LIBS@%$LDBM_LIBS%g
10727 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10728 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10729 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10730 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10731 s%@KRB_LIBS@%$KRB_LIBS%g
10732 s%@READLINE_LIBS@%$READLINE_LIBS%g
10733 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10734 s%@TLS_LIBS@%$TLS_LIBS%g
10739 cat >> $CONFIG_STATUS <<\EOF
10741 # Split the substitutions into bite-sized pieces for seds with
10742 # small command number limits, like on Digital OSF/1 and HP-UX.
10743 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10744 ac_file=1 # Number of current file.
10745 ac_beg=1 # First line for current file.
10746 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10749 while $ac_more_lines; do
10750 if test $ac_beg -gt 1; then
10751 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10753 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10755 if test ! -s conftest.s$ac_file; then
10756 ac_more_lines=false
10757 rm -f conftest.s$ac_file
10759 if test -z "$ac_sed_cmds"; then
10760 ac_sed_cmds="sed -f conftest.s$ac_file"
10762 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10764 ac_file=`expr $ac_file + 1`
10766 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10769 if test -z "$ac_sed_cmds"; then
10774 cat >> $CONFIG_STATUS <<EOF
10776 CONFIG_FILES=\${CONFIG_FILES-"\
10777 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10778 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10779 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10780 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10781 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10782 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10783 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10784 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10785 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10786 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10787 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10788 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10789 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10790 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10791 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10792 include/Makefile:build/top.mk:include/Makefile.in \
10793 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10794 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10795 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10796 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10797 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10798 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10799 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10800 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10801 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10802 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10803 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10804 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10805 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10806 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10807 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10808 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10809 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10810 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10811 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10812 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10813 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10814 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10815 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
10816 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
10819 cat >> $CONFIG_STATUS <<\EOF
10820 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10821 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10823 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10824 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10825 *) ac_file_in="${ac_file}.in" ;;
10828 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10830 # Remove last slash and all that follows it. Not all systems have dirname.
10831 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10832 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10833 # The file is in a subdirectory.
10834 test ! -d "$ac_dir" && mkdir "$ac_dir"
10835 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10836 # A "../" for each directory in $ac_dir_suffix.
10837 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10839 ac_dir_suffix= ac_dots=
10842 case "$ac_given_srcdir" in
10844 if test -z "$ac_dots"; then top_srcdir=.
10845 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10846 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10847 *) # Relative path.
10848 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10849 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10852 case "$ac_given_INSTALL" in
10853 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10854 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10857 echo creating "$ac_file"
10859 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10861 *Makefile*) ac_comsub="1i\\
10862 # $configure_input" ;;
10866 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10868 s%@configure_input@%$configure_input%g
10869 s%@srcdir@%$srcdir%g
10870 s%@top_srcdir@%$top_srcdir%g
10871 s%@INSTALL@%$INSTALL%g
10872 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10876 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10877 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10879 # ac_d sets the value in "#define NAME VALUE" lines.
10880 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10881 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10884 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10885 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10886 ac_uB='\([ ]\)%\1#\2define\3'
10889 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10890 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10891 ac_eB='$%\1#\2define\3'
10895 if test "${CONFIG_HEADERS+set}" != set; then
10897 cat >> $CONFIG_STATUS <<EOF
10898 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10900 cat >> $CONFIG_STATUS <<\EOF
10902 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10905 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10906 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10907 *) ac_file_in="${ac_file}.in" ;;
10910 echo creating $ac_file
10912 rm -f conftest.frag conftest.in conftest.out
10913 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10914 cat $ac_file_inputs > conftest.in
10918 # Transform confdefs.h into a sed script conftest.vals that substitutes
10919 # the proper values into config.h.in to produce config.h. And first:
10920 # Protect against being on the right side of a sed subst in config.status.
10921 # Protect against being in an unquoted here document in config.status.
10922 rm -f conftest.vals
10923 cat > conftest.hdr <<\EOF
10926 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10930 sed -n -f conftest.hdr confdefs.h > conftest.vals
10933 # This sed command replaces #undef with comments. This is necessary, for
10934 # example, in the case of _POSIX_SOURCE, which is predefined and required
10935 # on some systems where configure will not decide to define it.
10936 cat >> conftest.vals <<\EOF
10937 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10940 # Break up conftest.vals because some shells have a limit on
10941 # the size of here documents, and old seds have small limits too.
10943 rm -f conftest.tail
10946 ac_lines=`grep -c . conftest.vals`
10947 # grep -c gives empty output for an empty file on some AIX systems.
10948 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10949 # Write a limited-size here document to conftest.frag.
10950 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10951 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10953 sed -f conftest.frag conftest.in > conftest.out
10955 mv conftest.out conftest.in
10956 ' >> $CONFIG_STATUS
10957 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10958 rm -f conftest.vals
10959 mv conftest.tail conftest.vals
10961 rm -f conftest.vals
10963 cat >> $CONFIG_STATUS <<\EOF
10964 rm -f conftest.frag conftest.h
10965 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10966 cat conftest.in >> conftest.h
10968 if cmp -s $ac_file conftest.h 2>/dev/null; then
10969 echo "$ac_file is unchanged"
10972 # Remove last slash and all that follows it. Not all systems have dirname.
10973 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10974 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10975 # The file is in a subdirectory.
10976 test ! -d "$ac_dir" && mkdir "$ac_dir"
10979 mv conftest.h $ac_file
10984 cat >> $CONFIG_STATUS <<EOF
10987 cat >> $CONFIG_STATUS <<\EOF
10990 echo Please \"make depend\" to build dependencies
10994 chmod +x $CONFIG_STATUS
10995 rm -fr confdefs* $ac_clean_files
10996 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1