3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --enable-ldap enable ldap backend (no)"
72 --enable-ldbm enable ldbm backend (yes)"
74 --with-ldbm-api use LDBM API (auto)"
76 --with-ldbm-type use LDBM type (auto)"
78 --enable-passwd enable passwd backend (no)"
80 --enable-perl enable perl backend (no)"
82 --enable-shell enable shell backend (no)"
84 --enable-tcl enable tcl backend (no)"
88 --enable-slurpd enable building slurpd (auto)"
90 Library Generation & Linking Options"
92 --enable-static build static libraries [default=yes]
93 --enable-static=PKGS only build shared libraries if the current package
94 appears as an element in the PKGS list"
96 --enable-shared build shared libraries [default=yes]
97 --enable-shared=PKGS only build shared libraries if the current package
98 appears as an element in the PKGS list"
100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
106 cache_file=./config.cache
115 program_transform_name=s,x,x,
123 bindir='${exec_prefix}/bin'
124 sbindir='${exec_prefix}/sbin'
125 libexecdir='${exec_prefix}/libexec'
126 datadir='${prefix}/share'
127 sysconfdir='${prefix}/etc'
128 sharedstatedir='${prefix}/com'
129 localstatedir='${prefix}/var'
130 libdir='${exec_prefix}/lib'
131 includedir='${prefix}/include'
132 oldincludedir='/usr/include'
133 infodir='${prefix}/info'
134 mandir='${prefix}/man'
136 # Initialize some other variables.
139 SHELL=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev=cache_file ;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev=exec_prefix ;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev=includedir ;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev=libexecdir ;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev=localstatedir ;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev=oldincludedir ;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev=program_prefix ;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev=program_suffix ;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix="$ac_optarg" ;;
359 -program-transform-name | --program-transform-name \
360 | --program-transform-nam | --program-transform-na \
361 | --program-transform-n | --program-transform- \
362 | --program-transform | --program-transfor \
363 | --program-transfo | --program-transf \
364 | --program-trans | --program-tran \
365 | --progr-tra | --program-tr | --program-t)
366 ac_prev=program_transform_name ;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev=sharedstatedir ;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev=sysconfdir ;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.13"
427 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file=build/version
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE; then
569 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
584 ac_cpp='$CPP $CPPFLAGS'
585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
587 cross_compiling=$ac_cv_prog_cc_cross
591 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
592 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
593 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
600 ac_n= ac_c='\c' ac_t=
604 for ac_dir in build $srcdir/build; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 OL_VERSION=`cat $ac_aux_dir/version`
623 if test -z "$OL_VERSION"; then
624 { echo "configure: error: could not determine version" 1>&2; exit 1; }
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
780 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
781 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
786 missing_dir=`cd $ac_aux_dir && pwd`
787 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
788 echo "configure:789: checking for working aclocal" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 ACLOCAL="$missing_dir/missing aclocal"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
801 echo "configure:802: checking for working autoconf" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOCONF="$missing_dir/missing autoconf"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working automake""... $ac_c" 1>&6
814 echo "configure:815: checking for working automake" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (automake --version) < /dev/null > /dev/null 2>&1; then
820 echo "$ac_t""found" 1>&6
822 AUTOMAKE="$missing_dir/missing automake"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
827 echo "configure:828: checking for working autoheader" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
832 AUTOHEADER=autoheader
833 echo "$ac_t""found" 1>&6
835 AUTOHEADER="$missing_dir/missing autoheader"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
840 echo "configure:841: checking for working makeinfo" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
846 echo "$ac_t""found" 1>&6
848 MAKEINFO="$missing_dir/missing makeinfo"
849 echo "$ac_t""missing" 1>&6
854 cat >> confdefs.h <<EOF
855 #define OPENLDAP_PACKAGE "$PACKAGE"
858 cat >> confdefs.h <<EOF
859 #define OPENLDAP_VERSION "$VERSION"
865 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
866 echo "configure:867: checking configure arguments" >&5
871 cat >> confdefs.h <<\EOF
872 #define HAVE_MKVERSION 1
876 ldap_subdir="openldap"
878 # Check whether --with-subdir or --without-subdir was given.
879 if test "${with_subdir+set}" = set; then
880 withval="$with_subdir"
882 if test "$withval" = "no"; then
884 elif test "$withval" != "yes"; then
885 ldap_subdir="$withval"
891 # OpenLDAP --enable-debug
892 # Check whether --enable-debug or --disable-debug was given.
893 if test "${enable_debug+set}" = set; then
894 enableval="$enable_debug"
897 for ol_val in auto yes no ; do
898 if test "$enableval" = "$ol_val" ; then
902 if test "$ol_arg" = "invalid" ; then
903 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
905 ol_enable_debug="$ol_arg"
908 ol_enable_debug="yes"
911 # OpenLDAP --enable-syslog
912 # Check whether --enable-syslog or --disable-syslog was given.
913 if test "${enable_syslog+set}" = set; then
914 enableval="$enable_syslog"
917 for ol_val in auto yes no ; do
918 if test "$enableval" = "$ol_val" ; then
922 if test "$ol_arg" = "invalid" ; then
923 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
925 ol_enable_syslog="$ol_arg"
928 ol_enable_syslog="auto"
930 # end --enable-syslog
931 # OpenLDAP --enable-proctitle
932 # Check whether --enable-proctitle or --disable-proctitle was given.
933 if test "${enable_proctitle+set}" = set; then
934 enableval="$enable_proctitle"
937 for ol_val in auto yes no ; do
938 if test "$enableval" = "$ol_val" ; then
942 if test "$ol_arg" = "invalid" ; then
943 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
945 ol_enable_proctitle="$ol_arg"
948 ol_enable_proctitle="yes"
950 # end --enable-proctitle
951 # OpenLDAP --enable-cache
952 # Check whether --enable-cache or --disable-cache was given.
953 if test "${enable_cache+set}" = set; then
954 enableval="$enable_cache"
957 for ol_val in auto yes no ; do
958 if test "$enableval" = "$ol_val" ; then
962 if test "$ol_arg" = "invalid" ; then
963 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
965 ol_enable_cache="$ol_arg"
968 ol_enable_cache="yes"
971 # OpenLDAP --enable-dns
972 # Check whether --enable-dns or --disable-dns was given.
973 if test "${enable_dns+set}" = set; then
974 enableval="$enable_dns"
977 for ol_val in auto yes no ; do
978 if test "$enableval" = "$ol_val" ; then
982 if test "$ol_arg" = "invalid" ; then
983 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
985 ol_enable_dns="$ol_arg"
991 # OpenLDAP --enable-referrals
992 # Check whether --enable-referrals or --disable-referrals was given.
993 if test "${enable_referrals+set}" = set; then
994 enableval="$enable_referrals"
997 for ol_val in auto yes no ; do
998 if test "$enableval" = "$ol_val" ; then
1002 if test "$ol_arg" = "invalid" ; then
1003 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1005 ol_enable_referrals="$ol_arg"
1008 ol_enable_referrals="yes"
1010 # end --enable-referrals
1011 # OpenLDAP --enable-cldap
1012 # Check whether --enable-cldap or --disable-cldap was given.
1013 if test "${enable_cldap+set}" = set; then
1014 enableval="$enable_cldap"
1017 for ol_val in auto yes no ; do
1018 if test "$enableval" = "$ol_val" ; then
1022 if test "$ol_arg" = "invalid" ; then
1023 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1025 ol_enable_cldap="$ol_arg"
1028 ol_enable_cldap="no"
1030 # end --enable-cldap
1031 # OpenLDAP --enable-x_compile
1032 # Check whether --enable-x_compile or --disable-x_compile was given.
1033 if test "${enable_x_compile+set}" = set; then
1034 enableval="$enable_x_compile"
1037 for ol_val in yes no ; do
1038 if test "$enableval" = "$ol_val" ; then
1042 if test "$ol_arg" = "invalid" ; then
1043 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1045 ol_enable_x_compile="$ol_arg"
1048 ol_enable_x_compile="no"
1050 # end --enable-x_compile
1052 # OpenLDAP --enable-dmalloc
1053 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1054 if test "${enable_dmalloc+set}" = set; then
1055 enableval="$enable_dmalloc"
1058 for ol_val in auto yes no ; do
1059 if test "$enableval" = "$ol_val" ; then
1063 if test "$ol_arg" = "invalid" ; then
1064 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1066 ol_enable_dmalloc="$ol_arg"
1069 ol_enable_dmalloc="no"
1071 # end --enable-dmalloc
1073 # OpenLDAP --with-kerberos
1074 # Check whether --with-kerberos or --without-kerberos was given.
1075 if test "${with_kerberos+set}" = set; then
1076 withval="$with_kerberos"
1079 for ol_val in auto k5 k4 afs yes no ; do
1080 if test "$withval" = "$ol_val" ; then
1084 if test "$ol_arg" = "invalid" ; then
1085 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1087 ol_with_kerberos="$ol_arg"
1090 ol_with_kerberos="auto"
1092 # end --with-kerberos
1094 # OpenLDAP --with-readline
1095 # Check whether --with-readline or --without-readline was given.
1096 if test "${with_readline+set}" = set; then
1097 withval="$with_readline"
1100 for ol_val in auto yes no ; do
1101 if test "$withval" = "$ol_val" ; then
1105 if test "$ol_arg" = "invalid" ; then
1106 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1108 ol_with_readline="$ol_arg"
1111 ol_with_readline="auto"
1113 # end --with-readline
1115 # OpenLDAP --with-threads
1116 # Check whether --with-threads or --without-threads was given.
1117 if test "${with_threads+set}" = set; then
1118 withval="$with_threads"
1121 for ol_val in auto posix mach lwp yes no manual ; do
1122 if test "$withval" = "$ol_val" ; then
1126 if test "$ol_arg" = "invalid" ; then
1127 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1129 ol_with_threads="$ol_arg"
1132 ol_with_threads="auto"
1134 # end --with-threads
1136 # OpenLDAP --with-tls
1137 # Check whether --with-tls or --without-tls was given.
1138 if test "${with_tls+set}" = set; then
1142 for ol_val in auto ssleay openssl yes no ; do
1143 if test "$withval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1150 ol_with_tls="$ol_arg"
1157 # OpenLDAP --with-yielding_select
1158 # Check whether --with-yielding_select or --without-yielding_select was given.
1159 if test "${with_yielding_select+set}" = set; then
1160 withval="$with_yielding_select"
1163 for ol_val in auto yes no manual ; do
1164 if test "$withval" = "$ol_val" ; then
1168 if test "$ol_arg" = "invalid" ; then
1169 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1171 ol_with_yielding_select="$ol_arg"
1174 ol_with_yielding_select="auto"
1176 # end --with-yielding_select
1180 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1181 if test "${with_xxldapdoptions+set}" = set; then
1182 withval="$with_xxldapdoptions"
1186 # OpenLDAP --enable-ldapd
1187 # Check whether --enable-ldapd or --disable-ldapd was given.
1188 if test "${enable_ldapd+set}" = set; then
1189 enableval="$enable_ldapd"
1192 for ol_val in auto yes no ; do
1193 if test "$enableval" = "$ol_val" ; then
1197 if test "$ol_arg" = "invalid" ; then
1198 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1200 ol_enable_ldapd="$ol_arg"
1203 ol_enable_ldapd="no"
1205 # end --enable-ldapd
1207 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1208 if test "${with_xxslapdoptions+set}" = set; then
1209 withval="$with_xxslapdoptions"
1213 # OpenLDAP --enable-slapd
1214 # Check whether --enable-slapd or --disable-slapd was given.
1215 if test "${enable_slapd+set}" = set; then
1216 enableval="$enable_slapd"
1219 for ol_val in auto yes no ; do
1220 if test "$enableval" = "$ol_val" ; then
1224 if test "$ol_arg" = "invalid" ; then
1225 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1227 ol_enable_slapd="$ol_arg"
1230 ol_enable_slapd="yes"
1232 # end --enable-slapd
1233 # OpenLDAP --enable-aclgroups
1234 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1235 if test "${enable_aclgroups+set}" = set; then
1236 enableval="$enable_aclgroups"
1239 for ol_val in auto yes no ; do
1240 if test "$enableval" = "$ol_val" ; then
1244 if test "$ol_arg" = "invalid" ; then
1245 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1247 ol_enable_aclgroups="$ol_arg"
1250 ol_enable_aclgroups="auto"
1252 # end --enable-aclgroups
1253 # OpenLDAP --enable-cleartext
1254 # Check whether --enable-cleartext or --disable-cleartext was given.
1255 if test "${enable_cleartext+set}" = set; then
1256 enableval="$enable_cleartext"
1259 for ol_val in auto yes no ; do
1260 if test "$enableval" = "$ol_val" ; then
1264 if test "$ol_arg" = "invalid" ; then
1265 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1267 ol_enable_cleartext="$ol_arg"
1270 ol_enable_cleartext="yes"
1272 # end --enable-cleartext
1273 # OpenLDAP --enable-crypt
1274 # Check whether --enable-crypt or --disable-crypt was given.
1275 if test "${enable_crypt+set}" = set; then
1276 enableval="$enable_crypt"
1279 for ol_val in auto yes no ; do
1280 if test "$enableval" = "$ol_val" ; then
1284 if test "$ol_arg" = "invalid" ; then
1285 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1287 ol_enable_crypt="$ol_arg"
1290 ol_enable_crypt="auto"
1292 # end --enable-crypt
1293 # OpenLDAP --enable-modules
1294 # Check whether --enable-modules or --disable-modules was given.
1295 if test "${enable_modules+set}" = set; then
1296 enableval="$enable_modules"
1299 for ol_val in auto yes no ; do
1300 if test "$enableval" = "$ol_val" ; then
1304 if test "$ol_arg" = "invalid" ; then
1305 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1307 ol_enable_modules="$ol_arg"
1310 ol_enable_modules="no"
1312 # end --enable-modules
1313 # OpenLDAP --enable-phonetic
1314 # Check whether --enable-phonetic or --disable-phonetic was given.
1315 if test "${enable_phonetic+set}" = set; then
1316 enableval="$enable_phonetic"
1319 for ol_val in auto yes no ; do
1320 if test "$enableval" = "$ol_val" ; then
1324 if test "$ol_arg" = "invalid" ; then
1325 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1327 ol_enable_phonetic="$ol_arg"
1330 ol_enable_phonetic="no"
1332 # end --enable-phonetic
1333 # OpenLDAP --enable-rlookups
1334 # Check whether --enable-rlookups or --disable-rlookups was given.
1335 if test "${enable_rlookups+set}" = set; then
1336 enableval="$enable_rlookups"
1339 for ol_val in auto yes no ; do
1340 if test "$enableval" = "$ol_val" ; then
1344 if test "$ol_arg" = "invalid" ; then
1345 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1347 ol_enable_rlookups="$ol_arg"
1350 ol_enable_rlookups="auto"
1352 # end --enable-rlookups
1353 # OpenLDAP --enable-wrappers
1354 # Check whether --enable-wrappers or --disable-wrappers was given.
1355 if test "${enable_wrappers+set}" = set; then
1356 enableval="$enable_wrappers"
1359 for ol_val in auto yes no ; do
1360 if test "$enableval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1367 ol_enable_wrappers="$ol_arg"
1370 ol_enable_wrappers="no"
1372 # end --enable-wrappers
1374 # OpenLDAP --enable-bdb2
1375 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1376 if test "${enable_bdb2+set}" = set; then
1377 enableval="$enable_bdb2"
1380 for ol_val in auto yes no ; do
1381 if test "$enableval" = "$ol_val" ; then
1385 if test "$ol_arg" = "invalid" ; then
1386 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1388 ol_enable_bdb2="$ol_arg"
1394 # OpenLDAP --enable-ldap
1395 # Check whether --enable-ldap or --disable-ldap was given.
1396 if test "${enable_ldap+set}" = set; then
1397 enableval="$enable_ldap"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1408 ol_enable_ldap="$ol_arg"
1414 # OpenLDAP --enable-ldbm
1415 # Check whether --enable-ldbm or --disable-ldbm was given.
1416 if test "${enable_ldbm+set}" = set; then
1417 enableval="$enable_ldbm"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1428 ol_enable_ldbm="$ol_arg"
1431 ol_enable_ldbm="yes"
1434 # OpenLDAP --with-ldbm_api
1435 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1436 if test "${with_ldbm_api+set}" = set; then
1437 withval="$with_ldbm_api"
1440 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1441 if test "$withval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1448 ol_with_ldbm_api="$ol_arg"
1451 ol_with_ldbm_api="auto"
1453 # end --with-ldbm_api
1455 # OpenLDAP --with-ldbm_type
1456 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1457 if test "${with_ldbm_type+set}" = set; then
1458 withval="$with_ldbm_type"
1461 for ol_val in auto btree hash ; do
1462 if test "$withval" = "$ol_val" ; then
1466 if test "$ol_arg" = "invalid" ; then
1467 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1469 ol_with_ldbm_type="$ol_arg"
1472 ol_with_ldbm_type="auto"
1474 # end --with-ldbm_type
1477 # OpenLDAP --enable-passwd
1478 # Check whether --enable-passwd or --disable-passwd was given.
1479 if test "${enable_passwd+set}" = set; then
1480 enableval="$enable_passwd"
1483 for ol_val in auto yes no ; do
1484 if test "$enableval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1491 ol_enable_passwd="$ol_arg"
1494 ol_enable_passwd="no"
1496 # end --enable-passwd
1497 # OpenLDAP --enable-perl
1498 # Check whether --enable-perl or --disable-perl was given.
1499 if test "${enable_perl+set}" = set; then
1500 enableval="$enable_perl"
1503 for ol_val in auto yes no ; do
1504 if test "$enableval" = "$ol_val" ; then
1508 if test "$ol_arg" = "invalid" ; then
1509 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1511 ol_enable_perl="$ol_arg"
1517 # OpenLDAP --enable-shell
1518 # Check whether --enable-shell or --disable-shell was given.
1519 if test "${enable_shell+set}" = set; then
1520 enableval="$enable_shell"
1523 for ol_val in auto yes no ; do
1524 if test "$enableval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1531 ol_enable_shell="$ol_arg"
1534 ol_enable_shell="no"
1536 # end --enable-shell
1537 # OpenLDAP --enable-tcl
1538 # Check whether --enable-tcl or --disable-tcl was given.
1539 if test "${enable_tcl+set}" = set; then
1540 enableval="$enable_tcl"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1551 ol_enable_tcl="$ol_arg"
1558 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1559 if test "${with_xxslurpdoptions+set}" = set; then
1560 withval="$with_xxslurpdoptions"
1564 # OpenLDAP --enable-slurpd
1565 # Check whether --enable-slurpd or --disable-slurpd was given.
1566 if test "${enable_slurpd+set}" = set; then
1567 enableval="$enable_slurpd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1578 ol_enable_slurpd="$ol_arg"
1581 ol_enable_slurpd="auto"
1583 # end --enable-slurpd
1585 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1586 if test "${with_xxliboptions+set}" = set; then
1587 withval="$with_xxliboptions"
1591 # Check whether --enable-static or --disable-static was given.
1592 if test "${enable_static+set}" = set; then
1593 enableval="$enable_static"
1594 p=${PACKAGE-default}
1595 case "$enableval" in
1596 yes) enable_static=yes ;;
1597 no) enable_static=no ;;
1600 # Look at the argument we got. We use all the common list separators.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1602 for pkg in $enableval; do
1603 if test "X$pkg" = "X$p"; then
1614 # Check whether --enable-shared or --disable-shared was given.
1615 if test "${enable_shared+set}" = set; then
1616 enableval="$enable_shared"
1617 p=${PACKAGE-default}
1618 case "$enableval" in
1619 yes) enable_shared=yes ;;
1620 no) enable_shared=no ;;
1623 # Look at the argument we got. We use all the common list separators.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1625 for pkg in $enableval; do
1626 if test "X$pkg" = "X$p"; then
1639 if test $ol_enable_dns = yes ; then
1640 if test $ol_enable_referrals = no ; then
1641 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1643 if test $ol_enable_referrals = auto ; then
1644 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1645 ol_enable_referrals=yes
1649 if test $ol_enable_slapd = no ; then
1650 if test $ol_enable_bdb2 = yes ; then
1651 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1653 if test $ol_enable_ldap = yes ; then
1654 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1656 if test $ol_enable_ldbm = yes ; then
1657 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1659 if test $ol_enable_passwd = yes ; then
1660 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1662 if test $ol_enable_perl = yes ; then
1663 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1665 if test $ol_enable_shell = yes ; then
1666 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1668 if test $ol_enable_tcl = yes ; then
1669 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1671 if test $ol_enable_aclgroups = yes ; then
1672 echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
1674 if test $ol_enable_modules = yes ; then
1675 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1677 if test $ol_enable_wrappers = yes ; then
1678 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1680 if test $ol_enable_phonetic = yes ; then
1681 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1683 if test $ol_enable_rlookups = yes ; then
1684 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1686 if test $ol_with_ldbm_api != auto ; then
1687 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
1689 if test $ol_with_ldbm_type != auto ; then
1690 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
1692 if test $ol_enable_slurpd = yes ; then
1693 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1696 # force settings to no
1705 ol_enable_aclgroups=no
1706 ol_enable_modules=no
1707 ol_enable_phonetic=no
1708 ol_enable_rlookups=no
1709 ol_enable_wrappers=no
1712 ol_with_ldbm_type=no
1716 elif test $ol_enable_ldbm = no ; then
1718 if test $ol_with_ldbm_api != auto ; then
1719 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
1722 if test $ol_with_ldbm_type != auto ; then
1723 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
1726 if test $ol_enable_bdb2 = yes ; then
1727 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1730 if test $ol_enable_modules != yes -a \
1731 $ol_enable_ldap = no -a \
1732 $ol_enable_passwd = no -a \
1733 $ol_enable_perl = no -a \
1734 $ol_enable_shell = no -a \
1735 $ol_enable_tcl = no ; then
1736 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1740 ol_with_ldbm_type=no
1742 elif test $ol_enable_bdb2 = yes ; then
1744 if test $ol_with_ldbm_api != auto -a \
1745 $ol_with_ldbm_api != db2 ; then
1746 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1749 ol_with_ldbm_api=db2
1753 if test $ol_enable_bdb2 != no ; then
1754 if test $ol_with_ldbm_api != auto -a \
1755 $ol_with_ldbm_api != db2 ; then
1756 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1761 if test $ol_with_ldbm_api = gdbm -a \
1762 $ol_with_ldbm_type = btree ; then
1763 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1765 if test $ol_with_ldbm_api = mdbm -a \
1766 $ol_with_ldbm_type = btree ; then
1767 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1769 if test $ol_with_ldbm_api = ndbm -a \
1770 $ol_with_ldbm_type = btree ; then
1771 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1775 if test $ol_enable_slurpd = yes ; then
1776 if test $ol_with_threads = no ; then
1777 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1781 echo "$ac_t""done" 1>&6
1806 SLAPD_MODULES_LDFLAGS=
1807 SLAPD_MODULES_CPPFLAGS=
1810 SLAPD_PERL_CPPFLAGS=
1822 # Make sure we can run config.sub.
1823 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1824 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1827 echo $ac_n "checking host system type""... $ac_c" 1>&6
1828 echo "configure:1829: checking host system type" >&5
1831 case "$host_alias" in
1835 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1836 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1838 *) host_alias=$nonopt ;;
1842 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1843 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1844 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1845 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1846 echo "$ac_t""$host" 1>&6
1848 # Extract the first word of "ranlib", so it can be a program name with args.
1849 set dummy ranlib; ac_word=$2
1850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1851 echo "configure:1852: checking for $ac_word" >&5
1852 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 if test -n "$RANLIB"; then
1856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1860 for ac_dir in $ac_dummy; do
1861 test -z "$ac_dir" && ac_dir=.
1862 if test -f $ac_dir/$ac_word; then
1863 ac_cv_prog_RANLIB="ranlib"
1868 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1871 RANLIB="$ac_cv_prog_RANLIB"
1872 if test -n "$RANLIB"; then
1873 echo "$ac_t""$RANLIB" 1>&6
1875 echo "$ac_t""no" 1>&6
1878 # Extract the first word of "gcc", so it can be a program name with args.
1879 set dummy gcc; ac_word=$2
1880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_word" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1890 for ac_dir in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir=.
1892 if test -f $ac_dir/$ac_word; then
1901 if test -n "$CC"; then
1902 echo "$ac_t""$CC" 1>&6
1904 echo "$ac_t""no" 1>&6
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1921 for ac_dir in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir=.
1923 if test -f $ac_dir/$ac_word; then
1924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1925 ac_prog_rejected=yes
1933 if test $ac_prog_rejected = yes; then
1934 # We found a bogon in the path, so make sure we never use it.
1935 set dummy $ac_cv_prog_CC
1937 if test $# -gt 0; then
1938 # We chose a different compiler from the bogus one.
1939 # However, it has the same basename, so the bogon will be chosen
1940 # first if we set CC to just the basename; use the full file name.
1942 set dummy "$ac_dir/$ac_word" "$@"
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1956 if test -z "$CC"; then
1957 case "`uname -s`" in
1959 # Extract the first word of "cl", so it can be a program name with args.
1960 set dummy cl; ac_word=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1982 if test -n "$CC"; then
1983 echo "$ac_t""$CC" 1>&6
1985 echo "$ac_t""no" 1>&6
1990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2001 cross_compiling=$ac_cv_prog_cc_cross
2003 cat > conftest.$ac_ext << EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2011 ac_cv_prog_cc_works=yes
2012 # If we can't run a trivial program, we are probably using a cross compiler.
2013 if (./conftest; exit) 2>/dev/null; then
2014 ac_cv_prog_cc_cross=no
2016 ac_cv_prog_cc_cross=yes
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 ac_cv_prog_cc_works=no
2025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2029 cross_compiling=$ac_cv_prog_cc_cross
2031 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2032 if test $ac_cv_prog_cc_works = no; then
2033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2035 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2037 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2038 cross_compiling=$ac_cv_prog_cc_cross
2040 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2041 echo "configure:2042: checking whether we are using GNU C" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.c <<EOF
2050 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2057 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2059 if test $ac_cv_prog_gcc = yes; then
2065 ac_test_CFLAGS="${CFLAGS+set}"
2066 ac_save_CFLAGS="$CFLAGS"
2068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2069 echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5
2070 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 echo 'void f(){}' > conftest.c
2074 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2083 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS="$ac_save_CFLAGS"
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2093 if test "$GCC" = yes; then
2100 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2101 if test "${with_gnu_ld+set}" = set; then
2102 withval="$with_gnu_ld"
2103 test "$withval" = no || with_gnu_ld=yes
2110 if test "$ac_cv_prog_gcc" = yes; then
2111 # Check if gcc -print-prog-name=ld gives a path.
2112 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2113 echo "configure:2114: checking for ld used by GCC" >&5
2114 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2116 # Accept absolute paths.
2118 test -z "$LD" && LD="$ac_prog"
2121 # If it fails, then pretend we aren't using GCC.
2125 # If it is relative, then search for the first ld in PATH.
2129 elif test "$with_gnu_ld" = yes; then
2130 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2131 echo "configure:2132: checking for GNU ld" >&5
2133 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2134 echo "configure:2135: checking for non-GNU ld" >&5
2136 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 if test -z "$LD"; then
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2141 for ac_dir in $PATH; do
2142 test -z "$ac_dir" && ac_dir=.
2143 if test -f "$ac_dir/$ac_prog"; then
2144 ac_cv_path_LD="$ac_dir/$ac_prog"
2145 # Check to see if the program is GNU ld. I'd rather use --version,
2146 # but apparently some GNU ld's only accept -v.
2147 # Break only if it was the GNU/non-GNU ld that we prefer.
2148 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2149 test "$with_gnu_ld" != no && break
2151 test "$with_gnu_ld" != yes && break
2157 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2162 if test -n "$LD"; then
2163 echo "$ac_t""$LD" 1>&6
2165 echo "$ac_t""no" 1>&6
2167 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2169 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2170 echo "configure:2171: checking if the linker ($LD) is GNU ld" >&5
2171 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2175 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2176 ac_cv_prog_gnu_ld=yes
2178 ac_cv_prog_gnu_ld=no
2182 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2185 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2186 echo "configure:2187: checking for BSD-compatible nm" >&5
2187 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2192 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2196 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2197 test -z "$ac_dir" && ac_dir=.
2198 if test -f $ac_dir/nm; then
2199 # Check to see if the nm accepts a BSD-compat flag.
2200 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2201 # nm: unknown option "B" ignored
2202 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2203 ac_cv_path_NM="$ac_dir/nm -B"
2204 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2205 ac_cv_path_NM="$ac_dir/nm -p"
2207 ac_cv_path_NM="$ac_dir/nm"
2213 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2219 echo "$ac_t""$NM" 1>&6
2222 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2223 echo "configure:2224: checking whether ln -s works" >&5
2224 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2228 if ln -s X conftestdata 2>/dev/null
2231 ac_cv_prog_LN_S="ln -s"
2236 LN_S="$ac_cv_prog_LN_S"
2237 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2238 echo "$ac_t""yes" 1>&6
2240 echo "$ac_t""no" 1>&6
2243 # Always use our own libtool.
2244 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2246 # Check for any special flags to pass to ltconfig.
2248 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2249 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2250 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2251 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2252 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2254 # Some flags need to be propagated to the compiler or linker for good
2258 # Find out which ABI we are using.
2259 echo '#line 2260 "configure"' > conftest.$ac_ext
2260 if { (eval echo configure:2261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2261 case "`/usr/bin/file conftest.o`" in
2277 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2278 CFLAGS="$CFLAGS -belf"
2282 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2283 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2284 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2285 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2286 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2287 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2290 for ac_prog in mawk gawk nawk awk
2292 # Extract the first word of "$ac_prog", so it can be a program name with args.
2293 set dummy $ac_prog; ac_word=$2
2294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2295 echo "configure:2296: checking for $ac_word" >&5
2296 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 if test -n "$AWK"; then
2300 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2304 for ac_dir in $ac_dummy; do
2305 test -z "$ac_dir" && ac_dir=.
2306 if test -f $ac_dir/$ac_word; then
2307 ac_cv_prog_AWK="$ac_prog"
2314 AWK="$ac_cv_prog_AWK"
2315 if test -n "$AWK"; then
2316 echo "$ac_t""$AWK" 1>&6
2318 echo "$ac_t""no" 1>&6
2321 test -n "$AWK" && break
2324 # test for ln hardlink support
2325 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2326 echo "configure:2327: checking whether ln works" >&5
2327 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 rm -f conftest.src conftest.dst
2331 echo "conftest" > conftest.src
2332 if ln conftest.src conftest.dst 2>/dev/null
2334 ol_cv_prog_LN_H="ln"
2336 ol_cv_prog_LN_H="cp"
2338 rm -f conftest.src conftest.dst
2341 LN_H="$ol_cv_prog_LN_H"
2342 if test "$ol_cv_prog_LN_H" = "ln"; then
2343 echo "$ac_t""yes" 1>&6
2345 echo "$ac_t""no" 1>&6
2348 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2349 echo "configure:2350: checking whether ln -s works" >&5
2350 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2354 if ln -s X conftestdata 2>/dev/null
2357 ac_cv_prog_LN_S="ln -s"
2362 LN_S="$ac_cv_prog_LN_S"
2363 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2364 echo "$ac_t""yes" 1>&6
2366 echo "$ac_t""no" 1>&6
2370 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2374 # Extract the first word of "sendmail", so it can be a program name with args.
2375 set dummy sendmail; ac_word=$2
2376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_word" >&5
2378 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2383 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2386 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2390 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2391 for ac_dir in $ac_dummy; do
2392 test -z "$ac_dir" && ac_dir=.
2393 if test -f $ac_dir/$ac_word; then
2394 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2399 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2403 SENDMAIL="$ac_cv_path_SENDMAIL"
2404 if test -n "$SENDMAIL"; then
2405 echo "$ac_t""$SENDMAIL" 1>&6
2407 echo "$ac_t""no" 1>&6
2410 # Extract the first word of "vi", so it can be a program name with args.
2411 set dummy vi; ac_word=$2
2412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_word" >&5
2414 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2419 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2422 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2426 ac_dummy="$PATH:/usr/ucb"
2427 for ac_dir in $ac_dummy; do
2428 test -z "$ac_dir" && ac_dir=.
2429 if test -f $ac_dir/$ac_word; then
2430 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2435 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2439 EDITOR="$ac_cv_path_EDITOR"
2440 if test -n "$EDITOR"; then
2441 echo "$ac_t""$EDITOR" 1>&6
2443 echo "$ac_t""no" 1>&6
2446 # Extract the first word of "finger", so it can be a program name with args.
2447 set dummy finger; ac_word=$2
2448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_word" >&5
2450 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2455 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2458 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2462 ac_dummy="$PATH:/usr/ucb"
2463 for ac_dir in $ac_dummy; do
2464 test -z "$ac_dir" && ac_dir=.
2465 if test -f $ac_dir/$ac_word; then
2466 ac_cv_path_FINGER="$ac_dir/$ac_word"
2471 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2475 FINGER="$ac_cv_path_FINGER"
2476 if test -n "$FINGER"; then
2477 echo "$ac_t""$FINGER" 1>&6
2479 echo "$ac_t""no" 1>&6
2484 if test $ol_enable_modules != no ; then
2485 # Extract the first word of "glib-config", so it can be a program name with args.
2486 set dummy glib-config; ac_word=$2
2487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2488 echo "configure:2489: checking for $ac_word" >&5
2489 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 case "$GLIBCONFIG" in
2494 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2497 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2502 for ac_dir in $ac_dummy; do
2503 test -z "$ac_dir" && ac_dir=.
2504 if test -f $ac_dir/$ac_word; then
2505 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2513 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2514 if test -n "$GLIBCONFIG"; then
2515 echo "$ac_t""$GLIBCONFIG" 1>&6
2517 echo "$ac_t""no" 1>&6
2521 if test "no$GLIBCONFIG" = "no" ; then
2522 if test $ol_enable_modules = yes ; then
2523 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2527 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2528 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2529 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2536 if test $ol_enable_perl != no ; then
2537 # Extract the first word of "perl", so it can be a program name with args.
2538 set dummy perl; ac_word=$2
2539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_word" >&5
2541 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2546 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2549 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2554 for ac_dir in $ac_dummy; do
2555 test -z "$ac_dir" && ac_dir=.
2556 if test -f $ac_dir/$ac_word; then
2557 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2562 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2566 PERLBIN="$ac_cv_path_PERLBIN"
2567 if test -n "$PERLBIN"; then
2568 echo "$ac_t""$PERLBIN" 1>&6
2570 echo "$ac_t""no" 1>&6
2574 if test "no$PERLBIN" = "no" ; then
2575 if test $ol_enable_perl = yes ; then
2576 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2580 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2581 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2587 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2588 echo "configure:2589: checking how to run the C preprocessor" >&5
2589 # On Suns, sometimes $CPP names a directory.
2590 if test -n "$CPP" && test -d "$CPP"; then
2593 if test -z "$CPP"; then
2594 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 # This must be in double quotes, not single quotes, because CPP may get
2598 # substituted into the Makefile and "${CC-cc}" will confuse make.
2600 # On the NeXT, cc -E runs the code through the compiler's parser,
2601 # not just through cpp.
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2609 { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2611 if test -z "$ac_err"; then
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 CPP="${CC-cc} -E -traditional-cpp"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626 { (eval echo configure:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2628 if test -z "$ac_err"; then
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2635 CPP="${CC-cc} -nologo -E"
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2643 { (eval echo configure:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2645 if test -z "$ac_err"; then
2649 echo "configure: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2659 ac_cv_prog_CPP="$CPP"
2661 CPP="$ac_cv_prog_CPP"
2663 ac_cv_prog_CPP="$CPP"
2665 echo "$ac_t""$CPP" 1>&6
2668 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2669 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2671 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2672 echo "configure: warning: programs compiled here do run here..." 1>&2
2673 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2675 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2676 echo "configure: warning: programs compiled here do not run here..." 1>&2
2677 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2680 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2681 echo "configure:2682: checking for AIX" >&5
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2691 egrep "yes" >/dev/null 2>&1; then
2693 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2694 #define _ALL_SOURCE 1
2699 echo "$ac_t""no" 1>&6
2704 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2705 echo "configure:2706: checking for POSIXized ISC" >&5
2706 if test -d /etc/conf/kconfig.d &&
2707 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2709 echo "$ac_t""yes" 1>&6
2710 ISC=yes # If later tests want to check for ISC.
2711 cat >> confdefs.h <<\EOF
2712 #define _POSIX_SOURCE 1
2715 if test "$GCC" = yes; then
2721 echo "$ac_t""no" 1>&6
2725 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2726 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2727 echo "configure:2728: checking for minix/config.h" >&5
2728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2734 #include <minix/config.h>
2736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2737 { (eval echo configure:2738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2739 if test -z "$ac_err"; then
2741 eval "ac_cv_header_$ac_safe=yes"
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2747 eval "ac_cv_header_$ac_safe=no"
2751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2755 echo "$ac_t""no" 1>&6
2759 if test "$MINIX" = yes; then
2760 cat >> confdefs.h <<\EOF
2761 #define _POSIX_SOURCE 1
2764 cat >> confdefs.h <<\EOF
2765 #define _POSIX_1_SOURCE 2
2768 cat >> confdefs.h <<\EOF
2775 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2776 echo "configure:2777: checking for be_app in -lbe" >&5
2777 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 ac_save_LIBS="$LIBS"
2782 LIBS="-lbe -lroot -lnet $LIBS"
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2786 /* Override any gcc2 internal prototype to avoid an error. */
2787 /* We use char because int might match the return type of a gcc2
2788 builtin and then its argument prototype would still apply. */
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2797 eval "ac_cv_lib_$ac_lib_var=yes"
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2802 eval "ac_cv_lib_$ac_lib_var=no"
2805 LIBS="$ac_save_LIBS"
2808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 LIBS="$LIBS -lbe -lroot -lnet"
2812 echo "$ac_t""no" 1>&6
2817 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2818 echo "configure:2819: checking for Cygwin environment" >&5
2819 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2829 #define __CYGWIN__ __CYGWIN32__
2834 if { (eval echo configure:2835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2838 echo "configure: failed program was:" >&5
2839 cat conftest.$ac_ext >&5
2847 echo "$ac_t""$ac_cv_cygwin" 1>&6
2849 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2850 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2851 echo "configure:2852: checking for mingw32 environment" >&5
2852 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2863 if { (eval echo configure:2864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2876 echo "$ac_t""$ac_cv_mingw32" 1>&6
2878 test "$ac_cv_mingw32" = yes && MINGW32=yes
2881 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2882 echo "configure:2883: checking for executable suffix" >&5
2883 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2890 echo 'int main () { return 0; }' > conftest.$ac_ext
2892 if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2893 for file in conftest.*; do
2895 *.c | *.o | *.obj) ;;
2896 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2900 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2903 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2908 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2909 echo "$ac_t""${ac_cv_exeext}" 1>&6
2912 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2913 echo "configure:2914: checking for object suffix" >&5
2914 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2918 echo 'int i = 1;' > conftest.$ac_ext
2919 if { (eval echo configure:2920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2920 for ac_file in conftest.*; do
2923 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2927 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2932 echo "$ac_t""$ac_cv_objext" 1>&6
2933 OBJEXT=$ac_cv_objext
2934 ac_objext=$ac_cv_objext
2937 cat >> confdefs.h <<EOF
2938 #define EXEEXT "${EXEEXT}"
2945 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2946 echo "configure:2947: checking for ${CC-cc} option to accept ANSI C" >&5
2947 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 am_cv_prog_cc_stdc=no
2952 # Don't try gcc -ansi; that turns off useful extensions and
2953 # breaks some systems' header files.
2954 # AIX -qlanglvl=ansi
2955 # Ultrix and OSF/1 -std1
2956 # HP-UX -Aa -D_HPUX_SOURCE
2957 # SVR4 -Xc -D__EXTENSIONS__
2958 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2960 CC="$ac_save_CC $ac_arg"
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2966 #include <sys/types.h>
2967 #include <sys/stat.h>
2968 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2969 struct buf { int x; };
2970 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2971 static char *e (p, i)
2977 static char *f (char * (*g) (char **, int), char **p, ...)
2982 s = g (p, va_arg (v,int));
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2999 if { (eval echo configure:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 am_cv_prog_cc_stdc="$ac_arg"; break
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3012 if test -z "$am_cv_prog_cc_stdc"; then
3013 echo "$ac_t""none needed" 1>&6
3015 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3017 case "x$am_cv_prog_cc_stdc" in
3019 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3022 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3023 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3029 echo $ac_n "checking for socket""... $ac_c" 1>&6
3030 echo "configure:3031: checking for socket" >&5
3031 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char socket(); below. */
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 /* We use char because int might match the return type of a gcc2
3042 builtin and then its argument prototype would still apply. */
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_socket) || defined (__stub___socket)
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060 eval "ac_cv_func_socket=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 eval "ac_cv_func_socket=no"
3070 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3074 echo "$ac_t""no" 1>&6
3076 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3077 echo "configure:3078: checking for main in -lsocket" >&5
3078 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 ac_save_LIBS="$LIBS"
3083 LIBS="-lsocket $LIBS"
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 eval "ac_cv_lib_$ac_lib_var=yes"
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 eval "ac_cv_lib_$ac_lib_var=no"
3102 LIBS="$ac_save_LIBS"
3105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3108 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3109 cat >> confdefs.h <<EOF
3110 #define $ac_tr_lib 1
3113 LIBS="-lsocket $LIBS"
3116 echo "$ac_t""no" 1>&6
3119 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3120 echo "configure:3121: checking for main in -lnet" >&5
3121 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 ac_save_LIBS="$LIBS"
3127 cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3135 if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3137 eval "ac_cv_lib_$ac_lib_var=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 eval "ac_cv_lib_$ac_lib_var=no"
3145 LIBS="$ac_save_LIBS"
3148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3152 cat >> confdefs.h <<EOF
3153 #define $ac_tr_lib 1
3159 echo "$ac_t""no" 1>&6
3162 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3163 echo "configure:3164: checking for socket in -lnet" >&5
3164 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 ac_save_LIBS="$LIBS"
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3173 /* Override any gcc2 internal prototype to avoid an error. */
3174 /* We use char because int might match the return type of a gcc2
3175 builtin and then its argument prototype would still apply. */
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3184 eval "ac_cv_lib_$ac_lib_var=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 eval "ac_cv_lib_$ac_lib_var=no"
3192 LIBS="$ac_save_LIBS"
3195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3196 echo "$ac_t""yes" 1>&6
3197 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3199 cat >> confdefs.h <<EOF
3200 #define $ac_tr_lib 1
3206 echo "$ac_t""no" 1>&6
3209 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3210 echo "configure:3211: checking for main in -lnsl_s" >&5
3211 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 ac_save_LIBS="$LIBS"
3216 LIBS="-lnsl_s $LIBS"
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 eval "ac_cv_lib_$ac_lib_var=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_lib_$ac_lib_var=no"
3235 LIBS="$ac_save_LIBS"
3238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3242 cat >> confdefs.h <<EOF
3243 #define $ac_tr_lib 1
3246 LIBS="-lnsl_s $LIBS"
3249 echo "$ac_t""no" 1>&6
3252 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3253 echo "configure:3254: checking for main in -lnsl" >&5
3254 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 ac_save_LIBS="$LIBS"
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 eval "ac_cv_lib_$ac_lib_var=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 eval "ac_cv_lib_$ac_lib_var=no"
3278 LIBS="$ac_save_LIBS"
3281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3285 cat >> confdefs.h <<EOF
3286 #define $ac_tr_lib 1
3292 echo "$ac_t""no" 1>&6
3295 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3296 echo "configure:3297: checking for socket in -linet" >&5
3297 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 ac_save_LIBS="$LIBS"
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3315 if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3317 eval "ac_cv_lib_$ac_lib_var=yes"
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3322 eval "ac_cv_lib_$ac_lib_var=no"
3325 LIBS="$ac_save_LIBS"
3328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3329 echo "$ac_t""yes" 1>&6
3330 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3332 cat >> confdefs.h <<EOF
3333 #define $ac_tr_lib 1
3339 echo "$ac_t""no" 1>&6
3342 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3343 echo "configure:3344: checking for main in -lgen" >&5
3344 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 ac_save_LIBS="$LIBS"
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3358 if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3360 eval "ac_cv_lib_$ac_lib_var=yes"
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3365 eval "ac_cv_lib_$ac_lib_var=no"
3368 LIBS="$ac_save_LIBS"
3371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3373 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3375 cat >> confdefs.h <<EOF
3376 #define $ac_tr_lib 1
3382 echo "$ac_t""no" 1>&6
3389 for ac_func in res_search
3391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_func" >&5
3393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* System header to define __stub macros and hopefully few prototypes,
3400 which can conflict with char $ac_func(); below. */
3402 /* Override any gcc2 internal prototype to avoid an error. */
3403 /* We use char because int might match the return type of a gcc2
3404 builtin and then its argument prototype would still apply. */
3409 /* The GNU C library defines this for functions which it implements
3410 to always fail with ENOSYS. Some functions are actually named
3411 something starting with __ and the normal name is an alias. */
3412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3422 eval "ac_cv_func_$ac_func=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 eval "ac_cv_func_$ac_func=no"
3432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3433 echo "$ac_t""yes" 1>&6
3434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3435 cat >> confdefs.h <<EOF
3436 #define $ac_tr_func 1
3440 echo "$ac_t""no" 1>&6
3444 if test $ac_cv_func_res_search = "no" ; then
3445 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3446 echo "configure:3447: checking for res_search in -lbind" >&5
3447 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 ac_save_LIBS="$LIBS"
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 /* Override any gcc2 internal prototype to avoid an error. */
3457 /* We use char because int might match the return type of a gcc2
3458 builtin and then its argument prototype would still apply. */
3465 if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467 eval "ac_cv_lib_$ac_lib_var=yes"
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3472 eval "ac_cv_lib_$ac_lib_var=no"
3475 LIBS="$ac_save_LIBS"
3478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3480 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3482 cat >> confdefs.h <<EOF
3483 #define $ac_tr_lib 1
3489 echo "$ac_t""no" 1>&6
3492 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3493 cat >> confdefs.h <<\EOF
3494 #define HAVE_RES_SEARCH 1
3498 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3499 echo "configure:3500: checking for res_search in -lresolv" >&5
3500 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS="$LIBS"
3505 LIBS="-lresolv $LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3520 eval "ac_cv_lib_$ac_lib_var=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3525 eval "ac_cv_lib_$ac_lib_var=no"
3528 LIBS="$ac_save_LIBS"
3531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3533 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3535 cat >> confdefs.h <<EOF
3536 #define $ac_tr_lib 1
3539 LIBS="-lresolv $LIBS"
3542 echo "$ac_t""no" 1>&6
3545 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3546 cat >> confdefs.h <<\EOF
3547 #define HAVE_RES_SEARCH 1
3554 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3555 echo "configure:3556: checking for sigset in -lV3" >&5
3556 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 ac_save_LIBS="$LIBS"
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 /* Override any gcc2 internal prototype to avoid an error. */
3566 /* We use char because int might match the return type of a gcc2
3567 builtin and then its argument prototype would still apply. */
3574 if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3576 eval "ac_cv_lib_$ac_lib_var=yes"
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3581 eval "ac_cv_lib_$ac_lib_var=no"
3584 LIBS="$ac_save_LIBS"
3587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3588 echo "$ac_t""yes" 1>&6
3589 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3590 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3591 cat >> confdefs.h <<EOF
3592 #define $ac_tr_lib 1
3598 echo "$ac_t""no" 1>&6
3602 for ac_hdr in regex.h
3604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3606 echo "configure:3607: checking for $ac_hdr" >&5
3607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3616 { (eval echo configure:3617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3618 if test -z "$ac_err"; then
3620 eval "ac_cv_header_$ac_safe=yes"
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3626 eval "ac_cv_header_$ac_safe=no"
3630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3631 echo "$ac_t""yes" 1>&6
3632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3633 cat >> confdefs.h <<EOF
3634 #define $ac_tr_hdr 1
3638 echo "$ac_t""no" 1>&6
3642 if test "$ac_cv_header_regex_h" != yes ; then
3643 { echo "configure: error: POSIX REGEX required." 1>&2; exit 1; }
3646 echo $ac_n "checking for select""... $ac_c" 1>&6
3647 echo "configure:3648: checking for select" >&5
3648 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 /* System header to define __stub macros and hopefully few prototypes,
3655 which can conflict with char select(); below. */
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3664 /* The GNU C library defines this for functions which it implements
3665 to always fail with ENOSYS. Some functions are actually named
3666 something starting with __ and the normal name is an alias. */
3667 #if defined (__stub_select) || defined (__stub___select)
3675 if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3677 eval "ac_cv_func_select=yes"
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3682 eval "ac_cv_func_select=no"
3687 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3688 echo "$ac_t""yes" 1>&6
3691 echo "$ac_t""no" 1>&6
3692 { echo "configure: error: select() required." 1>&2; exit 1; }
3696 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3697 echo "configure:3698: checking types of arguments for select()" >&5
3698 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3708 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3709 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 #ifdef HAVE_SYS_TYPES_H
3714 #include <sys/types.h>
3716 #ifdef HAVE_SYS_TIME_H
3717 #include <sys/time.h>
3719 #ifdef HAVE_SYS_SELECT_H
3720 #include <sys/select.h>
3722 #ifdef HAVE_SYS_SOCKET_H
3723 #include <sys/socket.h>
3725 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3732 ac_not_found=no ; break 3
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3749 if test "$ac_not_found" = yes; then
3750 ac_cv_func_select_arg1=int
3751 ac_cv_func_select_arg234='int *'
3752 ac_cv_func_select_arg5='struct timeval *'
3754 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3755 cat >> confdefs.h <<EOF
3756 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3759 cat >> confdefs.h <<EOF
3760 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3763 cat >> confdefs.h <<EOF
3764 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3771 if test $ol_enable_ldapd != no ; then
3772 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3774 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3775 echo "configure:3776: checking for main in -lxtpp" >&5
3776 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 ac_save_LIBS="$LIBS"
3781 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792 eval "ac_cv_lib_$ac_lib_var=yes"
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 eval "ac_cv_lib_$ac_lib_var=no"
3800 LIBS="$ac_save_LIBS"
3803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3807 cat >> confdefs.h <<\EOF
3811 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3814 echo "$ac_t""no" 1>&6
3818 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3819 echo "configure:3820: checking for main in -ldsap" >&5
3820 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 ac_save_LIBS="$LIBS"
3825 LIBS="-ldsap -lisode $LIBS"
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3841 eval "ac_cv_lib_$ac_lib_var=no"
3844 LIBS="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3851 cat >> confdefs.h <<\EOF
3855 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3858 echo "$ac_t""no" 1>&6
3862 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3863 echo "configure:3864: checking for main in -lisode" >&5
3864 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS="$LIBS"
3869 LIBS="-lisode $LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880 eval "ac_cv_lib_$ac_lib_var=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 eval "ac_cv_lib_$ac_lib_var=no"
3888 LIBS="$ac_save_LIBS"
3891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3895 cat >> confdefs.h <<\EOF
3896 #define HAVE_ISODE 1
3899 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3902 echo "$ac_t""no" 1>&6
3908 if test $ol_link_isode != no; then
3909 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3910 echo "configure:3911: checking for main in -lpp" >&5
3911 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 ac_save_LIBS="$LIBS"
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3925 if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927 eval "ac_cv_lib_$ac_lib_var=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 eval "ac_cv_lib_$ac_lib_var=no"
3935 LIBS="$ac_save_LIBS"
3938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3939 echo "$ac_t""yes" 1>&6
3941 cat >> confdefs.h <<\EOF
3945 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3948 echo "$ac_t""no" 1>&6
3953 # Extract the first word of "pepsy", so it can be a program name with args.
3954 set dummy pepsy; ac_word=$2
3955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3956 echo "configure:3957: checking for $ac_word" >&5
3957 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3962 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3965 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3970 for ac_dir in $ac_dummy; do
3971 test -z "$ac_dir" && ac_dir=.
3972 if test -f $ac_dir/$ac_word; then
3973 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3981 PEPSY="$ac_cv_path_PEPSY"
3982 if test -n "$PEPSY"; then
3983 echo "$ac_t""$PEPSY" 1>&6
3985 echo "$ac_t""no" 1>&6
3992 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3993 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3997 echo "configure:3998: checking for $ac_hdr" >&5
3998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4007 { (eval echo configure:4008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4009 if test -z "$ac_err"; then
4011 eval "ac_cv_header_$ac_safe=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 eval "ac_cv_header_$ac_safe=no"
4021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4022 echo "$ac_t""yes" 1>&6
4023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4024 cat >> confdefs.h <<EOF
4025 #define $ac_tr_hdr 1
4029 echo "$ac_t""no" 1>&6
4034 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4035 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4036 echo "configure:4037: checking for main in -lkrb4" >&5
4037 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 ac_save_LIBS="$LIBS"
4042 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4053 eval "ac_cv_lib_$ac_lib_var=yes"
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4058 eval "ac_cv_lib_$ac_lib_var=no"
4061 LIBS="$ac_save_LIBS"
4064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4065 echo "$ac_t""yes" 1>&6
4068 echo "$ac_t""no" 1>&6
4073 if test $have_k5 = yes ; then
4074 ol_with_kerberos=found
4075 ol_link_kerberos=yes
4077 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4079 LIBS="$KRB_LIBS $LIBS"
4081 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4082 echo "configure:4083: checking for des_debug in Kerberos libraries" >&5
4083 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4088 LIBS="$KRB_LIBS $LIBS"
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4093 #include <kerberosIV/krb.h>
4094 #include <kerberosIV/des.h>
4095 extern int des_debug;
4103 if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4105 ol_cv_var_des_debug=yes
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4110 ol_cv_var_des_debug=no
4117 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4119 if test $ol_cv_var_des_debug = yes ; then
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_DES_DEBUG 1
4131 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4132 for ac_hdr in krb.h des.h
4134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4136 echo "configure:4137: checking for $ac_hdr" >&5
4137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4146 { (eval echo configure:4147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4148 if test -z "$ac_err"; then
4150 eval "ac_cv_header_$ac_safe=yes"
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4156 eval "ac_cv_header_$ac_safe=no"
4160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4163 cat >> confdefs.h <<EOF
4164 #define $ac_tr_hdr 1
4168 echo "$ac_t""no" 1>&6
4173 if test $ac_cv_header_krb_h = yes ; then
4174 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4175 echo "configure:4176: checking for main in -lkrb" >&5
4176 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 ac_save_LIBS="$LIBS"
4181 LIBS="-lkrb -ldes $LIBS"
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4190 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4192 eval "ac_cv_lib_$ac_lib_var=yes"
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 eval "ac_cv_lib_$ac_lib_var=no"
4200 LIBS="$ac_save_LIBS"
4203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4207 echo "$ac_t""no" 1>&6
4212 if test $have_k4 = yes ; then
4213 ol_with_kerberos=found
4214 ol_link_kerberos=yes
4216 KRB_LIBS="-lkrb -ldes"
4221 if test $ol_link_kerberos = yes ; then
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_KERBEROS 1
4229 if test $ol_with_tls != no ; then
4233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4235 echo "configure:4236: checking for $ac_hdr" >&5
4236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4245 { (eval echo configure:4246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4247 if test -z "$ac_err"; then
4249 eval "ac_cv_header_$ac_safe=yes"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4255 eval "ac_cv_header_$ac_safe=no"
4259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4260 echo "$ac_t""yes" 1>&6
4261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4262 cat >> confdefs.h <<EOF
4263 #define $ac_tr_hdr 1
4267 echo "$ac_t""no" 1>&6
4272 if test $ac_cv_header_ssl_h = yes ; then
4273 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4274 echo "configure:4275: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4275 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 ac_save_LIBS="$LIBS"
4280 LIBS="-lssl -lcrypto $LIBS"
4281 cat > conftest.$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4284 /* Override any gcc2 internal prototype to avoid an error. */
4285 /* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4287 char SSLeay_add_ssl_algorithms();
4290 SSLeay_add_ssl_algorithms()
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295 eval "ac_cv_lib_$ac_lib_var=yes"
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 eval "ac_cv_lib_$ac_lib_var=no"
4303 LIBS="$ac_save_LIBS"
4306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6
4311 echo "$ac_t""no" 1>&6
4316 if test $have_ssleay = no ; then
4317 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4318 echo "configure:4319: checking for ssl3_accept in -lssl" >&5
4319 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 ac_save_LIBS="$LIBS"
4324 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4339 eval "ac_cv_lib_$ac_lib_var=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 eval "ac_cv_lib_$ac_lib_var=no"
4347 LIBS="$ac_save_LIBS"
4350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4351 echo "$ac_t""yes" 1>&6
4355 echo "$ac_t""no" 1>&6
4361 if test $have_ssleay = yes ; then
4365 cat >> confdefs.h <<\EOF
4366 #define HAVE_SSLEAY 1
4370 if test $need_rsaref = yes; then
4371 cat >> confdefs.h <<\EOF
4372 #define HAVE_RSAREF 1
4376 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4378 TLS_LIBS="-lssl -lcrypto"
4384 if test $ol_link_tls = yes ; then
4385 cat >> confdefs.h <<\EOF
4393 gethostbyname_r gethostbyaddr_r \
4396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4397 echo "configure:4398: checking for $ac_func" >&5
4398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 /* System header to define __stub macros and hopefully few prototypes,
4405 which can conflict with char $ac_func(); below. */
4407 /* Override any gcc2 internal prototype to avoid an error. */
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4414 /* The GNU C library defines this for functions which it implements
4415 to always fail with ENOSYS. Some functions are actually named
4416 something starting with __ and the normal name is an alias. */
4417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 eval "ac_cv_func_$ac_func=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 eval "ac_cv_func_$ac_func=no"
4437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4440 cat >> confdefs.h <<EOF
4441 #define $ac_tr_func 1
4445 echo "$ac_t""no" 1>&6
4450 if test "$ac_cv_func_ctime_r" = no ; then
4451 ol_cv_func_ctime_r_nargs=0
4453 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4454 echo "configure:4455: checking number of arguments of ctime_r" >&5
4455 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4466 if { (eval echo configure:4467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4468 ol_cv_func_ctime_r_nargs=3
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4478 time_t ti; char *buffer; ctime_r(&ti,buffer);
4481 if { (eval echo configure:4482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4483 ol_cv_func_ctime_r_nargs=2
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 ol_cv_func_ctime_r_nargs=0
4495 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4496 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4497 cat >> confdefs.h <<EOF
4498 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4505 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4506 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4507 echo "configure:4508: checking number of arguments of gethostbyname_r" >&5
4508 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 #include <sys/types.h>
4515 #include <sys/socket.h>
4516 #include <netinet/in.h>
4518 #define BUFSIZE (sizeof(struct hostent)+10)
4520 struct hostent hent; char buffer[BUFSIZE];
4521 int bufsize=BUFSIZE;int h_errno;
4522 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4523 buffer, bufsize, &h_errno);
4526 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4528 ol_cv_func_gethostbyname_r_nargs=5
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4536 #include <sys/types.h>
4537 #include <sys/socket.h>
4538 #include <netinet/in.h>
4540 #define BUFSIZE (sizeof(struct hostent)+10)
4542 struct hostent hent;struct hostent *rhent;
4543 char buffer[BUFSIZE];
4544 int bufsize=BUFSIZE;int h_errno;
4545 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4549 if { (eval echo configure:4550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4551 ol_cv_func_gethostbyname_r_nargs=6
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 ol_cv_func_gethostbyname_r_nargs=0
4563 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4564 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4565 cat >> confdefs.h <<EOF
4566 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4572 ol_cv_func_gethostbyname_r_nargs=0
4575 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4576 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4577 echo "configure:4578: checking number of arguments of gethostbyaddr_r" >&5
4578 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 #include <sys/types.h>
4585 #include <sys/socket.h>
4586 #include <netinet/in.h>
4588 #define BUFSIZE (sizeof(struct hostent)+10)
4590 struct hostent hent; char buffer[BUFSIZE];
4592 size_t alen=sizeof(struct in_addr);
4593 int bufsize=BUFSIZE;int h_errno;
4594 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4595 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4598 if { (eval echo configure:4599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4600 ol_cv_func_gethostbyaddr_r_nargs=7
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <sys/types.h>
4609 #include <sys/socket.h>
4610 #include <netinet/in.h>
4612 #define BUFSIZE (sizeof(struct hostent)+10)
4614 struct hostent hent;
4615 struct hostent *rhent; char buffer[BUFSIZE];
4617 size_t alen=sizeof(struct in_addr);
4618 int bufsize=BUFSIZE;int h_errno;
4619 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4620 alen, AF_INET, &hent, buffer, bufsize,
4624 if { (eval echo configure:4625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4626 ol_cv_func_gethostbyaddr_r_nargs=8
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4631 ol_cv_func_gethostbyaddr_r_nargs=0
4638 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4639 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4640 cat >> confdefs.h <<EOF
4641 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4647 ol_cv_func_gethostbyaddr_r_nargs=0
4650 if test "$ac_cv_func_ctime_r" = yes \
4651 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4652 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4653 -a "$ac_cv_func_gethostbyname_r" = yes \
4654 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4655 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4656 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4657 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4658 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4661 cat >> confdefs.h <<\EOF
4662 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4668 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4669 -o $ol_with_threads = posix ; then
4671 for ac_hdr in pthread.h sched.h
4673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4675 echo "configure:4676: checking for $ac_hdr" >&5
4676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4685 { (eval echo configure:4686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4687 if test -z "$ac_err"; then
4689 eval "ac_cv_header_$ac_safe=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 eval "ac_cv_header_$ac_safe=no"
4699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4700 echo "$ac_t""yes" 1>&6
4701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4702 cat >> confdefs.h <<EOF
4703 #define $ac_tr_hdr 1
4707 echo "$ac_t""no" 1>&6
4712 if test $ac_cv_header_pthread_h = yes ; then
4713 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4714 echo "configure:4715: checking POSIX thread version" >&5
4715 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4723 # include <pthread.h>
4724 /* this check could be improved */
4725 # ifdef PTHREAD_ONCE_INIT
4726 pthread_version_final
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731 egrep "pthread_version_final" >/dev/null 2>&1; then
4733 ol_pthread_final=yes
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4745 # include <pthread.h>
4746 /* this check could be improved */
4747 # ifdef pthread_once_init
4748 pthread_version_draft4
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4755 ol_pthread_draft4=yes
4758 ol_pthread_draft4=no
4763 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4764 ol_cv_pthread_version=final
4765 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4766 ol_cv_pthread_version=draft4
4768 ol_cv_pthread_version=unknown
4773 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4776 if test $ol_cv_pthread_version = final ; then
4777 cat >> confdefs.h <<\EOF
4778 #define HAVE_PTHREADS_FINAL 1
4781 elif test $ol_cv_pthread_version = draft4 ; then
4782 cat >> confdefs.h <<\EOF
4783 #define HAVE_PTHREADS_D4 1
4787 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4790 # consider threads found
4791 ol_with_threads=found
4794 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4795 echo "configure:4796: checking for LinuxThreads pthread.h" >&5
4796 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 #include <pthread.h>
4804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4807 ol_cv_header_linux_threads=yes
4810 ol_cv_header_linux_threads=no
4817 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4818 if test $ol_cv_header_linux_threads = yes; then
4819 cat >> confdefs.h <<\EOF
4820 #define HAVE_LINUX_THREADS 1
4827 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4828 echo "configure:4829: checking for pthread_create in default libraries" >&5
4829 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4833 if test "$cross_compiling" = yes; then
4834 ol_cv_pthread_create=yes
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4840 #include <pthread.h>
4842 #define NULL (void*)0
4845 static void *task(p)
4848 return (void *) (p == NULL);
4851 int main(argc, argv)
4858 /* make sure pthread_create() isn't just a stub */
4859 #if HAVE_PTHREADS_D4
4860 status = pthread_create(&t, pthread_attr_default, task, NULL);
4862 status = pthread_create(&t, NULL, task, NULL);
4865 if( status ) return status;
4867 /* make sure pthread_detach() isn't just a stub */
4868 #if HAVE_PTHREADS_D4
4869 status = pthread_detach( &t );
4871 status = pthread_detach( t );
4874 if( status ) return status;
4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4882 ol_cv_pthread_create=yes
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4887 ol_cv_pthread_create=no
4894 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4896 if test $ol_cv_pthread_create != no ; then
4897 ol_link_threads=posix
4901 # Pthread try link: -mt (ol_cv_pthread_mt)
4902 if test "$ol_link_threads" = no ; then
4904 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4905 echo "configure:4906: checking for pthread link with -mt" >&5
4906 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4918 #include <pthread.h>
4920 #define NULL (void*)0
4927 #if HAVE_PTHREADS_D4
4928 pthread_create(&t, pthread_attr_default, NULL, NULL);
4929 pthread_detach( &t );
4931 pthread_create(&t, NULL, NULL, NULL);
4932 pthread_detach( t );
4934 #ifdef HAVE_LINUX_THREADS
4935 pthread_kill_other_threads_np();
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4942 ol_cv_pthread_mt=yes
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4956 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
4958 if test $ol_cv_pthread_mt = yes ; then
4959 ol_link_pthreads="-mt"
4960 ol_link_threads=posix
4964 # Pthread try link: -kthread (ol_cv_pthread_kthread)
4965 if test "$ol_link_threads" = no ; then
4967 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
4968 echo "configure:4969: checking for pthread link with -kthread" >&5
4969 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4975 LIBS="-kthread $LIBS"
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4981 #include <pthread.h>
4983 #define NULL (void*)0
4990 #if HAVE_PTHREADS_D4
4991 pthread_create(&t, pthread_attr_default, NULL, NULL);
4992 pthread_detach( &t );
4994 pthread_create(&t, NULL, NULL, NULL);
4995 pthread_detach( t );
4997 #ifdef HAVE_LINUX_THREADS
4998 pthread_kill_other_threads_np();
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 ol_cv_pthread_kthread=yes
5007 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5010 ol_cv_pthread_kthread=no
5019 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5021 if test $ol_cv_pthread_kthread = yes ; then
5022 ol_link_pthreads="-kthread"
5023 ol_link_threads=posix
5027 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5028 if test "$ol_link_threads" = no ; then
5030 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5031 echo "configure:5032: checking for pthread link with -pthread" >&5
5032 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5038 LIBS="-pthread $LIBS"
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5044 #include <pthread.h>
5046 #define NULL (void*)0
5053 #if HAVE_PTHREADS_D4
5054 pthread_create(&t, pthread_attr_default, NULL, NULL);
5055 pthread_detach( &t );
5057 pthread_create(&t, NULL, NULL, NULL);
5058 pthread_detach( t );
5060 #ifdef HAVE_LINUX_THREADS
5061 pthread_kill_other_threads_np();
5066 if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5068 ol_cv_pthread_pthread=yes
5070 echo "configure: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5073 ol_cv_pthread_pthread=no
5082 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5084 if test $ol_cv_pthread_pthread = yes ; then
5085 ol_link_pthreads="-pthread"
5086 ol_link_threads=posix
5090 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5091 if test "$ol_link_threads" = no ; then
5093 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5094 echo "configure:5095: checking for pthread link with -pthreads" >&5
5095 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5101 LIBS="-pthreads $LIBS"
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5107 #include <pthread.h>
5109 #define NULL (void*)0
5116 #if HAVE_PTHREADS_D4
5117 pthread_create(&t, pthread_attr_default, NULL, NULL);
5118 pthread_detach( &t );
5120 pthread_create(&t, NULL, NULL, NULL);
5121 pthread_detach( t );
5123 #ifdef HAVE_LINUX_THREADS
5124 pthread_kill_other_threads_np();
5129 if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5131 ol_cv_pthread_pthreads=yes
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5136 ol_cv_pthread_pthreads=no
5145 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5147 if test $ol_cv_pthread_pthreads = yes ; then
5148 ol_link_pthreads="-pthreads"
5149 ol_link_threads=posix
5153 # Pthread try link: -thread (ol_cv_pthread_thread)
5154 if test "$ol_link_threads" = no ; then
5156 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5157 echo "configure:5158: checking for pthread link with -thread" >&5
5158 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5164 LIBS="-thread $LIBS"
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5170 #include <pthread.h>
5172 #define NULL (void*)0
5179 #if HAVE_PTHREADS_D4
5180 pthread_create(&t, pthread_attr_default, NULL, NULL);
5181 pthread_detach( &t );
5183 pthread_create(&t, NULL, NULL, NULL);
5184 pthread_detach( t );
5186 #ifdef HAVE_LINUX_THREADS
5187 pthread_kill_other_threads_np();
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5194 ol_cv_pthread_thread=yes
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 ol_cv_pthread_thread=no
5208 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5210 if test $ol_cv_pthread_thread = yes ; then
5211 ol_link_pthreads="-thread"
5212 ol_link_threads=posix
5217 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5218 if test "$ol_link_threads" = no ; then
5219 # try -lpthread -lmach -lexc -lc_r
5220 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5221 echo "configure:5222: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5222 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5228 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5234 #include <pthread.h>
5236 #define NULL (void*)0
5243 #if HAVE_PTHREADS_D4
5244 pthread_create(&t, pthread_attr_default, NULL, NULL);
5245 pthread_detach( &t );
5247 pthread_create(&t, NULL, NULL, NULL);
5248 pthread_detach( t );
5250 #ifdef HAVE_LINUX_THREADS
5251 pthread_kill_other_threads_np();
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5272 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5274 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5275 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5276 ol_link_threads=posix
5280 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5281 if test "$ol_link_threads" = no ; then
5282 # try -lpthread -lmach -lexc
5283 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5284 echo "configure:5285: checking for pthread link with -lpthread -lmach -lexc" >&5
5285 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5286 echo $ac_n "(cached) $ac_c" 1>&6
5291 LIBS="-lpthread -lmach -lexc $LIBS"
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5297 #include <pthread.h>
5299 #define NULL (void*)0
5306 #if HAVE_PTHREADS_D4
5307 pthread_create(&t, pthread_attr_default, NULL, NULL);
5308 pthread_detach( &t );
5310 pthread_create(&t, NULL, NULL, NULL);
5311 pthread_detach( t );
5313 #ifdef HAVE_LINUX_THREADS
5314 pthread_kill_other_threads_np();
5319 if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5321 ol_cv_pthread_lpthread_lmach_lexc=yes
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 ol_cv_pthread_lpthread_lmach_lexc=no
5335 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5337 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5338 ol_link_pthreads="-lpthread -lmach -lexc"
5339 ol_link_threads=posix
5344 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5345 if test "$ol_link_threads" = no ; then
5346 # try -lpthread -Wl,-woff,85
5347 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5348 echo "configure:5349: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5349 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5355 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5361 #include <pthread.h>
5363 #define NULL (void*)0
5370 #if HAVE_PTHREADS_D4
5371 pthread_create(&t, pthread_attr_default, NULL, NULL);
5372 pthread_detach( &t );
5374 pthread_create(&t, NULL, NULL, NULL);
5375 pthread_detach( t );
5377 #ifdef HAVE_LINUX_THREADS
5378 pthread_kill_other_threads_np();
5383 if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5385 ol_cv_pthread_lib_lpthread_woff=yes
5387 echo "configure: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5390 ol_cv_pthread_lib_lpthread_woff=no
5399 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5401 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5402 ol_link_pthreads="-lpthread -Wl,-woff,85"
5403 ol_link_threads=posix
5408 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5409 if test "$ol_link_threads" = no ; then
5411 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5412 echo "configure:5413: checking for pthread link with -lpthread" >&5
5413 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5419 LIBS="-lpthread $LIBS"
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5425 #include <pthread.h>
5427 #define NULL (void*)0
5434 #if HAVE_PTHREADS_D4
5435 pthread_create(&t, pthread_attr_default, NULL, NULL);
5436 pthread_detach( &t );
5438 pthread_create(&t, NULL, NULL, NULL);
5439 pthread_detach( t );
5441 #ifdef HAVE_LINUX_THREADS
5442 pthread_kill_other_threads_np();
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 ol_cv_pthread_lpthread=yes
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 ol_cv_pthread_lpthread=no
5463 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5465 if test $ol_cv_pthread_lpthread = yes ; then
5466 ol_link_pthreads="-lpthread"
5467 ol_link_threads=posix
5471 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5472 if test "$ol_link_threads" = no ; then
5474 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5475 echo "configure:5476: checking for pthread link with -lc_r" >&5
5476 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5488 #include <pthread.h>
5490 #define NULL (void*)0
5497 #if HAVE_PTHREADS_D4
5498 pthread_create(&t, pthread_attr_default, NULL, NULL);
5499 pthread_detach( &t );
5501 pthread_create(&t, NULL, NULL, NULL);
5502 pthread_detach( t );
5504 #ifdef HAVE_LINUX_THREADS
5505 pthread_kill_other_threads_np();
5510 if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 ol_cv_pthread_lc_r=yes
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5517 ol_cv_pthread_lc_r=no
5526 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5528 if test $ol_cv_pthread_lc_r = yes ; then
5529 ol_link_pthreads="-lc_r"
5530 ol_link_threads=posix
5535 # Pthread try link: -threads (ol_cv_pthread_threads)
5536 if test "$ol_link_threads" = no ; then
5538 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5539 echo "configure:5540: checking for pthread link with -threads" >&5
5540 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5546 LIBS="-threads $LIBS"
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5552 #include <pthread.h>
5554 #define NULL (void*)0
5561 #if HAVE_PTHREADS_D4
5562 pthread_create(&t, pthread_attr_default, NULL, NULL);
5563 pthread_detach( &t );
5565 pthread_create(&t, NULL, NULL, NULL);
5566 pthread_detach( t );
5568 #ifdef HAVE_LINUX_THREADS
5569 pthread_kill_other_threads_np();
5574 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5576 ol_cv_pthread_threads=yes
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 ol_cv_pthread_threads=no
5590 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5592 if test $ol_cv_pthread_threads = yes ; then
5593 ol_link_pthreads="-threads"
5594 ol_link_threads=posix
5599 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5600 if test "$ol_link_threads" = no ; then
5601 # try -lpthreads -lmach -lexc -lc_r
5602 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5603 echo "configure:5604: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5604 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5610 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5616 #include <pthread.h>
5618 #define NULL (void*)0
5625 #if HAVE_PTHREADS_D4
5626 pthread_create(&t, pthread_attr_default, NULL, NULL);
5627 pthread_detach( &t );
5629 pthread_create(&t, NULL, NULL, NULL);
5630 pthread_detach( t );
5632 #ifdef HAVE_LINUX_THREADS
5633 pthread_kill_other_threads_np();
5638 if { (eval echo configure:5639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5640 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5654 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5656 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5657 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5658 ol_link_threads=posix
5662 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5663 if test "$ol_link_threads" = no ; then
5664 # try -lpthreads -lmach -lexc
5665 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5666 echo "configure:5667: checking for pthread link with -lpthreads -lmach -lexc" >&5
5667 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5673 LIBS="-lpthreads -lmach -lexc $LIBS"
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5679 #include <pthread.h>
5681 #define NULL (void*)0
5688 #if HAVE_PTHREADS_D4
5689 pthread_create(&t, pthread_attr_default, NULL, NULL);
5690 pthread_detach( &t );
5692 pthread_create(&t, NULL, NULL, NULL);
5693 pthread_detach( t );
5695 #ifdef HAVE_LINUX_THREADS
5696 pthread_kill_other_threads_np();
5701 if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703 ol_cv_pthread_lpthreads_lmach_lexc=yes
5705 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5708 ol_cv_pthread_lpthreads_lmach_lexc=no
5717 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5719 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5720 ol_link_pthreads="-lpthreads -lmach -lexc"
5721 ol_link_threads=posix
5725 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5726 if test "$ol_link_threads" = no ; then
5727 # try -lpthreads -lexc
5728 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5729 echo "configure:5730: checking for pthread link with -lpthreads -lexc" >&5
5730 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5736 LIBS="-lpthreads -lexc $LIBS"
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5742 #include <pthread.h>
5744 #define NULL (void*)0
5751 #if HAVE_PTHREADS_D4
5752 pthread_create(&t, pthread_attr_default, NULL, NULL);
5753 pthread_detach( &t );
5755 pthread_create(&t, NULL, NULL, NULL);
5756 pthread_detach( t );
5758 #ifdef HAVE_LINUX_THREADS
5759 pthread_kill_other_threads_np();
5764 if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766 ol_cv_pthread_lpthreads_lexc=yes
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5771 ol_cv_pthread_lpthreads_lexc=no
5780 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5782 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5783 ol_link_pthreads="-lpthreads -lexc"
5784 ol_link_threads=posix
5789 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5790 if test "$ol_link_threads" = no ; then
5792 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5793 echo "configure:5794: checking for pthread link with -lpthreads" >&5
5794 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5800 LIBS="-lpthreads $LIBS"
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5806 #include <pthread.h>
5808 #define NULL (void*)0
5815 #if HAVE_PTHREADS_D4
5816 pthread_create(&t, pthread_attr_default, NULL, NULL);
5817 pthread_detach( &t );
5819 pthread_create(&t, NULL, NULL, NULL);
5820 pthread_detach( t );
5822 #ifdef HAVE_LINUX_THREADS
5823 pthread_kill_other_threads_np();
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5830 ol_cv_pthread_lib_lpthreads=yes
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5835 ol_cv_pthread_lib_lpthreads=no
5844 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5846 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5847 ol_link_pthreads="-lpthreads"
5848 ol_link_threads=posix
5853 if test $ol_link_threads != no ; then
5854 cat >> confdefs.h <<\EOF
5855 #define HAVE_PTHREADS 1
5859 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5861 save_CPPFLAGS="$CPPFLAGS"
5863 LIBS="$LTHREAD_LIBS $LIBS"
5865 for ac_func in sched_yield pthread_yield
5867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5868 echo "configure:5869: checking for $ac_func" >&5
5869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5875 /* System header to define __stub macros and hopefully few prototypes,
5876 which can conflict with char $ac_func(); below. */
5878 /* Override any gcc2 internal prototype to avoid an error. */
5879 /* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5885 /* The GNU C library defines this for functions which it implements
5886 to always fail with ENOSYS. Some functions are actually named
5887 something starting with __ and the normal name is an alias. */
5888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5896 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5898 eval "ac_cv_func_$ac_func=yes"
5900 echo "configure: failed program was:" >&5
5901 cat conftest.$ac_ext >&5
5903 eval "ac_cv_func_$ac_func=no"
5908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5909 echo "$ac_t""yes" 1>&6
5910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5911 cat >> confdefs.h <<EOF
5912 #define $ac_tr_func 1
5916 echo "$ac_t""no" 1>&6
5921 if test $ac_cv_func_sched_yield = no -a \
5922 $ac_cv_func_pthread_yield = no ; then
5923 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5924 echo "configure:5925: checking for sched_yield in -lrt" >&5
5925 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5929 ac_save_LIBS="$LIBS"
5931 cat > conftest.$ac_ext <<EOF
5932 #line 5933 "configure"
5933 #include "confdefs.h"
5934 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5943 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 eval "ac_cv_lib_$ac_lib_var=yes"
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 eval "ac_cv_lib_$ac_lib_var=no"
5953 LIBS="$ac_save_LIBS"
5956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5957 echo "$ac_t""yes" 1>&6
5958 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5959 cat >> confdefs.h <<\EOF
5960 #define HAVE_SCHED_YIELD 1
5963 ac_cv_func_sched_yield=yes
5965 echo "$ac_t""no" 1>&6
5966 ac_cv_func_sched_yield=no
5970 if test $ac_cv_func_sched_yield = no -a \
5971 $ac_cv_func_pthread_yield = no ; then
5972 for ac_func in thr_yield
5974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5975 echo "configure:5976: checking for $ac_func" >&5
5976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5982 /* System header to define __stub macros and hopefully few prototypes,
5983 which can conflict with char $ac_func(); below. */
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5992 /* The GNU C library defines this for functions which it implements
5993 to always fail with ENOSYS. Some functions are actually named
5994 something starting with __ and the normal name is an alias. */
5995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003 if { (eval echo configure:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6005 eval "ac_cv_func_$ac_func=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6010 eval "ac_cv_func_$ac_func=no"
6015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6018 cat >> confdefs.h <<EOF
6019 #define $ac_tr_func 1
6023 echo "$ac_t""no" 1>&6
6028 if test $ac_cv_func_sched_yield = no -a \
6029 $ac_cv_func_pthread_yield = no -a \
6030 "$ac_cv_func_thr_yield" = no ; then
6031 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6034 for ac_func in pthread_kill
6036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6037 echo "configure:6038: checking for $ac_func" >&5
6038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6044 /* System header to define __stub macros and hopefully few prototypes,
6045 which can conflict with char $ac_func(); below. */
6047 /* Override any gcc2 internal prototype to avoid an error. */
6048 /* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6054 /* The GNU C library defines this for functions which it implements
6055 to always fail with ENOSYS. Some functions are actually named
6056 something starting with __ and the normal name is an alias. */
6057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6065 if { (eval echo configure:6066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6067 eval "ac_cv_func_$ac_func=yes"
6069 echo "configure: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6072 eval "ac_cv_func_$ac_func=no"
6077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6078 echo "$ac_t""yes" 1>&6
6079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6080 cat >> confdefs.h <<EOF
6081 #define $ac_tr_func 1
6085 echo "$ac_t""no" 1>&6
6090 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6091 echo "configure:6092: checking for pthread_detach with <pthread.h>" >&5
6092 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6096 cat > conftest.$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6100 #include <pthread.h>
6102 #define NULL (void*)0
6106 pthread_detach(NULL);
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 ol_cv_func_pthread_detach=yes
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6116 ol_cv_func_pthread_detach=no
6122 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6124 if test $ol_cv_func_pthread_detach = no ; then
6125 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6128 cat >> confdefs.h <<\EOF
6129 #define HAVE_PTHREAD_DETACH 1
6134 pthread_setconcurrency \
6135 pthread_getconcurrency \
6136 thr_setconcurrency \
6137 thr_getconcurrency \
6140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_func" >&5
6142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func(); below. */
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6171 eval "ac_cv_func_$ac_func=yes"
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6176 eval "ac_cv_func_$ac_func=no"
6181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >> confdefs.h <<EOF
6185 #define $ac_tr_func 1
6189 echo "$ac_t""no" 1>&6
6195 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6196 echo "configure:6197: checking for pthread_kill_other_threads_np" >&5
6197 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char pthread_kill_other_threads_np(); below. */
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6209 char pthread_kill_other_threads_np();
6213 /* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6219 pthread_kill_other_threads_np();
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6231 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6236 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6240 echo "$ac_t""no" 1>&6
6243 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6244 echo "configure:6245: checking for LinuxThreads implementation" >&5
6245 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6248 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6251 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6256 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6257 echo "configure:6258: checking for LinuxThreads consistency" >&5
6258 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6262 if test $ol_cv_header_linux_threads = yes -a \
6263 $ol_cv_sys_linux_threads = yes; then
6264 ol_cv_linux_threads=yes
6265 elif test $ol_cv_header_linux_threads = no -a \
6266 $ol_cv_sys_linux_threads = no; then
6267 ol_cv_linux_threads=no
6269 ol_cv_linux_threads=error
6274 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6277 if test $ol_cv_linux_threads = error; then
6278 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6281 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6282 echo "configure:6283: checking if pthread_create() works" >&5
6283 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6287 if test "$cross_compiling" = yes; then
6288 ol_cv_pthread_create_works=yes
6290 cat > conftest.$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6294 #include <pthread.h>
6296 #define NULL (void*)0
6299 static void *task(p)
6302 return (void *) (p == NULL);
6305 int main(argc, argv)
6310 #if HAVE_PTHREADS_D4
6311 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6313 exit(pthread_create(&t, NULL, task, NULL));
6318 if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6320 ol_cv_pthread_create_works=yes
6322 echo "configure: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6325 ol_cv_pthread_create_works=no
6332 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6334 if test $ol_cv_pthread_create_works = no ; then
6335 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6338 if test $ol_with_yielding_select = auto ; then
6339 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6340 echo "configure:6341: checking if select yields when using pthreads" >&5
6341 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6345 if test "$cross_compiling" = yes; then
6347 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6353 #include <sys/types.h>
6354 #include <sys/time.h>
6356 #include <pthread.h>
6358 #define NULL (void*) 0
6361 static int fildes[2];
6363 static void *task(p)
6375 FD_SET(fildes[0], &rfds);
6377 /* we're not interested in any fds */
6378 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6385 exit(0); /* if we exit here, the select blocked the whole process */
6388 int main(argc, argv)
6394 /* create a pipe to select */
6395 if(pipe(&fildes[0])) {
6400 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6401 (void) pthread_setconcurrency(2);
6403 #ifdef HAVE_THR_SETCONCURRENCY
6404 /* Set Solaris LWP concurrency to 2 */
6405 thr_setconcurrency(2);
6409 #if HAVE_PTHREADS_D4
6410 pthread_create(&t, pthread_attr_default, task, NULL);
6412 pthread_create(&t, NULL, task, NULL);
6415 #if HAVE_SCHED_YIELD
6416 sched_yield(); /* make sure task runs first */
6418 #ifdef HAVE_PTHREAD_YIELD
6419 pthread_yield(); /* make sure task runs first */
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6428 ol_cv_pthread_select_yields=no
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6433 ol_cv_pthread_select_yields=yes
6440 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6442 if test $ol_cv_pthread_select_yields = yes ; then
6443 ol_with_yielding_select=yes
6447 CPPFLAGS="$save_CPPFLAGS"
6450 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6454 if test $ol_with_threads = posix ; then
6455 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6459 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6460 -o $ol_with_threads = mach ; then
6462 for ac_hdr in mach/cthreads.h
6464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6466 echo "configure:6467: checking for $ac_hdr" >&5
6467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6476 { (eval echo configure:6477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6478 if test -z "$ac_err"; then
6480 eval "ac_cv_header_$ac_safe=yes"
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6486 eval "ac_cv_header_$ac_safe=no"
6490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6491 echo "$ac_t""yes" 1>&6
6492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6493 cat >> confdefs.h <<EOF
6494 #define $ac_tr_hdr 1
6498 echo "$ac_t""no" 1>&6
6502 if test $ac_cv_header_mach_cthreads_h = yes ; then
6503 ol_with_threads=found
6505 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6506 echo "configure:6507: checking for cthread_fork" >&5
6507 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6510 cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6513 /* System header to define __stub macros and hopefully few prototypes,
6514 which can conflict with char cthread_fork(); below. */
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char cthread_fork();
6523 /* The GNU C library defines this for functions which it implements
6524 to always fail with ENOSYS. Some functions are actually named
6525 something starting with __ and the normal name is an alias. */
6526 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6536 eval "ac_cv_func_cthread_fork=yes"
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6541 eval "ac_cv_func_cthread_fork=no"
6546 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6547 echo "$ac_t""yes" 1>&6
6550 echo "$ac_t""no" 1>&6
6554 if test $ol_link_threads = no ; then
6555 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6556 echo "configure:6557: checking for cthread_fork with -all_load" >&5
6557 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6562 LIBS="-all_load $LIBS"
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6565 "configure"
6565 #include "confdefs.h"
6566 #include <mach/cthreads.h>
6569 cthread_fork((void *)0, (void *)0);
6573 if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575 ol_cv_cthread_all_load=yes
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 ol_cv_cthread_all_load=no
6587 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6589 if test $ol_cv_cthread_all_load = yes ; then
6590 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6591 ol_link_threads=mach
6595 if test $ol_link_threads != no ; then
6596 : check for cthread specific functionality here
6597 cat >> confdefs.h <<\EOF
6598 #define HAVE_MACH_CTHREADS 1
6602 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6606 if test $ol_with_threads = mach ; then
6607 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6611 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6612 -o $ol_with_threads = lwp ; then
6614 for ac_hdr in thread.h synch.h
6616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6618 echo "configure:6619: checking for $ac_hdr" >&5
6619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6620 echo $ac_n "(cached) $ac_c" 1>&6
6622 cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6628 { (eval echo configure:6629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6630 if test -z "$ac_err"; then
6632 eval "ac_cv_header_$ac_safe=yes"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 eval "ac_cv_header_$ac_safe=no"
6642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6643 echo "$ac_t""yes" 1>&6
6644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6645 cat >> confdefs.h <<EOF
6646 #define $ac_tr_hdr 1
6650 echo "$ac_t""no" 1>&6
6654 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6655 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6656 echo "configure:6657: checking for thr_create in -lthread" >&5
6657 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6661 ac_save_LIBS="$LIBS"
6662 LIBS="-lthread $LIBS"
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 /* Override any gcc2 internal prototype to avoid an error. */
6667 /* We use char because int might match the return type of a gcc2
6668 builtin and then its argument prototype would still apply. */
6675 if { (eval echo configure:6676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6677 eval "ac_cv_lib_$ac_lib_var=yes"
6679 echo "configure: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6682 eval "ac_cv_lib_$ac_lib_var=no"
6685 LIBS="$ac_save_LIBS"
6688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6689 echo "$ac_t""yes" 1>&6
6692 echo "$ac_t""no" 1>&6
6697 if test $have_thr = yes ; then
6698 cat >> confdefs.h <<\EOF
6702 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6705 if test $ol_with_yielding_select = auto ; then
6706 ol_with_yielding_select=yes
6710 thr_setconcurrency \
6711 thr_getconcurrency \
6714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6715 echo "configure:6716: checking for $ac_func" >&5
6716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6717 echo $ac_n "(cached) $ac_c" 1>&6
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* System header to define __stub macros and hopefully few prototypes,
6723 which can conflict with char $ac_func(); below. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6732 /* The GNU C library defines this for functions which it implements
6733 to always fail with ENOSYS. Some functions are actually named
6734 something starting with __ and the normal name is an alias. */
6735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 eval "ac_cv_func_$ac_func=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 eval "ac_cv_func_$ac_func=no"
6755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6758 cat >> confdefs.h <<EOF
6759 #define $ac_tr_func 1
6763 echo "$ac_t""no" 1>&6
6770 for ac_hdr in lwp/lwp.h
6772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6774 echo "configure:6775: checking for $ac_hdr" >&5
6775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6778 cat > conftest.$ac_ext <<EOF
6779 #line 6780 "configure"
6780 #include "confdefs.h"
6783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6784 { (eval echo configure:6785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6786 if test -z "$ac_err"; then
6788 eval "ac_cv_header_$ac_safe=yes"
6791 echo "configure: failed program was:" >&5
6792 cat conftest.$ac_ext >&5
6794 eval "ac_cv_header_$ac_safe=no"
6798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6799 echo "$ac_t""yes" 1>&6
6800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6801 cat >> confdefs.h <<EOF
6802 #define $ac_tr_hdr 1
6806 echo "$ac_t""no" 1>&6
6810 if test $ac_cv_header_lwp_lwp_h = yes ; then
6811 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6812 echo "configure:6813: checking for lwp_create in -llwp" >&5
6813 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 ac_save_LIBS="$LIBS"
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6831 if { (eval echo configure:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6833 eval "ac_cv_lib_$ac_lib_var=yes"
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6838 eval "ac_cv_lib_$ac_lib_var=no"
6841 LIBS="$ac_save_LIBS"
6844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6845 echo "$ac_t""yes" 1>&6
6848 echo "$ac_t""no" 1>&6
6853 if test $have_lwp = yes ; then
6854 cat >> confdefs.h <<\EOF
6858 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6861 if test $ol_with_yielding_select = auto ; then
6862 ol_with_yielding_select=no
6868 if test $ol_with_yielding_select = yes ; then
6869 cat >> confdefs.h <<\EOF
6870 #define HAVE_YIELDING_SELECT 1
6875 if test $ol_with_threads = manual ; then
6878 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6880 for ac_hdr in pthread.h sched.h
6882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6884 echo "configure:6885: checking for $ac_hdr" >&5
6885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6886 echo $ac_n "(cached) $ac_c" 1>&6
6888 cat > conftest.$ac_ext <<EOF
6889 #line 6890 "configure"
6890 #include "confdefs.h"
6893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6894 { (eval echo configure:6895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6896 if test -z "$ac_err"; then
6898 eval "ac_cv_header_$ac_safe=yes"
6901 echo "configure: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 eval "ac_cv_header_$ac_safe=no"
6908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6909 echo "$ac_t""yes" 1>&6
6910 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6911 cat >> confdefs.h <<EOF
6912 #define $ac_tr_hdr 1
6916 echo "$ac_t""no" 1>&6
6920 for ac_func in sched_yield pthread_yield
6922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6923 echo "configure:6924: checking for $ac_func" >&5
6924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6927 cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure"
6929 #include "confdefs.h"
6930 /* System header to define __stub macros and hopefully few prototypes,
6931 which can conflict with char $ac_func(); below. */
6933 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6940 /* The GNU C library defines this for functions which it implements
6941 to always fail with ENOSYS. Some functions are actually named
6942 something starting with __ and the normal name is an alias. */
6943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6951 if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6953 eval "ac_cv_func_$ac_func=yes"
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 eval "ac_cv_func_$ac_func=no"
6963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6964 echo "$ac_t""yes" 1>&6
6965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6966 cat >> confdefs.h <<EOF
6967 #define $ac_tr_func 1
6971 echo "$ac_t""no" 1>&6
6976 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6977 echo "configure:6978: checking for LinuxThreads pthread.h" >&5
6978 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6984 #include <pthread.h>
6986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6987 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6989 ol_cv_header_linux_threads=yes
6992 ol_cv_header_linux_threads=no
6999 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7000 if test $ol_cv_header_linux_threads = yes; then
7001 cat >> confdefs.h <<\EOF
7002 #define HAVE_LINUX_THREADS 1
7008 for ac_hdr in mach/cthreads.h
7010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7012 echo "configure:7013: checking for $ac_hdr" >&5
7013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 cat > conftest.$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7022 { (eval echo configure:7023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7024 if test -z "$ac_err"; then
7026 eval "ac_cv_header_$ac_safe=yes"
7029 echo "configure: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7032 eval "ac_cv_header_$ac_safe=no"
7036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7037 echo "$ac_t""yes" 1>&6
7038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7039 cat >> confdefs.h <<EOF
7040 #define $ac_tr_hdr 1
7044 echo "$ac_t""no" 1>&6
7048 for ac_hdr in lwp/lwp.h
7050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7052 echo "configure:7053: checking for $ac_hdr" >&5
7053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7054 echo $ac_n "(cached) $ac_c" 1>&6
7056 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7062 { (eval echo configure:7063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7064 if test -z "$ac_err"; then
7066 eval "ac_cv_header_$ac_safe=yes"
7069 echo "configure: failed program was:" >&5
7070 cat conftest.$ac_ext >&5
7072 eval "ac_cv_header_$ac_safe=no"
7076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7077 echo "$ac_t""yes" 1>&6
7078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7079 cat >> confdefs.h <<EOF
7080 #define $ac_tr_hdr 1
7084 echo "$ac_t""no" 1>&6
7088 for ac_hdr in thread.h synch.h
7090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7092 echo "configure:7093: checking for $ac_hdr" >&5
7093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7102 { (eval echo configure:7103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7104 if test -z "$ac_err"; then
7106 eval "ac_cv_header_$ac_safe=yes"
7109 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7112 eval "ac_cv_header_$ac_safe=no"
7116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7117 echo "$ac_t""yes" 1>&6
7118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7119 cat >> confdefs.h <<EOF
7120 #define $ac_tr_hdr 1
7124 echo "$ac_t""no" 1>&6
7130 if test $ol_link_threads != no ; then
7131 cat >> confdefs.h <<\EOF
7135 cat >> confdefs.h <<\EOF
7136 #define _REENTRANT 1
7139 cat >> confdefs.h <<\EOF
7140 #define THREAD_SAFE 1
7143 cat >> confdefs.h <<\EOF
7144 #define _THREAD_SAFE 1
7147 cat >> confdefs.h <<\EOF
7148 #define THREADSAFE 1
7151 cat >> confdefs.h <<\EOF
7152 #define _THREADSAFE 1
7156 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7157 echo "configure:7158: checking for thread specific errno" >&5
7158 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7162 cat > conftest.$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7170 if { (eval echo configure:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7172 ol_cv_errno_thread_specific=yes
7174 echo "configure: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7177 ol_cv_errno_thread_specific=no
7183 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7185 if test $ol_cv_errno_thread_specific != yes ; then
7186 LIBS="$LTHREAD_LIBS $LIBS"
7192 if test $ol_link_threads = no ; then
7193 if test $ol_with_threads = yes ; then
7194 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7197 if test $ol_with_threads = auto ; then
7198 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7202 cat >> confdefs.h <<\EOF
7203 #define NO_THREADS 1
7209 if test $ol_link_threads != no ; then
7210 cat >> confdefs.h <<\EOF
7211 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7218 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7219 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7220 echo "configure:7221: checking for DB2 library" >&5
7221 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7222 echo $ac_n "(cached) $ac_c" 1>&6
7225 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7226 echo "configure:7227: checking for db_open in -ldb" >&5
7227 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7229 echo $ac_n "(cached) $ac_c" 1>&6
7231 ac_save_LIBS="$LIBS"
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 /* Override any gcc2 internal prototype to avoid an error. */
7237 /* We use char because int might match the return type of a gcc2
7238 builtin and then its argument prototype would still apply. */
7245 if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7247 eval "ac_cv_lib_$ac_lib_var=yes"
7249 echo "configure: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7252 eval "ac_cv_lib_$ac_lib_var=no"
7255 LIBS="$ac_save_LIBS"
7258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7259 echo "$ac_t""yes" 1>&6
7262 echo "$ac_t""no" 1>&6
7270 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7276 echo "configure:7277: checking for $ac_hdr" >&5
7277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7278 echo $ac_n "(cached) $ac_c" 1>&6
7280 cat > conftest.$ac_ext <<EOF
7281 #line 7282 "configure"
7282 #include "confdefs.h"
7285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7286 { (eval echo configure:7287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7288 if test -z "$ac_err"; then
7290 eval "ac_cv_header_$ac_safe=yes"
7293 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7296 eval "ac_cv_header_$ac_safe=no"
7300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7301 echo "$ac_t""yes" 1>&6
7302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7303 cat >> confdefs.h <<EOF
7304 #define $ac_tr_hdr 1
7308 echo "$ac_t""no" 1>&6
7312 if test $ac_cv_header_db_h = yes ; then
7313 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7314 echo "configure:7315: checking if db.h is DB2" >&5
7315 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7316 echo $ac_n "(cached) $ac_c" 1>&6
7319 cat > conftest.$ac_ext <<EOF
7320 #line 7321 "configure"
7321 #include "confdefs.h"
7324 /* this check could be improved */
7325 # ifdef DB_VERSION_MAJOR
7326 # if DB_VERSION_MAJOR == 2
7332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7333 egrep "__db_version_2" >/dev/null 2>&1; then
7335 ol_cv_header_db2=yes
7344 echo "$ac_t""$ol_cv_header_db2" 1>&6
7351 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7352 echo "configure:7353: checking for Berkeley DB2" >&5
7353 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7357 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7358 ol_cv_berkeley_db2=no
7360 ol_cv_berkeley_db2=yes
7365 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7366 if test $ol_cv_berkeley_db2 = yes ; then
7367 cat >> confdefs.h <<\EOF
7368 #define HAVE_BERKELEY_DB2 1
7374 if test $ol_cv_berkeley_db2 = yes ; then
7376 ol_with_ldbm_api=db2
7378 if test $ol_with_ldbm_type = hash ; then
7379 cat >> confdefs.h <<\EOF
7380 #define LDBM_USE_DBHASH 1
7384 cat >> confdefs.h <<\EOF
7385 #define LDBM_USE_DBBTREE 1
7390 if test $ol_cv_lib_db2 != yes ; then
7391 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7397 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7401 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7402 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7403 echo "configure:7404: checking for Berkeley DB library" >&5
7404 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7408 for ac_hdr in db1/db.h
7410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7412 echo "configure:7413: checking for $ac_hdr" >&5
7413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7414 echo $ac_n "(cached) $ac_c" 1>&6
7416 cat > conftest.$ac_ext <<EOF
7417 #line 7418 "configure"
7418 #include "confdefs.h"
7421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7422 { (eval echo configure:7423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7424 if test -z "$ac_err"; then
7426 eval "ac_cv_header_$ac_safe=yes"
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7432 eval "ac_cv_header_$ac_safe=no"
7436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7437 echo "$ac_t""yes" 1>&6
7438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7439 cat >> confdefs.h <<EOF
7440 #define $ac_tr_hdr 1
7444 echo "$ac_t""no" 1>&6
7449 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7450 echo "configure:7451: checking for dbopen" >&5
7451 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7452 echo $ac_n "(cached) $ac_c" 1>&6
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 /* System header to define __stub macros and hopefully few prototypes,
7458 which can conflict with char dbopen(); below. */
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7467 /* The GNU C library defines this for functions which it implements
7468 to always fail with ENOSYS. Some functions are actually named
7469 something starting with __ and the normal name is an alias. */
7470 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7480 eval "ac_cv_func_dbopen=yes"
7482 echo "configure: failed program was:" >&5
7483 cat conftest.$ac_ext >&5
7485 eval "ac_cv_func_dbopen=no"
7490 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7491 echo "$ac_t""yes" 1>&6
7494 echo "$ac_t""no" 1>&6
7496 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7497 echo "configure:7498: checking for dbopen in -ldb1" >&5
7498 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7502 ac_save_LIBS="$LIBS"
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7518 eval "ac_cv_lib_$ac_lib_var=yes"
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7523 eval "ac_cv_lib_$ac_lib_var=no"
7526 LIBS="$ac_save_LIBS"
7529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7530 echo "$ac_t""yes" 1>&6
7533 echo "$ac_t""no" 1>&6
7535 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7536 echo "configure:7537: checking for dbopen in -ldb" >&5
7537 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7541 ac_save_LIBS="$LIBS"
7543 cat > conftest.$ac_ext <<EOF
7544 #line 7545 "configure"
7545 #include "confdefs.h"
7546 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7555 if { (eval echo configure:7556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7557 eval "ac_cv_lib_$ac_lib_var=yes"
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7562 eval "ac_cv_lib_$ac_lib_var=no"
7565 LIBS="$ac_save_LIBS"
7568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7569 echo "$ac_t""yes" 1>&6
7572 echo "$ac_t""no" 1>&6
7586 echo "$ac_t""$ol_cv_lib_db" 1>&6
7589 for ac_hdr in db_185.h
7591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7593 echo "configure:7594: checking for $ac_hdr" >&5
7594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
7597 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7603 { (eval echo configure:7604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7605 if test -z "$ac_err"; then
7607 eval "ac_cv_header_$ac_safe=yes"
7610 echo "configure: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7613 eval "ac_cv_header_$ac_safe=no"
7617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7618 echo "$ac_t""yes" 1>&6
7619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7620 cat >> confdefs.h <<EOF
7621 #define $ac_tr_hdr 1
7625 echo "$ac_t""no" 1>&6
7629 if test "$ol_cv_header_db2" = yes ; then
7631 ol_cv_header_db=$ac_cv_header_db_185_h
7633 ol_cv_header_db=$ac_cv_header_db_h
7638 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7639 echo "configure:7640: checking for Berkeley DB" >&5
7640 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7644 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7645 ol_cv_berkeley_db=no
7647 ol_cv_berkeley_db=yes
7652 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7653 if test $ol_cv_berkeley_db = yes ; then
7654 cat >> confdefs.h <<\EOF
7655 #define HAVE_BERKELEY_DB 1
7661 if test $ol_cv_berkeley_db = yes ; then
7665 if test $ol_with_ldbm_type = hash ; then
7666 cat >> confdefs.h <<\EOF
7667 #define LDBM_USE_DBHASH 1
7671 cat >> confdefs.h <<\EOF
7672 #define LDBM_USE_DBBTREE 1
7677 if test $ol_cv_lib_db != yes ; then
7678 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7683 if test $ol_with_ldbm_api = manual ; then
7686 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7688 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7692 echo "configure:7693: checking for $ac_hdr" >&5
7693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7696 cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7702 { (eval echo configure:7703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7704 if test -z "$ac_err"; then
7706 eval "ac_cv_header_$ac_safe=yes"
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7712 eval "ac_cv_header_$ac_safe=no"
7716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7717 echo "$ac_t""yes" 1>&6
7718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7719 cat >> confdefs.h <<EOF
7720 #define $ac_tr_hdr 1
7724 echo "$ac_t""no" 1>&6
7730 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7731 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7732 ol_with_ldbm_api=none
7735 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7736 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7737 echo "configure:7738: checking for MDBM library" >&5
7738 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7742 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7743 echo "configure:7744: checking for mdbm_set_chain" >&5
7744 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 /* System header to define __stub macros and hopefully few prototypes,
7751 which can conflict with char mdbm_set_chain(); below. */
7753 /* Override any gcc2 internal prototype to avoid an error. */
7754 /* We use char because int might match the return type of a gcc2
7755 builtin and then its argument prototype would still apply. */
7756 char mdbm_set_chain();
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7771 if { (eval echo configure:7772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7773 eval "ac_cv_func_mdbm_set_chain=yes"
7775 echo "configure: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7778 eval "ac_cv_func_mdbm_set_chain=no"
7783 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7784 echo "$ac_t""yes" 1>&6
7787 echo "$ac_t""no" 1>&6
7789 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7790 echo "configure:7791: checking for mdbm_set_chain in -lmdbm" >&5
7791 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7795 ac_save_LIBS="$LIBS"
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7803 char mdbm_set_chain();
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7811 eval "ac_cv_lib_$ac_lib_var=yes"
7813 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5
7816 eval "ac_cv_lib_$ac_lib_var=no"
7819 LIBS="$ac_save_LIBS"
7822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7823 echo "$ac_t""yes" 1>&6
7824 ol_cv_lib_mdbm=-lmdbm
7826 echo "$ac_t""no" 1>&6
7837 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7840 for ac_hdr in mdbm.h
7842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7844 echo "configure:7845: checking for $ac_hdr" >&5
7845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7854 { (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7856 if test -z "$ac_err"; then
7858 eval "ac_cv_header_$ac_safe=yes"
7861 echo "configure: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7864 eval "ac_cv_header_$ac_safe=no"
7868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7871 cat >> confdefs.h <<EOF
7872 #define $ac_tr_hdr 1
7876 echo "$ac_t""no" 1>&6
7880 echo $ac_n "checking for db""... $ac_c" 1>&6
7881 echo "configure:7882: checking for db" >&5
7882 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6
7886 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7894 echo "$ac_t""$ol_cv_mdbm" 1>&6
7895 if test $ol_cv_mdbm = yes ; then
7896 cat >> confdefs.h <<\EOF
7903 if test $ol_cv_mdbm = yes ; then
7905 ol_with_ldbm_api=mdbm
7906 if test $ol_cv_lib_mdbm != yes ; then
7907 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7912 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7913 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7914 echo "configure:7915: checking for GDBM library" >&5
7915 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7916 echo $ac_n "(cached) $ac_c" 1>&6
7919 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7920 echo "configure:7921: checking for gdbm_open" >&5
7921 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 /* System header to define __stub macros and hopefully few prototypes,
7928 which can conflict with char gdbm_open(); below. */
7930 /* Override any gcc2 internal prototype to avoid an error. */
7931 /* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7937 /* The GNU C library defines this for functions which it implements
7938 to always fail with ENOSYS. Some functions are actually named
7939 something starting with __ and the normal name is an alias. */
7940 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7948 if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7950 eval "ac_cv_func_gdbm_open=yes"
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7955 eval "ac_cv_func_gdbm_open=no"
7960 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7961 echo "$ac_t""yes" 1>&6
7964 echo "$ac_t""no" 1>&6
7966 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7967 echo "configure:7968: checking for gdbm_open in -lgdbm" >&5
7968 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 ac_save_LIBS="$LIBS"
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7988 eval "ac_cv_lib_$ac_lib_var=yes"
7990 echo "configure: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7993 eval "ac_cv_lib_$ac_lib_var=no"
7996 LIBS="$ac_save_LIBS"
7999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8000 echo "$ac_t""yes" 1>&6
8001 ol_cv_lib_gdbm=-lgdbm
8003 echo "$ac_t""no" 1>&6
8014 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8017 for ac_hdr in gdbm.h
8019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8021 echo "configure:8022: checking for $ac_hdr" >&5
8022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8031 { (eval echo configure:8032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8033 if test -z "$ac_err"; then
8035 eval "ac_cv_header_$ac_safe=yes"
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8041 eval "ac_cv_header_$ac_safe=no"
8045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8046 echo "$ac_t""yes" 1>&6
8047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8048 cat >> confdefs.h <<EOF
8049 #define $ac_tr_hdr 1
8053 echo "$ac_t""no" 1>&6
8057 echo $ac_n "checking for db""... $ac_c" 1>&6
8058 echo "configure:8059: checking for db" >&5
8059 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8060 echo $ac_n "(cached) $ac_c" 1>&6
8063 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8071 echo "$ac_t""$ol_cv_gdbm" 1>&6
8072 if test $ol_cv_gdbm = yes ; then
8073 cat >> confdefs.h <<\EOF
8080 if test $ol_cv_gdbm = yes ; then
8082 ol_with_ldbm_api=gdbm
8084 if test $ol_cv_lib_gdbm != yes ; then
8085 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8090 if test $ol_with_ldbm_api = auto ; then
8091 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8092 elif test $ol_with_ldbm_api = ndbm ; then
8093 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8094 echo "configure:8095: checking for NDBM library" >&5
8095 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8096 echo $ac_n "(cached) $ac_c" 1>&6
8099 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8100 echo "configure:8101: checking for dbm_open" >&5
8101 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8102 echo $ac_n "(cached) $ac_c" 1>&6
8104 cat > conftest.$ac_ext <<EOF
8105 #line 8106 "configure"
8106 #include "confdefs.h"
8107 /* System header to define __stub macros and hopefully few prototypes,
8108 which can conflict with char dbm_open(); below. */
8110 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8117 /* The GNU C library defines this for functions which it implements
8118 to always fail with ENOSYS. Some functions are actually named
8119 something starting with __ and the normal name is an alias. */
8120 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8128 if { (eval echo configure:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8130 eval "ac_cv_func_dbm_open=yes"
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8135 eval "ac_cv_func_dbm_open=no"
8140 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8141 echo "$ac_t""yes" 1>&6
8144 echo "$ac_t""no" 1>&6
8146 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8147 echo "configure:8148: checking for dbm_open in -lndbm" >&5
8148 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8152 ac_save_LIBS="$LIBS"
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 /* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8166 if { (eval echo configure:8167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8168 eval "ac_cv_lib_$ac_lib_var=yes"
8170 echo "configure: failed program was:" >&5
8171 cat conftest.$ac_ext >&5
8173 eval "ac_cv_lib_$ac_lib_var=no"
8176 LIBS="$ac_save_LIBS"
8179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8180 echo "$ac_t""yes" 1>&6
8181 ol_cv_lib_ndbm=-lndbm
8183 echo "$ac_t""no" 1>&6
8185 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8186 echo "configure:8187: checking for dbm_open in -ldbm" >&5
8187 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8191 ac_save_LIBS="$LIBS"
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 /* We use char because int might match the return type of a gcc2
8198 builtin and then its argument prototype would still apply. */
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8207 eval "ac_cv_lib_$ac_lib_var=yes"
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 eval "ac_cv_lib_$ac_lib_var=no"
8215 LIBS="$ac_save_LIBS"
8218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8219 echo "$ac_t""yes" 1>&6
8220 ol_cv_lib_ndbm=-ldbm
8222 echo "$ac_t""no" 1>&6
8235 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8238 for ac_hdr in ndbm.h
8240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8242 echo "configure:8243: checking for $ac_hdr" >&5
8243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8244 echo $ac_n "(cached) $ac_c" 1>&6
8246 cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8252 { (eval echo configure:8253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8254 if test -z "$ac_err"; then
8256 eval "ac_cv_header_$ac_safe=yes"
8259 echo "configure: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8262 eval "ac_cv_header_$ac_safe=no"
8266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8267 echo "$ac_t""yes" 1>&6
8268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8269 cat >> confdefs.h <<EOF
8270 #define $ac_tr_hdr 1
8274 echo "$ac_t""no" 1>&6
8278 echo $ac_n "checking for db""... $ac_c" 1>&6
8279 echo "configure:8280: checking for db" >&5
8280 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8281 echo $ac_n "(cached) $ac_c" 1>&6
8284 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8292 echo "$ac_t""$ol_cv_ndbm" 1>&6
8293 if test $ol_cv_ndbm = yes ; then
8294 cat >> confdefs.h <<\EOF
8301 if test $ol_cv_ndbm = yes ; then
8303 ol_with_ldbm_api=ndbm
8305 if test $ol_cv_lib_ndbm != yes ; then
8306 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8311 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8312 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8313 if test $ol_enable_ldbm = yes ; then
8314 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8317 echo "configure: warning: disabling LDBM" 1>&2
8321 if test $ol_enable_wrappers != no ; then
8322 for ac_hdr in tcpd.h
8324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8326 echo "configure:8327: checking for $ac_hdr" >&5
8327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8328 echo $ac_n "(cached) $ac_c" 1>&6
8330 cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure"
8332 #include "confdefs.h"
8335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8336 { (eval echo configure:8337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8338 if test -z "$ac_err"; then
8340 eval "ac_cv_header_$ac_safe=yes"
8343 echo "configure: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8346 eval "ac_cv_header_$ac_safe=no"
8350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8353 cat >> confdefs.h <<EOF
8354 #define $ac_tr_hdr 1
8358 echo "$ac_t""no" 1>&6
8363 if test $ac_cv_header_tcpd_h != yes ; then
8366 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8367 echo "configure:8368: checking for main in -lwrap" >&5
8368 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
8372 ac_save_LIBS="$LIBS"
8374 cat > conftest.$ac_ext <<EOF
8375 #line 8376 "configure"
8376 #include "confdefs.h"
8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8384 eval "ac_cv_lib_$ac_lib_var=yes"
8386 echo "configure: failed program was:" >&5
8387 cat conftest.$ac_ext >&5
8389 eval "ac_cv_lib_$ac_lib_var=no"
8392 LIBS="$ac_save_LIBS"
8395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8396 echo "$ac_t""yes" 1>&6
8399 echo "$ac_t""no" 1>&6
8405 if test $have_wrappers = yes ; then
8406 cat >> confdefs.h <<\EOF
8410 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8412 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8413 echo "configure:8414: checking for main in -lnsl" >&5
8414 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 ac_save_LIBS="$LIBS"
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8428 if { (eval echo configure:8429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8430 eval "ac_cv_lib_$ac_lib_var=yes"
8432 echo "configure: failed program was:" >&5
8433 cat conftest.$ac_ext >&5
8435 eval "ac_cv_lib_$ac_lib_var=no"
8438 LIBS="$ac_save_LIBS"
8441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8442 echo "$ac_t""yes" 1>&6
8443 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8445 cat >> confdefs.h <<EOF
8446 #define $ac_tr_lib 1
8452 echo "$ac_t""no" 1>&6
8456 echo "configure: warning: could not find -lwrap" 1>&2
8457 if test $ol_enable_wrappers = yes ; then
8458 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8461 echo "configure: warning: disabling wrappers support" 1>&2
8462 ol_enable_wrappers=no
8466 if test $ol_enable_syslog != no ; then
8467 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8468 echo "configure:8469: checking for openlog" >&5
8469 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8472 cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8475 /* System header to define __stub macros and hopefully few prototypes,
8476 which can conflict with char openlog(); below. */
8478 /* Override any gcc2 internal prototype to avoid an error. */
8479 /* We use char because int might match the return type of a gcc2
8480 builtin and then its argument prototype would still apply. */
8485 /* The GNU C library defines this for functions which it implements
8486 to always fail with ENOSYS. Some functions are actually named
8487 something starting with __ and the normal name is an alias. */
8488 #if defined (__stub_openlog) || defined (__stub___openlog)
8496 if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8498 eval "ac_cv_func_openlog=yes"
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8503 eval "ac_cv_func_openlog=no"
8508 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8509 echo "$ac_t""yes" 1>&6
8512 echo "$ac_t""no" 1>&6
8515 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8516 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8518 ol_enable_syslog=$ac_cv_func_openlog
8521 if test $ol_enable_dmalloc != no ; then
8522 for ac_hdr in dmalloc.h
8524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8526 echo "configure:8527: checking for $ac_hdr" >&5
8527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8536 { (eval echo configure:8537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8538 if test -z "$ac_err"; then
8540 eval "ac_cv_header_$ac_safe=yes"
8543 echo "configure: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8546 eval "ac_cv_header_$ac_safe=no"
8550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8551 echo "$ac_t""yes" 1>&6
8552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8553 cat >> confdefs.h <<EOF
8554 #define $ac_tr_hdr 1
8558 echo "$ac_t""no" 1>&6
8562 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8563 echo "configure:8564: checking for dmalloc_shutdown in -ldmalloc" >&5
8564 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8568 ac_save_LIBS="$LIBS"
8569 LIBS="-ldmalloc $LIBS"
8570 cat > conftest.$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8573 /* Override any gcc2 internal prototype to avoid an error. */
8574 /* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8576 char dmalloc_shutdown();
8582 if { (eval echo configure:8583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8584 eval "ac_cv_lib_$ac_lib_var=yes"
8586 echo "configure: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8589 eval "ac_cv_lib_$ac_lib_var=no"
8592 LIBS="$ac_save_LIBS"
8595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8596 echo "$ac_t""yes" 1>&6
8597 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8599 cat >> confdefs.h <<EOF
8600 #define $ac_tr_lib 1
8603 LIBS="-ldmalloc $LIBS"
8606 echo "$ac_t""no" 1>&6
8611 if test $ol_enable_tcl != no ; then
8614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8616 echo "configure:8617: checking for $ac_hdr" >&5
8617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
8620 cat > conftest.$ac_ext <<EOF
8621 #line 8622 "configure"
8622 #include "confdefs.h"
8625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8626 { (eval echo configure:8627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8628 if test -z "$ac_err"; then
8630 eval "ac_cv_header_$ac_safe=yes"
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 eval "ac_cv_header_$ac_safe=no"
8640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8641 echo "$ac_t""yes" 1>&6
8642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8643 cat >> confdefs.h <<EOF
8644 #define $ac_tr_hdr 1
8648 echo "$ac_t""no" 1>&6
8653 if test $ac_cv_header_tcl_h != yes ; then
8656 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8657 echo "configure:8658: checking for main in -ltcl" >&5
8658 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8662 ac_save_LIBS="$LIBS"
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8672 if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8674 eval "ac_cv_lib_$ac_lib_var=yes"
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8679 eval "ac_cv_lib_$ac_lib_var=no"
8682 LIBS="$ac_save_LIBS"
8685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8686 echo "$ac_t""yes" 1>&6
8687 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8689 echo "$ac_t""no" 1>&6
8694 if test $have_tcl != yes; then
8695 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8696 echo "configure:8697: checking for main in -ltcl7.6" >&5
8697 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8701 ac_save_LIBS="$LIBS"
8702 LIBS="-ltcl7.6 $LIBS"
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8711 if { (eval echo configure:8712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8713 eval "ac_cv_lib_$ac_lib_var=yes"
8715 echo "configure: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8718 eval "ac_cv_lib_$ac_lib_var=no"
8721 LIBS="$ac_save_LIBS"
8724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8725 echo "$ac_t""yes" 1>&6
8726 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8728 echo "$ac_t""no" 1>&6
8734 if test $have_tcl != yes; then
8735 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8736 echo "configure:8737: checking for main in -ltcl8.0" >&5
8737 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8739 echo $ac_n "(cached) $ac_c" 1>&6
8741 ac_save_LIBS="$LIBS"
8742 LIBS="-ltcl8.0 $LIBS"
8743 cat > conftest.$ac_ext <<EOF
8744 #line 8745 "configure"
8745 #include "confdefs.h"
8751 if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8753 eval "ac_cv_lib_$ac_lib_var=yes"
8755 echo "configure: failed program was:" >&5
8756 cat conftest.$ac_ext >&5
8758 eval "ac_cv_lib_$ac_lib_var=no"
8761 LIBS="$ac_save_LIBS"
8764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8765 echo "$ac_t""yes" 1>&6
8766 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8768 echo "$ac_t""no" 1>&6
8775 if test $have_tcl != yes ; then
8776 echo "configure: warning: could not find -ltcl" 1>&2
8777 if test $ol_enable_tcl = yes ; then
8778 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8785 # ud needs termcap (should insert check here)
8787 for ac_hdr in termcap.h ncurses.h
8789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8791 echo "configure:8792: checking for $ac_hdr" >&5
8792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8793 echo $ac_n "(cached) $ac_c" 1>&6
8795 cat > conftest.$ac_ext <<EOF
8796 #line 8797 "configure"
8797 #include "confdefs.h"
8800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8801 { (eval echo configure:8802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8803 if test -z "$ac_err"; then
8805 eval "ac_cv_header_$ac_safe=yes"
8808 echo "configure: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8811 eval "ac_cv_header_$ac_safe=no"
8815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8816 echo "$ac_t""yes" 1>&6
8817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8818 cat >> confdefs.h <<EOF
8819 #define $ac_tr_hdr 1
8823 echo "$ac_t""no" 1>&6
8828 if test $ol_link_termcap = no ; then
8829 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8830 echo "configure:8831: checking for tputs in -ltermcap" >&5
8831 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8833 echo $ac_n "(cached) $ac_c" 1>&6
8835 ac_save_LIBS="$LIBS"
8836 LIBS="-ltermcap $LIBS"
8837 cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure"
8839 #include "confdefs.h"
8840 /* Override any gcc2 internal prototype to avoid an error. */
8841 /* We use char because int might match the return type of a gcc2
8842 builtin and then its argument prototype would still apply. */
8849 if { (eval echo configure:8850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8851 eval "ac_cv_lib_$ac_lib_var=yes"
8853 echo "configure: failed program was:" >&5
8854 cat conftest.$ac_ext >&5
8856 eval "ac_cv_lib_$ac_lib_var=no"
8859 LIBS="$ac_save_LIBS"
8862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8863 echo "$ac_t""yes" 1>&6
8866 echo "$ac_t""no" 1>&6
8870 if test $have_termcap = yes ; then
8871 cat >> confdefs.h <<\EOF
8872 #define HAVE_TERMCAP 1
8876 TERMCAP_LIBS=-ltermcap
8880 if test $ol_link_termcap = no ; then
8881 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8882 echo "configure:8883: checking for initscr in -lncurses" >&5
8883 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8887 ac_save_LIBS="$LIBS"
8888 LIBS="-lncurses $LIBS"
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8903 eval "ac_cv_lib_$ac_lib_var=yes"
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8908 eval "ac_cv_lib_$ac_lib_var=no"
8911 LIBS="$ac_save_LIBS"
8914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8915 echo "$ac_t""yes" 1>&6
8918 echo "$ac_t""no" 1>&6
8922 if test $have_ncurses = yes ; then
8923 cat >> confdefs.h <<\EOF
8924 #define HAVE_NCURSES 1
8928 TERMCAP_LIBS=-lncurses
8932 if test $ol_link_termcap = no ; then
8933 cat >> confdefs.h <<\EOF
8934 #define NO_TERMCAP 1
8941 if test $ol_with_readline != no ; then
8942 for ac_hdr in readline/readline.h readline/history.h
8944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8946 echo "configure:8947: checking for $ac_hdr" >&5
8947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8950 cat > conftest.$ac_ext <<EOF
8951 #line 8952 "configure"
8952 #include "confdefs.h"
8955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8956 { (eval echo configure:8957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8958 if test -z "$ac_err"; then
8960 eval "ac_cv_header_$ac_safe=yes"
8963 echo "configure: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8966 eval "ac_cv_header_$ac_safe=no"
8970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8971 echo "$ac_t""yes" 1>&6
8972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8973 cat >> confdefs.h <<EOF
8974 #define $ac_tr_hdr 1
8978 echo "$ac_t""no" 1>&6
8983 if test $ac_cv_header_readline_readline_h = yes ; then
8985 LIBS="$TERMCAP_LIBS $LIBS"
8986 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8987 echo "configure:8988: checking for readline in -lreadline" >&5
8988 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8990 echo $ac_n "(cached) $ac_c" 1>&6
8992 ac_save_LIBS="$LIBS"
8993 LIBS="-lreadline $LIBS"
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* Override any gcc2 internal prototype to avoid an error. */
8998 /* We use char because int might match the return type of a gcc2
8999 builtin and then its argument prototype would still apply. */
9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9008 eval "ac_cv_lib_$ac_lib_var=yes"
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 eval "ac_cv_lib_$ac_lib_var=no"
9016 LIBS="$ac_save_LIBS"
9019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9023 echo "$ac_t""no" 1>&6
9029 if test $have_readline = yes ; then
9030 ol_with_readline=found
9031 ol_link_readline=yes
9033 READLINE_LIBS="-lreadline"
9038 if test $ol_link_readline = yes ; then
9039 cat >> confdefs.h <<\EOF
9040 #define HAVE_READLINE 1
9046 # FreeBSD (and others) have crypt(3) in -lcrypt
9047 if test $ol_enable_crypt != no ; then
9048 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9049 echo "configure:9050: checking for crypt" >&5
9050 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9053 cat > conftest.$ac_ext <<EOF
9054 #line 9055 "configure"
9055 #include "confdefs.h"
9056 /* System header to define __stub macros and hopefully few prototypes,
9057 which can conflict with char crypt(); below. */
9059 /* Override any gcc2 internal prototype to avoid an error. */
9060 /* We use char because int might match the return type of a gcc2
9061 builtin and then its argument prototype would still apply. */
9066 /* The GNU C library defines this for functions which it implements
9067 to always fail with ENOSYS. Some functions are actually named
9068 something starting with __ and the normal name is an alias. */
9069 #if defined (__stub_crypt) || defined (__stub___crypt)
9077 if { (eval echo configure:9078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9079 eval "ac_cv_func_crypt=yes"
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9084 eval "ac_cv_func_crypt=no"
9089 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9090 echo "$ac_t""yes" 1>&6
9093 echo "$ac_t""no" 1>&6
9095 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9096 echo "configure:9097: checking for crypt in -lcrypt" >&5
9097 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9101 ac_save_LIBS="$LIBS"
9102 LIBS="-lcrypt $LIBS"
9103 cat > conftest.$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9106 /* Override any gcc2 internal prototype to avoid an error. */
9107 /* We use char because int might match the return type of a gcc2
9108 builtin and then its argument prototype would still apply. */
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9117 eval "ac_cv_lib_$ac_lib_var=yes"
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 eval "ac_cv_lib_$ac_lib_var=no"
9125 LIBS="$ac_save_LIBS"
9128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9129 echo "$ac_t""yes" 1>&6
9130 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9133 echo "$ac_t""no" 1>&6
9140 if test $have_crypt = yes ; then
9141 cat >> confdefs.h <<\EOF
9142 #define HAVE_CRYPT 1
9146 echo "configure: warning: could not find crypt" 1>&2
9147 if test $ol_enable_crypt = yes ; then
9148 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9151 echo "configure: warning: disabling crypt support" 1>&2
9156 # FreeBSD (and others) have setproctitle(3) in -lutil
9157 if test $ol_enable_proctitle != no ; then
9158 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9159 echo "configure:9160: checking for setproctitle" >&5
9160 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9163 cat > conftest.$ac_ext <<EOF
9164 #line 9165 "configure"
9165 #include "confdefs.h"
9166 /* System header to define __stub macros and hopefully few prototypes,
9167 which can conflict with char setproctitle(); below. */
9169 /* Override any gcc2 internal prototype to avoid an error. */
9170 /* We use char because int might match the return type of a gcc2
9171 builtin and then its argument prototype would still apply. */
9172 char setproctitle();
9176 /* The GNU C library defines this for functions which it implements
9177 to always fail with ENOSYS. Some functions are actually named
9178 something starting with __ and the normal name is an alias. */
9179 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9187 if { (eval echo configure:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9189 eval "ac_cv_func_setproctitle=yes"
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9194 eval "ac_cv_func_setproctitle=no"
9199 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9200 echo "$ac_t""yes" 1>&6
9201 have_setproctitle=yes
9203 echo "$ac_t""no" 1>&6
9205 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9206 echo "configure:9207: checking for setproctitle in -lutil" >&5
9207 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9211 ac_save_LIBS="$LIBS"
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 /* Override any gcc2 internal prototype to avoid an error. */
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9219 char setproctitle();
9225 if { (eval echo configure:9226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9227 eval "ac_cv_lib_$ac_lib_var=yes"
9229 echo "configure: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9232 eval "ac_cv_lib_$ac_lib_var=no"
9235 LIBS="$ac_save_LIBS"
9238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9239 echo "$ac_t""yes" 1>&6
9240 have_setproctitle=yes
9241 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9243 echo "$ac_t""no" 1>&6
9244 have_setproctitle=no
9245 LIBOBJS="$LIBOBJS setproctitle.o"
9251 if test $have_setproctitle = yes ; then
9252 cat >> confdefs.h <<\EOF
9253 #define HAVE_SETPROCTITLE 1
9260 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9261 echo "configure:9262: checking for EBCDIC" >&5
9262 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9271 #include <__ASCII__/generate_error.h>
9275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9276 { (eval echo configure:9277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9278 if test -z "$ac_err"; then
9280 ol_cv_cpp_ebcdic=yes
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9291 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9292 if test $ol_cv_cpp_ebcdic = yes ; then
9293 cat >> confdefs.h <<\EOF
9294 #define HAVE_EBCDIC 1
9299 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9300 echo "configure:9301: checking for ANSI C header files" >&5
9301 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9304 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure"
9306 #include "confdefs.h"
9312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9313 { (eval echo configure:9314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9315 if test -z "$ac_err"; then
9317 ol_cv_header_stdc=yes
9320 echo "configure: failed program was:" >&5
9321 cat conftest.$ac_ext >&5
9323 ol_cv_header_stdc=no
9327 if test $ol_cv_header_stdc = yes; then
9328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9329 cat > conftest.$ac_ext <<EOF
9330 #line 9331 "configure"
9331 #include "confdefs.h"
9334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9335 egrep "memchr" >/dev/null 2>&1; then
9339 ol_cv_header_stdc=no
9345 if test $ol_cv_header_stdc = yes; then
9346 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9347 cat > conftest.$ac_ext <<EOF
9348 #line 9349 "configure"
9349 #include "confdefs.h"
9352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9353 egrep "free" >/dev/null 2>&1; then
9357 ol_cv_header_stdc=no
9363 if test $ol_cv_header_stdc = yes; then
9364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9365 if test "$cross_compiling" = yes; then
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9376 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9377 || ('j' <= (c) && (c) <= 'r') \
9378 || ('s' <= (c) && (c) <= 'z'))
9379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9382 int main () { int i; for (i = 0; i < 256; i++)
9383 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 ol_cv_header_stdc=no
9402 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9403 if test $ol_cv_header_stdc = yes; then
9404 cat >> confdefs.h <<\EOF
9405 #define STDC_HEADERS 1
9409 ac_cv_header_stdc=disable
9412 if test $ol_cv_header_stdc != yes; then
9413 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9417 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9420 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9421 echo "configure:9422: checking for $ac_hdr that defines DIR" >&5
9422 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9423 echo $ac_n "(cached) $ac_c" 1>&6
9425 cat > conftest.$ac_ext <<EOF
9426 #line 9427 "configure"
9427 #include "confdefs.h"
9428 #include <sys/types.h>
9434 if { (eval echo configure:9435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9436 eval "ac_cv_header_dirent_$ac_safe=yes"
9438 echo "configure: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9441 eval "ac_cv_header_dirent_$ac_safe=no"
9445 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9446 echo "$ac_t""yes" 1>&6
9447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9448 cat >> confdefs.h <<EOF
9449 #define $ac_tr_hdr 1
9451 ac_header_dirent=$ac_hdr; break
9453 echo "$ac_t""no" 1>&6
9456 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9457 if test $ac_header_dirent = dirent.h; then
9458 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9459 echo "configure:9460: checking for opendir in -ldir" >&5
9460 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9462 echo $ac_n "(cached) $ac_c" 1>&6
9464 ac_save_LIBS="$LIBS"
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9469 /* Override any gcc2 internal prototype to avoid an error. */
9470 /* We use char because int might match the return type of a gcc2
9471 builtin and then its argument prototype would still apply. */
9478 if { (eval echo configure:9479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9480 eval "ac_cv_lib_$ac_lib_var=yes"
9482 echo "configure: failed program was:" >&5
9483 cat conftest.$ac_ext >&5
9485 eval "ac_cv_lib_$ac_lib_var=no"
9488 LIBS="$ac_save_LIBS"
9491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9492 echo "$ac_t""yes" 1>&6
9495 echo "$ac_t""no" 1>&6
9499 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9500 echo "configure:9501: checking for opendir in -lx" >&5
9501 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9505 ac_save_LIBS="$LIBS"
9507 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9510 /* Override any gcc2 internal prototype to avoid an error. */
9511 /* We use char because int might match the return type of a gcc2
9512 builtin and then its argument prototype would still apply. */
9519 if { (eval echo configure:9520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9521 eval "ac_cv_lib_$ac_lib_var=yes"
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9526 eval "ac_cv_lib_$ac_lib_var=no"
9529 LIBS="$ac_save_LIBS"
9532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9533 echo "$ac_t""yes" 1>&6
9536 echo "$ac_t""no" 1>&6
9541 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9542 echo "configure:9543: checking for sys/wait.h that is POSIX.1 compatible" >&5
9543 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9544 echo $ac_n "(cached) $ac_c" 1>&6
9546 cat > conftest.$ac_ext <<EOF
9547 #line 9548 "configure"
9548 #include "confdefs.h"
9549 #include <sys/types.h>
9550 #include <sys/wait.h>
9552 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9555 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9560 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9563 if { (eval echo configure:9564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9565 ac_cv_header_sys_wait_h=yes
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9570 ac_cv_header_sys_wait_h=no
9575 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9576 if test $ac_cv_header_sys_wait_h = yes; then
9577 cat >> confdefs.h <<\EOF
9578 #define HAVE_SYS_WAIT_H 1
9583 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9584 echo "configure:9585: checking POSIX termios" >&5
9585 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9591 #include <sys/types.h>
9593 #include <termios.h>
9595 /* SunOS 4.0.3 has termios.h but not the library calls. */
9599 if { (eval echo configure:9600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9601 am_cv_sys_posix_termios=yes
9603 echo "configure: failed program was:" >&5
9604 cat conftest.$ac_ext >&5
9606 am_cv_sys_posix_termios=no
9611 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9614 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9615 echo "configure:9616: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9616 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9619 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9621 gwinsz_in_termios_h=no
9622 if test $am_cv_sys_posix_termios = yes; then
9623 cat > conftest.$ac_ext <<EOF
9624 #line 9625 "configure"
9625 #include "confdefs.h"
9626 #include <sys/types.h>
9627 # include <termios.h>
9633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9634 egrep "yes" >/dev/null 2>&1; then
9636 gwinsz_in_termios_h=yes
9642 if test $gwinsz_in_termios_h = no; then
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 #include <sys/types.h>
9647 # include <sys/ioctl.h>
9653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9654 egrep "yes" >/dev/null 2>&1; then
9656 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9664 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9665 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9666 cat >> confdefs.h <<\EOF
9667 #define GWINSZ_IN_SYS_IOCTL 1
9672 if test $am_cv_sys_posix_termios = yes ; then
9673 cat >> confdefs.h <<\EOF
9674 #define HAVE_POSIX_TERMIOS 1
9719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9721 echo "configure:9722: checking for $ac_hdr" >&5
9722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9723 echo $ac_n "(cached) $ac_c" 1>&6
9725 cat > conftest.$ac_ext <<EOF
9726 #line 9727 "configure"
9727 #include "confdefs.h"
9730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9731 { (eval echo configure:9732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9733 if test -z "$ac_err"; then
9735 eval "ac_cv_header_$ac_safe=yes"
9738 echo "configure: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9741 eval "ac_cv_header_$ac_safe=no"
9745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9746 echo "$ac_t""yes" 1>&6
9747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9748 cat >> confdefs.h <<EOF
9749 #define $ac_tr_hdr 1
9753 echo "$ac_t""no" 1>&6
9758 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9759 echo "configure:9760: checking for uid_t in sys/types.h" >&5
9760 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9761 echo $ac_n "(cached) $ac_c" 1>&6
9763 cat > conftest.$ac_ext <<EOF
9764 #line 9765 "configure"
9765 #include "confdefs.h"
9766 #include <sys/types.h>
9768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9769 egrep "uid_t" >/dev/null 2>&1; then
9771 ac_cv_type_uid_t=yes
9780 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9781 if test $ac_cv_type_uid_t = no; then
9782 cat >> confdefs.h <<\EOF
9786 cat >> confdefs.h <<\EOF
9792 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9793 echo "configure:9794: checking type of array argument to getgroups" >&5
9794 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9795 echo $ac_n "(cached) $ac_c" 1>&6
9797 if test "$cross_compiling" = yes; then
9798 ac_cv_type_getgroups=cross
9800 cat > conftest.$ac_ext <<EOF
9801 #line 9802 "configure"
9802 #include "confdefs.h"
9804 /* Thanks to Mike Rendell for this test. */
9805 #include <sys/types.h>
9808 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9813 union { gid_t gval; long lval; } val;
9816 for (i = 0; i < NGID; i++)
9817 gidset[i] = val.gval;
9818 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9820 /* Exit non-zero if getgroups seems to require an array of ints. This
9821 happens when gid_t is short but getgroups modifies an array of ints. */
9822 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9828 ac_cv_type_getgroups=gid_t
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9833 ac_cv_type_getgroups=int
9838 if test $ac_cv_type_getgroups = cross; then
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9845 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9847 ac_cv_type_getgroups=gid_t
9850 ac_cv_type_getgroups=int
9857 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9858 cat >> confdefs.h <<EOF
9859 #define GETGROUPS_T $ac_cv_type_getgroups
9862 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9863 echo "configure:9864: checking for ANSI C header files" >&5
9864 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9876 { (eval echo configure:9877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9878 if test -z "$ac_err"; then
9880 ac_cv_header_stdc=yes
9883 echo "configure: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9886 ac_cv_header_stdc=no
9890 if test $ac_cv_header_stdc = yes; then
9891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9898 egrep "memchr" >/dev/null 2>&1; then
9902 ac_cv_header_stdc=no
9908 if test $ac_cv_header_stdc = yes; then
9909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9910 cat > conftest.$ac_ext <<EOF
9911 #line 9912 "configure"
9912 #include "confdefs.h"
9915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9916 egrep "free" >/dev/null 2>&1; then
9920 ac_cv_header_stdc=no
9926 if test $ac_cv_header_stdc = yes; then
9927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9928 if test "$cross_compiling" = yes; then
9931 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9935 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9936 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9938 int main () { int i; for (i = 0; i < 256; i++)
9939 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9943 if { (eval echo configure:9944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9947 echo "configure: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9950 ac_cv_header_stdc=no
9958 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9959 if test $ac_cv_header_stdc = yes; then
9960 cat >> confdefs.h <<\EOF
9961 #define STDC_HEADERS 1
9966 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9967 echo "configure:9968: checking for mode_t" >&5
9968 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 #include <sys/types.h>
9980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9981 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9983 ac_cv_type_mode_t=yes
9986 ac_cv_type_mode_t=no
9991 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9992 if test $ac_cv_type_mode_t = no; then
9993 cat >> confdefs.h <<\EOF
9999 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10000 echo "configure:10001: checking for off_t" >&5
10001 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 #include <sys/types.h>
10009 #include <stdlib.h>
10010 #include <stddef.h>
10013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10014 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10016 ac_cv_type_off_t=yes
10019 ac_cv_type_off_t=no
10024 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10025 if test $ac_cv_type_off_t = no; then
10026 cat >> confdefs.h <<\EOF
10032 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10033 echo "configure:10034: checking for pid_t" >&5
10034 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10035 echo $ac_n "(cached) $ac_c" 1>&6
10037 cat > conftest.$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10040 #include <sys/types.h>
10042 #include <stdlib.h>
10043 #include <stddef.h>
10046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10047 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10049 ac_cv_type_pid_t=yes
10052 ac_cv_type_pid_t=no
10057 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10058 if test $ac_cv_type_pid_t = no; then
10059 cat >> confdefs.h <<\EOF
10065 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10066 echo "configure:10067: checking for ptrdiff_t" >&5
10067 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 #include <stddef.h>
10078 if { (eval echo configure:10079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10080 am_cv_type_ptrdiff_t=yes
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10085 am_cv_type_ptrdiff_t=no
10090 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10091 if test $am_cv_type_ptrdiff_t = yes; then
10092 cat >> confdefs.h <<\EOF
10093 #define HAVE_PTRDIFF_T 1
10098 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10099 echo "configure:10100: checking return type of signal handlers" >&5
10100 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10106 #include <sys/types.h>
10107 #include <signal.h>
10112 extern "C" void (*signal (int, void (*)(int)))(int);
10114 void (*signal ()) ();
10121 if { (eval echo configure:10122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10123 ac_cv_type_signal=void
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10128 ac_cv_type_signal=int
10133 echo "$ac_t""$ac_cv_type_signal" 1>&6
10134 cat >> confdefs.h <<EOF
10135 #define RETSIGTYPE $ac_cv_type_signal
10139 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10140 echo "configure:10141: checking for sig_atomic_t" >&5
10141 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10142 echo $ac_n "(cached) $ac_c" 1>&6
10144 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 #include <signal.h>
10149 sig_atomic_t atomic;
10152 if { (eval echo configure:10153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10154 ol_cv_type_sig_atomic_t=yes
10156 echo "configure: failed program was:" >&5
10157 cat conftest.$ac_ext >&5
10159 ol_cv_type_sig_atomic_t=no
10164 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10165 if test $ol_cv_type_sig_atomic_t = no; then
10166 cat >> confdefs.h <<\EOF
10167 #define sig_atomic_t int
10172 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10173 echo "configure:10174: checking for size_t" >&5
10174 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10175 echo $ac_n "(cached) $ac_c" 1>&6
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 #include <sys/types.h>
10182 #include <stdlib.h>
10183 #include <stddef.h>
10186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10187 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10189 ac_cv_type_size_t=yes
10192 ac_cv_type_size_t=no
10197 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10198 if test $ac_cv_type_size_t = no; then
10199 cat >> confdefs.h <<\EOF
10200 #define size_t unsigned
10205 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10206 echo "configure:10207: checking for st_blksize in struct stat" >&5
10207 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10213 #include <sys/types.h>
10214 #include <sys/stat.h>
10216 struct stat s; s.st_blksize;
10219 if { (eval echo configure:10220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10221 ac_cv_struct_st_blksize=yes
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10226 ac_cv_struct_st_blksize=no
10231 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10232 if test $ac_cv_struct_st_blksize = yes; then
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_ST_BLKSIZE 1
10239 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10240 echo "configure:10241: checking whether time.h and sys/time.h may both be included" >&5
10241 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10242 echo $ac_n "(cached) $ac_c" 1>&6
10244 cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 #include <sys/types.h>
10248 #include <sys/time.h>
10254 if { (eval echo configure:10255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10256 ac_cv_header_time=yes
10258 echo "configure: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10261 ac_cv_header_time=no
10266 echo "$ac_t""$ac_cv_header_time" 1>&6
10267 if test $ac_cv_header_time = yes; then
10268 cat >> confdefs.h <<\EOF
10269 #define TIME_WITH_SYS_TIME 1
10274 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10275 echo "configure:10276: checking whether struct tm is in sys/time.h or time.h" >&5
10276 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10277 echo $ac_n "(cached) $ac_c" 1>&6
10279 cat > conftest.$ac_ext <<EOF
10280 #line 10281 "configure"
10281 #include "confdefs.h"
10282 #include <sys/types.h>
10285 struct tm *tp; tp->tm_sec;
10288 if { (eval echo configure:10289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10290 ac_cv_struct_tm=time.h
10292 echo "configure: failed program was:" >&5
10293 cat conftest.$ac_ext >&5
10295 ac_cv_struct_tm=sys/time.h
10300 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10301 if test $ac_cv_struct_tm = sys/time.h; then
10302 cat >> confdefs.h <<\EOF
10303 #define TM_IN_SYS_TIME 1
10308 # test for pw_gecos in struct passwd
10309 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10310 echo "configure:10311: checking struct passwd for pw_gecos" >&5
10311 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10312 echo $ac_n "(cached) $ac_c" 1>&6
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10322 pwd.pw_gecos = pwd.pw_name;
10326 if { (eval echo configure:10327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10328 ol_cv_struct_passwd_pw_gecos=yes
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10333 ol_cv_struct_passwd_pw_gecos=no
10338 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10339 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10340 cat >> confdefs.h <<\EOF
10341 #define HAVE_PW_GECOS 1
10348 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10349 echo "configure:10350: checking if toupper() requires islower()" >&5
10350 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
10354 if test "$cross_compiling" = yes; then
10355 ol_cv_c_upper_lower=safe
10357 cat > conftest.$ac_ext <<EOF
10358 #line 10359 "configure"
10359 #include "confdefs.h"
10364 if ('C' == toupper('C'))
10370 if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10372 ol_cv_c_upper_lower=no
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10377 ol_cv_c_upper_lower=yes
10384 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10385 if test $ol_cv_c_upper_lower != no ; then
10386 cat >> confdefs.h <<\EOF
10387 #define C_UPPER_LOWER 1
10392 echo $ac_n "checking for working const""... $ac_c" 1>&6
10393 echo "configure:10394: checking for working const" >&5
10394 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10395 echo $ac_n "(cached) $ac_c" 1>&6
10397 cat > conftest.$ac_ext <<EOF
10398 #line 10399 "configure"
10399 #include "confdefs.h"
10403 /* Ultrix mips cc rejects this. */
10404 typedef int charset[2]; const charset x;
10405 /* SunOS 4.1.1 cc rejects this. */
10406 char const *const *ccp;
10408 /* NEC SVR4.0.2 mips cc rejects this. */
10409 struct point {int x, y;};
10410 static struct point const zero = {0,0};
10411 /* AIX XL C 1.02.0.0 rejects this.
10412 It does not let you subtract one const X* pointer from another in an arm
10413 of an if-expression whose if-part is not a constant expression */
10414 const char *g = "string";
10415 ccp = &g + (g ? g-g : 0);
10416 /* HPUX 7.0 cc rejects these. */
10419 ccp = (char const *const *) p;
10420 { /* SCO 3.2v4 cc rejects this. */
10422 char const *s = 0 ? (char *) 0 : (char const *) 0;
10426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10427 int x[] = {25, 17};
10428 const int *foo = &x[0];
10431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10432 typedef const int *iptr;
10436 { /* AIX XL C 1.02.0.0 rejects this saying
10437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10438 struct s { int j; const int *ap[3]; };
10439 struct s *b; b->j = 5;
10441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10442 const int foo = 10;
10447 if { (eval echo configure:10448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10451 echo "configure: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10459 echo "$ac_t""$ac_cv_c_const" 1>&6
10460 if test $ac_cv_c_const = no; then
10461 cat >> confdefs.h <<\EOF
10467 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10468 echo "configure:10469: checking if compiler understands volatile" >&5
10469 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10470 echo $ac_n "(cached) $ac_c" 1>&6
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10477 volatile int a; int * volatile b = x ? &y : &z;
10478 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10482 if { (eval echo configure:10483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10484 ol_cv_c_volatile=yes
10486 echo "configure: failed program was:" >&5
10487 cat conftest.$ac_ext >&5
10489 ol_cv_c_volatile=no
10494 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10495 if test $ol_cv_c_volatile = yes; then
10498 cat >> confdefs.h <<\EOF
10505 if test $cross_compiling = yes ; then
10506 cat >> confdefs.h <<\EOF
10507 #define CROSS_COMPILING 1
10511 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10512 echo "configure:10513: checking whether byte ordering is bigendian" >&5
10513 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10516 ac_cv_c_bigendian=unknown
10517 # See if sys/param.h defines the BYTE_ORDER macro.
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521 #include <sys/types.h>
10522 #include <sys/param.h>
10525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10526 bogus endian macros
10530 if { (eval echo configure:10531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10532 # It does; now see whether it defined to BIG_ENDIAN or not.
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <sys/types.h>
10537 #include <sys/param.h>
10540 #if BYTE_ORDER != BIG_ENDIAN
10545 if { (eval echo configure:10546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10547 ac_cv_c_bigendian=yes
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10552 ac_cv_c_bigendian=no
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10560 if test $ac_cv_c_bigendian = unknown; then
10561 if test "$cross_compiling" = yes; then
10562 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10568 /* Are we little or big endian? From Harbison&Steele. */
10572 char c[sizeof (long)];
10575 exit (u.c[sizeof (long) - 1] == 1);
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10580 ac_cv_c_bigendian=no
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10585 ac_cv_c_bigendian=yes
10593 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10594 if test $ac_cv_c_bigendian = yes; then
10595 cat >> confdefs.h <<\EOF
10596 #define WORDS_BIGENDIAN 1
10601 echo $ac_n "checking size of short""... $ac_c" 1>&6
10602 echo "configure:10603: checking size of short" >&5
10603 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10606 if test "$cross_compiling" = yes; then
10607 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10609 cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10615 FILE *f=fopen("conftestval", "w");
10617 fprintf(f, "%d\n", sizeof(short));
10621 if { (eval echo configure:10622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10623 ac_cv_sizeof_short=`cat conftestval`
10625 echo "configure: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10628 ac_cv_sizeof_short=0
10634 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10635 cat >> confdefs.h <<EOF
10636 #define SIZEOF_SHORT $ac_cv_sizeof_short
10640 echo $ac_n "checking size of int""... $ac_c" 1>&6
10641 echo "configure:10642: checking size of int" >&5
10642 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10643 echo $ac_n "(cached) $ac_c" 1>&6
10645 if test "$cross_compiling" = yes; then
10646 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10648 cat > conftest.$ac_ext <<EOF
10649 #line 10650 "configure"
10650 #include "confdefs.h"
10654 FILE *f=fopen("conftestval", "w");
10656 fprintf(f, "%d\n", sizeof(int));
10660 if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10662 ac_cv_sizeof_int=`cat conftestval`
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10673 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10674 cat >> confdefs.h <<EOF
10675 #define SIZEOF_INT $ac_cv_sizeof_int
10679 echo $ac_n "checking size of long""... $ac_c" 1>&6
10680 echo "configure:10681: checking size of long" >&5
10681 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10682 echo $ac_n "(cached) $ac_c" 1>&6
10684 if test "$cross_compiling" = yes; then
10685 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10687 cat > conftest.$ac_ext <<EOF
10688 #line 10689 "configure"
10689 #include "confdefs.h"
10693 FILE *f=fopen("conftestval", "w");
10695 fprintf(f, "%d\n", sizeof(long));
10699 if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10701 ac_cv_sizeof_long=`cat conftestval`
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10706 ac_cv_sizeof_long=0
10712 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10713 cat >> confdefs.h <<EOF
10714 #define SIZEOF_LONG $ac_cv_sizeof_long
10720 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10721 echo "configure:10722: checking for 8-bit clean memcmp" >&5
10722 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10723 echo $ac_n "(cached) $ac_c" 1>&6
10725 if test "$cross_compiling" = yes; then
10726 ac_cv_func_memcmp_clean=no
10728 cat > conftest.$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10734 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10735 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10739 if { (eval echo configure:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10741 ac_cv_func_memcmp_clean=yes
10743 echo "configure: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10746 ac_cv_func_memcmp_clean=no
10753 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10754 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10756 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10757 echo "configure:10758: checking for strftime" >&5
10758 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764 /* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char strftime(); below. */
10766 #include <assert.h>
10767 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10774 /* The GNU C library defines this for functions which it implements
10775 to always fail with ENOSYS. Some functions are actually named
10776 something starting with __ and the normal name is an alias. */
10777 #if defined (__stub_strftime) || defined (__stub___strftime)
10785 if { (eval echo configure:10786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10787 eval "ac_cv_func_strftime=yes"
10789 echo "configure: failed program was:" >&5
10790 cat conftest.$ac_ext >&5
10792 eval "ac_cv_func_strftime=no"
10797 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10798 echo "$ac_t""yes" 1>&6
10799 cat >> confdefs.h <<\EOF
10800 #define HAVE_STRFTIME 1
10804 echo "$ac_t""no" 1>&6
10805 # strftime is in -lintl on SCO UNIX.
10806 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10807 echo "configure:10808: checking for strftime in -lintl" >&5
10808 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10810 echo $ac_n "(cached) $ac_c" 1>&6
10812 ac_save_LIBS="$LIBS"
10813 LIBS="-lintl $LIBS"
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10817 /* Override any gcc2 internal prototype to avoid an error. */
10818 /* We use char because int might match the return type of a gcc2
10819 builtin and then its argument prototype would still apply. */
10826 if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10828 eval "ac_cv_lib_$ac_lib_var=yes"
10830 echo "configure: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10833 eval "ac_cv_lib_$ac_lib_var=no"
10836 LIBS="$ac_save_LIBS"
10839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10840 echo "$ac_t""yes" 1>&6
10841 cat >> confdefs.h <<\EOF
10842 #define HAVE_STRFTIME 1
10845 LIBS="-lintl $LIBS"
10847 echo "$ac_t""no" 1>&6
10853 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10854 echo "configure:10855: checking for vprintf" >&5
10855 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10856 echo $ac_n "(cached) $ac_c" 1>&6
10858 cat > conftest.$ac_ext <<EOF
10859 #line 10860 "configure"
10860 #include "confdefs.h"
10861 /* System header to define __stub macros and hopefully few prototypes,
10862 which can conflict with char vprintf(); below. */
10863 #include <assert.h>
10864 /* Override any gcc2 internal prototype to avoid an error. */
10865 /* We use char because int might match the return type of a gcc2
10866 builtin and then its argument prototype would still apply. */
10871 /* The GNU C library defines this for functions which it implements
10872 to always fail with ENOSYS. Some functions are actually named
10873 something starting with __ and the normal name is an alias. */
10874 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10882 if { (eval echo configure:10883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10884 eval "ac_cv_func_vprintf=yes"
10886 echo "configure: failed program was:" >&5
10887 cat conftest.$ac_ext >&5
10889 eval "ac_cv_func_vprintf=no"
10894 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10895 echo "$ac_t""yes" 1>&6
10896 cat >> confdefs.h <<\EOF
10897 #define HAVE_VPRINTF 1
10901 echo "$ac_t""no" 1>&6
10904 if test "$ac_cv_func_vprintf" != yes; then
10905 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10906 echo "configure:10907: checking for _doprnt" >&5
10907 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10908 echo $ac_n "(cached) $ac_c" 1>&6
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure"
10912 #include "confdefs.h"
10913 /* System header to define __stub macros and hopefully few prototypes,
10914 which can conflict with char _doprnt(); below. */
10915 #include <assert.h>
10916 /* Override any gcc2 internal prototype to avoid an error. */
10917 /* We use char because int might match the return type of a gcc2
10918 builtin and then its argument prototype would still apply. */
10923 /* The GNU C library defines this for functions which it implements
10924 to always fail with ENOSYS. Some functions are actually named
10925 something starting with __ and the normal name is an alias. */
10926 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10936 eval "ac_cv_func__doprnt=yes"
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10941 eval "ac_cv_func__doprnt=no"
10946 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10947 echo "$ac_t""yes" 1>&6
10948 cat >> confdefs.h <<\EOF
10949 #define HAVE_DOPRNT 1
10953 echo "$ac_t""no" 1>&6
10959 if test $ac_cv_func_vprintf = yes ; then
10960 for ac_func in vsnprintf vsprintf
10962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10963 echo "configure:10964: checking for $ac_func" >&5
10964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10965 echo $ac_n "(cached) $ac_c" 1>&6
10967 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 /* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char $ac_func(); below. */
10972 #include <assert.h>
10973 /* Override any gcc2 internal prototype to avoid an error. */
10974 /* We use char because int might match the return type of a gcc2
10975 builtin and then its argument prototype would still apply. */
10980 /* The GNU C library defines this for functions which it implements
10981 to always fail with ENOSYS. Some functions are actually named
10982 something starting with __ and the normal name is an alias. */
10983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10991 if { (eval echo configure:10992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10993 eval "ac_cv_func_$ac_func=yes"
10995 echo "configure: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10998 eval "ac_cv_func_$ac_func=no"
11003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11004 echo "$ac_t""yes" 1>&6
11005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11006 cat >> confdefs.h <<EOF
11007 #define $ac_tr_func 1
11011 echo "$ac_t""no" 1>&6
11058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11059 echo "configure:11060: checking for $ac_func" >&5
11060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11061 echo $ac_n "(cached) $ac_c" 1>&6
11063 cat > conftest.$ac_ext <<EOF
11064 #line 11065 "configure"
11065 #include "confdefs.h"
11066 /* System header to define __stub macros and hopefully few prototypes,
11067 which can conflict with char $ac_func(); below. */
11068 #include <assert.h>
11069 /* Override any gcc2 internal prototype to avoid an error. */
11070 /* We use char because int might match the return type of a gcc2
11071 builtin and then its argument prototype would still apply. */
11076 /* The GNU C library defines this for functions which it implements
11077 to always fail with ENOSYS. Some functions are actually named
11078 something starting with __ and the normal name is an alias. */
11079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11087 if { (eval echo configure:11088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11089 eval "ac_cv_func_$ac_func=yes"
11091 echo "configure: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11094 eval "ac_cv_func_$ac_func=no"
11099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11100 echo "$ac_t""yes" 1>&6
11101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11102 cat >> confdefs.h <<EOF
11103 #define $ac_tr_func 1
11107 echo "$ac_t""no" 1>&6
11112 for ac_func in getopt tempnam
11114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11115 echo "configure:11116: checking for $ac_func" >&5
11116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11119 cat > conftest.$ac_ext <<EOF
11120 #line 11121 "configure"
11121 #include "confdefs.h"
11122 /* System header to define __stub macros and hopefully few prototypes,
11123 which can conflict with char $ac_func(); below. */
11124 #include <assert.h>
11125 /* Override any gcc2 internal prototype to avoid an error. */
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11132 /* The GNU C library defines this for functions which it implements
11133 to always fail with ENOSYS. Some functions are actually named
11134 something starting with __ and the normal name is an alias. */
11135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11143 if { (eval echo configure:11144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11145 eval "ac_cv_func_$ac_func=yes"
11147 echo "configure: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11150 eval "ac_cv_func_$ac_func=no"
11155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11156 echo "$ac_t""yes" 1>&6
11157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11158 cat >> confdefs.h <<EOF
11159 #define $ac_tr_func 1
11163 echo "$ac_t""no" 1>&6
11164 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11170 # Check Configuration
11172 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11173 echo "configure:11174: checking declaration of sys_errlist" >&5
11174 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11175 echo $ac_n "(cached) $ac_c" 1>&6
11178 cat > conftest.$ac_ext <<EOF
11179 #line 11180 "configure"
11180 #include "confdefs.h"
11183 #include <sys/types.h>
11186 char *c = (char *) *sys_errlist
11189 if { (eval echo configure:11190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11191 ol_cv_dcl_sys_errlist=yes
11193 echo "configure: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11196 ol_cv_dcl_sys_errlist=no
11201 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11202 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11203 if test $ol_cv_dcl_sys_errlist = no ; then
11204 cat >> confdefs.h <<\EOF
11205 #define DECL_SYS_ERRLIST 1
11208 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11209 echo "configure:11210: checking existence of sys_errlist" >&5
11210 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11214 cat > conftest.$ac_ext <<EOF
11215 #line 11216 "configure"
11216 #include "confdefs.h"
11219 char *c = (char *) *sys_errlist
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11224 ol_cv_have_sys_errlist=yes
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 ol_cv_have_sys_errlist=no
11234 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11235 if test $ol_cv_have_sys_errlist = yes ; then
11236 cat >> confdefs.h <<\EOF
11237 #define HAVE_SYS_ERRLIST 1
11245 if test "$ol_enable_debug" != no ; then
11246 cat >> confdefs.h <<\EOF
11247 #define LDAP_DEBUG 1
11251 if test "$ol_enable_syslog" = yes ; then
11252 cat >> confdefs.h <<\EOF
11253 #define LDAP_SYSLOG 1
11257 if test "$ol_enable_libui" = yes ; then
11258 cat >> confdefs.h <<\EOF
11259 #define LDAP_LIBUI 1
11263 if test "$ol_enable_cache" = no ; then
11264 cat >> confdefs.h <<\EOF
11265 #define LDAP_NOCACHE 1
11269 if test "$ol_enable_dns" != no ; then
11270 cat >> confdefs.h <<\EOF
11271 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11275 if test "$ol_enable_proctitle" != no ; then
11276 cat >> confdefs.h <<\EOF
11277 #define LDAP_PROCTITLE 1
11281 if test "$ol_enable_referrals" != no ; then
11282 cat >> confdefs.h <<\EOF
11283 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11287 if test "$ol_enable_cldap" != no ; then
11288 cat >> confdefs.h <<\EOF
11289 #define LDAP_CONNECTIONLESS 1
11294 if test "$ol_enable_aclgroups" != no ; then
11295 cat >> confdefs.h <<\EOF
11296 #define SLAPD_ACLGROUPS 1
11300 if test "$ol_enable_crypt" != no ; then
11301 cat >> confdefs.h <<\EOF
11302 #define SLAPD_CRYPT 1
11306 if test "$ol_enable_cleartext" != no ; then
11307 cat >> confdefs.h <<\EOF
11308 #define SLAPD_CLEARTEXT 1
11312 if test "$ol_enable_phonetic" != no ; then
11313 cat >> confdefs.h <<\EOF
11314 #define SLAPD_PHONETIC 1
11318 if test "$ol_enable_rlookups" != no ; then
11319 cat >> confdefs.h <<\EOF
11320 #define SLAPD_RLOOKUPS 1
11325 if test "$ol_link_modules" != no ; then
11326 cat >> confdefs.h <<\EOF
11327 #define SLAPD_MODULES 1
11333 if test "$ol_link_bdb2" != no ; then
11334 cat >> confdefs.h <<\EOF
11335 #define SLAPD_BDB2 1
11342 if test "$ol_enable_ldap" != no ; then
11343 cat >> confdefs.h <<\EOF
11344 #define SLAPD_LDAP 1
11351 if test "$ol_link_ldbm" != no ; then
11352 cat >> confdefs.h <<\EOF
11353 #define SLAPD_LDBM 1
11360 if test "$ol_enable_passwd" != no ; then
11361 cat >> confdefs.h <<\EOF
11362 #define SLAPD_PASSWD 1
11369 if test "$ol_link_perl" != no ; then
11370 cat >> confdefs.h <<\EOF
11371 #define SLAPD_PERL 1
11378 if test "$ol_enable_shell" != no ; then
11379 cat >> confdefs.h <<\EOF
11380 #define SLAPD_SHELL 1
11387 if test "$ol_enable_tcl" != no ; then
11388 cat >> confdefs.h <<\EOF
11389 #define SLAPD_TCL 1
11396 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11397 $BUILD_SLAPD = yes ; then
11401 if test "$ol_link_isode" != no ; then
11439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11442 # Let make expand exec_prefix.
11443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11445 # Any assignment to VPATH causes Sun make to only execute
11446 # the first set of double-colon rules, so remove it if not needed.
11447 # If there is a colon in the path, we need to keep it.
11448 if test "x$srcdir" = x.; then
11449 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11452 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11454 DEFS=-DHAVE_CONFIG_H
11456 # Without the "./", some shells look in PATH for config.status.
11457 : ${CONFIG_STATUS=./config.status}
11459 echo creating $CONFIG_STATUS
11460 rm -f $CONFIG_STATUS
11461 cat > $CONFIG_STATUS <<EOF
11463 # Generated automatically by configure.
11464 # Run this file to recreate the current configuration.
11465 # This directory was configured as follows,
11466 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11468 # $0 $ac_configure_args
11470 # Compiler output produced by configure, useful for debugging
11471 # configure, is in ./config.log if it exists.
11473 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11476 case "\$ac_option" in
11477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11478 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11479 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11480 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11481 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11483 -help | --help | --hel | --he | --h)
11484 echo "\$ac_cs_usage"; exit 0 ;;
11485 *) echo "\$ac_cs_usage"; exit 1 ;;
11489 ac_given_srcdir=$srcdir
11490 ac_given_INSTALL="$INSTALL"
11492 trap 'rm -fr `echo "\
11493 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11494 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11495 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11496 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11497 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11498 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11499 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11500 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11501 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11502 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11503 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11504 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11505 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11506 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11507 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11508 include/Makefile:build/top.mk:include/Makefile.in \
11509 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11510 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11511 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11512 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11513 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11514 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11515 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11516 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11517 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11518 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11519 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11520 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11521 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11522 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11523 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11524 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11525 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11526 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11527 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11528 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11529 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11530 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11531 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11532 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11533 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11534 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11535 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11537 cat >> $CONFIG_STATUS <<EOF
11539 # Protect against being on the right side of a sed subst in config.status.
11540 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11541 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11545 s%@CFLAGS@%$CFLAGS%g
11546 s%@CPPFLAGS@%$CPPFLAGS%g
11547 s%@CXXFLAGS@%$CXXFLAGS%g
11548 s%@FFLAGS@%$FFLAGS%g
11550 s%@LDFLAGS@%$LDFLAGS%g
11552 s%@exec_prefix@%$exec_prefix%g
11553 s%@prefix@%$prefix%g
11554 s%@program_transform_name@%$program_transform_name%g
11555 s%@bindir@%$bindir%g
11556 s%@sbindir@%$sbindir%g
11557 s%@libexecdir@%$libexecdir%g
11558 s%@datadir@%$datadir%g
11559 s%@sysconfdir@%$sysconfdir%g
11560 s%@sharedstatedir@%$sharedstatedir%g
11561 s%@localstatedir@%$localstatedir%g
11562 s%@libdir@%$libdir%g
11563 s%@includedir@%$includedir%g
11564 s%@oldincludedir@%$oldincludedir%g
11565 s%@infodir@%$infodir%g
11566 s%@mandir@%$mandir%g
11567 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11568 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11569 s%@INSTALL_DATA@%$INSTALL_DATA%g
11570 s%@PACKAGE@%$PACKAGE%g
11571 s%@VERSION@%$VERSION%g
11572 s%@ACLOCAL@%$ACLOCAL%g
11573 s%@AUTOCONF@%$AUTOCONF%g
11574 s%@AUTOMAKE@%$AUTOMAKE%g
11575 s%@AUTOHEADER@%$AUTOHEADER%g
11576 s%@MAKEINFO@%$MAKEINFO%g
11577 s%@SET_MAKE@%$SET_MAKE%g
11578 s%@top_builddir@%$top_builddir%g
11579 s%@ldap_subdir@%$ldap_subdir%g
11581 s%@host_alias@%$host_alias%g
11582 s%@host_cpu@%$host_cpu%g
11583 s%@host_vendor@%$host_vendor%g
11584 s%@host_os@%$host_os%g
11585 s%@RANLIB@%$RANLIB%g
11590 s%@LIBTOOL@%$LIBTOOL%g
11593 s%@SENDMAIL@%$SENDMAIL%g
11594 s%@EDITOR@%$EDITOR%g
11595 s%@FINGER@%$FINGER%g
11596 s%@GLIBCONFIG@%$GLIBCONFIG%g
11597 s%@PERLBIN@%$PERLBIN%g
11599 s%@EXEEXT@%$EXEEXT%g
11600 s%@OBJEXT@%$OBJEXT%g
11602 s%@LIBOBJS@%$LIBOBJS%g
11603 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11604 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11605 s%@BUILD_BDB2@%$BUILD_BDB2%g
11606 s%@BUILD_LDAP@%$BUILD_LDAP%g
11607 s%@BUILD_LDBM@%$BUILD_LDBM%g
11608 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11609 s%@BUILD_PERL@%$BUILD_PERL%g
11610 s%@BUILD_SHELL@%$BUILD_SHELL%g
11611 s%@BUILD_TCL@%$BUILD_TCL%g
11612 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11613 s%@LDAP_LIBS@%$LDAP_LIBS%g
11614 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11615 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11616 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11617 s%@LDBM_LIBS@%$LDBM_LIBS%g
11618 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11619 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11620 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11621 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11622 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11623 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11624 s%@KRB_LIBS@%$KRB_LIBS%g
11625 s%@READLINE_LIBS@%$READLINE_LIBS%g
11626 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11627 s%@TLS_LIBS@%$TLS_LIBS%g
11632 cat >> $CONFIG_STATUS <<\EOF
11634 # Split the substitutions into bite-sized pieces for seds with
11635 # small command number limits, like on Digital OSF/1 and HP-UX.
11636 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11637 ac_file=1 # Number of current file.
11638 ac_beg=1 # First line for current file.
11639 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11642 while $ac_more_lines; do
11643 if test $ac_beg -gt 1; then
11644 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11646 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11648 if test ! -s conftest.s$ac_file; then
11649 ac_more_lines=false
11650 rm -f conftest.s$ac_file
11652 if test -z "$ac_sed_cmds"; then
11653 ac_sed_cmds="sed -f conftest.s$ac_file"
11655 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11657 ac_file=`expr $ac_file + 1`
11659 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11662 if test -z "$ac_sed_cmds"; then
11667 cat >> $CONFIG_STATUS <<EOF
11669 CONFIG_FILES=\${CONFIG_FILES-"\
11670 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11671 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11672 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11673 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11674 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11675 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11676 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11677 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11678 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11679 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11680 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11681 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11682 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11683 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11684 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11685 include/Makefile:build/top.mk:include/Makefile.in \
11686 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11687 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11688 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11689 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11690 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11691 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11692 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11693 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11694 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11695 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11696 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11697 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11698 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11699 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11700 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11701 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11702 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11703 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11704 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11705 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11706 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11707 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11708 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11709 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11710 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11711 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11714 cat >> $CONFIG_STATUS <<\EOF
11715 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11718 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11719 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11720 *) ac_file_in="${ac_file}.in" ;;
11723 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11725 # Remove last slash and all that follows it. Not all systems have dirname.
11726 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11727 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11728 # The file is in a subdirectory.
11729 test ! -d "$ac_dir" && mkdir "$ac_dir"
11730 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11731 # A "../" for each directory in $ac_dir_suffix.
11732 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11734 ac_dir_suffix= ac_dots=
11737 case "$ac_given_srcdir" in
11739 if test -z "$ac_dots"; then top_srcdir=.
11740 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11741 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11742 *) # Relative path.
11743 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11744 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11747 case "$ac_given_INSTALL" in
11748 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11749 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11752 echo creating "$ac_file"
11754 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11756 *Makefile*) ac_comsub="1i\\
11757 # $configure_input" ;;
11761 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11763 s%@configure_input@%$configure_input%g
11764 s%@srcdir@%$srcdir%g
11765 s%@top_srcdir@%$top_srcdir%g
11766 s%@INSTALL@%$INSTALL%g
11767 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11771 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11772 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11774 # ac_d sets the value in "#define NAME VALUE" lines.
11775 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11776 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11779 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11780 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11781 ac_uB='\([ ]\)%\1#\2define\3'
11784 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11785 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11786 ac_eB='$%\1#\2define\3'
11790 if test "${CONFIG_HEADERS+set}" != set; then
11792 cat >> $CONFIG_STATUS <<EOF
11793 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11795 cat >> $CONFIG_STATUS <<\EOF
11797 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11800 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11801 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11802 *) ac_file_in="${ac_file}.in" ;;
11805 echo creating $ac_file
11807 rm -f conftest.frag conftest.in conftest.out
11808 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11809 cat $ac_file_inputs > conftest.in
11813 # Transform confdefs.h into a sed script conftest.vals that substitutes
11814 # the proper values into config.h.in to produce config.h. And first:
11815 # Protect against being on the right side of a sed subst in config.status.
11816 # Protect against being in an unquoted here document in config.status.
11817 rm -f conftest.vals
11818 cat > conftest.hdr <<\EOF
11821 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11825 sed -n -f conftest.hdr confdefs.h > conftest.vals
11828 # This sed command replaces #undef with comments. This is necessary, for
11829 # example, in the case of _POSIX_SOURCE, which is predefined and required
11830 # on some systems where configure will not decide to define it.
11831 cat >> conftest.vals <<\EOF
11832 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11835 # Break up conftest.vals because some shells have a limit on
11836 # the size of here documents, and old seds have small limits too.
11838 rm -f conftest.tail
11841 ac_lines=`grep -c . conftest.vals`
11842 # grep -c gives empty output for an empty file on some AIX systems.
11843 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11844 # Write a limited-size here document to conftest.frag.
11845 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11846 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11848 sed -f conftest.frag conftest.in > conftest.out
11850 mv conftest.out conftest.in
11851 ' >> $CONFIG_STATUS
11852 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11853 rm -f conftest.vals
11854 mv conftest.tail conftest.vals
11856 rm -f conftest.vals
11858 cat >> $CONFIG_STATUS <<\EOF
11859 rm -f conftest.frag conftest.h
11860 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11861 cat conftest.in >> conftest.h
11863 if cmp -s $ac_file conftest.h 2>/dev/null; then
11864 echo "$ac_file is unchanged"
11867 # Remove last slash and all that follows it. Not all systems have dirname.
11868 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11869 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11870 # The file is in a subdirectory.
11871 test ! -d "$ac_dir" && mkdir "$ac_dir"
11874 mv conftest.h $ac_file
11879 cat >> $CONFIG_STATUS <<EOF
11882 cat >> $CONFIG_STATUS <<\EOF
11885 echo Please \"make depend\" to build dependencies
11889 chmod +x $CONFIG_STATUS
11890 rm -fr confdefs* $ac_clean_files
11891 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1