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_ldbm = yes ; then
1654 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1656 if test $ol_enable_passwd = yes ; then
1657 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1659 if test $ol_enable_perl = yes ; then
1660 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1662 if test $ol_enable_shell = yes ; then
1663 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1665 if test $ol_enable_tcl = yes ; then
1666 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1668 if test $ol_enable_aclgroups = yes ; then
1669 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1671 if test $ol_enable_modules = yes ; then
1672 echo "configure: warning: slapd disabled, ignoring --enable_modules argument" 1>&2
1674 if test $ol_enable_wrappers = yes ; then
1675 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1677 if test $ol_enable_phonetic = yes ; then
1678 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1680 if test $ol_enable_rlookups = yes ; then
1681 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1683 if test $ol_with_ldbm_api != auto ; then
1684 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1686 if test $ol_with_ldbm_type != auto ; then
1687 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1689 if test $ol_enable_slurpd = yes ; then
1690 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1693 # force settings to no
1701 ol_enable_aclgroups=no
1702 ol_enable_modules=no
1703 ol_enable_phonetic=no
1704 ol_enable_rlookups=no
1705 ol_enable_wrappers=no
1708 ol_with_ldbm_type=no
1712 elif test $ol_enable_ldbm = no ; then
1714 if test $ol_with_ldbm_api != auto ; then
1715 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1718 if test $ol_with_ldbm_type != auto ; then
1719 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1722 if test $ol_enable_bdb2 = yes ; then
1723 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1726 if test $ol_enable_modules != yes -a \
1727 $ol_enable_passwd = no -a \
1728 $ol_enable_perl = no -a \
1729 $ol_enable_shell = no -a \
1730 $ol_enable_tcl = no ; then
1731 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1735 ol_with_ldbm_type=no
1737 elif test $ol_enable_bdb2 = yes ; then
1739 if test $ol_with_ldbm_api != auto -a \
1740 $ol_with_ldbm_api != db2 ; then
1741 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1744 ol_with_ldbm_api=db2
1748 if test $ol_enable_bdb2 != no ; then
1749 if test $ol_with_ldbm_api != auto -a \
1750 $ol_with_ldbm_api != db2 ; then
1751 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1756 if test $ol_with_ldbm_api = gdbm -a \
1757 $ol_with_ldbm_type = btree ; then
1758 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1760 if test $ol_with_ldbm_api = mdbm -a \
1761 $ol_with_ldbm_type = btree ; then
1762 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1764 if test $ol_with_ldbm_api = ndbm -a \
1765 $ol_with_ldbm_type = btree ; then
1766 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1770 if test $ol_enable_slurpd = yes ; then
1771 if test $ol_with_threads = no ; then
1772 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1776 echo "$ac_t""done" 1>&6
1801 SLAPD_MODULES_LDFLAGS=
1802 SLAPD_MODULES_CPPFLAGS=
1805 SLAPD_PERL_CPPFLAGS=
1817 # Make sure we can run config.sub.
1818 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1819 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1822 echo $ac_n "checking host system type""... $ac_c" 1>&6
1823 echo "configure:1824: checking host system type" >&5
1826 case "$host_alias" in
1830 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1831 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1833 *) host_alias=$nonopt ;;
1837 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1838 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1839 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1840 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1841 echo "$ac_t""$host" 1>&6
1843 # Extract the first word of "ranlib", so it can be a program name with args.
1844 set dummy ranlib; ac_word=$2
1845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_word" >&5
1847 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 if test -n "$RANLIB"; then
1851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1855 for ac_dir in $ac_dummy; do
1856 test -z "$ac_dir" && ac_dir=.
1857 if test -f $ac_dir/$ac_word; then
1858 ac_cv_prog_RANLIB="ranlib"
1863 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1866 RANLIB="$ac_cv_prog_RANLIB"
1867 if test -n "$RANLIB"; then
1868 echo "$ac_t""$RANLIB" 1>&6
1870 echo "$ac_t""no" 1>&6
1873 # Extract the first word of "gcc", so it can be a program name with args.
1874 set dummy gcc; ac_word=$2
1875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_word" >&5
1877 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1885 for ac_dir in $ac_dummy; do
1886 test -z "$ac_dir" && ac_dir=.
1887 if test -f $ac_dir/$ac_word; then
1896 if test -n "$CC"; then
1897 echo "$ac_t""$CC" 1>&6
1899 echo "$ac_t""no" 1>&6
1902 if test -z "$CC"; then
1903 # Extract the first word of "cc", so it can be a program name with args.
1904 set dummy cc; ac_word=$2
1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_word" >&5
1907 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
1913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1916 for ac_dir in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word; then
1919 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1920 ac_prog_rejected=yes
1928 if test $ac_prog_rejected = yes; then
1929 # We found a bogon in the path, so make sure we never use it.
1930 set dummy $ac_cv_prog_CC
1932 if test $# -gt 0; then
1933 # We chose a different compiler from the bogus one.
1934 # However, it has the same basename, so the bogon will be chosen
1935 # first if we set CC to just the basename; use the full file name.
1937 set dummy "$ac_dir/$ac_word" "$@"
1945 if test -n "$CC"; then
1946 echo "$ac_t""$CC" 1>&6
1948 echo "$ac_t""no" 1>&6
1951 if test -z "$CC"; then
1952 case "`uname -s`" in
1954 # Extract the first word of "cl", so it can be a program name with args.
1955 set dummy cl; ac_word=$2
1956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1957 echo "configure:1958: checking for $ac_word" >&5
1958 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1966 for ac_dir in $ac_dummy; do
1967 test -z "$ac_dir" && ac_dir=.
1968 if test -f $ac_dir/$ac_word; then
1977 if test -n "$CC"; then
1978 echo "$ac_t""$CC" 1>&6
1980 echo "$ac_t""no" 1>&6
1985 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1996 cross_compiling=$ac_cv_prog_cc_cross
1998 cat > conftest.$ac_ext << EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2005 if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2006 ac_cv_prog_cc_works=yes
2007 # If we can't run a trivial program, we are probably using a cross compiler.
2008 if (./conftest; exit) 2>/dev/null; then
2009 ac_cv_prog_cc_cross=no
2011 ac_cv_prog_cc_cross=yes
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2016 ac_cv_prog_cc_works=no
2020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2024 cross_compiling=$ac_cv_prog_cc_cross
2026 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2027 if test $ac_cv_prog_cc_works = no; then
2028 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2030 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2031 echo "configure:2032: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2032 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2033 cross_compiling=$ac_cv_prog_cc_cross
2035 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether we are using GNU C" >&5
2037 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 cat > conftest.c <<EOF
2045 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2052 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2054 if test $ac_cv_prog_gcc = yes; then
2060 ac_test_CFLAGS="${CFLAGS+set}"
2061 ac_save_CFLAGS="$CFLAGS"
2063 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2064 echo "configure:2065: checking whether ${CC-cc} accepts -g" >&5
2065 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 echo 'void f(){}' > conftest.c
2069 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2078 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2079 if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS="$ac_save_CFLAGS"
2081 elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2088 if test "$GCC" = yes; then
2095 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2096 if test "${with_gnu_ld+set}" = set; then
2097 withval="$with_gnu_ld"
2098 test "$withval" = no || with_gnu_ld=yes
2105 if test "$ac_cv_prog_gcc" = yes; then
2106 # Check if gcc -print-prog-name=ld gives a path.
2107 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2108 echo "configure:2109: checking for ld used by GCC" >&5
2109 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2111 # Accept absolute paths.
2113 test -z "$LD" && LD="$ac_prog"
2116 # If it fails, then pretend we aren't using GCC.
2120 # If it is relative, then search for the first ld in PATH.
2124 elif test "$with_gnu_ld" = yes; then
2125 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2126 echo "configure:2127: checking for GNU ld" >&5
2128 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2129 echo "configure:2130: checking for non-GNU ld" >&5
2131 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 if test -z "$LD"; then
2135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2136 for ac_dir in $PATH; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f "$ac_dir/$ac_prog"; then
2139 ac_cv_path_LD="$ac_dir/$ac_prog"
2140 # Check to see if the program is GNU ld. I'd rather use --version,
2141 # but apparently some GNU ld's only accept -v.
2142 # Break only if it was the GNU/non-GNU ld that we prefer.
2143 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2144 test "$with_gnu_ld" != no && break
2146 test "$with_gnu_ld" != yes && break
2152 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2157 if test -n "$LD"; then
2158 echo "$ac_t""$LD" 1>&6
2160 echo "$ac_t""no" 1>&6
2162 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2164 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2165 echo "configure:2166: checking if the linker ($LD) is GNU ld" >&5
2166 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2170 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2171 ac_cv_prog_gnu_ld=yes
2173 ac_cv_prog_gnu_ld=no
2177 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2180 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2181 echo "configure:2182: checking for BSD-compatible nm" >&5
2182 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2187 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2191 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2192 test -z "$ac_dir" && ac_dir=.
2193 if test -f $ac_dir/nm; then
2194 # Check to see if the nm accepts a BSD-compat flag.
2195 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2196 # nm: unknown option "B" ignored
2197 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2198 ac_cv_path_NM="$ac_dir/nm -B"
2199 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2200 ac_cv_path_NM="$ac_dir/nm -p"
2202 ac_cv_path_NM="$ac_dir/nm"
2208 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2214 echo "$ac_t""$NM" 1>&6
2217 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2218 echo "configure:2219: checking whether ln -s works" >&5
2219 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2223 if ln -s X conftestdata 2>/dev/null
2226 ac_cv_prog_LN_S="ln -s"
2231 LN_S="$ac_cv_prog_LN_S"
2232 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2233 echo "$ac_t""yes" 1>&6
2235 echo "$ac_t""no" 1>&6
2238 # Always use our own libtool.
2239 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2241 # Check for any special flags to pass to ltconfig.
2243 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2244 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2245 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2246 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2247 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2249 # Some flags need to be propagated to the compiler or linker for good
2253 # Find out which ABI we are using.
2254 echo '#line 2255 "configure"' > conftest.$ac_ext
2255 if { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2256 case "`/usr/bin/file conftest.o`" in
2272 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2273 CFLAGS="$CFLAGS -belf"
2277 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2278 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2279 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2280 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2281 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2282 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2285 for ac_prog in mawk gawk nawk awk
2287 # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2290 echo "configure:2291: checking for $ac_word" >&5
2291 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 if test -n "$AWK"; then
2295 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2299 for ac_dir in $ac_dummy; do
2300 test -z "$ac_dir" && ac_dir=.
2301 if test -f $ac_dir/$ac_word; then
2302 ac_cv_prog_AWK="$ac_prog"
2309 AWK="$ac_cv_prog_AWK"
2310 if test -n "$AWK"; then
2311 echo "$ac_t""$AWK" 1>&6
2313 echo "$ac_t""no" 1>&6
2316 test -n "$AWK" && break
2319 # test for ln hardlink support
2320 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2321 echo "configure:2322: checking whether ln works" >&5
2322 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 rm -f conftest.src conftest.dst
2326 echo "conftest" > conftest.src
2327 if ln conftest.src conftest.dst 2>/dev/null
2329 ol_cv_prog_LN_H="ln"
2331 ol_cv_prog_LN_H="cp"
2333 rm -f conftest.src conftest.dst
2336 LN_H="$ol_cv_prog_LN_H"
2337 if test "$ol_cv_prog_LN_H" = "ln"; then
2338 echo "$ac_t""yes" 1>&6
2340 echo "$ac_t""no" 1>&6
2343 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2344 echo "configure:2345: checking whether ln -s works" >&5
2345 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2349 if ln -s X conftestdata 2>/dev/null
2352 ac_cv_prog_LN_S="ln -s"
2357 LN_S="$ac_cv_prog_LN_S"
2358 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2359 echo "$ac_t""yes" 1>&6
2361 echo "$ac_t""no" 1>&6
2365 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2369 # Extract the first word of "sendmail", so it can be a program name with args.
2370 set dummy sendmail; ac_word=$2
2371 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2372 echo "configure:2373: checking for $ac_word" >&5
2373 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2378 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2381 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2385 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2386 for ac_dir in $ac_dummy; do
2387 test -z "$ac_dir" && ac_dir=.
2388 if test -f $ac_dir/$ac_word; then
2389 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2394 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2398 SENDMAIL="$ac_cv_path_SENDMAIL"
2399 if test -n "$SENDMAIL"; then
2400 echo "$ac_t""$SENDMAIL" 1>&6
2402 echo "$ac_t""no" 1>&6
2405 # Extract the first word of "vi", so it can be a program name with args.
2406 set dummy vi; ac_word=$2
2407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_word" >&5
2409 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2414 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2417 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2421 ac_dummy="$PATH:/usr/ucb"
2422 for ac_dir in $ac_dummy; do
2423 test -z "$ac_dir" && ac_dir=.
2424 if test -f $ac_dir/$ac_word; then
2425 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2430 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2434 EDITOR="$ac_cv_path_EDITOR"
2435 if test -n "$EDITOR"; then
2436 echo "$ac_t""$EDITOR" 1>&6
2438 echo "$ac_t""no" 1>&6
2441 # Extract the first word of "finger", so it can be a program name with args.
2442 set dummy finger; ac_word=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2453 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2457 ac_dummy="$PATH:/usr/ucb"
2458 for ac_dir in $ac_dummy; do
2459 test -z "$ac_dir" && ac_dir=.
2460 if test -f $ac_dir/$ac_word; then
2461 ac_cv_path_FINGER="$ac_dir/$ac_word"
2466 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2470 FINGER="$ac_cv_path_FINGER"
2471 if test -n "$FINGER"; then
2472 echo "$ac_t""$FINGER" 1>&6
2474 echo "$ac_t""no" 1>&6
2479 if test $ol_enable_modules != no ; then
2480 # Extract the first word of "glib-config", so it can be a program name with args.
2481 set dummy glib-config; ac_word=$2
2482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2483 echo "configure:2484: checking for $ac_word" >&5
2484 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 case "$GLIBCONFIG" in
2489 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2492 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2497 for ac_dir in $ac_dummy; do
2498 test -z "$ac_dir" && ac_dir=.
2499 if test -f $ac_dir/$ac_word; then
2500 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2508 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2509 if test -n "$GLIBCONFIG"; then
2510 echo "$ac_t""$GLIBCONFIG" 1>&6
2512 echo "$ac_t""no" 1>&6
2516 if test "no$GLIBCONFIG" = "no" ; then
2517 if test $ol_enable_modules = yes ; then
2518 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2522 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2523 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2524 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2531 if test $ol_enable_perl != no ; then
2532 # Extract the first word of "perl", so it can be a program name with args.
2533 set dummy perl; ac_word=$2
2534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_word" >&5
2536 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2541 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2544 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2549 for ac_dir in $ac_dummy; do
2550 test -z "$ac_dir" && ac_dir=.
2551 if test -f $ac_dir/$ac_word; then
2552 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2557 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2561 PERLBIN="$ac_cv_path_PERLBIN"
2562 if test -n "$PERLBIN"; then
2563 echo "$ac_t""$PERLBIN" 1>&6
2565 echo "$ac_t""no" 1>&6
2569 if test "no$PERLBIN" = "no" ; then
2570 if test $ol_enable_perl = yes ; then
2571 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2575 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2576 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2582 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2583 echo "configure:2584: checking how to run the C preprocessor" >&5
2584 # On Suns, sometimes $CPP names a directory.
2585 if test -n "$CPP" && test -d "$CPP"; then
2588 if test -z "$CPP"; then
2589 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 # This must be in double quotes, not single quotes, because CPP may get
2593 # substituted into the Makefile and "${CC-cc}" will confuse make.
2595 # On the NeXT, cc -E runs the code through the compiler's parser,
2596 # not just through cpp.
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 CPP="${CC-cc} -E -traditional-cpp"
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2621 { (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2623 if test -z "$ac_err"; then
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 CPP="${CC-cc} -nologo -E"
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2654 ac_cv_prog_CPP="$CPP"
2656 CPP="$ac_cv_prog_CPP"
2658 ac_cv_prog_CPP="$CPP"
2660 echo "$ac_t""$CPP" 1>&6
2663 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2664 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2666 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2667 echo "configure: warning: programs compiled here do run here..." 1>&2
2668 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2670 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2671 echo "configure: warning: programs compiled here do not run here..." 1>&2
2672 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2675 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2676 echo "configure:2677: checking for AIX" >&5
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2686 egrep "yes" >/dev/null 2>&1; then
2688 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2689 #define _ALL_SOURCE 1
2694 echo "$ac_t""no" 1>&6
2699 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2700 echo "configure:2701: checking for POSIXized ISC" >&5
2701 if test -d /etc/conf/kconfig.d &&
2702 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2704 echo "$ac_t""yes" 1>&6
2705 ISC=yes # If later tests want to check for ISC.
2706 cat >> confdefs.h <<\EOF
2707 #define _POSIX_SOURCE 1
2710 if test "$GCC" = yes; then
2716 echo "$ac_t""no" 1>&6
2720 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2721 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2722 echo "configure:2723: checking for minix/config.h" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 #include <minix/config.h>
2731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2736 eval "ac_cv_header_$ac_safe=yes"
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2742 eval "ac_cv_header_$ac_safe=no"
2746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2747 echo "$ac_t""yes" 1>&6
2750 echo "$ac_t""no" 1>&6
2754 if test "$MINIX" = yes; then
2755 cat >> confdefs.h <<\EOF
2756 #define _POSIX_SOURCE 1
2759 cat >> confdefs.h <<\EOF
2760 #define _POSIX_1_SOURCE 2
2763 cat >> confdefs.h <<\EOF
2770 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2771 echo "configure:2772: checking for be_app in -lbe" >&5
2772 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 ac_save_LIBS="$LIBS"
2777 LIBS="-lbe -lroot -lnet $LIBS"
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 /* Override any gcc2 internal prototype to avoid an error. */
2782 /* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
2790 if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2792 eval "ac_cv_lib_$ac_lib_var=yes"
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2797 eval "ac_cv_lib_$ac_lib_var=no"
2800 LIBS="$ac_save_LIBS"
2803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 LIBS="$LIBS -lbe -lroot -lnet"
2807 echo "$ac_t""no" 1>&6
2812 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2813 echo "configure:2814: checking for Cygwin environment" >&5
2814 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2824 #define __CYGWIN__ __CYGWIN32__
2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2842 echo "$ac_t""$ac_cv_cygwin" 1>&6
2844 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2845 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2846 echo "configure:2847: checking for mingw32 environment" >&5
2847 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2850 cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2858 if { (eval echo configure:2859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2871 echo "$ac_t""$ac_cv_mingw32" 1>&6
2873 test "$ac_cv_mingw32" = yes && MINGW32=yes
2876 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2877 echo "configure:2878: checking for executable suffix" >&5
2878 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2885 echo 'int main () { return 0; }' > conftest.$ac_ext
2887 if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2888 for file in conftest.*; do
2890 *.c | *.o | *.obj) ;;
2891 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2895 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2898 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2903 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2904 echo "$ac_t""${ac_cv_exeext}" 1>&6
2907 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2908 echo "configure:2909: checking for object suffix" >&5
2909 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2913 echo 'int i = 1;' > conftest.$ac_ext
2914 if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2915 for ac_file in conftest.*; do
2918 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2922 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2927 echo "$ac_t""$ac_cv_objext" 1>&6
2928 OBJEXT=$ac_cv_objext
2929 ac_objext=$ac_cv_objext
2932 cat >> confdefs.h <<EOF
2933 #define EXEEXT "${EXEEXT}"
2940 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2941 echo "configure:2942: checking for ${CC-cc} option to accept ANSI C" >&5
2942 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 am_cv_prog_cc_stdc=no
2947 # Don't try gcc -ansi; that turns off useful extensions and
2948 # breaks some systems' header files.
2949 # AIX -qlanglvl=ansi
2950 # Ultrix and OSF/1 -std1
2951 # HP-UX -Aa -D_HPUX_SOURCE
2952 # SVR4 -Xc -D__EXTENSIONS__
2953 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 CC="$ac_save_CC $ac_arg"
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2961 #include <sys/types.h>
2962 #include <sys/stat.h>
2963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2964 struct buf { int x; };
2965 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2966 static char *e (p, i)
2972 static char *f (char * (*g) (char **, int), char **p, ...)
2977 s = g (p, va_arg (v,int));
2981 int test (int i, double x);
2982 struct s1 {int (*f) (int a);};
2983 struct s2 {int (*f) (double a);};
2984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2990 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2994 if { (eval echo configure:2995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2996 am_cv_prog_cc_stdc="$ac_arg"; break
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3007 if test -z "$am_cv_prog_cc_stdc"; then
3008 echo "$ac_t""none needed" 1>&6
3010 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3012 case "x$am_cv_prog_cc_stdc" in
3014 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3017 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3018 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3024 echo $ac_n "checking for socket""... $ac_c" 1>&6
3025 echo "configure:3026: checking for socket" >&5
3026 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3032 /* System header to define __stub macros and hopefully few prototypes,
3033 which can conflict with char socket(); below. */
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3042 /* The GNU C library defines this for functions which it implements
3043 to always fail with ENOSYS. Some functions are actually named
3044 something starting with __ and the normal name is an alias. */
3045 #if defined (__stub_socket) || defined (__stub___socket)
3053 if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3055 eval "ac_cv_func_socket=yes"
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3060 eval "ac_cv_func_socket=no"
3065 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3069 echo "$ac_t""no" 1>&6
3071 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3072 echo "configure:3073: checking for main in -lsocket" >&5
3073 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 ac_save_LIBS="$LIBS"
3078 LIBS="-lsocket $LIBS"
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3087 if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3089 eval "ac_cv_lib_$ac_lib_var=yes"
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3094 eval "ac_cv_lib_$ac_lib_var=no"
3097 LIBS="$ac_save_LIBS"
3100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3101 echo "$ac_t""yes" 1>&6
3102 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3103 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3104 cat >> confdefs.h <<EOF
3105 #define $ac_tr_lib 1
3108 LIBS="-lsocket $LIBS"
3111 echo "$ac_t""no" 1>&6
3114 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3115 echo "configure:3116: checking for main in -lnet" >&5
3116 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 ac_save_LIBS="$LIBS"
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3132 eval "ac_cv_lib_$ac_lib_var=yes"
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3137 eval "ac_cv_lib_$ac_lib_var=no"
3140 LIBS="$ac_save_LIBS"
3143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3144 echo "$ac_t""yes" 1>&6
3145 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3146 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3147 cat >> confdefs.h <<EOF
3148 #define $ac_tr_lib 1
3154 echo "$ac_t""no" 1>&6
3157 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3158 echo "configure:3159: checking for socket in -lnet" >&5
3159 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 ac_save_LIBS="$LIBS"
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 /* Override any gcc2 internal prototype to avoid an error. */
3169 /* We use char because int might match the return type of a gcc2
3170 builtin and then its argument prototype would still apply. */
3177 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3179 eval "ac_cv_lib_$ac_lib_var=yes"
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3184 eval "ac_cv_lib_$ac_lib_var=no"
3187 LIBS="$ac_save_LIBS"
3190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3194 cat >> confdefs.h <<EOF
3195 #define $ac_tr_lib 1
3201 echo "$ac_t""no" 1>&6
3204 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3205 echo "configure:3206: checking for main in -lnsl_s" >&5
3206 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 ac_save_LIBS="$LIBS"
3211 LIBS="-lnsl_s $LIBS"
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3220 if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3222 eval "ac_cv_lib_$ac_lib_var=yes"
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3227 eval "ac_cv_lib_$ac_lib_var=no"
3230 LIBS="$ac_save_LIBS"
3233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3236 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3237 cat >> confdefs.h <<EOF
3238 #define $ac_tr_lib 1
3241 LIBS="-lnsl_s $LIBS"
3244 echo "$ac_t""no" 1>&6
3247 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3248 echo "configure:3249: checking for main in -lnsl" >&5
3249 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 ac_save_LIBS="$LIBS"
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265 eval "ac_cv_lib_$ac_lib_var=yes"
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3270 eval "ac_cv_lib_$ac_lib_var=no"
3273 LIBS="$ac_save_LIBS"
3276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3278 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3279 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3280 cat >> confdefs.h <<EOF
3281 #define $ac_tr_lib 1
3287 echo "$ac_t""no" 1>&6
3290 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3291 echo "configure:3292: checking for socket in -linet" >&5
3292 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 ac_save_LIBS="$LIBS"
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 /* Override any gcc2 internal prototype to avoid an error. */
3302 /* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 eval "ac_cv_lib_$ac_lib_var=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 eval "ac_cv_lib_$ac_lib_var=no"
3320 LIBS="$ac_save_LIBS"
3323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3327 cat >> confdefs.h <<EOF
3328 #define $ac_tr_lib 1
3334 echo "$ac_t""no" 1>&6
3337 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3338 echo "configure:3339: checking for main in -lgen" >&5
3339 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 ac_save_LIBS="$LIBS"
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 eval "ac_cv_lib_$ac_lib_var=yes"
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3360 eval "ac_cv_lib_$ac_lib_var=no"
3363 LIBS="$ac_save_LIBS"
3366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3367 echo "$ac_t""yes" 1>&6
3368 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3370 cat >> confdefs.h <<EOF
3371 #define $ac_tr_lib 1
3377 echo "$ac_t""no" 1>&6
3384 for ac_func in res_search
3386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3387 echo "configure:3388: checking for $ac_func" >&5
3388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 /* System header to define __stub macros and hopefully few prototypes,
3395 which can conflict with char $ac_func(); below. */
3397 /* Override any gcc2 internal prototype to avoid an error. */
3398 /* We use char because int might match the return type of a gcc2
3399 builtin and then its argument prototype would still apply. */
3404 /* The GNU C library defines this for functions which it implements
3405 to always fail with ENOSYS. Some functions are actually named
3406 something starting with __ and the normal name is an alias. */
3407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3415 if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3417 eval "ac_cv_func_$ac_func=yes"
3419 echo "configure: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3422 eval "ac_cv_func_$ac_func=no"
3427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3428 echo "$ac_t""yes" 1>&6
3429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3430 cat >> confdefs.h <<EOF
3431 #define $ac_tr_func 1
3435 echo "$ac_t""no" 1>&6
3439 if test $ac_cv_func_res_search = "no" ; then
3440 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3441 echo "configure:3442: checking for res_search in -lbind" >&5
3442 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 ac_save_LIBS="$LIBS"
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3460 if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3462 eval "ac_cv_lib_$ac_lib_var=yes"
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3467 eval "ac_cv_lib_$ac_lib_var=no"
3470 LIBS="$ac_save_LIBS"
3473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3477 cat >> confdefs.h <<EOF
3478 #define $ac_tr_lib 1
3484 echo "$ac_t""no" 1>&6
3487 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3488 cat >> confdefs.h <<\EOF
3489 #define HAVE_RES_SEARCH 1
3493 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3494 echo "configure:3495: checking for res_search in -lresolv" >&5
3495 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_save_LIBS="$LIBS"
3500 LIBS="-lresolv $LIBS"
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 eval "ac_cv_lib_$ac_lib_var=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_lib_$ac_lib_var=no"
3523 LIBS="$ac_save_LIBS"
3526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3530 cat >> confdefs.h <<EOF
3531 #define $ac_tr_lib 1
3534 LIBS="-lresolv $LIBS"
3537 echo "$ac_t""no" 1>&6
3540 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3541 cat >> confdefs.h <<\EOF
3542 #define HAVE_RES_SEARCH 1
3549 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3550 echo "configure:3551: checking for sigset in -lV3" >&5
3551 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_save_LIBS="$LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3585 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3586 cat >> confdefs.h <<EOF
3587 #define $ac_tr_lib 1
3593 echo "$ac_t""no" 1>&6
3597 echo $ac_n "checking for select""... $ac_c" 1>&6
3598 echo "configure:3599: checking for select" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char select(); below. */
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_select) || defined (__stub___select)
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 eval "ac_cv_func_select=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_func_select=no"
3638 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3642 echo "$ac_t""no" 1>&6
3643 { echo "configure: error: select() required." 1>&2; exit 1; }
3647 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3648 echo "configure:3649: checking types of arguments for select()" >&5
3649 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3659 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3660 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3661 cat > conftest.$ac_ext <<EOF
3662 #line 3663 "configure"
3663 #include "confdefs.h"
3664 #ifdef HAVE_SYS_TYPES_H
3665 #include <sys/types.h>
3667 #ifdef HAVE_SYS_TIME_H
3668 #include <sys/time.h>
3670 #ifdef HAVE_SYS_SELECT_H
3671 #include <sys/select.h>
3673 #ifdef HAVE_SYS_SOCKET_H
3674 #include <sys/socket.h>
3676 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);
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3683 ac_not_found=no ; break 3
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3700 if test "$ac_not_found" = yes; then
3701 ac_cv_func_select_arg1=int
3702 ac_cv_func_select_arg234='int *'
3703 ac_cv_func_select_arg5='struct timeval *'
3705 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3706 cat >> confdefs.h <<EOF
3707 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3710 cat >> confdefs.h <<EOF
3711 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3714 cat >> confdefs.h <<EOF
3715 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3722 if test $ol_enable_ldapd != no ; then
3723 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3724 echo "configure:3725: checking for main in -lxtpp" >&5
3725 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 ac_save_LIBS="$LIBS"
3730 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3739 if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3741 eval "ac_cv_lib_$ac_lib_var=yes"
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3746 eval "ac_cv_lib_$ac_lib_var=no"
3749 LIBS="$ac_save_LIBS"
3752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3756 cat >> confdefs.h <<\EOF
3760 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3763 echo "$ac_t""no" 1>&6
3767 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3768 echo "configure:3769: checking for main in -ldsap" >&5
3769 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 ac_save_LIBS="$LIBS"
3774 LIBS="-ldsap -lisode $LIBS"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 eval "ac_cv_lib_$ac_lib_var=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_lib_$ac_lib_var=no"
3793 LIBS="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3800 cat >> confdefs.h <<\EOF
3804 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3807 echo "$ac_t""no" 1>&6
3811 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3812 echo "configure:3813: checking for main in -lisode" >&5
3813 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_save_LIBS="$LIBS"
3818 LIBS="-lisode $LIBS"
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_lib_$ac_lib_var=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_lib_$ac_lib_var=no"
3837 LIBS="$ac_save_LIBS"
3840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3844 cat >> confdefs.h <<\EOF
3845 #define HAVE_ISODE 1
3848 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3851 echo "$ac_t""no" 1>&6
3857 if test $ol_link_isode != no; then
3858 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3859 echo "configure:3860: checking for main in -lpp" >&5
3860 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 ac_save_LIBS="$LIBS"
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 eval "ac_cv_lib_$ac_lib_var=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 eval "ac_cv_lib_$ac_lib_var=no"
3884 LIBS="$ac_save_LIBS"
3887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3890 cat >> confdefs.h <<\EOF
3894 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3897 echo "$ac_t""no" 1>&6
3902 # Extract the first word of "pepsy", so it can be a program name with args.
3903 set dummy pepsy; ac_word=$2
3904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3905 echo "configure:3906: checking for $ac_word" >&5
3906 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3911 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3914 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3919 for ac_dir in $ac_dummy; do
3920 test -z "$ac_dir" && ac_dir=.
3921 if test -f $ac_dir/$ac_word; then
3922 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3930 PEPSY="$ac_cv_path_PEPSY"
3931 if test -n "$PEPSY"; then
3932 echo "$ac_t""$PEPSY" 1>&6
3934 echo "$ac_t""no" 1>&6
3941 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3942 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3946 echo "configure:3947: checking for $ac_hdr" >&5
3947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3956 { (eval echo configure:3957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3958 if test -z "$ac_err"; then
3960 eval "ac_cv_header_$ac_safe=yes"
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3966 eval "ac_cv_header_$ac_safe=no"
3970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3971 echo "$ac_t""yes" 1>&6
3972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3973 cat >> confdefs.h <<EOF
3974 #define $ac_tr_hdr 1
3978 echo "$ac_t""no" 1>&6
3983 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3984 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3985 echo "configure:3986: checking for main in -lkrb4" >&5
3986 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 ac_save_LIBS="$LIBS"
3991 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
4000 if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4002 eval "ac_cv_lib_$ac_lib_var=yes"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4007 eval "ac_cv_lib_$ac_lib_var=no"
4010 LIBS="$ac_save_LIBS"
4013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4017 echo "$ac_t""no" 1>&6
4022 if test $have_k5 = yes ; then
4023 ol_with_kerberos=found
4024 ol_link_kerberos=yes
4026 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4028 LIBS="$KRB_LIBS $LIBS"
4030 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4031 echo "configure:4032: checking for des_debug in Kerberos libraries" >&5
4032 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4037 LIBS="$KRB_LIBS $LIBS"
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4042 #include <kerberosIV/krb.h>
4043 #include <kerberosIV/des.h>
4044 extern int des_debug;
4052 if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4054 ol_cv_var_des_debug=yes
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4059 ol_cv_var_des_debug=no
4066 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4068 if test $ol_cv_var_des_debug = yes ; then
4069 cat >> confdefs.h <<\EOF
4070 #define HAVE_DES_DEBUG 1
4080 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4081 for ac_hdr in krb.h des.h
4083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4085 echo "configure:4086: checking for $ac_hdr" >&5
4086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4095 { (eval echo configure:4096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4097 if test -z "$ac_err"; then
4099 eval "ac_cv_header_$ac_safe=yes"
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4105 eval "ac_cv_header_$ac_safe=no"
4109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4112 cat >> confdefs.h <<EOF
4113 #define $ac_tr_hdr 1
4117 echo "$ac_t""no" 1>&6
4122 if test $ac_cv_header_krb_h = yes ; then
4123 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4124 echo "configure:4125: checking for main in -lkrb" >&5
4125 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 ac_save_LIBS="$LIBS"
4130 LIBS="-lkrb -ldes $LIBS"
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4141 eval "ac_cv_lib_$ac_lib_var=yes"
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4146 eval "ac_cv_lib_$ac_lib_var=no"
4149 LIBS="$ac_save_LIBS"
4152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4153 echo "$ac_t""yes" 1>&6
4156 echo "$ac_t""no" 1>&6
4161 if test $have_k4 = yes ; then
4162 ol_with_kerberos=found
4163 ol_link_kerberos=yes
4165 KRB_LIBS="-lkrb -ldes"
4170 if test $ol_link_kerberos = yes ; then
4171 cat >> confdefs.h <<\EOF
4172 #define HAVE_KERBEROS 1
4178 if test $ol_with_tls != no ; then
4182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4184 echo "configure:4185: checking for $ac_hdr" >&5
4185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4194 { (eval echo configure:4195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4196 if test -z "$ac_err"; then
4198 eval "ac_cv_header_$ac_safe=yes"
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 eval "ac_cv_header_$ac_safe=no"
4208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4211 cat >> confdefs.h <<EOF
4212 #define $ac_tr_hdr 1
4216 echo "$ac_t""no" 1>&6
4221 if test $ac_cv_header_ssl_h = yes ; then
4222 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4223 echo "configure:4224: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4224 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 ac_save_LIBS="$LIBS"
4229 LIBS="-lssl -lcrypto $LIBS"
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4236 char SSLeay_add_ssl_algorithms();
4239 SSLeay_add_ssl_algorithms()
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4244 eval "ac_cv_lib_$ac_lib_var=yes"
4246 echo "configure: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4249 eval "ac_cv_lib_$ac_lib_var=no"
4252 LIBS="$ac_save_LIBS"
4255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4260 echo "$ac_t""no" 1>&6
4265 if test $have_ssleay = no ; then
4266 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4267 echo "configure:4268: checking for ssl3_accept in -lssl" >&5
4268 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 ac_save_LIBS="$LIBS"
4273 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4277 /* Override any gcc2 internal prototype to avoid an error. */
4278 /* We use char because int might match the return type of a gcc2
4279 builtin and then its argument prototype would still apply. */
4286 if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4288 eval "ac_cv_lib_$ac_lib_var=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4293 eval "ac_cv_lib_$ac_lib_var=no"
4296 LIBS="$ac_save_LIBS"
4299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4300 echo "$ac_t""yes" 1>&6
4304 echo "$ac_t""no" 1>&6
4310 if test $have_ssleay = yes ; then
4314 cat >> confdefs.h <<\EOF
4315 #define HAVE_SSLEAY 1
4319 if test $need_rsaref = yes; then
4320 cat >> confdefs.h <<\EOF
4321 #define HAVE_RSAREF 1
4325 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4327 TLS_LIBS="-lssl -lcrypto"
4333 if test $ol_link_tls = yes ; then
4334 cat >> confdefs.h <<\EOF
4342 gethostbyname_r gethostbyaddr_r \
4345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4346 echo "configure:4347: checking for $ac_func" >&5
4347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 /* System header to define __stub macros and hopefully few prototypes,
4354 which can conflict with char $ac_func(); below. */
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4363 /* The GNU C library defines this for functions which it implements
4364 to always fail with ENOSYS. Some functions are actually named
4365 something starting with __ and the normal name is an alias. */
4366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4376 eval "ac_cv_func_$ac_func=yes"
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4381 eval "ac_cv_func_$ac_func=no"
4386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4387 echo "$ac_t""yes" 1>&6
4388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4389 cat >> confdefs.h <<EOF
4390 #define $ac_tr_func 1
4394 echo "$ac_t""no" 1>&6
4399 if test "$ac_cv_func_ctime_r" = no ; then
4400 ol_cv_func_ctime_r_nargs=0
4402 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4403 echo "configure:4404: checking number of arguments of ctime_r" >&5
4404 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4412 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4415 if { (eval echo configure:4416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4417 ol_cv_func_ctime_r_nargs=3
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4427 time_t ti; char *buffer; ctime_r(&ti,buffer);
4430 if { (eval echo configure:4431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4432 ol_cv_func_ctime_r_nargs=2
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 ol_cv_func_ctime_r_nargs=0
4444 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4445 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4446 cat >> confdefs.h <<EOF
4447 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4454 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4455 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4456 echo "configure:4457: checking number of arguments of gethostbyname_r" >&5
4457 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 #include <sys/types.h>
4464 #include <sys/socket.h>
4465 #include <netinet/in.h>
4467 #define BUFSIZE (sizeof(struct hostent)+10)
4469 struct hostent hent; char buffer[BUFSIZE];
4470 int bufsize=BUFSIZE;int h_errno;
4471 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4472 buffer, bufsize, &h_errno);
4475 if { (eval echo configure:4476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4477 ol_cv_func_gethostbyname_r_nargs=5
4479 echo "configure: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4482 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4485 #include <sys/types.h>
4486 #include <sys/socket.h>
4487 #include <netinet/in.h>
4489 #define BUFSIZE (sizeof(struct hostent)+10)
4491 struct hostent hent;struct hostent *rhent;
4492 char buffer[BUFSIZE];
4493 int bufsize=BUFSIZE;int h_errno;
4494 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4498 if { (eval echo configure:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4500 ol_cv_func_gethostbyname_r_nargs=6
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 ol_cv_func_gethostbyname_r_nargs=0
4512 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4513 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4514 cat >> confdefs.h <<EOF
4515 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4521 ol_cv_func_gethostbyname_r_nargs=0
4524 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4525 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4526 echo "configure:4527: checking number of arguments of gethostbyaddr_r" >&5
4527 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 #include <sys/types.h>
4534 #include <sys/socket.h>
4535 #include <netinet/in.h>
4537 #define BUFSIZE (sizeof(struct hostent)+10)
4539 struct hostent hent; char buffer[BUFSIZE];
4541 size_t alen=sizeof(struct in_addr);
4542 int bufsize=BUFSIZE;int h_errno;
4543 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4544 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4547 if { (eval echo configure:4548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4549 ol_cv_func_gethostbyaddr_r_nargs=7
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 #include <sys/types.h>
4558 #include <sys/socket.h>
4559 #include <netinet/in.h>
4561 #define BUFSIZE (sizeof(struct hostent)+10)
4563 struct hostent hent;
4564 struct hostent *rhent; char buffer[BUFSIZE];
4566 size_t alen=sizeof(struct in_addr);
4567 int bufsize=BUFSIZE;int h_errno;
4568 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4569 alen, AF_INET, &hent, buffer, bufsize,
4573 if { (eval echo configure:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4575 ol_cv_func_gethostbyaddr_r_nargs=8
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4580 ol_cv_func_gethostbyaddr_r_nargs=0
4587 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4588 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4589 cat >> confdefs.h <<EOF
4590 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4596 ol_cv_func_gethostbyaddr_r_nargs=0
4599 if test "$ac_cv_func_ctime_r" = yes \
4600 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4601 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4602 -a "$ac_cv_func_gethostbyname_r" = yes \
4603 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4604 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4605 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4606 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4607 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4610 cat >> confdefs.h <<\EOF
4611 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4617 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4618 -o $ol_with_threads = posix ; then
4620 for ac_hdr in pthread.h sched.h
4622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4624 echo "configure:4625: checking for $ac_hdr" >&5
4625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4634 { (eval echo configure:4635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4636 if test -z "$ac_err"; then
4638 eval "ac_cv_header_$ac_safe=yes"
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4644 eval "ac_cv_header_$ac_safe=no"
4648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4651 cat >> confdefs.h <<EOF
4652 #define $ac_tr_hdr 1
4656 echo "$ac_t""no" 1>&6
4661 if test $ac_cv_header_pthread_h = yes ; then
4662 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4663 echo "configure:4664: checking POSIX thread version" >&5
4664 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4672 # include <pthread.h>
4673 /* this check could be improved */
4674 # ifdef PTHREAD_ONCE_INIT
4675 pthread_version_final
4679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4680 egrep "pthread_version_final" >/dev/null 2>&1; then
4682 ol_pthread_final=yes
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4694 # include <pthread.h>
4695 /* this check could be improved */
4696 # ifdef pthread_once_init
4697 pthread_version_draft4
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4704 ol_pthread_draft4=yes
4707 ol_pthread_draft4=no
4712 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4713 ol_cv_pthread_version=final
4714 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4715 ol_cv_pthread_version=draft4
4717 ol_cv_pthread_version=unknown
4722 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4725 if test $ol_cv_pthread_version = final ; then
4726 cat >> confdefs.h <<\EOF
4727 #define HAVE_PTHREADS_FINAL 1
4730 elif test $ol_cv_pthread_version = draft4 ; then
4731 cat >> confdefs.h <<\EOF
4732 #define HAVE_PTHREADS_D4 1
4736 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4739 # consider threads found
4740 ol_with_threads=found
4743 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4744 echo "configure:4745: checking for LinuxThreads pthread.h" >&5
4745 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4748 cat > conftest.$ac_ext <<EOF
4749 #line 4750 "configure"
4750 #include "confdefs.h"
4751 #include <pthread.h>
4753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4754 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4756 ol_cv_header_linux_threads=yes
4759 ol_cv_header_linux_threads=no
4766 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4767 if test $ol_cv_header_linux_threads = yes; then
4768 cat >> confdefs.h <<\EOF
4769 #define HAVE_LINUX_THREADS 1
4776 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4777 echo "configure:4778: checking for pthread_create in default libraries" >&5
4778 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4782 if test "$cross_compiling" = yes; then
4783 ol_cv_pthread_create=yes
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4789 #include <pthread.h>
4791 #define NULL (void*)0
4794 static void *task(p)
4797 return (void *) (p == NULL);
4800 int main(argc, argv)
4807 /* make sure pthread_create() isn't just a stub */
4808 #if HAVE_PTHREADS_D4
4809 status = pthread_create(&t, pthread_attr_default, task, NULL);
4811 status = pthread_create(&t, NULL, task, NULL);
4814 if( status ) return status;
4816 /* make sure pthread_detach() isn't just a stub */
4817 #if HAVE_PTHREADS_D4
4818 status = pthread_detach( &t );
4820 status = pthread_detach( t );
4823 if( status ) return status;
4829 if { (eval echo configure:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4831 ol_cv_pthread_create=yes
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 ol_cv_pthread_create=no
4843 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4845 if test $ol_cv_pthread_create != no ; then
4846 ol_link_threads=posix
4850 # Pthread try link: -mt (ol_cv_pthread_mt)
4851 if test "$ol_link_threads" = no ; then
4853 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4854 echo "configure:4855: checking for pthread link with -mt" >&5
4855 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4867 #include <pthread.h>
4869 #define NULL (void*)0
4876 #if HAVE_PTHREADS_D4
4877 pthread_create(&t, pthread_attr_default, NULL, NULL);
4878 pthread_detach( &t );
4880 pthread_create(&t, NULL, NULL, NULL);
4881 pthread_detach( t );
4883 #ifdef HAVE_LINUX_THREADS
4884 pthread_kill_other_threads_np();
4889 if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4891 ol_cv_pthread_mt=yes
4893 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4905 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
4907 if test $ol_cv_pthread_mt = yes ; then
4908 ol_link_pthreads="-mt"
4909 ol_link_threads=posix
4913 # Pthread try link: -kthread (ol_cv_pthread_kthread)
4914 if test "$ol_link_threads" = no ; then
4916 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
4917 echo "configure:4918: checking for pthread link with -kthread" >&5
4918 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4924 LIBS="-kthread $LIBS"
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4930 #include <pthread.h>
4932 #define NULL (void*)0
4939 #if HAVE_PTHREADS_D4
4940 pthread_create(&t, pthread_attr_default, NULL, NULL);
4941 pthread_detach( &t );
4943 pthread_create(&t, NULL, NULL, NULL);
4944 pthread_detach( t );
4946 #ifdef HAVE_LINUX_THREADS
4947 pthread_kill_other_threads_np();
4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4954 ol_cv_pthread_kthread=yes
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 ol_cv_pthread_kthread=no
4968 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
4970 if test $ol_cv_pthread_kthread = yes ; then
4971 ol_link_pthreads="-kthread"
4972 ol_link_threads=posix
4976 # Pthread try link: -pthread (ol_cv_pthread_pthread)
4977 if test "$ol_link_threads" = no ; then
4979 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
4980 echo "configure:4981: checking for pthread link with -pthread" >&5
4981 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4987 LIBS="-pthread $LIBS"
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4993 #include <pthread.h>
4995 #define NULL (void*)0
5002 #if HAVE_PTHREADS_D4
5003 pthread_create(&t, pthread_attr_default, NULL, NULL);
5004 pthread_detach( &t );
5006 pthread_create(&t, NULL, NULL, NULL);
5007 pthread_detach( t );
5009 #ifdef HAVE_LINUX_THREADS
5010 pthread_kill_other_threads_np();
5015 if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5017 ol_cv_pthread_pthread=yes
5019 echo "configure: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5022 ol_cv_pthread_pthread=no
5031 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5033 if test $ol_cv_pthread_pthread = yes ; then
5034 ol_link_pthreads="-pthread"
5035 ol_link_threads=posix
5039 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5040 if test "$ol_link_threads" = no ; then
5042 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5043 echo "configure:5044: checking for pthread link with -pthreads" >&5
5044 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5050 LIBS="-pthreads $LIBS"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5056 #include <pthread.h>
5058 #define NULL (void*)0
5065 #if HAVE_PTHREADS_D4
5066 pthread_create(&t, pthread_attr_default, NULL, NULL);
5067 pthread_detach( &t );
5069 pthread_create(&t, NULL, NULL, NULL);
5070 pthread_detach( t );
5072 #ifdef HAVE_LINUX_THREADS
5073 pthread_kill_other_threads_np();
5078 if { (eval echo configure:5079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5080 ol_cv_pthread_pthreads=yes
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5085 ol_cv_pthread_pthreads=no
5094 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5096 if test $ol_cv_pthread_pthreads = yes ; then
5097 ol_link_pthreads="-pthreads"
5098 ol_link_threads=posix
5102 # Pthread try link: -thread (ol_cv_pthread_thread)
5103 if test "$ol_link_threads" = no ; then
5105 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5106 echo "configure:5107: checking for pthread link with -thread" >&5
5107 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5113 LIBS="-thread $LIBS"
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5119 #include <pthread.h>
5121 #define NULL (void*)0
5128 #if HAVE_PTHREADS_D4
5129 pthread_create(&t, pthread_attr_default, NULL, NULL);
5130 pthread_detach( &t );
5132 pthread_create(&t, NULL, NULL, NULL);
5133 pthread_detach( t );
5135 #ifdef HAVE_LINUX_THREADS
5136 pthread_kill_other_threads_np();
5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5143 ol_cv_pthread_thread=yes
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5148 ol_cv_pthread_thread=no
5157 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5159 if test $ol_cv_pthread_thread = yes ; then
5160 ol_link_pthreads="-thread"
5161 ol_link_threads=posix
5166 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5167 if test "$ol_link_threads" = no ; then
5168 # try -lpthread -lmach -lexc -lc_r
5169 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5170 echo "configure:5171: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5171 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5177 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5183 #include <pthread.h>
5185 #define NULL (void*)0
5192 #if HAVE_PTHREADS_D4
5193 pthread_create(&t, pthread_attr_default, NULL, NULL);
5194 pthread_detach( &t );
5196 pthread_create(&t, NULL, NULL, NULL);
5197 pthread_detach( t );
5199 #ifdef HAVE_LINUX_THREADS
5200 pthread_kill_other_threads_np();
5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5207 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5212 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5221 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5223 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5224 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5225 ol_link_threads=posix
5229 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5230 if test "$ol_link_threads" = no ; then
5231 # try -lpthread -lmach -lexc
5232 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5233 echo "configure:5234: checking for pthread link with -lpthread -lmach -lexc" >&5
5234 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5240 LIBS="-lpthread -lmach -lexc $LIBS"
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5246 #include <pthread.h>
5248 #define NULL (void*)0
5255 #if HAVE_PTHREADS_D4
5256 pthread_create(&t, pthread_attr_default, NULL, NULL);
5257 pthread_detach( &t );
5259 pthread_create(&t, NULL, NULL, NULL);
5260 pthread_detach( t );
5262 #ifdef HAVE_LINUX_THREADS
5263 pthread_kill_other_threads_np();
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 ol_cv_pthread_lpthread_lmach_lexc=yes
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 ol_cv_pthread_lpthread_lmach_lexc=no
5284 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5286 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5287 ol_link_pthreads="-lpthread -lmach -lexc"
5288 ol_link_threads=posix
5293 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5294 if test "$ol_link_threads" = no ; then
5295 # try -lpthread -Wl,-woff,85
5296 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5297 echo "configure:5298: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5298 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5299 echo $ac_n "(cached) $ac_c" 1>&6
5304 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5306 cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5310 #include <pthread.h>
5312 #define NULL (void*)0
5319 #if HAVE_PTHREADS_D4
5320 pthread_create(&t, pthread_attr_default, NULL, NULL);
5321 pthread_detach( &t );
5323 pthread_create(&t, NULL, NULL, NULL);
5324 pthread_detach( t );
5326 #ifdef HAVE_LINUX_THREADS
5327 pthread_kill_other_threads_np();
5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5334 ol_cv_pthread_lib_lpthread_woff=yes
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5339 ol_cv_pthread_lib_lpthread_woff=no
5348 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5350 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5351 ol_link_pthreads="-lpthread -Wl,-woff,85"
5352 ol_link_threads=posix
5357 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5358 if test "$ol_link_threads" = no ; then
5360 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5361 echo "configure:5362: checking for pthread link with -lpthread" >&5
5362 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5368 LIBS="-lpthread $LIBS"
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5374 #include <pthread.h>
5376 #define NULL (void*)0
5383 #if HAVE_PTHREADS_D4
5384 pthread_create(&t, pthread_attr_default, NULL, NULL);
5385 pthread_detach( &t );
5387 pthread_create(&t, NULL, NULL, NULL);
5388 pthread_detach( t );
5390 #ifdef HAVE_LINUX_THREADS
5391 pthread_kill_other_threads_np();
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398 ol_cv_pthread_lpthread=yes
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5403 ol_cv_pthread_lpthread=no
5412 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5414 if test $ol_cv_pthread_lpthread = yes ; then
5415 ol_link_pthreads="-lpthread"
5416 ol_link_threads=posix
5420 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5421 if test "$ol_link_threads" = no ; then
5423 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5424 echo "configure:5425: checking for pthread link with -lc_r" >&5
5425 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5437 #include <pthread.h>
5439 #define NULL (void*)0
5446 #if HAVE_PTHREADS_D4
5447 pthread_create(&t, pthread_attr_default, NULL, NULL);
5448 pthread_detach( &t );
5450 pthread_create(&t, NULL, NULL, NULL);
5451 pthread_detach( t );
5453 #ifdef HAVE_LINUX_THREADS
5454 pthread_kill_other_threads_np();
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5461 ol_cv_pthread_lc_r=yes
5463 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5466 ol_cv_pthread_lc_r=no
5475 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5477 if test $ol_cv_pthread_lc_r = yes ; then
5478 ol_link_pthreads="-lc_r"
5479 ol_link_threads=posix
5484 # Pthread try link: -threads (ol_cv_pthread_threads)
5485 if test "$ol_link_threads" = no ; then
5487 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5488 echo "configure:5489: checking for pthread link with -threads" >&5
5489 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5495 LIBS="-threads $LIBS"
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5501 #include <pthread.h>
5503 #define NULL (void*)0
5510 #if HAVE_PTHREADS_D4
5511 pthread_create(&t, pthread_attr_default, NULL, NULL);
5512 pthread_detach( &t );
5514 pthread_create(&t, NULL, NULL, NULL);
5515 pthread_detach( t );
5517 #ifdef HAVE_LINUX_THREADS
5518 pthread_kill_other_threads_np();
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 ol_cv_pthread_threads=yes
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5530 ol_cv_pthread_threads=no
5539 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5541 if test $ol_cv_pthread_threads = yes ; then
5542 ol_link_pthreads="-threads"
5543 ol_link_threads=posix
5548 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5549 if test "$ol_link_threads" = no ; then
5550 # try -lpthreads -lmach -lexc -lc_r
5551 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5552 echo "configure:5553: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5553 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5559 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5565 #include <pthread.h>
5567 #define NULL (void*)0
5574 #if HAVE_PTHREADS_D4
5575 pthread_create(&t, pthread_attr_default, NULL, NULL);
5576 pthread_detach( &t );
5578 pthread_create(&t, NULL, NULL, NULL);
5579 pthread_detach( t );
5581 #ifdef HAVE_LINUX_THREADS
5582 pthread_kill_other_threads_np();
5587 if { (eval echo configure:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5589 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5594 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5603 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5605 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5606 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5607 ol_link_threads=posix
5611 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5612 if test "$ol_link_threads" = no ; then
5613 # try -lpthreads -lmach -lexc
5614 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5615 echo "configure:5616: checking for pthread link with -lpthreads -lmach -lexc" >&5
5616 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5622 LIBS="-lpthreads -lmach -lexc $LIBS"
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5628 #include <pthread.h>
5630 #define NULL (void*)0
5637 #if HAVE_PTHREADS_D4
5638 pthread_create(&t, pthread_attr_default, NULL, NULL);
5639 pthread_detach( &t );
5641 pthread_create(&t, NULL, NULL, NULL);
5642 pthread_detach( t );
5644 #ifdef HAVE_LINUX_THREADS
5645 pthread_kill_other_threads_np();
5650 if { (eval echo configure:5651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5652 ol_cv_pthread_lpthreads_lmach_lexc=yes
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5657 ol_cv_pthread_lpthreads_lmach_lexc=no
5666 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5668 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5669 ol_link_pthreads="-lpthreads -lmach -lexc"
5670 ol_link_threads=posix
5674 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5675 if test "$ol_link_threads" = no ; then
5676 # try -lpthreads -lexc
5677 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5678 echo "configure:5679: checking for pthread link with -lpthreads -lexc" >&5
5679 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5685 LIBS="-lpthreads -lexc $LIBS"
5687 cat > conftest.$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5691 #include <pthread.h>
5693 #define NULL (void*)0
5700 #if HAVE_PTHREADS_D4
5701 pthread_create(&t, pthread_attr_default, NULL, NULL);
5702 pthread_detach( &t );
5704 pthread_create(&t, NULL, NULL, NULL);
5705 pthread_detach( t );
5707 #ifdef HAVE_LINUX_THREADS
5708 pthread_kill_other_threads_np();
5713 if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 ol_cv_pthread_lpthreads_lexc=yes
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 ol_cv_pthread_lpthreads_lexc=no
5729 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5731 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5732 ol_link_pthreads="-lpthreads -lexc"
5733 ol_link_threads=posix
5738 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5739 if test "$ol_link_threads" = no ; then
5741 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5742 echo "configure:5743: checking for pthread link with -lpthreads" >&5
5743 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5749 LIBS="-lpthreads $LIBS"
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5755 #include <pthread.h>
5757 #define NULL (void*)0
5764 #if HAVE_PTHREADS_D4
5765 pthread_create(&t, pthread_attr_default, NULL, NULL);
5766 pthread_detach( &t );
5768 pthread_create(&t, NULL, NULL, NULL);
5769 pthread_detach( t );
5771 #ifdef HAVE_LINUX_THREADS
5772 pthread_kill_other_threads_np();
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5779 ol_cv_pthread_lib_lpthreads=yes
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5784 ol_cv_pthread_lib_lpthreads=no
5793 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5795 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5796 ol_link_pthreads="-lpthreads"
5797 ol_link_threads=posix
5802 if test $ol_link_threads != no ; then
5803 cat >> confdefs.h <<\EOF
5804 #define HAVE_PTHREADS 1
5808 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5810 save_CPPFLAGS="$CPPFLAGS"
5812 LIBS="$LTHREAD_LIBS $LIBS"
5814 for ac_func in sched_yield pthread_yield
5816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5817 echo "configure:5818: checking for $ac_func" >&5
5818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5824 /* System header to define __stub macros and hopefully few prototypes,
5825 which can conflict with char $ac_func(); below. */
5827 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5834 /* The GNU C library defines this for functions which it implements
5835 to always fail with ENOSYS. Some functions are actually named
5836 something starting with __ and the normal name is an alias. */
5837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5845 if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847 eval "ac_cv_func_$ac_func=yes"
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 eval "ac_cv_func_$ac_func=no"
5857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5858 echo "$ac_t""yes" 1>&6
5859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5860 cat >> confdefs.h <<EOF
5861 #define $ac_tr_func 1
5865 echo "$ac_t""no" 1>&6
5870 if test $ac_cv_func_sched_yield = no -a \
5871 $ac_cv_func_pthread_yield = no ; then
5872 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5873 echo "configure:5874: checking for sched_yield in -lrt" >&5
5874 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 ac_save_LIBS="$LIBS"
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 /* Override any gcc2 internal prototype to avoid an error. */
5884 /* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5894 eval "ac_cv_lib_$ac_lib_var=yes"
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5899 eval "ac_cv_lib_$ac_lib_var=no"
5902 LIBS="$ac_save_LIBS"
5905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5906 echo "$ac_t""yes" 1>&6
5907 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5908 cat >> confdefs.h <<\EOF
5909 #define HAVE_SCHED_YIELD 1
5912 ac_cv_func_sched_yield=yes
5914 echo "$ac_t""no" 1>&6
5915 ac_cv_func_sched_yield=no
5919 if test $ac_cv_func_sched_yield = no -a \
5920 $ac_cv_func_pthread_yield = no ; then
5921 for ac_func in thr_yield
5923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5924 echo "configure:5925: checking for $ac_func" >&5
5925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* System header to define __stub macros and hopefully few prototypes,
5932 which can conflict with char $ac_func(); below. */
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. */
5941 /* The GNU C library defines this for functions which it implements
5942 to always fail with ENOSYS. Some functions are actually named
5943 something starting with __ and the normal name is an alias. */
5944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5954 eval "ac_cv_func_$ac_func=yes"
5956 echo "configure: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5959 eval "ac_cv_func_$ac_func=no"
5964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5965 echo "$ac_t""yes" 1>&6
5966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5967 cat >> confdefs.h <<EOF
5968 #define $ac_tr_func 1
5972 echo "$ac_t""no" 1>&6
5977 if test $ac_cv_func_sched_yield = no -a \
5978 $ac_cv_func_pthread_yield = no -a \
5979 "$ac_cv_func_thr_yield" = no ; then
5980 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5983 for ac_func in pthread_kill
5985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5986 echo "configure:5987: checking for $ac_func" >&5
5987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 /* System header to define __stub macros and hopefully few prototypes,
5994 which can conflict with char $ac_func(); below. */
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
6003 /* The GNU C library defines this for functions which it implements
6004 to always fail with ENOSYS. Some functions are actually named
6005 something starting with __ and the normal name is an alias. */
6006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6016 eval "ac_cv_func_$ac_func=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 eval "ac_cv_func_$ac_func=no"
6026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6027 echo "$ac_t""yes" 1>&6
6028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6029 cat >> confdefs.h <<EOF
6030 #define $ac_tr_func 1
6034 echo "$ac_t""no" 1>&6
6039 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6040 echo "configure:6041: checking for pthread_detach with <pthread.h>" >&5
6041 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6049 #include <pthread.h>
6051 #define NULL (void*)0
6055 pthread_detach(NULL);
6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 ol_cv_func_pthread_detach=yes
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6065 ol_cv_func_pthread_detach=no
6071 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6073 if test $ol_cv_func_pthread_detach = no ; then
6074 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6077 cat >> confdefs.h <<\EOF
6078 #define HAVE_PTHREAD_DETACH 1
6083 pthread_setconcurrency \
6084 pthread_getconcurrency \
6085 thr_setconcurrency \
6086 thr_getconcurrency \
6089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6090 echo "configure:6091: checking for $ac_func" >&5
6091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6092 echo $ac_n "(cached) $ac_c" 1>&6
6094 cat > conftest.$ac_ext <<EOF
6095 #line 6096 "configure"
6096 #include "confdefs.h"
6097 /* System header to define __stub macros and hopefully few prototypes,
6098 which can conflict with char $ac_func(); below. */
6100 /* Override any gcc2 internal prototype to avoid an error. */
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6107 /* The GNU C library defines this for functions which it implements
6108 to always fail with ENOSYS. Some functions are actually named
6109 something starting with __ and the normal name is an alias. */
6110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6118 if { (eval echo configure:6119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6120 eval "ac_cv_func_$ac_func=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_func_$ac_func=no"
6130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6131 echo "$ac_t""yes" 1>&6
6132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6133 cat >> confdefs.h <<EOF
6134 #define $ac_tr_func 1
6138 echo "$ac_t""no" 1>&6
6144 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6145 echo "configure:6146: checking for pthread_kill_other_threads_np" >&5
6146 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6147 echo $ac_n "(cached) $ac_c" 1>&6
6149 cat > conftest.$ac_ext <<EOF
6150 #line 6151 "configure"
6151 #include "confdefs.h"
6152 /* System header to define __stub macros and hopefully few prototypes,
6153 which can conflict with char pthread_kill_other_threads_np(); below. */
6155 /* Override any gcc2 internal prototype to avoid an error. */
6156 /* We use char because int might match the return type of a gcc2
6157 builtin and then its argument prototype would still apply. */
6158 char pthread_kill_other_threads_np();
6162 /* The GNU C library defines this for functions which it implements
6163 to always fail with ENOSYS. Some functions are actually named
6164 something starting with __ and the normal name is an alias. */
6165 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6168 pthread_kill_other_threads_np();
6173 if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6175 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6180 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6185 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6186 echo "$ac_t""yes" 1>&6
6189 echo "$ac_t""no" 1>&6
6192 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6193 echo "configure:6194: checking for LinuxThreads implementation" >&5
6194 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6200 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6205 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6206 echo "configure:6207: checking for LinuxThreads consistency" >&5
6207 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6211 if test $ol_cv_header_linux_threads = yes -a \
6212 $ol_cv_sys_linux_threads = yes; then
6213 ol_cv_linux_threads=yes
6214 elif test $ol_cv_header_linux_threads = no -a \
6215 $ol_cv_sys_linux_threads = no; then
6216 ol_cv_linux_threads=no
6218 ol_cv_linux_threads=error
6223 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6226 if test $ol_cv_linux_threads = error; then
6227 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6230 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6231 echo "configure:6232: checking if pthread_create() works" >&5
6232 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6236 if test "$cross_compiling" = yes; then
6237 ol_cv_pthread_create_works=yes
6239 cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure"
6241 #include "confdefs.h"
6243 #include <pthread.h>
6245 #define NULL (void*)0
6248 static void *task(p)
6251 return (void *) (p == NULL);
6254 int main(argc, argv)
6259 #if HAVE_PTHREADS_D4
6260 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6262 exit(pthread_create(&t, NULL, task, NULL));
6267 if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6269 ol_cv_pthread_create_works=yes
6271 echo "configure: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6274 ol_cv_pthread_create_works=no
6281 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6283 if test $ol_cv_pthread_create_works = no ; then
6284 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6287 if test $ol_with_yielding_select = auto ; then
6288 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6289 echo "configure:6290: checking if select yields when using pthreads" >&5
6290 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6294 if test "$cross_compiling" = yes; then
6296 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6302 #include <sys/types.h>
6303 #include <sys/time.h>
6305 #include <pthread.h>
6307 #define NULL (void*) 0
6310 static int fildes[2];
6312 static void *task(p)
6324 FD_SET(fildes[0], &rfds);
6326 /* we're not interested in any fds */
6327 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6334 exit(0); /* if we exit here, the select blocked the whole process */
6337 int main(argc, argv)
6343 /* create a pipe to select */
6344 if(pipe(&fildes[0])) {
6349 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6350 (void) pthread_setconcurrency(2);
6352 #ifdef HAVE_THR_SETCONCURRENCY
6353 /* Set Solaris LWP concurrency to 2 */
6354 thr_setconcurrency(2);
6358 #if HAVE_PTHREADS_D4
6359 pthread_create(&t, pthread_attr_default, task, NULL);
6361 pthread_create(&t, NULL, task, NULL);
6364 #if HAVE_SCHED_YIELD
6365 sched_yield(); /* make sure task runs first */
6367 #ifdef HAVE_PTHREAD_YIELD
6368 pthread_yield(); /* make sure task runs first */
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6377 ol_cv_pthread_select_yields=no
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6382 ol_cv_pthread_select_yields=yes
6389 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6391 if test $ol_cv_pthread_select_yields = yes ; then
6392 ol_with_yielding_select=yes
6396 CPPFLAGS="$save_CPPFLAGS"
6399 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6403 if test $ol_with_threads = posix ; then
6404 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6408 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6409 -o $ol_with_threads = mach ; then
6411 for ac_hdr in mach/cthreads.h
6413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_hdr" >&5
6416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6425 { (eval echo configure:6426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6427 if test -z "$ac_err"; then
6429 eval "ac_cv_header_$ac_safe=yes"
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6435 eval "ac_cv_header_$ac_safe=no"
6439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6442 cat >> confdefs.h <<EOF
6443 #define $ac_tr_hdr 1
6447 echo "$ac_t""no" 1>&6
6451 if test $ac_cv_header_mach_cthreads_h = yes ; then
6452 ol_with_threads=found
6454 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6455 echo "configure:6456: checking for cthread_fork" >&5
6456 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6457 echo $ac_n "(cached) $ac_c" 1>&6
6459 cat > conftest.$ac_ext <<EOF
6460 #line 6461 "configure"
6461 #include "confdefs.h"
6462 /* System header to define __stub macros and hopefully few prototypes,
6463 which can conflict with char cthread_fork(); below. */
6465 /* Override any gcc2 internal prototype to avoid an error. */
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6468 char cthread_fork();
6472 /* The GNU C library defines this for functions which it implements
6473 to always fail with ENOSYS. Some functions are actually named
6474 something starting with __ and the normal name is an alias. */
6475 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6483 if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6485 eval "ac_cv_func_cthread_fork=yes"
6487 echo "configure: failed program was:" >&5
6488 cat conftest.$ac_ext >&5
6490 eval "ac_cv_func_cthread_fork=no"
6495 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6496 echo "$ac_t""yes" 1>&6
6499 echo "$ac_t""no" 1>&6
6503 if test $ol_link_threads = no ; then
6504 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6505 echo "configure:6506: checking for cthread_fork with -all_load" >&5
6506 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6511 LIBS="-all_load $LIBS"
6512 cat > conftest.$ac_ext <<EOF
6513 #line 6514 "configure"
6514 #include "confdefs.h"
6515 #include <mach/cthreads.h>
6518 cthread_fork((void *)0, (void *)0);
6522 if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6524 ol_cv_cthread_all_load=yes
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6529 ol_cv_cthread_all_load=no
6536 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6538 if test $ol_cv_cthread_all_load = yes ; then
6539 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6540 ol_link_threads=mach
6544 if test $ol_link_threads != no ; then
6545 : check for cthread specific functionality here
6546 cat >> confdefs.h <<\EOF
6547 #define HAVE_MACH_CTHREADS 1
6551 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6555 if test $ol_with_threads = mach ; then
6556 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6560 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6561 -o $ol_with_threads = lwp ; then
6563 for ac_hdr in thread.h synch.h
6565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6567 echo "configure:6568: checking for $ac_hdr" >&5
6568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6577 { (eval echo configure:6578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6579 if test -z "$ac_err"; then
6581 eval "ac_cv_header_$ac_safe=yes"
6584 echo "configure: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6587 eval "ac_cv_header_$ac_safe=no"
6591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6594 cat >> confdefs.h <<EOF
6595 #define $ac_tr_hdr 1
6599 echo "$ac_t""no" 1>&6
6603 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6604 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6605 echo "configure:6606: checking for thr_create in -lthread" >&5
6606 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6610 ac_save_LIBS="$LIBS"
6611 LIBS="-lthread $LIBS"
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 eval "ac_cv_lib_$ac_lib_var=yes"
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_lib_$ac_lib_var=no"
6634 LIBS="$ac_save_LIBS"
6637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6638 echo "$ac_t""yes" 1>&6
6641 echo "$ac_t""no" 1>&6
6646 if test $have_thr = yes ; then
6647 cat >> confdefs.h <<\EOF
6651 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6654 if test $ol_with_yielding_select = auto ; then
6655 ol_with_yielding_select=yes
6659 thr_setconcurrency \
6660 thr_getconcurrency \
6663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6664 echo "configure:6665: checking for $ac_func" >&5
6665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* System header to define __stub macros and hopefully few prototypes,
6672 which can conflict with char $ac_func(); below. */
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6681 /* The GNU C library defines this for functions which it implements
6682 to always fail with ENOSYS. Some functions are actually named
6683 something starting with __ and the normal name is an alias. */
6684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6692 if { (eval echo configure:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6694 eval "ac_cv_func_$ac_func=yes"
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6699 eval "ac_cv_func_$ac_func=no"
6704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6705 echo "$ac_t""yes" 1>&6
6706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6707 cat >> confdefs.h <<EOF
6708 #define $ac_tr_func 1
6712 echo "$ac_t""no" 1>&6
6719 for ac_hdr in lwp/lwp.h
6721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6723 echo "configure:6724: checking for $ac_hdr" >&5
6724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6725 echo $ac_n "(cached) $ac_c" 1>&6
6727 cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6733 { (eval echo configure:6734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6735 if test -z "$ac_err"; then
6737 eval "ac_cv_header_$ac_safe=yes"
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6743 eval "ac_cv_header_$ac_safe=no"
6747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6748 echo "$ac_t""yes" 1>&6
6749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6750 cat >> confdefs.h <<EOF
6751 #define $ac_tr_hdr 1
6755 echo "$ac_t""no" 1>&6
6759 if test $ac_cv_header_lwp_lwp_h = yes ; then
6760 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6761 echo "configure:6762: checking for lwp_create in -llwp" >&5
6762 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 ac_save_LIBS="$LIBS"
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 /* Override any gcc2 internal prototype to avoid an error. */
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6782 eval "ac_cv_lib_$ac_lib_var=yes"
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6787 eval "ac_cv_lib_$ac_lib_var=no"
6790 LIBS="$ac_save_LIBS"
6793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6797 echo "$ac_t""no" 1>&6
6802 if test $have_lwp = yes ; then
6803 cat >> confdefs.h <<\EOF
6807 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6810 if test $ol_with_yielding_select = auto ; then
6811 ol_with_yielding_select=no
6817 if test $ol_with_yielding_select = yes ; then
6818 cat >> confdefs.h <<\EOF
6819 #define HAVE_YIELDING_SELECT 1
6824 if test $ol_with_threads = manual ; then
6827 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6829 for ac_hdr in pthread.h sched.h
6831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6833 echo "configure:6834: checking for $ac_hdr" >&5
6834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6843 { (eval echo configure:6844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6845 if test -z "$ac_err"; then
6847 eval "ac_cv_header_$ac_safe=yes"
6850 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 eval "ac_cv_header_$ac_safe=no"
6857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6860 cat >> confdefs.h <<EOF
6861 #define $ac_tr_hdr 1
6865 echo "$ac_t""no" 1>&6
6869 for ac_func in sched_yield pthread_yield
6871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6872 echo "configure:6873: checking for $ac_func" >&5
6873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 /* System header to define __stub macros and hopefully few prototypes,
6880 which can conflict with char $ac_func(); below. */
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6889 /* The GNU C library defines this for functions which it implements
6890 to always fail with ENOSYS. Some functions are actually named
6891 something starting with __ and the normal name is an alias. */
6892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6900 if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6902 eval "ac_cv_func_$ac_func=yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 eval "ac_cv_func_$ac_func=no"
6912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6913 echo "$ac_t""yes" 1>&6
6914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6915 cat >> confdefs.h <<EOF
6916 #define $ac_tr_func 1
6920 echo "$ac_t""no" 1>&6
6925 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6926 echo "configure:6927: checking for LinuxThreads pthread.h" >&5
6927 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 #include <pthread.h>
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6938 ol_cv_header_linux_threads=yes
6941 ol_cv_header_linux_threads=no
6948 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6949 if test $ol_cv_header_linux_threads = yes; then
6950 cat >> confdefs.h <<\EOF
6951 #define HAVE_LINUX_THREADS 1
6957 for ac_hdr in mach/cthreads.h
6959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6961 echo "configure:6962: checking for $ac_hdr" >&5
6962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6971 { (eval echo configure:6972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6973 if test -z "$ac_err"; then
6975 eval "ac_cv_header_$ac_safe=yes"
6978 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6981 eval "ac_cv_header_$ac_safe=no"
6985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6986 echo "$ac_t""yes" 1>&6
6987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6988 cat >> confdefs.h <<EOF
6989 #define $ac_tr_hdr 1
6993 echo "$ac_t""no" 1>&6
6997 for ac_hdr in lwp/lwp.h
6999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7001 echo "configure:7002: checking for $ac_hdr" >&5
7002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 cat > conftest.$ac_ext <<EOF
7006 #line 7007 "configure"
7007 #include "confdefs.h"
7010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7011 { (eval echo configure:7012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7013 if test -z "$ac_err"; then
7015 eval "ac_cv_header_$ac_safe=yes"
7018 echo "configure: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 eval "ac_cv_header_$ac_safe=no"
7025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7026 echo "$ac_t""yes" 1>&6
7027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7028 cat >> confdefs.h <<EOF
7029 #define $ac_tr_hdr 1
7033 echo "$ac_t""no" 1>&6
7037 for ac_hdr in thread.h synch.h
7039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7041 echo "configure:7042: checking for $ac_hdr" >&5
7042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7051 { (eval echo configure:7052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7053 if test -z "$ac_err"; then
7055 eval "ac_cv_header_$ac_safe=yes"
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7061 eval "ac_cv_header_$ac_safe=no"
7065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7068 cat >> confdefs.h <<EOF
7069 #define $ac_tr_hdr 1
7073 echo "$ac_t""no" 1>&6
7079 if test $ol_link_threads != no ; then
7080 cat >> confdefs.h <<\EOF
7084 cat >> confdefs.h <<\EOF
7085 #define _REENTRANT 1
7088 cat >> confdefs.h <<\EOF
7089 #define THREAD_SAFE 1
7092 cat >> confdefs.h <<\EOF
7093 #define _THREAD_SAFE 1
7096 cat >> confdefs.h <<\EOF
7097 #define THREADSAFE 1
7100 cat >> confdefs.h <<\EOF
7101 #define _THREADSAFE 1
7105 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7106 echo "configure:7107: checking for thread specific errno" >&5
7107 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7119 if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7121 ol_cv_errno_thread_specific=yes
7123 echo "configure: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7126 ol_cv_errno_thread_specific=no
7132 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7134 if test $ol_cv_errno_thread_specific != yes ; then
7135 LIBS="$LTHREAD_LIBS $LIBS"
7141 if test $ol_link_threads = no ; then
7142 if test $ol_with_threads = yes ; then
7143 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7146 if test $ol_with_threads = auto ; then
7147 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7151 cat >> confdefs.h <<\EOF
7152 #define NO_THREADS 1
7158 if test $ol_link_threads != no ; then
7159 cat >> confdefs.h <<\EOF
7160 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7167 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7168 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7169 echo "configure:7170: checking for DB2 library" >&5
7170 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7171 echo $ac_n "(cached) $ac_c" 1>&6
7174 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7175 echo "configure:7176: checking for db_open in -ldb" >&5
7176 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 ac_save_LIBS="$LIBS"
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7185 /* Override any gcc2 internal prototype to avoid an error. */
7186 /* We use char because int might match the return type of a gcc2
7187 builtin and then its argument prototype would still apply. */
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196 eval "ac_cv_lib_$ac_lib_var=yes"
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7201 eval "ac_cv_lib_$ac_lib_var=no"
7204 LIBS="$ac_save_LIBS"
7207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7208 echo "$ac_t""yes" 1>&6
7211 echo "$ac_t""no" 1>&6
7219 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7225 echo "configure:7226: checking for $ac_hdr" >&5
7226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7235 { (eval echo configure:7236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7237 if test -z "$ac_err"; then
7239 eval "ac_cv_header_$ac_safe=yes"
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7245 eval "ac_cv_header_$ac_safe=no"
7249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7250 echo "$ac_t""yes" 1>&6
7251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7252 cat >> confdefs.h <<EOF
7253 #define $ac_tr_hdr 1
7257 echo "$ac_t""no" 1>&6
7261 if test $ac_cv_header_db_h = yes ; then
7262 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7263 echo "configure:7264: checking if db.h is DB2" >&5
7264 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7265 echo $ac_n "(cached) $ac_c" 1>&6
7268 cat > conftest.$ac_ext <<EOF
7269 #line 7270 "configure"
7270 #include "confdefs.h"
7273 /* this check could be improved */
7274 # ifdef DB_VERSION_MAJOR
7275 # if DB_VERSION_MAJOR == 2
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282 egrep "__db_version_2" >/dev/null 2>&1; then
7284 ol_cv_header_db2=yes
7293 echo "$ac_t""$ol_cv_header_db2" 1>&6
7300 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7301 echo "configure:7302: checking for Berkeley DB2" >&5
7302 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7303 echo $ac_n "(cached) $ac_c" 1>&6
7306 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7307 ol_cv_berkeley_db2=no
7309 ol_cv_berkeley_db2=yes
7314 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7315 if test $ol_cv_berkeley_db2 = yes ; then
7316 cat >> confdefs.h <<\EOF
7317 #define HAVE_BERKELEY_DB2 1
7323 if test $ol_cv_berkeley_db2 = yes ; then
7325 ol_with_ldbm_api=db2
7327 if test $ol_with_ldbm_type = hash ; then
7328 cat >> confdefs.h <<\EOF
7329 #define LDBM_USE_DBHASH 1
7333 cat >> confdefs.h <<\EOF
7334 #define LDBM_USE_DBBTREE 1
7339 if test $ol_cv_lib_db2 != yes ; then
7340 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7346 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7350 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7351 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7352 echo "configure:7353: checking for Berkeley DB library" >&5
7353 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7357 for ac_hdr in db1/db.h
7359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7361 echo "configure:7362: checking for $ac_hdr" >&5
7362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7363 echo $ac_n "(cached) $ac_c" 1>&6
7365 cat > conftest.$ac_ext <<EOF
7366 #line 7367 "configure"
7367 #include "confdefs.h"
7370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7371 { (eval echo configure:7372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7373 if test -z "$ac_err"; then
7375 eval "ac_cv_header_$ac_safe=yes"
7378 echo "configure: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7381 eval "ac_cv_header_$ac_safe=no"
7385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7386 echo "$ac_t""yes" 1>&6
7387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7388 cat >> confdefs.h <<EOF
7389 #define $ac_tr_hdr 1
7393 echo "$ac_t""no" 1>&6
7398 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7399 echo "configure:7400: checking for dbopen" >&5
7400 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char dbopen(); below. */
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7416 /* The GNU C library defines this for functions which it implements
7417 to always fail with ENOSYS. Some functions are actually named
7418 something starting with __ and the normal name is an alias. */
7419 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7427 if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7429 eval "ac_cv_func_dbopen=yes"
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7434 eval "ac_cv_func_dbopen=no"
7439 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7440 echo "$ac_t""yes" 1>&6
7443 echo "$ac_t""no" 1>&6
7445 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7446 echo "configure:7447: checking for dbopen in -ldb1" >&5
7447 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 ac_save_LIBS="$LIBS"
7453 cat > conftest.$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 /* Override any gcc2 internal prototype to avoid an error. */
7457 /* We use char because int might match the return type of a gcc2
7458 builtin and then its argument prototype would still apply. */
7465 if { (eval echo configure:7466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7467 eval "ac_cv_lib_$ac_lib_var=yes"
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7472 eval "ac_cv_lib_$ac_lib_var=no"
7475 LIBS="$ac_save_LIBS"
7478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7479 echo "$ac_t""yes" 1>&6
7482 echo "$ac_t""no" 1>&6
7484 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7485 echo "configure:7486: checking for dbopen in -ldb" >&5
7486 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7488 echo $ac_n "(cached) $ac_c" 1>&6
7490 ac_save_LIBS="$LIBS"
7492 cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495 /* Override any gcc2 internal prototype to avoid an error. */
7496 /* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7504 if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7506 eval "ac_cv_lib_$ac_lib_var=yes"
7508 echo "configure: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7511 eval "ac_cv_lib_$ac_lib_var=no"
7514 LIBS="$ac_save_LIBS"
7517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7518 echo "$ac_t""yes" 1>&6
7521 echo "$ac_t""no" 1>&6
7535 echo "$ac_t""$ol_cv_lib_db" 1>&6
7538 for ac_hdr in db_185.h
7540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7542 echo "configure:7543: checking for $ac_hdr" >&5
7543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7544 echo $ac_n "(cached) $ac_c" 1>&6
7546 cat > conftest.$ac_ext <<EOF
7547 #line 7548 "configure"
7548 #include "confdefs.h"
7551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7552 { (eval echo configure:7553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7554 if test -z "$ac_err"; then
7556 eval "ac_cv_header_$ac_safe=yes"
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7562 eval "ac_cv_header_$ac_safe=no"
7566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7567 echo "$ac_t""yes" 1>&6
7568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7569 cat >> confdefs.h <<EOF
7570 #define $ac_tr_hdr 1
7574 echo "$ac_t""no" 1>&6
7578 if test "$ol_cv_header_db2" = yes ; then
7580 ol_cv_header_db=$ac_cv_header_db_185_h
7582 ol_cv_header_db=$ac_cv_header_db_h
7587 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7588 echo "configure:7589: checking for Berkeley DB" >&5
7589 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7590 echo $ac_n "(cached) $ac_c" 1>&6
7593 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7594 ol_cv_berkeley_db=no
7596 ol_cv_berkeley_db=yes
7601 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7602 if test $ol_cv_berkeley_db = yes ; then
7603 cat >> confdefs.h <<\EOF
7604 #define HAVE_BERKELEY_DB 1
7610 if test $ol_cv_berkeley_db = yes ; then
7614 if test $ol_with_ldbm_type = hash ; then
7615 cat >> confdefs.h <<\EOF
7616 #define LDBM_USE_DBHASH 1
7620 cat >> confdefs.h <<\EOF
7621 #define LDBM_USE_DBBTREE 1
7626 if test $ol_cv_lib_db != yes ; then
7627 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7632 if test $ol_with_ldbm_api = manual ; then
7635 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7637 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7641 echo "configure:7642: checking for $ac_hdr" >&5
7642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7643 echo $ac_n "(cached) $ac_c" 1>&6
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure"
7647 #include "confdefs.h"
7650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7651 { (eval echo configure:7652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7653 if test -z "$ac_err"; then
7655 eval "ac_cv_header_$ac_safe=yes"
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7661 eval "ac_cv_header_$ac_safe=no"
7665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7666 echo "$ac_t""yes" 1>&6
7667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7668 cat >> confdefs.h <<EOF
7669 #define $ac_tr_hdr 1
7673 echo "$ac_t""no" 1>&6
7679 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7680 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7681 ol_with_ldbm_api=none
7684 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7685 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7686 echo "configure:7687: checking for MDBM library" >&5
7687 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7691 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7692 echo "configure:7693: checking for mdbm_set_chain" >&5
7693 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+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"
7699 /* System header to define __stub macros and hopefully few prototypes,
7700 which can conflict with char mdbm_set_chain(); below. */
7702 /* Override any gcc2 internal prototype to avoid an error. */
7703 /* We use char because int might match the return type of a gcc2
7704 builtin and then its argument prototype would still apply. */
7705 char mdbm_set_chain();
7709 /* The GNU C library defines this for functions which it implements
7710 to always fail with ENOSYS. Some functions are actually named
7711 something starting with __ and the normal name is an alias. */
7712 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7720 if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7722 eval "ac_cv_func_mdbm_set_chain=yes"
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7727 eval "ac_cv_func_mdbm_set_chain=no"
7732 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7733 echo "$ac_t""yes" 1>&6
7736 echo "$ac_t""no" 1>&6
7738 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7739 echo "configure:7740: checking for mdbm_set_chain in -lmdbm" >&5
7740 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7742 echo $ac_n "(cached) $ac_c" 1>&6
7744 ac_save_LIBS="$LIBS"
7746 cat > conftest.$ac_ext <<EOF
7747 #line 7748 "configure"
7748 #include "confdefs.h"
7749 /* Override any gcc2 internal prototype to avoid an error. */
7750 /* We use char because int might match the return type of a gcc2
7751 builtin and then its argument prototype would still apply. */
7752 char mdbm_set_chain();
7758 if { (eval echo configure:7759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7760 eval "ac_cv_lib_$ac_lib_var=yes"
7762 echo "configure: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7765 eval "ac_cv_lib_$ac_lib_var=no"
7768 LIBS="$ac_save_LIBS"
7771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 ol_cv_lib_mdbm=-lmdbm
7775 echo "$ac_t""no" 1>&6
7786 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7789 for ac_hdr in mdbm.h
7791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7793 echo "configure:7794: checking for $ac_hdr" >&5
7794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7803 { (eval echo configure:7804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7805 if test -z "$ac_err"; then
7807 eval "ac_cv_header_$ac_safe=yes"
7810 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7813 eval "ac_cv_header_$ac_safe=no"
7817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7818 echo "$ac_t""yes" 1>&6
7819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7820 cat >> confdefs.h <<EOF
7821 #define $ac_tr_hdr 1
7825 echo "$ac_t""no" 1>&6
7829 echo $ac_n "checking for db""... $ac_c" 1>&6
7830 echo "configure:7831: checking for db" >&5
7831 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7835 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7843 echo "$ac_t""$ol_cv_mdbm" 1>&6
7844 if test $ol_cv_mdbm = yes ; then
7845 cat >> confdefs.h <<\EOF
7852 if test $ol_cv_mdbm = yes ; then
7854 ol_with_ldbm_api=mdbm
7855 if test $ol_cv_lib_mdbm != yes ; then
7856 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7861 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7862 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7863 echo "configure:7864: checking for GDBM library" >&5
7864 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7868 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7869 echo "configure:7870: checking for gdbm_open" >&5
7870 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 /* System header to define __stub macros and hopefully few prototypes,
7877 which can conflict with char gdbm_open(); below. */
7879 /* Override any gcc2 internal prototype to avoid an error. */
7880 /* We use char because int might match the return type of a gcc2
7881 builtin and then its argument prototype would still apply. */
7886 /* The GNU C library defines this for functions which it implements
7887 to always fail with ENOSYS. Some functions are actually named
7888 something starting with __ and the normal name is an alias. */
7889 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7897 if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7899 eval "ac_cv_func_gdbm_open=yes"
7901 echo "configure: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7904 eval "ac_cv_func_gdbm_open=no"
7909 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7910 echo "$ac_t""yes" 1>&6
7913 echo "$ac_t""no" 1>&6
7915 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7916 echo "configure:7917: checking for gdbm_open in -lgdbm" >&5
7917 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7921 ac_save_LIBS="$LIBS"
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 /* Override any gcc2 internal prototype to avoid an error. */
7927 /* We use char because int might match the return type of a gcc2
7928 builtin and then its argument prototype would still apply. */
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 eval "ac_cv_lib_$ac_lib_var=yes"
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 eval "ac_cv_lib_$ac_lib_var=no"
7945 LIBS="$ac_save_LIBS"
7948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7950 ol_cv_lib_gdbm=-lgdbm
7952 echo "$ac_t""no" 1>&6
7963 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7966 for ac_hdr in gdbm.h
7968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7970 echo "configure:7971: checking for $ac_hdr" >&5
7971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7980 { (eval echo configure:7981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7982 if test -z "$ac_err"; then
7984 eval "ac_cv_header_$ac_safe=yes"
7987 echo "configure: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7990 eval "ac_cv_header_$ac_safe=no"
7994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7996 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7997 cat >> confdefs.h <<EOF
7998 #define $ac_tr_hdr 1
8002 echo "$ac_t""no" 1>&6
8006 echo $ac_n "checking for db""... $ac_c" 1>&6
8007 echo "configure:8008: checking for db" >&5
8008 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8012 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8020 echo "$ac_t""$ol_cv_gdbm" 1>&6
8021 if test $ol_cv_gdbm = yes ; then
8022 cat >> confdefs.h <<\EOF
8029 if test $ol_cv_gdbm = yes ; then
8031 ol_with_ldbm_api=gdbm
8033 if test $ol_cv_lib_gdbm != yes ; then
8034 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8039 if test $ol_with_ldbm_api = auto ; then
8040 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8041 elif test $ol_with_ldbm_api = ndbm ; then
8042 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8043 echo "configure:8044: checking for NDBM library" >&5
8044 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8048 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8049 echo "configure:8050: checking for dbm_open" >&5
8050 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8051 echo $ac_n "(cached) $ac_c" 1>&6
8053 cat > conftest.$ac_ext <<EOF
8054 #line 8055 "configure"
8055 #include "confdefs.h"
8056 /* System header to define __stub macros and hopefully few prototypes,
8057 which can conflict with char dbm_open(); below. */
8059 /* Override any gcc2 internal prototype to avoid an error. */
8060 /* We use char because int might match the return type of a gcc2
8061 builtin and then its argument prototype would still apply. */
8066 /* The GNU C library defines this for functions which it implements
8067 to always fail with ENOSYS. Some functions are actually named
8068 something starting with __ and the normal name is an alias. */
8069 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8077 if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8079 eval "ac_cv_func_dbm_open=yes"
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8084 eval "ac_cv_func_dbm_open=no"
8089 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8090 echo "$ac_t""yes" 1>&6
8093 echo "$ac_t""no" 1>&6
8095 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8096 echo "configure:8097: checking for dbm_open in -lndbm" >&5
8097 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8099 echo $ac_n "(cached) $ac_c" 1>&6
8101 ac_save_LIBS="$LIBS"
8103 cat > conftest.$ac_ext <<EOF
8104 #line 8105 "configure"
8105 #include "confdefs.h"
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8117 eval "ac_cv_lib_$ac_lib_var=yes"
8119 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8122 eval "ac_cv_lib_$ac_lib_var=no"
8125 LIBS="$ac_save_LIBS"
8128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8129 echo "$ac_t""yes" 1>&6
8130 ol_cv_lib_ndbm=-lndbm
8132 echo "$ac_t""no" 1>&6
8134 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8135 echo "configure:8136: checking for dbm_open in -ldbm" >&5
8136 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8140 ac_save_LIBS="$LIBS"
8142 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure"
8144 #include "confdefs.h"
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8156 eval "ac_cv_lib_$ac_lib_var=yes"
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8161 eval "ac_cv_lib_$ac_lib_var=no"
8164 LIBS="$ac_save_LIBS"
8167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8168 echo "$ac_t""yes" 1>&6
8169 ol_cv_lib_ndbm=-ldbm
8171 echo "$ac_t""no" 1>&6
8184 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8187 for ac_hdr in ndbm.h
8189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8191 echo "configure:8192: checking for $ac_hdr" >&5
8192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8193 echo $ac_n "(cached) $ac_c" 1>&6
8195 cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8201 { (eval echo configure:8202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8203 if test -z "$ac_err"; then
8205 eval "ac_cv_header_$ac_safe=yes"
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8211 eval "ac_cv_header_$ac_safe=no"
8215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8216 echo "$ac_t""yes" 1>&6
8217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8218 cat >> confdefs.h <<EOF
8219 #define $ac_tr_hdr 1
8223 echo "$ac_t""no" 1>&6
8227 echo $ac_n "checking for db""... $ac_c" 1>&6
8228 echo "configure:8229: checking for db" >&5
8229 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8233 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8241 echo "$ac_t""$ol_cv_ndbm" 1>&6
8242 if test $ol_cv_ndbm = yes ; then
8243 cat >> confdefs.h <<\EOF
8250 if test $ol_cv_ndbm = yes ; then
8252 ol_with_ldbm_api=ndbm
8254 if test $ol_cv_lib_ndbm != yes ; then
8255 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8260 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8261 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8262 if test $ol_enable_ldbm = yes ; then
8263 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8266 echo "configure: warning: disabling LDBM" 1>&2
8270 if test $ol_enable_wrappers != no ; then
8271 for ac_hdr in tcpd.h
8273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8275 echo "configure:8276: checking for $ac_hdr" >&5
8276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8285 { (eval echo configure:8286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8287 if test -z "$ac_err"; then
8289 eval "ac_cv_header_$ac_safe=yes"
8292 echo "configure: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8295 eval "ac_cv_header_$ac_safe=no"
8299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8300 echo "$ac_t""yes" 1>&6
8301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8302 cat >> confdefs.h <<EOF
8303 #define $ac_tr_hdr 1
8307 echo "$ac_t""no" 1>&6
8312 if test $ac_cv_header_tcpd_h != yes ; then
8315 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8316 echo "configure:8317: checking for main in -lwrap" >&5
8317 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 ac_save_LIBS="$LIBS"
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8331 if { (eval echo configure:8332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8333 eval "ac_cv_lib_$ac_lib_var=yes"
8335 echo "configure: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8338 eval "ac_cv_lib_$ac_lib_var=no"
8341 LIBS="$ac_save_LIBS"
8344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8345 echo "$ac_t""yes" 1>&6
8348 echo "$ac_t""no" 1>&6
8354 if test $have_wrappers = yes ; then
8355 cat >> confdefs.h <<\EOF
8359 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8361 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8362 echo "configure:8363: checking for main in -lnsl" >&5
8363 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8367 ac_save_LIBS="$LIBS"
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8377 if { (eval echo configure:8378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8379 eval "ac_cv_lib_$ac_lib_var=yes"
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8384 eval "ac_cv_lib_$ac_lib_var=no"
8387 LIBS="$ac_save_LIBS"
8390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8391 echo "$ac_t""yes" 1>&6
8392 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8394 cat >> confdefs.h <<EOF
8395 #define $ac_tr_lib 1
8401 echo "$ac_t""no" 1>&6
8405 echo "configure: warning: could not find -lwrap" 1>&2
8406 if test $ol_enable_wrappers = yes ; then
8407 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8410 echo "configure: warning: disabling wrappers support" 1>&2
8411 ol_enable_wrappers=no
8415 if test $ol_enable_syslog != no ; then
8416 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8417 echo "configure:8418: checking for openlog" >&5
8418 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* System header to define __stub macros and hopefully few prototypes,
8425 which can conflict with char openlog(); below. */
8427 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8434 /* The GNU C library defines this for functions which it implements
8435 to always fail with ENOSYS. Some functions are actually named
8436 something starting with __ and the normal name is an alias. */
8437 #if defined (__stub_openlog) || defined (__stub___openlog)
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8447 eval "ac_cv_func_openlog=yes"
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 eval "ac_cv_func_openlog=no"
8457 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8458 echo "$ac_t""yes" 1>&6
8461 echo "$ac_t""no" 1>&6
8464 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8465 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8467 ol_enable_syslog=$ac_cv_func_openlog
8470 if test $ol_enable_dmalloc != no ; then
8471 for ac_hdr in dmalloc.h
8473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8475 echo "configure:8476: checking for $ac_hdr" >&5
8476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8485 { (eval echo configure:8486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8487 if test -z "$ac_err"; then
8489 eval "ac_cv_header_$ac_safe=yes"
8492 echo "configure: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8495 eval "ac_cv_header_$ac_safe=no"
8499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8500 echo "$ac_t""yes" 1>&6
8501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8502 cat >> confdefs.h <<EOF
8503 #define $ac_tr_hdr 1
8507 echo "$ac_t""no" 1>&6
8511 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8512 echo "configure:8513: checking for dmalloc_shutdown in -ldmalloc" >&5
8513 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8515 echo $ac_n "(cached) $ac_c" 1>&6
8517 ac_save_LIBS="$LIBS"
8518 LIBS="-ldmalloc $LIBS"
8519 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* Override any gcc2 internal prototype to avoid an error. */
8523 /* We use char because int might match the return type of a gcc2
8524 builtin and then its argument prototype would still apply. */
8525 char dmalloc_shutdown();
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8533 eval "ac_cv_lib_$ac_lib_var=yes"
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 eval "ac_cv_lib_$ac_lib_var=no"
8541 LIBS="$ac_save_LIBS"
8544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8545 echo "$ac_t""yes" 1>&6
8546 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8547 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8548 cat >> confdefs.h <<EOF
8549 #define $ac_tr_lib 1
8552 LIBS="-ldmalloc $LIBS"
8555 echo "$ac_t""no" 1>&6
8560 if test $ol_enable_tcl != no ; then
8563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8565 echo "configure:8566: checking for $ac_hdr" >&5
8566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8567 echo $ac_n "(cached) $ac_c" 1>&6
8569 cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8575 { (eval echo configure:8576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8577 if test -z "$ac_err"; then
8579 eval "ac_cv_header_$ac_safe=yes"
8582 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8585 eval "ac_cv_header_$ac_safe=no"
8589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8590 echo "$ac_t""yes" 1>&6
8591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8592 cat >> confdefs.h <<EOF
8593 #define $ac_tr_hdr 1
8597 echo "$ac_t""no" 1>&6
8602 if test $ac_cv_header_tcl_h != yes ; then
8605 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8606 echo "configure:8607: checking for main in -ltcl" >&5
8607 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8611 ac_save_LIBS="$LIBS"
8613 cat > conftest.$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8623 eval "ac_cv_lib_$ac_lib_var=yes"
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8628 eval "ac_cv_lib_$ac_lib_var=no"
8631 LIBS="$ac_save_LIBS"
8634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8635 echo "$ac_t""yes" 1>&6
8636 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8638 echo "$ac_t""no" 1>&6
8643 if test $have_tcl != yes; then
8644 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8645 echo "configure:8646: checking for main in -ltcl7.6" >&5
8646 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8650 ac_save_LIBS="$LIBS"
8651 LIBS="-ltcl7.6 $LIBS"
8652 cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8662 eval "ac_cv_lib_$ac_lib_var=yes"
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8667 eval "ac_cv_lib_$ac_lib_var=no"
8670 LIBS="$ac_save_LIBS"
8673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8677 echo "$ac_t""no" 1>&6
8683 if test $have_tcl != yes; then
8684 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8685 echo "configure:8686: checking for main in -ltcl8.0" >&5
8686 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8690 ac_save_LIBS="$LIBS"
8691 LIBS="-ltcl8.0 $LIBS"
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8700 if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8702 eval "ac_cv_lib_$ac_lib_var=yes"
8704 echo "configure: failed program was:" >&5
8705 cat conftest.$ac_ext >&5
8707 eval "ac_cv_lib_$ac_lib_var=no"
8710 LIBS="$ac_save_LIBS"
8713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8714 echo "$ac_t""yes" 1>&6
8715 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8717 echo "$ac_t""no" 1>&6
8724 if test $have_tcl != yes ; then
8725 echo "configure: warning: could not find -ltcl" 1>&2
8726 if test $ol_enable_tcl = yes ; then
8727 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8734 # ud needs termcap (should insert check here)
8736 for ac_hdr in termcap.h ncurses.h
8738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8740 echo "configure:8741: checking for $ac_hdr" >&5
8741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8750 { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8752 if test -z "$ac_err"; then
8754 eval "ac_cv_header_$ac_safe=yes"
8757 echo "configure: failed program was:" >&5
8758 cat conftest.$ac_ext >&5
8760 eval "ac_cv_header_$ac_safe=no"
8764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8765 echo "$ac_t""yes" 1>&6
8766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8767 cat >> confdefs.h <<EOF
8768 #define $ac_tr_hdr 1
8772 echo "$ac_t""no" 1>&6
8777 if test $ol_link_termcap = no ; then
8778 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8779 echo "configure:8780: checking for tputs in -ltermcap" >&5
8780 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8782 echo $ac_n "(cached) $ac_c" 1>&6
8784 ac_save_LIBS="$LIBS"
8785 LIBS="-ltermcap $LIBS"
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 /* Override any gcc2 internal prototype to avoid an error. */
8790 /* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8798 if { (eval echo configure:8799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8800 eval "ac_cv_lib_$ac_lib_var=yes"
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8805 eval "ac_cv_lib_$ac_lib_var=no"
8808 LIBS="$ac_save_LIBS"
8811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8812 echo "$ac_t""yes" 1>&6
8815 echo "$ac_t""no" 1>&6
8819 if test $have_termcap = yes ; then
8820 cat >> confdefs.h <<\EOF
8821 #define HAVE_TERMCAP 1
8825 TERMCAP_LIBS=-ltermcap
8829 if test $ol_link_termcap = no ; then
8830 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8831 echo "configure:8832: checking for initscr in -lncurses" >&5
8832 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8834 echo $ac_n "(cached) $ac_c" 1>&6
8836 ac_save_LIBS="$LIBS"
8837 LIBS="-lncurses $LIBS"
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 /* Override any gcc2 internal prototype to avoid an error. */
8842 /* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */
8850 if { (eval echo configure:8851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8852 eval "ac_cv_lib_$ac_lib_var=yes"
8854 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8857 eval "ac_cv_lib_$ac_lib_var=no"
8860 LIBS="$ac_save_LIBS"
8863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8864 echo "$ac_t""yes" 1>&6
8867 echo "$ac_t""no" 1>&6
8871 if test $have_ncurses = yes ; then
8872 cat >> confdefs.h <<\EOF
8873 #define HAVE_NCURSES 1
8877 TERMCAP_LIBS=-lncurses
8881 if test $ol_link_termcap = no ; then
8882 cat >> confdefs.h <<\EOF
8883 #define NO_TERMCAP 1
8890 if test $ol_with_readline != no ; then
8891 for ac_hdr in readline/readline.h readline/history.h
8893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8895 echo "configure:8896: checking for $ac_hdr" >&5
8896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8899 cat > conftest.$ac_ext <<EOF
8900 #line 8901 "configure"
8901 #include "confdefs.h"
8904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8905 { (eval echo configure:8906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8907 if test -z "$ac_err"; then
8909 eval "ac_cv_header_$ac_safe=yes"
8912 echo "configure: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8915 eval "ac_cv_header_$ac_safe=no"
8919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8920 echo "$ac_t""yes" 1>&6
8921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8922 cat >> confdefs.h <<EOF
8923 #define $ac_tr_hdr 1
8927 echo "$ac_t""no" 1>&6
8932 if test $ac_cv_header_readline_readline_h = yes ; then
8934 LIBS="$TERMCAP_LIBS $LIBS"
8935 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8936 echo "configure:8937: checking for readline in -lreadline" >&5
8937 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8939 echo $ac_n "(cached) $ac_c" 1>&6
8941 ac_save_LIBS="$LIBS"
8942 LIBS="-lreadline $LIBS"
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 /* Override any gcc2 internal prototype to avoid an error. */
8947 /* We use char because int might match the return type of a gcc2
8948 builtin and then its argument prototype would still apply. */
8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8957 eval "ac_cv_lib_$ac_lib_var=yes"
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8962 eval "ac_cv_lib_$ac_lib_var=no"
8965 LIBS="$ac_save_LIBS"
8968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8969 echo "$ac_t""yes" 1>&6
8972 echo "$ac_t""no" 1>&6
8978 if test $have_readline = yes ; then
8979 ol_with_readline=found
8980 ol_link_readline=yes
8982 READLINE_LIBS="-lreadline"
8987 if test $ol_link_readline = yes ; then
8988 cat >> confdefs.h <<\EOF
8989 #define HAVE_READLINE 1
8995 # FreeBSD (and others) have crypt(3) in -lcrypt
8996 if test $ol_enable_crypt != no ; then
8997 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8998 echo "configure:8999: checking for crypt" >&5
8999 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9005 /* System header to define __stub macros and hopefully few prototypes,
9006 which can conflict with char crypt(); below. */
9008 /* Override any gcc2 internal prototype to avoid an error. */
9009 /* We use char because int might match the return type of a gcc2
9010 builtin and then its argument prototype would still apply. */
9015 /* The GNU C library defines this for functions which it implements
9016 to always fail with ENOSYS. Some functions are actually named
9017 something starting with __ and the normal name is an alias. */
9018 #if defined (__stub_crypt) || defined (__stub___crypt)
9026 if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9028 eval "ac_cv_func_crypt=yes"
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9033 eval "ac_cv_func_crypt=no"
9038 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9039 echo "$ac_t""yes" 1>&6
9042 echo "$ac_t""no" 1>&6
9044 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9045 echo "configure:9046: checking for crypt in -lcrypt" >&5
9046 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9050 ac_save_LIBS="$LIBS"
9051 LIBS="-lcrypt $LIBS"
9052 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 /* Override any gcc2 internal prototype to avoid an error. */
9056 /* We use char because int might match the return type of a gcc2
9057 builtin and then its argument prototype would still apply. */
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9066 eval "ac_cv_lib_$ac_lib_var=yes"
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9071 eval "ac_cv_lib_$ac_lib_var=no"
9074 LIBS="$ac_save_LIBS"
9077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9078 echo "$ac_t""yes" 1>&6
9079 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9082 echo "$ac_t""no" 1>&6
9089 if test $have_crypt = yes ; then
9090 cat >> confdefs.h <<\EOF
9091 #define HAVE_CRYPT 1
9095 echo "configure: warning: could not find crypt" 1>&2
9096 if test $ol_enable_crypt = yes ; then
9097 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9100 echo "configure: warning: disabling crypt support" 1>&2
9105 # FreeBSD (and others) have setproctitle(3) in -lutil
9106 if test $ol_enable_proctitle != no ; then
9107 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9108 echo "configure:9109: checking for setproctitle" >&5
9109 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9112 cat > conftest.$ac_ext <<EOF
9113 #line 9114 "configure"
9114 #include "confdefs.h"
9115 /* System header to define __stub macros and hopefully few prototypes,
9116 which can conflict with char setproctitle(); below. */
9118 /* Override any gcc2 internal prototype to avoid an error. */
9119 /* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9121 char setproctitle();
9125 /* The GNU C library defines this for functions which it implements
9126 to always fail with ENOSYS. Some functions are actually named
9127 something starting with __ and the normal name is an alias. */
9128 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9136 if { (eval echo configure:9137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9138 eval "ac_cv_func_setproctitle=yes"
9140 echo "configure: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9143 eval "ac_cv_func_setproctitle=no"
9148 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9149 echo "$ac_t""yes" 1>&6
9150 have_setproctitle=yes
9152 echo "$ac_t""no" 1>&6
9154 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9155 echo "configure:9156: checking for setproctitle in -lutil" >&5
9156 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9160 ac_save_LIBS="$LIBS"
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 /* Override any gcc2 internal prototype to avoid an error. */
9166 /* We use char because int might match the return type of a gcc2
9167 builtin and then its argument prototype would still apply. */
9168 char setproctitle();
9174 if { (eval echo configure:9175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9176 eval "ac_cv_lib_$ac_lib_var=yes"
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9181 eval "ac_cv_lib_$ac_lib_var=no"
9184 LIBS="$ac_save_LIBS"
9187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9188 echo "$ac_t""yes" 1>&6
9189 have_setproctitle=yes
9190 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9192 echo "$ac_t""no" 1>&6
9193 have_setproctitle=no
9194 LIBOBJS="$LIBOBJS setproctitle.o"
9200 if test $have_setproctitle = yes ; then
9201 cat >> confdefs.h <<\EOF
9202 #define HAVE_SETPROCTITLE 1
9209 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9210 echo "configure:9211: checking for EBCDIC" >&5
9211 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9215 cat > conftest.$ac_ext <<EOF
9216 #line 9217 "configure"
9217 #include "confdefs.h"
9220 #include <__ASCII__/generate_error.h>
9224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9225 { (eval echo configure:9226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9227 if test -z "$ac_err"; then
9229 ol_cv_cpp_ebcdic=yes
9232 echo "configure: failed program was:" >&5
9233 cat conftest.$ac_ext >&5
9240 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9241 if test $ol_cv_cpp_ebcdic = yes ; then
9242 cat >> confdefs.h <<\EOF
9243 #define HAVE_EBCDIC 1
9248 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9249 echo "configure:9250: checking for ANSI C header files" >&5
9250 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9262 { (eval echo configure:9263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9264 if test -z "$ac_err"; then
9266 ol_cv_header_stdc=yes
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9272 ol_cv_header_stdc=no
9276 if test $ol_cv_header_stdc = yes; then
9277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9278 cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure"
9280 #include "confdefs.h"
9283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9284 egrep "memchr" >/dev/null 2>&1; then
9288 ol_cv_header_stdc=no
9294 if test $ol_cv_header_stdc = yes; then
9295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9302 egrep "free" >/dev/null 2>&1; then
9306 ol_cv_header_stdc=no
9312 if test $ol_cv_header_stdc = yes; then
9313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9314 if test "$cross_compiling" = yes; then
9317 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9322 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9323 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9325 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9326 || ('j' <= (c) && (c) <= 'r') \
9327 || ('s' <= (c) && (c) <= 'z'))
9328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9331 int main () { int i; for (i = 0; i < 256; i++)
9332 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9336 if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9343 ol_cv_header_stdc=no
9351 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9352 if test $ol_cv_header_stdc = yes; then
9353 cat >> confdefs.h <<\EOF
9354 #define STDC_HEADERS 1
9358 ac_cv_header_stdc=disable
9361 if test $ol_cv_header_stdc != yes; then
9362 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9366 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9369 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9370 echo "configure:9371: checking for $ac_hdr that defines DIR" >&5
9371 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9377 #include <sys/types.h>
9383 if { (eval echo configure:9384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9385 eval "ac_cv_header_dirent_$ac_safe=yes"
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9390 eval "ac_cv_header_dirent_$ac_safe=no"
9394 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9395 echo "$ac_t""yes" 1>&6
9396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9397 cat >> confdefs.h <<EOF
9398 #define $ac_tr_hdr 1
9400 ac_header_dirent=$ac_hdr; break
9402 echo "$ac_t""no" 1>&6
9405 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9406 if test $ac_header_dirent = dirent.h; then
9407 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9408 echo "configure:9409: checking for opendir in -ldir" >&5
9409 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9413 ac_save_LIBS="$LIBS"
9415 cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9418 /* Override any gcc2 internal prototype to avoid an error. */
9419 /* We use char because int might match the return type of a gcc2
9420 builtin and then its argument prototype would still apply. */
9427 if { (eval echo configure:9428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 eval "ac_cv_lib_$ac_lib_var=yes"
9431 echo "configure: failed program was:" >&5
9432 cat conftest.$ac_ext >&5
9434 eval "ac_cv_lib_$ac_lib_var=no"
9437 LIBS="$ac_save_LIBS"
9440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9441 echo "$ac_t""yes" 1>&6
9444 echo "$ac_t""no" 1>&6
9448 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9449 echo "configure:9450: checking for opendir in -lx" >&5
9450 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9454 ac_save_LIBS="$LIBS"
9456 cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9459 /* Override any gcc2 internal prototype to avoid an error. */
9460 /* We use char because int might match the return type of a gcc2
9461 builtin and then its argument prototype would still apply. */
9468 if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9470 eval "ac_cv_lib_$ac_lib_var=yes"
9472 echo "configure: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9475 eval "ac_cv_lib_$ac_lib_var=no"
9478 LIBS="$ac_save_LIBS"
9481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9482 echo "$ac_t""yes" 1>&6
9485 echo "$ac_t""no" 1>&6
9490 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9491 echo "configure:9492: checking for sys/wait.h that is POSIX.1 compatible" >&5
9492 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 #include <sys/types.h>
9499 #include <sys/wait.h>
9501 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9504 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9509 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9512 if { (eval echo configure:9513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9514 ac_cv_header_sys_wait_h=yes
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9519 ac_cv_header_sys_wait_h=no
9524 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9525 if test $ac_cv_header_sys_wait_h = yes; then
9526 cat >> confdefs.h <<\EOF
9527 #define HAVE_SYS_WAIT_H 1
9532 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9533 echo "configure:9534: checking POSIX termios" >&5
9534 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9537 cat > conftest.$ac_ext <<EOF
9538 #line 9539 "configure"
9539 #include "confdefs.h"
9540 #include <sys/types.h>
9542 #include <termios.h>
9544 /* SunOS 4.0.3 has termios.h but not the library calls. */
9548 if { (eval echo configure:9549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9550 am_cv_sys_posix_termios=yes
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9555 am_cv_sys_posix_termios=no
9560 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9563 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9564 echo "configure:9565: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9565 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9568 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9570 gwinsz_in_termios_h=no
9571 if test $am_cv_sys_posix_termios = yes; then
9572 cat > conftest.$ac_ext <<EOF
9573 #line 9574 "configure"
9574 #include "confdefs.h"
9575 #include <sys/types.h>
9576 # include <termios.h>
9582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9583 egrep "yes" >/dev/null 2>&1; then
9585 gwinsz_in_termios_h=yes
9591 if test $gwinsz_in_termios_h = no; then
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9595 #include <sys/types.h>
9596 # include <sys/ioctl.h>
9602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9603 egrep "yes" >/dev/null 2>&1; then
9605 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9613 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9614 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9615 cat >> confdefs.h <<\EOF
9616 #define GWINSZ_IN_SYS_IOCTL 1
9621 if test $am_cv_sys_posix_termios = yes ; then
9622 cat >> confdefs.h <<\EOF
9623 #define HAVE_POSIX_TERMIOS 1
9669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9671 echo "configure:9672: checking for $ac_hdr" >&5
9672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9673 echo $ac_n "(cached) $ac_c" 1>&6
9675 cat > conftest.$ac_ext <<EOF
9676 #line 9677 "configure"
9677 #include "confdefs.h"
9680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9681 { (eval echo configure:9682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9683 if test -z "$ac_err"; then
9685 eval "ac_cv_header_$ac_safe=yes"
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9691 eval "ac_cv_header_$ac_safe=no"
9695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9696 echo "$ac_t""yes" 1>&6
9697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9698 cat >> confdefs.h <<EOF
9699 #define $ac_tr_hdr 1
9703 echo "$ac_t""no" 1>&6
9708 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9709 echo "configure:9710: checking for uid_t in sys/types.h" >&5
9710 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9713 cat > conftest.$ac_ext <<EOF
9714 #line 9715 "configure"
9715 #include "confdefs.h"
9716 #include <sys/types.h>
9718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9719 egrep "uid_t" >/dev/null 2>&1; then
9721 ac_cv_type_uid_t=yes
9730 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9731 if test $ac_cv_type_uid_t = no; then
9732 cat >> confdefs.h <<\EOF
9736 cat >> confdefs.h <<\EOF
9742 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9743 echo "configure:9744: checking type of array argument to getgroups" >&5
9744 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9747 if test "$cross_compiling" = yes; then
9748 ac_cv_type_getgroups=cross
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9754 /* Thanks to Mike Rendell for this test. */
9755 #include <sys/types.h>
9758 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9763 union { gid_t gval; long lval; } val;
9766 for (i = 0; i < NGID; i++)
9767 gidset[i] = val.gval;
9768 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9770 /* Exit non-zero if getgroups seems to require an array of ints. This
9771 happens when gid_t is short but getgroups modifies an array of ints. */
9772 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9776 if { (eval echo configure:9777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9778 ac_cv_type_getgroups=gid_t
9780 echo "configure: failed program was:" >&5
9781 cat conftest.$ac_ext >&5
9783 ac_cv_type_getgroups=int
9788 if test $ac_cv_type_getgroups = cross; then
9789 cat > conftest.$ac_ext <<EOF
9790 #line 9791 "configure"
9791 #include "confdefs.h"
9794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9795 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9797 ac_cv_type_getgroups=gid_t
9800 ac_cv_type_getgroups=int
9807 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9808 cat >> confdefs.h <<EOF
9809 #define GETGROUPS_T $ac_cv_type_getgroups
9812 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9813 echo "configure:9814: checking for ANSI C header files" >&5
9814 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9815 echo $ac_n "(cached) $ac_c" 1>&6
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9826 { (eval echo configure:9827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9828 if test -z "$ac_err"; then
9830 ac_cv_header_stdc=yes
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9836 ac_cv_header_stdc=no
9840 if test $ac_cv_header_stdc = yes; then
9841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9842 cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9848 egrep "memchr" >/dev/null 2>&1; then
9852 ac_cv_header_stdc=no
9858 if test $ac_cv_header_stdc = yes; then
9859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9860 cat > conftest.$ac_ext <<EOF
9861 #line 9862 "configure"
9862 #include "confdefs.h"
9865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9866 egrep "free" >/dev/null 2>&1; then
9870 ac_cv_header_stdc=no
9876 if test $ac_cv_header_stdc = yes; then
9877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9878 if test "$cross_compiling" = yes; then
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9885 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9886 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9888 int main () { int i; for (i = 0; i < 256; i++)
9889 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9893 if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9897 echo "configure: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9900 ac_cv_header_stdc=no
9908 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9909 if test $ac_cv_header_stdc = yes; then
9910 cat >> confdefs.h <<\EOF
9911 #define STDC_HEADERS 1
9916 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9917 echo "configure:9918: checking for mode_t" >&5
9918 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9921 cat > conftest.$ac_ext <<EOF
9922 #line 9923 "configure"
9923 #include "confdefs.h"
9924 #include <sys/types.h>
9930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9931 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9933 ac_cv_type_mode_t=yes
9936 ac_cv_type_mode_t=no
9941 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9942 if test $ac_cv_type_mode_t = no; then
9943 cat >> confdefs.h <<\EOF
9949 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9950 echo "configure:9951: checking for off_t" >&5
9951 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9952 echo $ac_n "(cached) $ac_c" 1>&6
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 #include <sys/types.h>
9963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9964 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9966 ac_cv_type_off_t=yes
9974 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9975 if test $ac_cv_type_off_t = no; then
9976 cat >> confdefs.h <<\EOF
9982 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9983 echo "configure:9984: checking for pid_t" >&5
9984 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9985 echo $ac_n "(cached) $ac_c" 1>&6
9987 cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9990 #include <sys/types.h>
9996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9997 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9999 ac_cv_type_pid_t=yes
10002 ac_cv_type_pid_t=no
10007 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10008 if test $ac_cv_type_pid_t = no; then
10009 cat >> confdefs.h <<\EOF
10015 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10016 echo "configure:10017: checking for ptrdiff_t" >&5
10017 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10018 echo $ac_n "(cached) $ac_c" 1>&6
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10022 "configure"
10022 #include "confdefs.h"
10023 #include <stddef.h>
10028 if { (eval echo configure:10029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10030 am_cv_type_ptrdiff_t=yes
10032 echo "configure: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10035 am_cv_type_ptrdiff_t=no
10040 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10041 if test $am_cv_type_ptrdiff_t = yes; then
10042 cat >> confdefs.h <<\EOF
10043 #define HAVE_PTRDIFF_T 1
10048 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10049 echo "configure:10050: checking return type of signal handlers" >&5
10050 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10051 echo $ac_n "(cached) $ac_c" 1>&6
10053 cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10056 #include <sys/types.h>
10057 #include <signal.h>
10062 extern "C" void (*signal (int, void (*)(int)))(int);
10064 void (*signal ()) ();
10071 if { (eval echo configure:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10073 ac_cv_type_signal=void
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10078 ac_cv_type_signal=int
10083 echo "$ac_t""$ac_cv_type_signal" 1>&6
10084 cat >> confdefs.h <<EOF
10085 #define RETSIGTYPE $ac_cv_type_signal
10089 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10090 echo "configure:10091: checking for sig_atomic_t" >&5
10091 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097 #include <signal.h>
10099 sig_atomic_t atomic;
10102 if { (eval echo configure:10103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10104 ol_cv_type_sig_atomic_t=yes
10106 echo "configure: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10109 ol_cv_type_sig_atomic_t=no
10114 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10115 if test $ol_cv_type_sig_atomic_t = no; then
10116 cat >> confdefs.h <<\EOF
10117 #define sig_atomic_t int
10122 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10123 echo "configure:10124: checking for size_t" >&5
10124 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10127 cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10130 #include <sys/types.h>
10132 #include <stdlib.h>
10133 #include <stddef.h>
10136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10137 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10139 ac_cv_type_size_t=yes
10142 ac_cv_type_size_t=no
10147 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10148 if test $ac_cv_type_size_t = no; then
10149 cat >> confdefs.h <<\EOF
10150 #define size_t unsigned
10155 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10156 echo "configure:10157: checking for st_blksize in struct stat" >&5
10157 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10158 echo $ac_n "(cached) $ac_c" 1>&6
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10163 #include <sys/types.h>
10164 #include <sys/stat.h>
10166 struct stat s; s.st_blksize;
10169 if { (eval echo configure:10170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10171 ac_cv_struct_st_blksize=yes
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10176 ac_cv_struct_st_blksize=no
10181 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10182 if test $ac_cv_struct_st_blksize = yes; then
10183 cat >> confdefs.h <<\EOF
10184 #define HAVE_ST_BLKSIZE 1
10189 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10190 echo "configure:10191: checking whether time.h and sys/time.h may both be included" >&5
10191 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 #include <sys/types.h>
10198 #include <sys/time.h>
10204 if { (eval echo configure:10205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10206 ac_cv_header_time=yes
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10211 ac_cv_header_time=no
10216 echo "$ac_t""$ac_cv_header_time" 1>&6
10217 if test $ac_cv_header_time = yes; then
10218 cat >> confdefs.h <<\EOF
10219 #define TIME_WITH_SYS_TIME 1
10224 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10225 echo "configure:10226: checking whether struct tm is in sys/time.h or time.h" >&5
10226 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10227 echo $ac_n "(cached) $ac_c" 1>&6
10229 cat > conftest.$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10232 #include <sys/types.h>
10235 struct tm *tp; tp->tm_sec;
10238 if { (eval echo configure:10239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10240 ac_cv_struct_tm=time.h
10242 echo "configure: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10245 ac_cv_struct_tm=sys/time.h
10250 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10251 if test $ac_cv_struct_tm = sys/time.h; then
10252 cat >> confdefs.h <<\EOF
10253 #define TM_IN_SYS_TIME 1
10258 # test for pw_gecos in struct passwd
10259 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10260 echo "configure:10261: checking struct passwd for pw_gecos" >&5
10261 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10262 echo $ac_n "(cached) $ac_c" 1>&6
10265 cat > conftest.$ac_ext <<EOF
10266 #line 10267 "configure"
10267 #include "confdefs.h"
10272 pwd.pw_gecos = pwd.pw_name;
10276 if { (eval echo configure:10277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10278 ol_cv_struct_passwd_pw_gecos=yes
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10283 ol_cv_struct_passwd_pw_gecos=no
10288 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10289 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10290 cat >> confdefs.h <<\EOF
10291 #define HAVE_PW_GECOS 1
10298 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10299 echo "configure:10300: checking if toupper() requires islower()" >&5
10300 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10304 if test "$cross_compiling" = yes; then
10305 ol_cv_c_upper_lower=safe
10307 cat > conftest.$ac_ext <<EOF
10308 #line 10309 "configure"
10309 #include "confdefs.h"
10314 if ('C' == toupper('C'))
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10322 ol_cv_c_upper_lower=no
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10327 ol_cv_c_upper_lower=yes
10334 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10335 if test $ol_cv_c_upper_lower != no ; then
10336 cat >> confdefs.h <<\EOF
10337 #define C_UPPER_LOWER 1
10342 echo $ac_n "checking for working const""... $ac_c" 1>&6
10343 echo "configure:10344: checking for working const" >&5
10344 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10345 echo $ac_n "(cached) $ac_c" 1>&6
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10353 /* Ultrix mips cc rejects this. */
10354 typedef int charset[2]; const charset x;
10355 /* SunOS 4.1.1 cc rejects this. */
10356 char const *const *ccp;
10358 /* NEC SVR4.0.2 mips cc rejects this. */
10359 struct point {int x, y;};
10360 static struct point const zero = {0,0};
10361 /* AIX XL C 1.02.0.0 rejects this.
10362 It does not let you subtract one const X* pointer from another in an arm
10363 of an if-expression whose if-part is not a constant expression */
10364 const char *g = "string";
10365 ccp = &g + (g ? g-g : 0);
10366 /* HPUX 7.0 cc rejects these. */
10369 ccp = (char const *const *) p;
10370 { /* SCO 3.2v4 cc rejects this. */
10372 char const *s = 0 ? (char *) 0 : (char const *) 0;
10376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10377 int x[] = {25, 17};
10378 const int *foo = &x[0];
10381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10382 typedef const int *iptr;
10386 { /* AIX XL C 1.02.0.0 rejects this saying
10387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10388 struct s { int j; const int *ap[3]; };
10389 struct s *b; b->j = 5;
10391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10392 const int foo = 10;
10397 if { (eval echo configure:10398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10409 echo "$ac_t""$ac_cv_c_const" 1>&6
10410 if test $ac_cv_c_const = no; then
10411 cat >> confdefs.h <<\EOF
10417 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10418 echo "configure:10419: checking if compiler understands volatile" >&5
10419 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10420 echo $ac_n "(cached) $ac_c" 1>&6
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10427 volatile int a; int * volatile b = x ? &y : &z;
10428 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10432 if { (eval echo configure:10433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10434 ol_cv_c_volatile=yes
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10439 ol_cv_c_volatile=no
10444 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10445 if test $ol_cv_c_volatile = yes; then
10448 cat >> confdefs.h <<\EOF
10455 if test $cross_compiling = yes ; then
10456 cat >> confdefs.h <<\EOF
10457 #define CROSS_COMPILING 1
10461 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10462 echo "configure:10463: checking whether byte ordering is bigendian" >&5
10463 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10464 echo $ac_n "(cached) $ac_c" 1>&6
10466 ac_cv_c_bigendian=unknown
10467 # See if sys/param.h defines the BYTE_ORDER macro.
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10471 #include <sys/types.h>
10472 #include <sys/param.h>
10475 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10476 bogus endian macros
10480 if { (eval echo configure:10481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10482 # It does; now see whether it defined to BIG_ENDIAN or not.
10483 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 #include <sys/types.h>
10487 #include <sys/param.h>
10490 #if BYTE_ORDER != BIG_ENDIAN
10495 if { (eval echo configure:10496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10497 ac_cv_c_bigendian=yes
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10502 ac_cv_c_bigendian=no
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10510 if test $ac_cv_c_bigendian = unknown; then
10511 if test "$cross_compiling" = yes; then
10512 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10518 /* Are we little or big endian? From Harbison&Steele. */
10522 char c[sizeof (long)];
10525 exit (u.c[sizeof (long) - 1] == 1);
10528 if { (eval echo configure:10529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10530 ac_cv_c_bigendian=no
10532 echo "configure: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10535 ac_cv_c_bigendian=yes
10543 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10544 if test $ac_cv_c_bigendian = yes; then
10545 cat >> confdefs.h <<\EOF
10546 #define WORDS_BIGENDIAN 1
10551 echo $ac_n "checking size of short""... $ac_c" 1>&6
10552 echo "configure:10553: checking size of short" >&5
10553 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10556 if test "$cross_compiling" = yes; then
10557 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10559 cat > conftest.$ac_ext <<EOF
10560 #line 10561 "configure"
10561 #include "confdefs.h"
10565 FILE *f=fopen("conftestval", "w");
10567 fprintf(f, "%d\n", sizeof(short));
10571 if { (eval echo configure:10572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10573 ac_cv_sizeof_short=`cat conftestval`
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10578 ac_cv_sizeof_short=0
10584 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10585 cat >> confdefs.h <<EOF
10586 #define SIZEOF_SHORT $ac_cv_sizeof_short
10590 echo $ac_n "checking size of int""... $ac_c" 1>&6
10591 echo "configure:10592: checking size of int" >&5
10592 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10593 echo $ac_n "(cached) $ac_c" 1>&6
10595 if test "$cross_compiling" = yes; then
10596 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10604 FILE *f=fopen("conftestval", "w");
10606 fprintf(f, "%d\n", sizeof(int));
10610 if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10612 ac_cv_sizeof_int=`cat conftestval`
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10623 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10624 cat >> confdefs.h <<EOF
10625 #define SIZEOF_INT $ac_cv_sizeof_int
10629 echo $ac_n "checking size of long""... $ac_c" 1>&6
10630 echo "configure:10631: checking size of long" >&5
10631 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10632 echo $ac_n "(cached) $ac_c" 1>&6
10634 if test "$cross_compiling" = yes; then
10635 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10637 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure"
10639 #include "confdefs.h"
10643 FILE *f=fopen("conftestval", "w");
10645 fprintf(f, "%d\n", sizeof(long));
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10651 ac_cv_sizeof_long=`cat conftestval`
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10656 ac_cv_sizeof_long=0
10662 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10663 cat >> confdefs.h <<EOF
10664 #define SIZEOF_LONG $ac_cv_sizeof_long
10670 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10671 echo "configure:10672: checking for 8-bit clean memcmp" >&5
10672 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10675 if test "$cross_compiling" = yes; then
10676 ac_cv_func_memcmp_clean=no
10678 cat > conftest.$ac_ext <<EOF
10679 #line 10680 "configure"
10680 #include "confdefs.h"
10684 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10685 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10689 if { (eval echo configure:10690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10691 ac_cv_func_memcmp_clean=yes
10693 echo "configure: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10696 ac_cv_func_memcmp_clean=no
10703 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10704 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10706 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10707 echo "configure:10708: checking for strftime" >&5
10708 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10714 /* System header to define __stub macros and hopefully few prototypes,
10715 which can conflict with char strftime(); below. */
10716 #include <assert.h>
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 /* We use char because int might match the return type of a gcc2
10719 builtin and then its argument prototype would still apply. */
10724 /* The GNU C library defines this for functions which it implements
10725 to always fail with ENOSYS. Some functions are actually named
10726 something starting with __ and the normal name is an alias. */
10727 #if defined (__stub_strftime) || defined (__stub___strftime)
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10737 eval "ac_cv_func_strftime=yes"
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 eval "ac_cv_func_strftime=no"
10747 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10748 echo "$ac_t""yes" 1>&6
10749 cat >> confdefs.h <<\EOF
10750 #define HAVE_STRFTIME 1
10754 echo "$ac_t""no" 1>&6
10755 # strftime is in -lintl on SCO UNIX.
10756 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10757 echo "configure:10758: checking for strftime in -lintl" >&5
10758 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10762 ac_save_LIBS="$LIBS"
10763 LIBS="-lintl $LIBS"
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.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. */
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10778 eval "ac_cv_lib_$ac_lib_var=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_lib_$ac_lib_var=no"
10786 LIBS="$ac_save_LIBS"
10789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10790 echo "$ac_t""yes" 1>&6
10791 cat >> confdefs.h <<\EOF
10792 #define HAVE_STRFTIME 1
10795 LIBS="-lintl $LIBS"
10797 echo "$ac_t""no" 1>&6
10803 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10804 echo "configure:10805: checking for vprintf" >&5
10805 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10811 /* System header to define __stub macros and hopefully few prototypes,
10812 which can conflict with char vprintf(); below. */
10813 #include <assert.h>
10814 /* Override any gcc2 internal prototype to avoid an error. */
10815 /* We use char because int might match the return type of a gcc2
10816 builtin and then its argument prototype would still apply. */
10821 /* The GNU C library defines this for functions which it implements
10822 to always fail with ENOSYS. Some functions are actually named
10823 something starting with __ and the normal name is an alias. */
10824 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10832 if { (eval echo configure:10833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10834 eval "ac_cv_func_vprintf=yes"
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10839 eval "ac_cv_func_vprintf=no"
10844 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10845 echo "$ac_t""yes" 1>&6
10846 cat >> confdefs.h <<\EOF
10847 #define HAVE_VPRINTF 1
10851 echo "$ac_t""no" 1>&6
10854 if test "$ac_cv_func_vprintf" != yes; then
10855 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10856 echo "configure:10857: checking for _doprnt" >&5
10857 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10860 cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10863 /* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char _doprnt(); below. */
10865 #include <assert.h>
10866 /* Override any gcc2 internal prototype to avoid an error. */
10867 /* We use char because int might match the return type of a gcc2
10868 builtin and then its argument prototype would still apply. */
10873 /* The GNU C library defines this for functions which it implements
10874 to always fail with ENOSYS. Some functions are actually named
10875 something starting with __ and the normal name is an alias. */
10876 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10886 eval "ac_cv_func__doprnt=yes"
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10891 eval "ac_cv_func__doprnt=no"
10896 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 cat >> confdefs.h <<\EOF
10899 #define HAVE_DOPRNT 1
10903 echo "$ac_t""no" 1>&6
10909 if test $ac_cv_func_vprintf = yes ; then
10910 for ac_func in vsnprintf vsprintf
10912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10913 echo "configure:10914: checking for $ac_func" >&5
10914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10917 cat > conftest.$ac_ext <<EOF
10918 #line 10919 "configure"
10919 #include "confdefs.h"
10920 /* System header to define __stub macros and hopefully few prototypes,
10921 which can conflict with char $ac_func(); below. */
10922 #include <assert.h>
10923 /* Override any gcc2 internal prototype to avoid an error. */
10924 /* We use char because int might match the return type of a gcc2
10925 builtin and then its argument prototype would still apply. */
10930 /* The GNU C library defines this for functions which it implements
10931 to always fail with ENOSYS. Some functions are actually named
10932 something starting with __ and the normal name is an alias. */
10933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10943 eval "ac_cv_func_$ac_func=yes"
10945 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5
10948 eval "ac_cv_func_$ac_func=no"
10953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10954 echo "$ac_t""yes" 1>&6
10955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10956 cat >> confdefs.h <<EOF
10957 #define $ac_tr_func 1
10961 echo "$ac_t""no" 1>&6
11008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11009 echo "configure:11010: checking for $ac_func" >&5
11010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11011 echo $ac_n "(cached) $ac_c" 1>&6
11013 cat > conftest.$ac_ext <<EOF
11014 #line 11015 "configure"
11015 #include "confdefs.h"
11016 /* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func(); below. */
11018 #include <assert.h>
11019 /* Override any gcc2 internal prototype to avoid an error. */
11020 /* We use char because int might match the return type of a gcc2
11021 builtin and then its argument prototype would still apply. */
11026 /* The GNU C library defines this for functions which it implements
11027 to always fail with ENOSYS. Some functions are actually named
11028 something starting with __ and the normal name is an alias. */
11029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11037 if { (eval echo configure:11038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11039 eval "ac_cv_func_$ac_func=yes"
11041 echo "configure: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11044 eval "ac_cv_func_$ac_func=no"
11049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11050 echo "$ac_t""yes" 1>&6
11051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11052 cat >> confdefs.h <<EOF
11053 #define $ac_tr_func 1
11057 echo "$ac_t""no" 1>&6
11062 for ac_func in getopt tempnam
11064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11065 echo "configure:11066: checking for $ac_func" >&5
11066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11067 echo $ac_n "(cached) $ac_c" 1>&6
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11072 /* System header to define __stub macros and hopefully few prototypes,
11073 which can conflict with char $ac_func(); below. */
11074 #include <assert.h>
11075 /* Override any gcc2 internal prototype to avoid an error. */
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11082 /* The GNU C library defines this for functions which it implements
11083 to always fail with ENOSYS. Some functions are actually named
11084 something starting with __ and the normal name is an alias. */
11085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11093 if { (eval echo configure:11094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11095 eval "ac_cv_func_$ac_func=yes"
11097 echo "configure: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11100 eval "ac_cv_func_$ac_func=no"
11105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11106 echo "$ac_t""yes" 1>&6
11107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11108 cat >> confdefs.h <<EOF
11109 #define $ac_tr_func 1
11113 echo "$ac_t""no" 1>&6
11114 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11120 # Check Configuration
11122 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11123 echo "configure:11124: checking declaration of sys_errlist" >&5
11124 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11125 echo $ac_n "(cached) $ac_c" 1>&6
11128 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11133 #include <sys/types.h>
11136 char *c = (char *) *sys_errlist
11139 if { (eval echo configure:11140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11141 ol_cv_dcl_sys_errlist=yes
11143 echo "configure: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11146 ol_cv_dcl_sys_errlist=no
11151 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11152 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11153 if test $ol_cv_dcl_sys_errlist = no ; then
11154 cat >> confdefs.h <<\EOF
11155 #define DECL_SYS_ERRLIST 1
11158 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11159 echo "configure:11160: checking existence of sys_errlist" >&5
11160 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11164 cat > conftest.$ac_ext <<EOF
11165 #line 11166 "configure"
11166 #include "confdefs.h"
11169 char *c = (char *) *sys_errlist
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11174 ol_cv_have_sys_errlist=yes
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11179 ol_cv_have_sys_errlist=no
11184 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11185 if test $ol_cv_have_sys_errlist = yes ; then
11186 cat >> confdefs.h <<\EOF
11187 #define HAVE_SYS_ERRLIST 1
11195 if test "$ol_enable_debug" != no ; then
11196 cat >> confdefs.h <<\EOF
11197 #define LDAP_DEBUG 1
11201 if test "$ol_enable_syslog" = yes ; then
11202 cat >> confdefs.h <<\EOF
11203 #define LDAP_SYSLOG 1
11207 if test "$ol_enable_libui" = yes ; then
11208 cat >> confdefs.h <<\EOF
11209 #define LDAP_LIBUI 1
11213 if test "$ol_enable_cache" = no ; then
11214 cat >> confdefs.h <<\EOF
11215 #define LDAP_NOCACHE 1
11219 if test "$ol_enable_dns" != no ; then
11220 cat >> confdefs.h <<\EOF
11221 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11225 if test "$ol_enable_proctitle" != no ; then
11226 cat >> confdefs.h <<\EOF
11227 #define LDAP_PROCTITLE 1
11231 if test "$ol_enable_referrals" != no ; then
11232 cat >> confdefs.h <<\EOF
11233 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11237 if test "$ol_enable_cldap" != no ; then
11238 cat >> confdefs.h <<\EOF
11239 #define LDAP_CONNECTIONLESS 1
11244 if test "$ol_enable_aclgroups" != no ; then
11245 cat >> confdefs.h <<\EOF
11246 #define SLAPD_ACLGROUPS 1
11250 if test "$ol_enable_crypt" != no ; then
11251 cat >> confdefs.h <<\EOF
11252 #define SLAPD_CRYPT 1
11256 if test "$ol_enable_cleartext" != no ; then
11257 cat >> confdefs.h <<\EOF
11258 #define SLAPD_CLEARTEXT 1
11262 if test "$ol_enable_phonetic" != no ; then
11263 cat >> confdefs.h <<\EOF
11264 #define SLAPD_PHONETIC 1
11268 if test "$ol_enable_rlookups" != no ; then
11269 cat >> confdefs.h <<\EOF
11270 #define SLAPD_RLOOKUPS 1
11275 if test "$ol_link_modules" != no ; then
11276 cat >> confdefs.h <<\EOF
11277 #define SLAPD_MODULES 1
11283 if test "$ol_link_bdb2" != no ; then
11284 cat >> confdefs.h <<\EOF
11285 #define SLAPD_BDB2 1
11292 if test "$ol_link_ldap" != no ; then
11293 cat >> confdefs.h <<\EOF
11294 #define SLAPD_LDAP 1
11301 if test "$ol_link_ldbm" != no ; then
11302 cat >> confdefs.h <<\EOF
11303 #define SLAPD_LDBM 1
11310 if test "$ol_enable_passwd" != no ; then
11311 cat >> confdefs.h <<\EOF
11312 #define SLAPD_PASSWD 1
11319 if test "$ol_link_perl" != no ; then
11320 cat >> confdefs.h <<\EOF
11321 #define SLAPD_PERL 1
11328 if test "$ol_enable_shell" != no ; then
11329 cat >> confdefs.h <<\EOF
11330 #define SLAPD_SHELL 1
11337 if test "$ol_enable_tcl" != no ; then
11338 cat >> confdefs.h <<\EOF
11339 #define SLAPD_TCL 1
11346 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11347 $BUILD_SLAPD = yes ; then
11351 if test "$ol_link_isode" != no ; then
11389 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11392 # Let make expand exec_prefix.
11393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11395 # Any assignment to VPATH causes Sun make to only execute
11396 # the first set of double-colon rules, so remove it if not needed.
11397 # If there is a colon in the path, we need to keep it.
11398 if test "x$srcdir" = x.; then
11399 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11402 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11404 DEFS=-DHAVE_CONFIG_H
11406 # Without the "./", some shells look in PATH for config.status.
11407 : ${CONFIG_STATUS=./config.status}
11409 echo creating $CONFIG_STATUS
11410 rm -f $CONFIG_STATUS
11411 cat > $CONFIG_STATUS <<EOF
11413 # Generated automatically by configure.
11414 # Run this file to recreate the current configuration.
11415 # This directory was configured as follows,
11416 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11418 # $0 $ac_configure_args
11420 # Compiler output produced by configure, useful for debugging
11421 # configure, is in ./config.log if it exists.
11423 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11426 case "\$ac_option" in
11427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11428 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11429 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11430 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11431 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11433 -help | --help | --hel | --he | --h)
11434 echo "\$ac_cs_usage"; exit 0 ;;
11435 *) echo "\$ac_cs_usage"; exit 1 ;;
11439 ac_given_srcdir=$srcdir
11440 ac_given_INSTALL="$INSTALL"
11442 trap 'rm -fr `echo "\
11443 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11444 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11445 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11446 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11447 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11448 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11449 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11450 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11451 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11452 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11453 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11454 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11455 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11456 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11457 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11458 include/Makefile:build/top.mk:include/Makefile.in \
11459 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11460 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11461 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11462 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11463 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11464 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11465 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11466 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11467 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11468 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11469 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11470 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11471 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11472 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11473 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11474 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11475 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11476 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11477 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11478 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11479 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11480 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11481 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11482 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11483 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11484 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11485 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11487 cat >> $CONFIG_STATUS <<EOF
11489 # Protect against being on the right side of a sed subst in config.status.
11490 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11491 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11495 s%@CFLAGS@%$CFLAGS%g
11496 s%@CPPFLAGS@%$CPPFLAGS%g
11497 s%@CXXFLAGS@%$CXXFLAGS%g
11498 s%@FFLAGS@%$FFLAGS%g
11500 s%@LDFLAGS@%$LDFLAGS%g
11502 s%@exec_prefix@%$exec_prefix%g
11503 s%@prefix@%$prefix%g
11504 s%@program_transform_name@%$program_transform_name%g
11505 s%@bindir@%$bindir%g
11506 s%@sbindir@%$sbindir%g
11507 s%@libexecdir@%$libexecdir%g
11508 s%@datadir@%$datadir%g
11509 s%@sysconfdir@%$sysconfdir%g
11510 s%@sharedstatedir@%$sharedstatedir%g
11511 s%@localstatedir@%$localstatedir%g
11512 s%@libdir@%$libdir%g
11513 s%@includedir@%$includedir%g
11514 s%@oldincludedir@%$oldincludedir%g
11515 s%@infodir@%$infodir%g
11516 s%@mandir@%$mandir%g
11517 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11518 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11519 s%@INSTALL_DATA@%$INSTALL_DATA%g
11520 s%@PACKAGE@%$PACKAGE%g
11521 s%@VERSION@%$VERSION%g
11522 s%@ACLOCAL@%$ACLOCAL%g
11523 s%@AUTOCONF@%$AUTOCONF%g
11524 s%@AUTOMAKE@%$AUTOMAKE%g
11525 s%@AUTOHEADER@%$AUTOHEADER%g
11526 s%@MAKEINFO@%$MAKEINFO%g
11527 s%@SET_MAKE@%$SET_MAKE%g
11528 s%@top_builddir@%$top_builddir%g
11529 s%@ldap_subdir@%$ldap_subdir%g
11531 s%@host_alias@%$host_alias%g
11532 s%@host_cpu@%$host_cpu%g
11533 s%@host_vendor@%$host_vendor%g
11534 s%@host_os@%$host_os%g
11535 s%@RANLIB@%$RANLIB%g
11540 s%@LIBTOOL@%$LIBTOOL%g
11543 s%@SENDMAIL@%$SENDMAIL%g
11544 s%@EDITOR@%$EDITOR%g
11545 s%@FINGER@%$FINGER%g
11546 s%@GLIBCONFIG@%$GLIBCONFIG%g
11547 s%@PERLBIN@%$PERLBIN%g
11549 s%@EXEEXT@%$EXEEXT%g
11550 s%@OBJEXT@%$OBJEXT%g
11552 s%@LIBOBJS@%$LIBOBJS%g
11553 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11554 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11555 s%@BUILD_BDB2@%$BUILD_BDB2%g
11556 s%@BUILD_LDAP@%$BUILD_LDAP%g
11557 s%@BUILD_LDBM@%$BUILD_LDBM%g
11558 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11559 s%@BUILD_PERL@%$BUILD_PERL%g
11560 s%@BUILD_SHELL@%$BUILD_SHELL%g
11561 s%@BUILD_TCL@%$BUILD_TCL%g
11562 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11563 s%@LDAP_LIBS@%$LDAP_LIBS%g
11564 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11565 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11566 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11567 s%@LDBM_LIBS@%$LDBM_LIBS%g
11568 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11569 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11570 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11571 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11572 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11573 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11574 s%@KRB_LIBS@%$KRB_LIBS%g
11575 s%@READLINE_LIBS@%$READLINE_LIBS%g
11576 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11577 s%@TLS_LIBS@%$TLS_LIBS%g
11582 cat >> $CONFIG_STATUS <<\EOF
11584 # Split the substitutions into bite-sized pieces for seds with
11585 # small command number limits, like on Digital OSF/1 and HP-UX.
11586 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11587 ac_file=1 # Number of current file.
11588 ac_beg=1 # First line for current file.
11589 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11592 while $ac_more_lines; do
11593 if test $ac_beg -gt 1; then
11594 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11596 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11598 if test ! -s conftest.s$ac_file; then
11599 ac_more_lines=false
11600 rm -f conftest.s$ac_file
11602 if test -z "$ac_sed_cmds"; then
11603 ac_sed_cmds="sed -f conftest.s$ac_file"
11605 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11607 ac_file=`expr $ac_file + 1`
11609 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11612 if test -z "$ac_sed_cmds"; then
11617 cat >> $CONFIG_STATUS <<EOF
11619 CONFIG_FILES=\${CONFIG_FILES-"\
11620 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11621 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11622 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11623 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11624 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11625 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11626 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11627 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11628 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11629 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11630 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11631 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11632 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11633 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11634 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11635 include/Makefile:build/top.mk:include/Makefile.in \
11636 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11637 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11638 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11639 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11640 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11641 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11642 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11643 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11644 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11645 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11646 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11647 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11648 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11649 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11650 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11651 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11652 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11653 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11654 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11655 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11656 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11657 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11658 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11659 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11660 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11661 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11664 cat >> $CONFIG_STATUS <<\EOF
11665 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11668 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11669 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11670 *) ac_file_in="${ac_file}.in" ;;
11673 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11675 # Remove last slash and all that follows it. Not all systems have dirname.
11676 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11677 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11678 # The file is in a subdirectory.
11679 test ! -d "$ac_dir" && mkdir "$ac_dir"
11680 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11681 # A "../" for each directory in $ac_dir_suffix.
11682 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11684 ac_dir_suffix= ac_dots=
11687 case "$ac_given_srcdir" in
11689 if test -z "$ac_dots"; then top_srcdir=.
11690 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11691 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11692 *) # Relative path.
11693 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11694 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11697 case "$ac_given_INSTALL" in
11698 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11699 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11702 echo creating "$ac_file"
11704 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11706 *Makefile*) ac_comsub="1i\\
11707 # $configure_input" ;;
11711 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11713 s%@configure_input@%$configure_input%g
11714 s%@srcdir@%$srcdir%g
11715 s%@top_srcdir@%$top_srcdir%g
11716 s%@INSTALL@%$INSTALL%g
11717 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11721 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11722 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11724 # ac_d sets the value in "#define NAME VALUE" lines.
11725 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11726 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11729 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11730 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11731 ac_uB='\([ ]\)%\1#\2define\3'
11734 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11735 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11736 ac_eB='$%\1#\2define\3'
11740 if test "${CONFIG_HEADERS+set}" != set; then
11742 cat >> $CONFIG_STATUS <<EOF
11743 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11745 cat >> $CONFIG_STATUS <<\EOF
11747 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11750 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11751 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11752 *) ac_file_in="${ac_file}.in" ;;
11755 echo creating $ac_file
11757 rm -f conftest.frag conftest.in conftest.out
11758 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11759 cat $ac_file_inputs > conftest.in
11763 # Transform confdefs.h into a sed script conftest.vals that substitutes
11764 # the proper values into config.h.in to produce config.h. And first:
11765 # Protect against being on the right side of a sed subst in config.status.
11766 # Protect against being in an unquoted here document in config.status.
11767 rm -f conftest.vals
11768 cat > conftest.hdr <<\EOF
11771 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11775 sed -n -f conftest.hdr confdefs.h > conftest.vals
11778 # This sed command replaces #undef with comments. This is necessary, for
11779 # example, in the case of _POSIX_SOURCE, which is predefined and required
11780 # on some systems where configure will not decide to define it.
11781 cat >> conftest.vals <<\EOF
11782 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11785 # Break up conftest.vals because some shells have a limit on
11786 # the size of here documents, and old seds have small limits too.
11788 rm -f conftest.tail
11791 ac_lines=`grep -c . conftest.vals`
11792 # grep -c gives empty output for an empty file on some AIX systems.
11793 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11794 # Write a limited-size here document to conftest.frag.
11795 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11796 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11798 sed -f conftest.frag conftest.in > conftest.out
11800 mv conftest.out conftest.in
11801 ' >> $CONFIG_STATUS
11802 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11803 rm -f conftest.vals
11804 mv conftest.tail conftest.vals
11806 rm -f conftest.vals
11808 cat >> $CONFIG_STATUS <<\EOF
11809 rm -f conftest.frag conftest.h
11810 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11811 cat conftest.in >> conftest.h
11813 if cmp -s $ac_file conftest.h 2>/dev/null; then
11814 echo "$ac_file is unchanged"
11817 # Remove last slash and all that follows it. Not all systems have dirname.
11818 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11819 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11820 # The file is in a subdirectory.
11821 test ! -d "$ac_dir" && mkdir "$ac_dir"
11824 mv conftest.h $ac_file
11829 cat >> $CONFIG_STATUS <<EOF
11832 cat >> $CONFIG_STATUS <<\EOF
11835 echo Please \"make depend\" to build dependencies
11839 chmod +x $CONFIG_STATUS
11840 rm -fr confdefs* $ac_clean_files
11841 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1