3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos with Kerberos support (auto)"
36 --with-readline with readline support (auto)"
38 --with-threads use threads (auto)"
40 --with-tls with TLS/SSL support (auto)"
42 --with-yielding-select with implicitly yielding select (auto)"
46 --enable-ldapd enable building ldapd (no)"
50 --enable-slapd enable building slapd (yes)"
52 --enable-aclgroups enable ACL group support (auto)"
54 --enable-cleartext enable cleartext passwords (yes)"
56 --enable-crypt enable crypt(3) passwords (auto)"
58 --enable-wrappers enable tcp wrapper support (no)"
60 --enable-phonetic enable phonetic/soundex (no)"
62 --enable-rlookups enable reverse lookups (auto)"
64 --enable-bdb2 enable bdb2 backend (no)"
66 --enable-ldbm enable ldbm backend (yes)"
68 --with-ldbm-api use LDBM API (auto)"
70 --with-ldbm-type use LDBM type (auto)"
72 --enable-passwd enable passwd backend (no)"
74 --enable-perl enable perl backend (no)"
76 --enable-shell enable shell backend (no)"
78 --enable-tcl enable tcl backend (no)"
82 --enable-slurpd enable building slurpd (auto)"
84 Library Generation & Linking Options"
86 --enable-static build static libraries [default=yes]
87 --enable-static=PKGS only build shared libraries if the current package
88 appears as an element in the PKGS list"
90 --enable-shared build shared libraries [default=yes]
91 --enable-shared=PKGS only build shared libraries if the current package
92 appears as an element in the PKGS list"
94 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
96 # Initialize some variables set by options.
97 # The variables have the same names as the options, with
98 # dashes changed to underlines.
100 cache_file=./config.cache
109 program_transform_name=s,x,x,
117 bindir='${exec_prefix}/bin'
118 sbindir='${exec_prefix}/sbin'
119 libexecdir='${exec_prefix}/libexec'
120 datadir='${prefix}/share'
121 sysconfdir='${prefix}/etc'
122 sharedstatedir='${prefix}/com'
123 localstatedir='${prefix}/var'
124 libdir='${exec_prefix}/lib'
125 includedir='${prefix}/include'
126 oldincludedir='/usr/include'
127 infodir='${prefix}/info'
128 mandir='${prefix}/man'
130 # Initialize some other variables.
133 SHELL=${CONFIG_SHELL-/bin/sh}
134 # Maximum number of lines to put in a shell here document.
141 # If the previous option needs an argument, assign it.
142 if test -n "$ac_prev"; then
143 eval "$ac_prev=\$ac_option"
149 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153 # Accept the important Cygnus configure options, so we can diagnose typos.
157 -bindir | --bindir | --bindi | --bind | --bin | --bi)
159 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
160 bindir="$ac_optarg" ;;
162 -build | --build | --buil | --bui | --bu)
164 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
165 build="$ac_optarg" ;;
167 -cache-file | --cache-file | --cache-fil | --cache-fi \
168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
169 ac_prev=cache_file ;;
170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
172 cache_file="$ac_optarg" ;;
174 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
176 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
178 datadir="$ac_optarg" ;;
180 -disable-* | --disable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}=no" ;;
189 -enable-* | --enable-*)
190 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}='$ac_optarg'" ;;
202 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
203 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
204 | --exec | --exe | --ex)
205 ac_prev=exec_prefix ;;
206 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
207 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
208 | --exec=* | --exe=* | --ex=*)
209 exec_prefix="$ac_optarg" ;;
211 -gas | --gas | --ga | --g)
212 # Obsolete; use --with-gas.
215 -help | --help | --hel | --he)
216 # Omit some internal or obsolete options to make the list less imposing.
217 # This message is too long to be a string in the A/UX 3.1 sh.
219 Usage: configure [options] [host]
220 Options: [defaults in brackets after descriptions]
222 --cache-file=FILE cache test results in FILE
223 --help print this message
224 --no-create do not create output files
225 --quiet, --silent do not print \`checking...' messages
226 --version print the version of autoconf that created configure
227 Directory and file names:
228 --prefix=PREFIX install architecture-independent files in PREFIX
230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
232 --bindir=DIR user executables in DIR [EPREFIX/bin]
233 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
234 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
235 --datadir=DIR read-only architecture-independent data in DIR
237 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
238 --sharedstatedir=DIR modifiable architecture-independent data in DIR
240 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
241 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
242 --includedir=DIR C header files in DIR [PREFIX/include]
243 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
244 --infodir=DIR info documentation in DIR [PREFIX/info]
245 --mandir=DIR man documentation in DIR [PREFIX/man]
246 --srcdir=DIR find the sources in DIR [configure dir or ..]
247 --program-prefix=PREFIX prepend PREFIX to installed program names
248 --program-suffix=SUFFIX append SUFFIX to installed program names
249 --program-transform-name=PROGRAM
250 run sed PROGRAM on installed program names
254 --build=BUILD configure for building on BUILD [BUILD=HOST]
255 --host=HOST configure for HOST [guessed]
256 --target=TARGET configure for TARGET [TARGET=HOST]
257 Features and packages:
258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
262 --x-includes=DIR X include files are in DIR
263 --x-libraries=DIR X library files are in DIR
265 if test -n "$ac_help"; then
266 echo "--enable and --with options recognized:$ac_help"
270 -host | --host | --hos | --ho)
272 -host=* | --host=* | --hos=* | --ho=*)
275 -includedir | --includedir | --includedi | --included | --include \
276 | --includ | --inclu | --incl | --inc)
277 ac_prev=includedir ;;
278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
279 | --includ=* | --inclu=* | --incl=* | --inc=*)
280 includedir="$ac_optarg" ;;
282 -infodir | --infodir | --infodi | --infod | --info | --inf)
284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
285 infodir="$ac_optarg" ;;
287 -libdir | --libdir | --libdi | --libd)
289 -libdir=* | --libdir=* | --libdi=* | --libd=*)
290 libdir="$ac_optarg" ;;
292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
293 | --libexe | --libex | --libe)
294 ac_prev=libexecdir ;;
295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
296 | --libexe=* | --libex=* | --libe=*)
297 libexecdir="$ac_optarg" ;;
299 -localstatedir | --localstatedir | --localstatedi | --localstated \
300 | --localstate | --localstat | --localsta | --localst \
301 | --locals | --local | --loca | --loc | --lo)
302 ac_prev=localstatedir ;;
303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
306 localstatedir="$ac_optarg" ;;
308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
311 mandir="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
327 | --oldin | --oldi | --old | --ol | --o)
328 ac_prev=oldincludedir ;;
329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
332 oldincludedir="$ac_optarg" ;;
334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
337 prefix="$ac_optarg" ;;
339 -program-prefix | --program-prefix | --program-prefi | --program-pref \
340 | --program-pre | --program-pr | --program-p)
341 ac_prev=program_prefix ;;
342 -program-prefix=* | --program-prefix=* | --program-prefi=* \
343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
344 program_prefix="$ac_optarg" ;;
346 -program-suffix | --program-suffix | --program-suffi | --program-suff \
347 | --program-suf | --program-su | --program-s)
348 ac_prev=program_suffix ;;
349 -program-suffix=* | --program-suffix=* | --program-suffi=* \
350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
351 program_suffix="$ac_optarg" ;;
353 -program-transform-name | --program-transform-name \
354 | --program-transform-nam | --program-transform-na \
355 | --program-transform-n | --program-transform- \
356 | --program-transform | --program-transfor \
357 | --program-transfo | --program-transf \
358 | --program-trans | --program-tran \
359 | --progr-tra | --program-tr | --program-t)
360 ac_prev=program_transform_name ;;
361 -program-transform-name=* | --program-transform-name=* \
362 | --program-transform-nam=* | --program-transform-na=* \
363 | --program-transform-n=* | --program-transform-=* \
364 | --program-transform=* | --program-transfor=* \
365 | --program-transfo=* | --program-transf=* \
366 | --program-trans=* | --program-tran=* \
367 | --progr-tra=* | --program-tr=* | --program-t=*)
368 program_transform_name="$ac_optarg" ;;
370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
371 | -silent | --silent | --silen | --sile | --sil)
374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
378 sbindir="$ac_optarg" ;;
380 -sharedstatedir | --sharedstatedir | --sharedstatedi \
381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
382 | --sharedst | --shareds | --shared | --share | --shar \
384 ac_prev=sharedstatedir ;;
385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
389 sharedstatedir="$ac_optarg" ;;
391 -site | --site | --sit)
393 -site=* | --site=* | --sit=*)
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev=sysconfdir ;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.13"
421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev=x_includes ;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev=x_libraries ;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file=include/ldap.h
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE; then
563 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp='$CPP $CPPFLAGS'
586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
601 ac_n= ac_c='\c' ac_t=
605 for ac_dir in build $srcdir/build; do
606 if test -f $ac_dir/install-sh; then
608 ac_install_sh="$ac_aux_dir/install-sh -c"
610 elif test -f $ac_dir/install.sh; then
612 ac_install_sh="$ac_aux_dir/install.sh -c"
616 if test -z "$ac_aux_dir"; then
617 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
619 ac_config_guess=$ac_aux_dir/config.guess
620 ac_config_sub=$ac_aux_dir/config.sub
621 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 # Find a good install program. We prefer a C program (faster),
623 # so one script is as good as another. But avoid the broken or
624 # incompatible versions:
625 # SysV /etc/install, /usr/sbin/install
626 # SunOS /usr/etc/install
629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
632 # ./install, which can be erroneously created by make from ./install.sh.
633 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
634 echo "configure:635: checking for a BSD compatible install" >&5
635 if test -z "$INSTALL"; then
636 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
640 for ac_dir in $PATH; do
641 # Account for people who put trailing slashes in PATH elements.
643 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
645 # OSF1 and SCO ODT 3.0 have their own names for install.
646 # Don't use installbsd from OSF since it installs stuff as root
648 for ac_prog in ginstall scoinst install; do
649 if test -f $ac_dir/$ac_prog; then
650 if test $ac_prog = install &&
651 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
652 # AIX install. It has an incompatible calling convention.
655 ac_cv_path_install="$ac_dir/$ac_prog -c"
666 if test "${ac_cv_path_install+set}" = set; then
667 INSTALL="$ac_cv_path_install"
669 # As a last resort, use the slow shell script. We don't cache a
670 # path for INSTALL within a source directory, because that will
671 # break other packages using the cache if that directory is
672 # removed, or if the path is relative.
673 INSTALL="$ac_install_sh"
676 echo "$ac_t""$INSTALL" 1>&6
678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
679 # It thinks the first close brace ends the variable substitution.
680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
686 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
687 echo "configure:688: checking whether build environment is sane" >&5
690 echo timestamp > conftestfile
691 # Do `set' in a subshell so we don't clobber the current shell's
692 # arguments. Must try -L first in case configure is actually a
693 # symlink; some systems play weird games with the mod time of symlinks
694 # (eg FreeBSD returns the mod time of the symlink's containing
697 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
698 if test "$*" = "X"; then
700 set X `ls -t $srcdir/configure conftestfile`
702 if test "$*" != "X $srcdir/configure conftestfile" \
703 && test "$*" != "X conftestfile $srcdir/configure"; then
705 # If neither matched, then we have a broken ls. This can happen
706 # if, for instance, CONFIG_SHELL is bash and it inherits a
707 # broken ls alias from the environment. This has actually
708 # happened. Such a system could not be considered "sane".
709 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
710 alias in your environment" 1>&2; exit 1; }
713 test "$2" = conftestfile
719 { echo "configure: error: newly created file is older than distributed files!
720 Check your system clock" 1>&2; exit 1; }
723 echo "$ac_t""yes" 1>&6
724 if test "$program_transform_name" = s,x,x,; then
725 program_transform_name=
727 # Double any \ or $. echo might interpret backslashes.
728 cat <<\EOF_SED > conftestsed
729 s,\\,\\\\,g; s,\$,$$,g
731 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
734 test "$program_prefix" != NONE &&
735 program_transform_name="s,^,${program_prefix},; $program_transform_name"
736 # Use a double $ so make ignores it.
737 test "$program_suffix" != NONE &&
738 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
740 # sed with no file args requires a program.
741 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
743 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${MAKE-make} sets \${MAKE}" >&5
745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
746 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 cat > conftestmake <<\EOF
751 @echo 'ac_maketemp="${MAKE}"'
753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
754 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
755 if test -n "$ac_maketemp"; then
756 eval ac_cv_prog_make_${ac_make}_set=yes
758 eval ac_cv_prog_make_${ac_make}_set=no
762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
763 echo "$ac_t""yes" 1>&6
766 echo "$ac_t""no" 1>&6
767 SET_MAKE="MAKE=${MAKE-make}"
775 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
776 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
781 missing_dir=`cd $ac_aux_dir && pwd`
782 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
783 echo "configure:784: checking for working aclocal" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
789 echo "$ac_t""found" 1>&6
791 ACLOCAL="$missing_dir/missing aclocal"
792 echo "$ac_t""missing" 1>&6
795 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
796 echo "configure:797: checking for working autoconf" >&5
797 # Run test in a subshell; some versions of sh will print an error if
798 # an executable is not found, even if stderr is redirected.
799 # Redirect stdin to placate older versions of autoconf. Sigh.
800 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
802 echo "$ac_t""found" 1>&6
804 AUTOCONF="$missing_dir/missing autoconf"
805 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking for working automake""... $ac_c" 1>&6
809 echo "configure:810: checking for working automake" >&5
810 # Run test in a subshell; some versions of sh will print an error if
811 # an executable is not found, even if stderr is redirected.
812 # Redirect stdin to placate older versions of autoconf. Sigh.
813 if (automake --version) < /dev/null > /dev/null 2>&1; then
815 echo "$ac_t""found" 1>&6
817 AUTOMAKE="$missing_dir/missing automake"
818 echo "$ac_t""missing" 1>&6
821 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
822 echo "configure:823: checking for working autoheader" >&5
823 # Run test in a subshell; some versions of sh will print an error if
824 # an executable is not found, even if stderr is redirected.
825 # Redirect stdin to placate older versions of autoconf. Sigh.
826 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
827 AUTOHEADER=autoheader
828 echo "$ac_t""found" 1>&6
830 AUTOHEADER="$missing_dir/missing autoheader"
831 echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
835 echo "configure:836: checking for working makeinfo" >&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf. Sigh.
839 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
841 echo "$ac_t""found" 1>&6
843 MAKEINFO="$missing_dir/missing makeinfo"
844 echo "$ac_t""missing" 1>&6
850 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
851 echo "configure:852: checking configure arguments" >&5
856 ldap_subdir="openldap"
858 # Check whether --with-subdir or --without-subdir was given.
859 if test "${with_subdir+set}" = set; then
860 withval="$with_subdir"
862 if test "$withval" = "no"; then
864 elif test "$withval" != "yes"; then
865 ldap_subdir="$withval"
871 # OpenLDAP --enable-debug
872 # Check whether --enable-debug or --disable-debug was given.
873 if test "${enable_debug+set}" = set; then
874 enableval="$enable_debug"
877 for ol_val in auto yes no ; do
878 if test "$enableval" = "$ol_val" ; then
882 if test "$ol_arg" = "invalid" ; then
883 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
885 ol_enable_debug="$ol_arg"
888 ol_enable_debug="yes"
892 # OpenLDAP --enable-proctitle
893 # Check whether --enable-proctitle or --disable-proctitle was given.
894 if test "${enable_proctitle+set}" = set; then
895 enableval="$enable_proctitle"
898 for ol_val in auto yes no ; do
899 if test "$enableval" = "$ol_val" ; then
903 if test "$ol_arg" = "invalid" ; then
904 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
906 ol_enable_proctitle="$ol_arg"
909 ol_enable_proctitle="yes"
911 # end --enable-proctitle
912 # OpenLDAP --enable-cache
913 # Check whether --enable-cache or --disable-cache was given.
914 if test "${enable_cache+set}" = set; then
915 enableval="$enable_cache"
918 for ol_val in auto yes no ; do
919 if test "$enableval" = "$ol_val" ; then
923 if test "$ol_arg" = "invalid" ; then
924 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
926 ol_enable_cache="$ol_arg"
929 ol_enable_cache="yes"
932 # OpenLDAP --enable-dns
933 # Check whether --enable-dns or --disable-dns was given.
934 if test "${enable_dns+set}" = set; then
935 enableval="$enable_dns"
938 for ol_val in auto yes no ; do
939 if test "$enableval" = "$ol_val" ; then
943 if test "$ol_arg" = "invalid" ; then
944 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
946 ol_enable_dns="$ol_arg"
952 # OpenLDAP --enable-referrals
953 # Check whether --enable-referrals or --disable-referrals was given.
954 if test "${enable_referrals+set}" = set; then
955 enableval="$enable_referrals"
958 for ol_val in auto yes no ; do
959 if test "$enableval" = "$ol_val" ; then
963 if test "$ol_arg" = "invalid" ; then
964 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
966 ol_enable_referrals="$ol_arg"
969 ol_enable_referrals="yes"
971 # end --enable-referrals
972 # OpenLDAP --enable-cldap
973 # Check whether --enable-cldap or --disable-cldap was given.
974 if test "${enable_cldap+set}" = set; then
975 enableval="$enable_cldap"
978 for ol_val in auto yes no ; do
979 if test "$enableval" = "$ol_val" ; then
983 if test "$ol_arg" = "invalid" ; then
984 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
986 ol_enable_cldap="$ol_arg"
992 # OpenLDAP --enable-x_compile
993 # Check whether --enable-x_compile or --disable-x_compile was given.
994 if test "${enable_x_compile+set}" = set; then
995 enableval="$enable_x_compile"
998 for ol_val in yes no ; do
999 if test "$enableval" = "$ol_val" ; then
1003 if test "$ol_arg" = "invalid" ; then
1004 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1006 ol_enable_x_compile="$ol_arg"
1009 ol_enable_x_compile="no"
1011 # end --enable-x_compile
1013 # OpenLDAP --enable-dmalloc
1014 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1015 if test "${enable_dmalloc+set}" = set; then
1016 enableval="$enable_dmalloc"
1019 for ol_val in auto yes no ; do
1020 if test "$enableval" = "$ol_val" ; then
1024 if test "$ol_arg" = "invalid" ; then
1025 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1027 ol_enable_dmalloc="$ol_arg"
1030 ol_enable_dmalloc="no"
1032 # end --enable-dmalloc
1034 # OpenLDAP --with-kerberos
1035 # Check whether --with-kerberos or --without-kerberos was given.
1036 if test "${with_kerberos+set}" = set; then
1037 withval="$with_kerberos"
1040 for ol_val in auto k5 k4 afs yes no ; do
1041 if test "$withval" = "$ol_val" ; then
1045 if test "$ol_arg" = "invalid" ; then
1046 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1048 ol_with_kerberos="$ol_arg"
1051 ol_with_kerberos="auto"
1053 # end --with-kerberos
1055 # OpenLDAP --with-readline
1056 # Check whether --with-readline or --without-readline was given.
1057 if test "${with_readline+set}" = set; then
1058 withval="$with_readline"
1061 for ol_val in auto yes no ; do
1062 if test "$withval" = "$ol_val" ; then
1066 if test "$ol_arg" = "invalid" ; then
1067 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1069 ol_with_readline="$ol_arg"
1072 ol_with_readline="auto"
1074 # end --with-readline
1076 # OpenLDAP --with-threads
1077 # Check whether --with-threads or --without-threads was given.
1078 if test "${with_threads+set}" = set; then
1079 withval="$with_threads"
1082 for ol_val in auto posix mach lwp yes no manual ; do
1083 if test "$withval" = "$ol_val" ; then
1087 if test "$ol_arg" = "invalid" ; then
1088 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1090 ol_with_threads="$ol_arg"
1093 ol_with_threads="auto"
1095 # end --with-threads
1097 # OpenLDAP --with-tls
1098 # Check whether --with-tls or --without-tls was given.
1099 if test "${with_tls+set}" = set; then
1103 for ol_val in auto ssleay openssl yes no ; do
1104 if test "$withval" = "$ol_val" ; then
1108 if test "$ol_arg" = "invalid" ; then
1109 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1111 ol_with_tls="$ol_arg"
1118 # OpenLDAP --with-yielding_select
1119 # Check whether --with-yielding_select or --without-yielding_select was given.
1120 if test "${with_yielding_select+set}" = set; then
1121 withval="$with_yielding_select"
1124 for ol_val in auto yes no manual ; do
1125 if test "$withval" = "$ol_val" ; then
1129 if test "$ol_arg" = "invalid" ; then
1130 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1132 ol_with_yielding_select="$ol_arg"
1135 ol_with_yielding_select="auto"
1137 # end --with-yielding_select
1141 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1142 if test "${with_xxldapdoptions+set}" = set; then
1143 withval="$with_xxldapdoptions"
1147 # OpenLDAP --enable-ldapd
1148 # Check whether --enable-ldapd or --disable-ldapd was given.
1149 if test "${enable_ldapd+set}" = set; then
1150 enableval="$enable_ldapd"
1153 for ol_val in auto yes no ; do
1154 if test "$enableval" = "$ol_val" ; then
1158 if test "$ol_arg" = "invalid" ; then
1159 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1161 ol_enable_ldapd="$ol_arg"
1164 ol_enable_ldapd="no"
1166 # end --enable-ldapd
1168 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1169 if test "${with_xxslapdoptions+set}" = set; then
1170 withval="$with_xxslapdoptions"
1174 # OpenLDAP --enable-slapd
1175 # Check whether --enable-slapd or --disable-slapd was given.
1176 if test "${enable_slapd+set}" = set; then
1177 enableval="$enable_slapd"
1180 for ol_val in auto yes no ; do
1181 if test "$enableval" = "$ol_val" ; then
1185 if test "$ol_arg" = "invalid" ; then
1186 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1188 ol_enable_slapd="$ol_arg"
1191 ol_enable_slapd="yes"
1193 # end --enable-slapd
1194 # OpenLDAP --enable-aclgroups
1195 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1196 if test "${enable_aclgroups+set}" = set; then
1197 enableval="$enable_aclgroups"
1200 for ol_val in auto yes no ; do
1201 if test "$enableval" = "$ol_val" ; then
1205 if test "$ol_arg" = "invalid" ; then
1206 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1208 ol_enable_aclgroups="$ol_arg"
1211 ol_enable_aclgroups="auto"
1213 # end --enable-aclgroups
1214 # OpenLDAP --enable-cleartext
1215 # Check whether --enable-cleartext or --disable-cleartext was given.
1216 if test "${enable_cleartext+set}" = set; then
1217 enableval="$enable_cleartext"
1220 for ol_val in auto yes no ; do
1221 if test "$enableval" = "$ol_val" ; then
1225 if test "$ol_arg" = "invalid" ; then
1226 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1228 ol_enable_cleartext="$ol_arg"
1231 ol_enable_cleartext="yes"
1233 # end --enable-cleartext
1234 # OpenLDAP --enable-crypt
1235 # Check whether --enable-crypt or --disable-crypt was given.
1236 if test "${enable_crypt+set}" = set; then
1237 enableval="$enable_crypt"
1240 for ol_val in auto yes no ; do
1241 if test "$enableval" = "$ol_val" ; then
1245 if test "$ol_arg" = "invalid" ; then
1246 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1248 ol_enable_crypt="$ol_arg"
1251 ol_enable_crypt="auto"
1253 # end --enable-crypt
1254 # OpenLDAP --enable-wrappers
1255 # Check whether --enable-wrappers or --disable-wrappers was given.
1256 if test "${enable_wrappers+set}" = set; then
1257 enableval="$enable_wrappers"
1260 for ol_val in auto yes no ; do
1261 if test "$enableval" = "$ol_val" ; then
1265 if test "$ol_arg" = "invalid" ; then
1266 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1268 ol_enable_wrappers="$ol_arg"
1271 ol_enable_wrappers="no"
1273 # end --enable-wrappers
1274 # OpenLDAP --enable-phonetic
1275 # Check whether --enable-phonetic or --disable-phonetic was given.
1276 if test "${enable_phonetic+set}" = set; then
1277 enableval="$enable_phonetic"
1280 for ol_val in auto yes no ; do
1281 if test "$enableval" = "$ol_val" ; then
1285 if test "$ol_arg" = "invalid" ; then
1286 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1288 ol_enable_phonetic="$ol_arg"
1291 ol_enable_phonetic="no"
1293 # end --enable-phonetic
1294 # OpenLDAP --enable-rlookups
1295 # Check whether --enable-rlookups or --disable-rlookups was given.
1296 if test "${enable_rlookups+set}" = set; then
1297 enableval="$enable_rlookups"
1300 for ol_val in auto yes no ; do
1301 if test "$enableval" = "$ol_val" ; then
1305 if test "$ol_arg" = "invalid" ; then
1306 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1308 ol_enable_rlookups="$ol_arg"
1311 ol_enable_rlookups="auto"
1313 # end --enable-rlookups
1315 # OpenLDAP --enable-bdb2
1316 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1317 if test "${enable_bdb2+set}" = set; then
1318 enableval="$enable_bdb2"
1321 for ol_val in auto yes no ; do
1322 if test "$enableval" = "$ol_val" ; then
1326 if test "$ol_arg" = "invalid" ; then
1327 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1329 ol_enable_bdb2="$ol_arg"
1335 # OpenLDAP --enable-ldbm
1336 # Check whether --enable-ldbm or --disable-ldbm was given.
1337 if test "${enable_ldbm+set}" = set; then
1338 enableval="$enable_ldbm"
1341 for ol_val in auto yes no ; do
1342 if test "$enableval" = "$ol_val" ; then
1346 if test "$ol_arg" = "invalid" ; then
1347 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1349 ol_enable_ldbm="$ol_arg"
1352 ol_enable_ldbm="yes"
1355 # OpenLDAP --with-ldbm_api
1356 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1357 if test "${with_ldbm_api+set}" = set; then
1358 withval="$with_ldbm_api"
1361 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1362 if test "$withval" = "$ol_val" ; then
1366 if test "$ol_arg" = "invalid" ; then
1367 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1369 ol_with_ldbm_api="$ol_arg"
1372 ol_with_ldbm_api="auto"
1374 # end --with-ldbm_api
1376 # OpenLDAP --with-ldbm_type
1377 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1378 if test "${with_ldbm_type+set}" = set; then
1379 withval="$with_ldbm_type"
1382 for ol_val in auto btree hash ; do
1383 if test "$withval" = "$ol_val" ; then
1387 if test "$ol_arg" = "invalid" ; then
1388 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1390 ol_with_ldbm_type="$ol_arg"
1393 ol_with_ldbm_type="auto"
1395 # end --with-ldbm_type
1398 # OpenLDAP --enable-passwd
1399 # Check whether --enable-passwd or --disable-passwd was given.
1400 if test "${enable_passwd+set}" = set; then
1401 enableval="$enable_passwd"
1404 for ol_val in auto yes no ; do
1405 if test "$enableval" = "$ol_val" ; then
1409 if test "$ol_arg" = "invalid" ; then
1410 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1412 ol_enable_passwd="$ol_arg"
1415 ol_enable_passwd="no"
1417 # end --enable-passwd
1418 # OpenLDAP --enable-perl
1419 # Check whether --enable-perl or --disable-perl was given.
1420 if test "${enable_perl+set}" = set; then
1421 enableval="$enable_perl"
1424 for ol_val in auto yes no ; do
1425 if test "$enableval" = "$ol_val" ; then
1429 if test "$ol_arg" = "invalid" ; then
1430 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1432 ol_enable_perl="$ol_arg"
1438 # OpenLDAP --enable-shell
1439 # Check whether --enable-shell or --disable-shell was given.
1440 if test "${enable_shell+set}" = set; then
1441 enableval="$enable_shell"
1444 for ol_val in auto yes no ; do
1445 if test "$enableval" = "$ol_val" ; then
1449 if test "$ol_arg" = "invalid" ; then
1450 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1452 ol_enable_shell="$ol_arg"
1455 ol_enable_shell="no"
1457 # end --enable-shell
1458 # OpenLDAP --enable-tcl
1459 # Check whether --enable-tcl or --disable-tcl was given.
1460 if test "${enable_tcl+set}" = set; then
1461 enableval="$enable_tcl"
1464 for ol_val in auto yes no ; do
1465 if test "$enableval" = "$ol_val" ; then
1469 if test "$ol_arg" = "invalid" ; then
1470 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1472 ol_enable_tcl="$ol_arg"
1479 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1480 if test "${with_xxslurpdoptions+set}" = set; then
1481 withval="$with_xxslurpdoptions"
1485 # OpenLDAP --enable-slurpd
1486 # Check whether --enable-slurpd or --disable-slurpd was given.
1487 if test "${enable_slurpd+set}" = set; then
1488 enableval="$enable_slurpd"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1499 ol_enable_slurpd="$ol_arg"
1502 ol_enable_slurpd="auto"
1504 # end --enable-slurpd
1506 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1507 if test "${with_xxliboptions+set}" = set; then
1508 withval="$with_xxliboptions"
1512 # Check whether --enable-static or --disable-static was given.
1513 if test "${enable_static+set}" = set; then
1514 enableval="$enable_static"
1515 p=${PACKAGE-default}
1516 case "$enableval" in
1517 yes) enable_static=yes ;;
1518 no) enable_static=no ;;
1521 # Look at the argument we got. We use all the common list separators.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1523 for pkg in $enableval; do
1524 if test "X$pkg" = "X$p"; then
1535 # Check whether --enable-shared or --disable-shared was given.
1536 if test "${enable_shared+set}" = set; then
1537 enableval="$enable_shared"
1538 p=${PACKAGE-default}
1539 case "$enableval" in
1540 yes) enable_shared=yes ;;
1541 no) enable_shared=no ;;
1544 # Look at the argument we got. We use all the common list separators.
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1546 for pkg in $enableval; do
1547 if test "X$pkg" = "X$p"; then
1560 if test $ol_enable_dns = yes ; then
1561 if test $ol_enable_referrals = no ; then
1562 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1564 if test $ol_enable_referrals = auto ; then
1565 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1566 ol_enable_referrals=yes
1570 if test $ol_enable_slapd = no ; then
1571 if test $ol_enable_bdb2 = yes ; then
1572 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1574 if test $ol_enable_ldbm = yes ; then
1575 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1577 if test $ol_enable_passwd = yes ; then
1578 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1580 if test $ol_enable_perl = yes ; then
1581 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1583 if test $ol_enable_shell = yes ; then
1584 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1586 if test $ol_enable_tcl = yes ; then
1587 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1589 if test $ol_enable_aclgroups = yes ; then
1590 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1592 if test $ol_enable_wrappers = yes ; then
1593 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1595 if test $ol_enable_phonetic = yes ; then
1596 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1598 if test $ol_enable_rlookups = yes ; then
1599 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1601 if test $ol_with_ldbm_api != auto ; then
1602 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1604 if test $ol_with_ldbm_type != auto ; then
1605 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1607 if test $ol_enable_slurpd = yes ; then
1608 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1611 # force settings to no
1618 ol_enable_aclgroups=no
1619 ol_enable_wrappers=no
1620 ol_enable_phonetic=no
1621 ol_enable_rlookups=no
1623 ol_with_ldbm_type=no
1626 elif test $ol_enable_ldbm = no ; then
1628 if test $ol_with_ldbm_api != auto ; then
1629 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1632 if test $ol_with_ldbm_type != auto ; then
1633 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1636 if test $ol_enable_bdb2 = yes ; then
1637 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1640 if test $ol_enable_passwd = no -a \
1641 $ol_enable_perl = no -a \
1642 $ol_enable_shell = no -a \
1643 $ol_enable_tcl = no ; then
1644 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1648 ol_with_ldbm_type=no
1650 elif test $ol_enable_bdb2 = yes ; then
1652 if test $ol_with_ldbm_api != auto -a \
1653 $ol_with_ldbm_api != db2 ; then
1654 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1657 ol_with_ldbm_api=db2
1661 if test $ol_enable_bdb2 != no ; then
1662 if test $ol_with_ldbm_api != auto -a \
1663 $ol_with_ldbm_api != db2 ; then
1664 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1669 if test $ol_with_ldbm_api = gdbm -a \
1670 $ol_with_ldbm_type = btree ; then
1671 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1673 if test $ol_with_ldbm_api = mdbm -a \
1674 $ol_with_ldbm_type = btree ; then
1675 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1677 if test $ol_with_ldbm_api = ndbm -a \
1678 $ol_with_ldbm_type = btree ; then
1679 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1683 if test $ol_enable_slurpd = yes ; then
1684 if test $ol_with_threads = no ; then
1685 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1689 echo "$ac_t""done" 1>&6
1714 SLAPD_PERL_CPPFLAGS=
1722 # Find a good install program. We prefer a C program (faster),
1723 # so one script is as good as another. But avoid the broken or
1724 # incompatible versions:
1725 # SysV /etc/install, /usr/sbin/install
1726 # SunOS /usr/etc/install
1727 # IRIX /sbin/install
1729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1732 # ./install, which can be erroneously created by make from ./install.sh.
1733 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1734 echo "configure:1735: checking for a BSD compatible install" >&5
1735 if test -z "$INSTALL"; then
1736 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1740 for ac_dir in $PATH; do
1741 # Account for people who put trailing slashes in PATH elements.
1743 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1745 # OSF1 and SCO ODT 3.0 have their own names for install.
1746 # Don't use installbsd from OSF since it installs stuff as root
1748 for ac_prog in ginstall scoinst install; do
1749 if test -f $ac_dir/$ac_prog; then
1750 if test $ac_prog = install &&
1751 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1752 # AIX install. It has an incompatible calling convention.
1755 ac_cv_path_install="$ac_dir/$ac_prog -c"
1766 if test "${ac_cv_path_install+set}" = set; then
1767 INSTALL="$ac_cv_path_install"
1769 # As a last resort, use the slow shell script. We don't cache a
1770 # path for INSTALL within a source directory, because that will
1771 # break other packages using the cache if that directory is
1772 # removed, or if the path is relative.
1773 INSTALL="$ac_install_sh"
1776 echo "$ac_t""$INSTALL" 1>&6
1778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1779 # It thinks the first close brace ends the variable substitution.
1780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1790 # Make sure we can run config.sub.
1791 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1792 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1795 echo $ac_n "checking host system type""... $ac_c" 1>&6
1796 echo "configure:1797: checking host system type" >&5
1799 case "$host_alias" in
1803 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1804 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1806 *) host_alias=$nonopt ;;
1810 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1811 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1812 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1813 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1814 echo "$ac_t""$host" 1>&6
1816 # Extract the first word of "ranlib", so it can be a program name with args.
1817 set dummy ranlib; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$RANLIB"; then
1824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1828 for ac_dir in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir=.
1830 if test -f $ac_dir/$ac_word; then
1831 ac_cv_prog_RANLIB="ranlib"
1836 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1839 RANLIB="$ac_cv_prog_RANLIB"
1840 if test -n "$RANLIB"; then
1841 echo "$ac_t""$RANLIB" 1>&6
1843 echo "$ac_t""no" 1>&6
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1858 for ac_dir in $ac_dummy; do
1859 test -z "$ac_dir" && ac_dir=.
1860 if test -f $ac_dir/$ac_word; then
1869 if test -n "$CC"; then
1870 echo "$ac_t""$CC" 1>&6
1872 echo "$ac_t""no" 1>&6
1875 if test -z "$CC"; then
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1893 ac_prog_rejected=yes
1901 if test $ac_prog_rejected = yes; then
1902 # We found a bogon in the path, so make sure we never use it.
1903 set dummy $ac_cv_prog_CC
1905 if test $# -gt 0; then
1906 # We chose a different compiler from the bogus one.
1907 # However, it has the same basename, so the bogon will be chosen
1908 # first if we set CC to just the basename; use the full file name.
1910 set dummy "$ac_dir/$ac_word" "$@"
1918 if test -n "$CC"; then
1919 echo "$ac_t""$CC" 1>&6
1921 echo "$ac_t""no" 1>&6
1924 if test -z "$CC"; then
1925 case "`uname -s`" in
1927 # Extract the first word of "cl", so it can be a program name with args.
1928 set dummy cl; ac_word=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1939 for ac_dir in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir=.
1941 if test -f $ac_dir/$ac_word; then
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1969 cross_compiling=$ac_cv_prog_cc_cross
1971 cat > conftest.$ac_ext << EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 ac_cv_prog_cc_works=yes
1980 # If we can't run a trivial program, we are probably using a cross compiler.
1981 if (./conftest; exit) 2>/dev/null; then
1982 ac_cv_prog_cc_cross=no
1984 ac_cv_prog_cc_cross=yes
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 ac_cv_prog_cc_works=no
1993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1997 cross_compiling=$ac_cv_prog_cc_cross
1999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2000 if test $ac_cv_prog_cc_works = no; then
2001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2006 cross_compiling=$ac_cv_prog_cc_cross
2008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether we are using GNU C" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.c <<EOF
2018 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2027 if test $ac_cv_prog_gcc = yes; then
2033 ac_test_CFLAGS="${CFLAGS+set}"
2034 ac_save_CFLAGS="$CFLAGS"
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 echo 'void f(){}' > conftest.c
2042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2052 if test "$ac_test_CFLAGS" = set; then
2053 CFLAGS="$ac_save_CFLAGS"
2054 elif test $ac_cv_prog_cc_g = yes; then
2055 if test "$GCC" = yes; then
2061 if test "$GCC" = yes; then
2068 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2069 if test "${with_gnu_ld+set}" = set; then
2070 withval="$with_gnu_ld"
2071 test "$withval" = no || with_gnu_ld=yes
2078 if test "$ac_cv_prog_gcc" = yes; then
2079 # Check if gcc -print-prog-name=ld gives a path.
2080 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2081 echo "configure:2082: checking for ld used by GCC" >&5
2082 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2084 # Accept absolute paths.
2086 test -z "$LD" && LD="$ac_prog"
2089 # If it fails, then pretend we aren't using GCC.
2093 # If it is relative, then search for the first ld in PATH.
2097 elif test "$with_gnu_ld" = yes; then
2098 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2099 echo "configure:2100: checking for GNU ld" >&5
2101 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2102 echo "configure:2103: checking for non-GNU ld" >&5
2104 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 if test -z "$LD"; then
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2109 for ac_dir in $PATH; do
2110 test -z "$ac_dir" && ac_dir=.
2111 if test -f "$ac_dir/$ac_prog"; then
2112 ac_cv_path_LD="$ac_dir/$ac_prog"
2113 # Check to see if the program is GNU ld. I'd rather use --version,
2114 # but apparently some GNU ld's only accept -v.
2115 # Break only if it was the GNU/non-GNU ld that we prefer.
2116 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2117 test "$with_gnu_ld" != no && break
2119 test "$with_gnu_ld" != yes && break
2125 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2130 if test -n "$LD"; then
2131 echo "$ac_t""$LD" 1>&6
2133 echo "$ac_t""no" 1>&6
2135 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2137 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2138 echo "configure:2139: checking if the linker ($LD) is GNU ld" >&5
2139 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2143 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2144 ac_cv_prog_gnu_ld=yes
2146 ac_cv_prog_gnu_ld=no
2150 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2153 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2154 echo "configure:2155: checking for BSD-compatible nm" >&5
2155 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2160 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2164 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2165 test -z "$ac_dir" && ac_dir=.
2166 if test -f $ac_dir/nm; then
2167 # Check to see if the nm accepts a BSD-compat flag.
2168 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2169 # nm: unknown option "B" ignored
2170 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2171 ac_cv_path_NM="$ac_dir/nm -B"
2172 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2173 ac_cv_path_NM="$ac_dir/nm -p"
2175 ac_cv_path_NM="$ac_dir/nm"
2181 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2187 echo "$ac_t""$NM" 1>&6
2190 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2191 echo "configure:2192: checking whether ln -s works" >&5
2192 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2196 if ln -s X conftestdata 2>/dev/null
2199 ac_cv_prog_LN_S="ln -s"
2204 LN_S="$ac_cv_prog_LN_S"
2205 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2206 echo "$ac_t""yes" 1>&6
2208 echo "$ac_t""no" 1>&6
2211 # Always use our own libtool.
2212 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2214 # Check for any special flags to pass to ltconfig.
2216 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2217 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2218 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2219 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2220 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2222 # Some flags need to be propagated to the compiler or linker for good
2226 # Find out which ABI we are using.
2227 echo '#line 2228 "configure"' > conftest.$ac_ext
2228 if { (eval echo configure:2229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2229 case "`/usr/bin/file conftest.o`" in
2245 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2246 CFLAGS="$CFLAGS -belf"
2250 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2251 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2252 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2253 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2254 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2255 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2258 for ac_prog in mawk gawk nawk awk
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261 set dummy $ac_prog; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 if test -n "$AWK"; then
2268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2272 for ac_dir in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir=.
2274 if test -f $ac_dir/$ac_word; then
2275 ac_cv_prog_AWK="$ac_prog"
2282 AWK="$ac_cv_prog_AWK"
2283 if test -n "$AWK"; then
2284 echo "$ac_t""$AWK" 1>&6
2286 echo "$ac_t""no" 1>&6
2289 test -n "$AWK" && break
2292 # test for ln hardlink support
2293 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2294 echo "configure:2295: checking whether ln works" >&5
2295 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 rm -f conftest.src conftest.dst
2299 echo "conftest" > conftest.src
2300 if ln conftest.src conftest.dst 2>/dev/null
2302 ol_cv_prog_LN_H="ln"
2304 ol_cv_prog_LN_H="cp"
2306 rm -f conftest.src conftest.dst
2309 LN_H="$ol_cv_prog_LN_H"
2310 if test "$ol_cv_prog_LN_H" = "ln"; then
2311 echo "$ac_t""yes" 1>&6
2313 echo "$ac_t""no" 1>&6
2316 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2317 echo "configure:2318: checking whether ln -s works" >&5
2318 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2322 if ln -s X conftestdata 2>/dev/null
2325 ac_cv_prog_LN_S="ln -s"
2330 LN_S="$ac_cv_prog_LN_S"
2331 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2332 echo "$ac_t""yes" 1>&6
2334 echo "$ac_t""no" 1>&6
2338 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2342 # Extract the first word of "sendmail", so it can be a program name with args.
2343 set dummy sendmail; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2351 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2354 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2358 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2359 for ac_dir in $ac_dummy; do
2360 test -z "$ac_dir" && ac_dir=.
2361 if test -f $ac_dir/$ac_word; then
2362 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2367 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2371 SENDMAIL="$ac_cv_path_SENDMAIL"
2372 if test -n "$SENDMAIL"; then
2373 echo "$ac_t""$SENDMAIL" 1>&6
2375 echo "$ac_t""no" 1>&6
2378 # Extract the first word of "vi", so it can be a program name with args.
2379 set dummy vi; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2387 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2390 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2394 ac_dummy="$PATH:/usr/ucb"
2395 for ac_dir in $ac_dummy; do
2396 test -z "$ac_dir" && ac_dir=.
2397 if test -f $ac_dir/$ac_word; then
2398 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2403 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2407 EDITOR="$ac_cv_path_EDITOR"
2408 if test -n "$EDITOR"; then
2409 echo "$ac_t""$EDITOR" 1>&6
2411 echo "$ac_t""no" 1>&6
2414 # Extract the first word of "finger", so it can be a program name with args.
2415 set dummy finger; ac_word=$2
2416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2417 echo "configure:2418: checking for $ac_word" >&5
2418 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2423 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2426 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2430 ac_dummy="$PATH:/usr/ucb"
2431 for ac_dir in $ac_dummy; do
2432 test -z "$ac_dir" && ac_dir=.
2433 if test -f $ac_dir/$ac_word; then
2434 ac_cv_path_FINGER="$ac_dir/$ac_word"
2439 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2443 FINGER="$ac_cv_path_FINGER"
2444 if test -n "$FINGER"; then
2445 echo "$ac_t""$FINGER" 1>&6
2447 echo "$ac_t""no" 1>&6
2451 if test $ol_enable_perl = yes ; then
2452 # Extract the first word of "perl", so it can be a program name with args.
2453 set dummy perl; ac_word=$2
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_word" >&5
2456 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2461 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2464 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2469 for ac_dir in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir=.
2471 if test -f $ac_dir/$ac_word; then
2472 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2477 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2481 PERLBIN="$ac_cv_path_PERLBIN"
2482 if test -n "$PERLBIN"; then
2483 echo "$ac_t""$PERLBIN" 1>&6
2485 echo "$ac_t""no" 1>&6
2489 if test "no$PERLBIN" = "no" ; then
2493 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2494 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2497 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2498 echo "configure:2499: checking how to run the C preprocessor" >&5
2499 # On Suns, sometimes $CPP names a directory.
2500 if test -n "$CPP" && test -d "$CPP"; then
2503 if test -z "$CPP"; then
2504 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 # This must be in double quotes, not single quotes, because CPP may get
2508 # substituted into the Makefile and "${CC-cc}" will confuse make.
2510 # On the NeXT, cc -E runs the code through the compiler's parser,
2511 # not just through cpp.
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2519 { (eval echo configure:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521 if test -z "$ac_err"; then
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 CPP="${CC-cc} -E -traditional-cpp"
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2538 if test -z "$ac_err"; then
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2545 CPP="${CC-cc} -nologo -E"
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2559 echo "configure: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2569 ac_cv_prog_CPP="$CPP"
2571 CPP="$ac_cv_prog_CPP"
2573 ac_cv_prog_CPP="$CPP"
2575 echo "$ac_t""$CPP" 1>&6
2578 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2579 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2581 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2582 echo "configure: warning: programs compiled here do run here..." 1>&2
2583 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2585 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2586 echo "configure: warning: programs compiled here do not run here..." 1>&2
2587 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2590 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2591 echo "configure:2592: checking for AIX" >&5
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2601 egrep "yes" >/dev/null 2>&1; then
2603 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2604 #define _ALL_SOURCE 1
2609 echo "$ac_t""no" 1>&6
2614 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2615 echo "configure:2616: checking for POSIXized ISC" >&5
2616 if test -d /etc/conf/kconfig.d &&
2617 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2619 echo "$ac_t""yes" 1>&6
2620 ISC=yes # If later tests want to check for ISC.
2621 cat >> confdefs.h <<\EOF
2622 #define _POSIX_SOURCE 1
2625 if test "$GCC" = yes; then
2631 echo "$ac_t""no" 1>&6
2635 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2636 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2637 echo "configure:2638: checking for minix/config.h" >&5
2638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 #include <minix/config.h>
2646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2647 { (eval echo configure:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2649 if test -z "$ac_err"; then
2651 eval "ac_cv_header_$ac_safe=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2657 eval "ac_cv_header_$ac_safe=no"
2661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2665 echo "$ac_t""no" 1>&6
2669 if test "$MINIX" = yes; then
2670 cat >> confdefs.h <<\EOF
2671 #define _POSIX_SOURCE 1
2674 cat >> confdefs.h <<\EOF
2675 #define _POSIX_1_SOURCE 2
2678 cat >> confdefs.h <<\EOF
2685 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2686 echo "configure:2687: checking for be_app in -lbe" >&5
2687 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 ac_save_LIBS="$LIBS"
2692 LIBS="-lbe -lroot $LIBS"
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* Override any gcc2 internal prototype to avoid an error. */
2697 /* We use char because int might match the return type of a gcc2
2698 builtin and then its argument prototype would still apply. */
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2707 eval "ac_cv_lib_$ac_lib_var=yes"
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 eval "ac_cv_lib_$ac_lib_var=no"
2715 LIBS="$ac_save_LIBS"
2718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 LIBS="$LIBS -lbe -lroot"
2722 echo "$ac_t""no" 1>&6
2727 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2728 echo "configure:2729: checking for Cygwin environment" >&5
2729 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2739 #define __CYGWIN__ __CYGWIN32__
2744 if { (eval echo configure:2745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2757 echo "$ac_t""$ac_cv_cygwin" 1>&6
2759 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2760 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2761 echo "configure:2762: checking for mingw32 environment" >&5
2762 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2773 if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2786 echo "$ac_t""$ac_cv_mingw32" 1>&6
2788 test "$ac_cv_mingw32" = yes && MINGW32=yes
2791 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2792 echo "configure:2793: checking for executable suffix" >&5
2793 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2800 echo 'int main () { return 0; }' > conftest.$ac_ext
2802 if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2803 for file in conftest.*; do
2805 *.c | *.o | *.obj) ;;
2806 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2810 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2813 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2818 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2819 echo "$ac_t""${ac_cv_exeext}" 1>&6
2822 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2823 echo "configure:2824: checking for object suffix" >&5
2824 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2828 echo 'int i = 1;' > conftest.$ac_ext
2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2830 for ac_file in conftest.*; do
2833 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2837 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2842 echo "$ac_t""$ac_cv_objext" 1>&6
2843 OBJEXT=$ac_cv_objext
2844 ac_objext=$ac_cv_objext
2850 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2851 echo "configure:2852: checking for ${CC-cc} option to accept ANSI C" >&5
2852 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 am_cv_prog_cc_stdc=no
2857 # Don't try gcc -ansi; that turns off useful extensions and
2858 # breaks some systems' header files.
2859 # AIX -qlanglvl=ansi
2860 # Ultrix and OSF/1 -std1
2861 # HP-UX -Aa -D_HPUX_SOURCE
2862 # SVR4 -Xc -D__EXTENSIONS__
2863 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2865 CC="$ac_save_CC $ac_arg"
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2871 #include <sys/types.h>
2872 #include <sys/stat.h>
2873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2874 struct buf { int x; };
2875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2876 static char *e (p, i)
2882 static char *f (char * (*g) (char **, int), char **p, ...)
2887 s = g (p, va_arg (v,int));
2891 int test (int i, double x);
2892 struct s1 {int (*f) (int a);};
2893 struct s2 {int (*f) (double a);};
2894 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2900 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2904 if { (eval echo configure:2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2906 am_cv_prog_cc_stdc="$ac_arg"; break
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2917 if test -z "$am_cv_prog_cc_stdc"; then
2918 echo "$ac_t""none needed" 1>&6
2920 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2922 case "x$am_cv_prog_cc_stdc" in
2924 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2927 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2928 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2934 echo $ac_n "checking for socket""... $ac_c" 1>&6
2935 echo "configure:2936: checking for socket" >&5
2936 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 /* System header to define __stub macros and hopefully few prototypes,
2943 which can conflict with char socket(); below. */
2945 /* Override any gcc2 internal prototype to avoid an error. */
2946 /* We use char because int might match the return type of a gcc2
2947 builtin and then its argument prototype would still apply. */
2952 /* The GNU C library defines this for functions which it implements
2953 to always fail with ENOSYS. Some functions are actually named
2954 something starting with __ and the normal name is an alias. */
2955 #if defined (__stub_socket) || defined (__stub___socket)
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2965 eval "ac_cv_func_socket=yes"
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 eval "ac_cv_func_socket=no"
2975 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2976 echo "$ac_t""yes" 1>&6
2979 echo "$ac_t""no" 1>&6
2981 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2982 echo "configure:2983: checking for main in -lsocket" >&5
2983 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 ac_save_LIBS="$LIBS"
2988 LIBS="-lsocket $LIBS"
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2999 eval "ac_cv_lib_$ac_lib_var=yes"
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 eval "ac_cv_lib_$ac_lib_var=no"
3007 LIBS="$ac_save_LIBS"
3010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3012 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3014 cat >> confdefs.h <<EOF
3015 #define $ac_tr_lib 1
3018 LIBS="-lsocket $LIBS"
3021 echo "$ac_t""no" 1>&6
3024 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3025 echo "configure:3026: checking for main in -lnet" >&5
3026 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 ac_save_LIBS="$LIBS"
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3042 eval "ac_cv_lib_$ac_lib_var=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 eval "ac_cv_lib_$ac_lib_var=no"
3050 LIBS="$ac_save_LIBS"
3053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3056 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3057 cat >> confdefs.h <<EOF
3058 #define $ac_tr_lib 1
3064 echo "$ac_t""no" 1>&6
3067 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3068 echo "configure:3069: checking for main in -lnsl_s" >&5
3069 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 ac_save_LIBS="$LIBS"
3074 LIBS="-lnsl_s $LIBS"
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3083 if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3085 eval "ac_cv_lib_$ac_lib_var=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3090 eval "ac_cv_lib_$ac_lib_var=no"
3093 LIBS="$ac_save_LIBS"
3096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3097 echo "$ac_t""yes" 1>&6
3098 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3100 cat >> confdefs.h <<EOF
3101 #define $ac_tr_lib 1
3104 LIBS="-lnsl_s $LIBS"
3107 echo "$ac_t""no" 1>&6
3110 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3111 echo "configure:3112: checking for main in -lnsl" >&5
3112 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 ac_save_LIBS="$LIBS"
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3126 if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3128 eval "ac_cv_lib_$ac_lib_var=yes"
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 eval "ac_cv_lib_$ac_lib_var=no"
3136 LIBS="$ac_save_LIBS"
3139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3140 echo "$ac_t""yes" 1>&6
3141 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3143 cat >> confdefs.h <<EOF
3144 #define $ac_tr_lib 1
3150 echo "$ac_t""no" 1>&6
3153 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3154 echo "configure:3155: checking for socket in -linet" >&5
3155 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 ac_save_LIBS="$LIBS"
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3173 if { (eval echo configure:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3175 eval "ac_cv_lib_$ac_lib_var=yes"
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3180 eval "ac_cv_lib_$ac_lib_var=no"
3183 LIBS="$ac_save_LIBS"
3186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3187 echo "$ac_t""yes" 1>&6
3188 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3190 cat >> confdefs.h <<EOF
3191 #define $ac_tr_lib 1
3197 echo "$ac_t""no" 1>&6
3200 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3201 echo "configure:3202: checking for main in -lgen" >&5
3202 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 ac_save_LIBS="$LIBS"
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218 eval "ac_cv_lib_$ac_lib_var=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_lib_$ac_lib_var=no"
3226 LIBS="$ac_save_LIBS"
3229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3232 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3233 cat >> confdefs.h <<EOF
3234 #define $ac_tr_lib 1
3240 echo "$ac_t""no" 1>&6
3247 for ac_func in res_search
3249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3250 echo "configure:3251: checking for $ac_func" >&5
3251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 /* System header to define __stub macros and hopefully few prototypes,
3258 which can conflict with char $ac_func(); below. */
3260 /* Override any gcc2 internal prototype to avoid an error. */
3261 /* We use char because int might match the return type of a gcc2
3262 builtin and then its argument prototype would still apply. */
3267 /* The GNU C library defines this for functions which it implements
3268 to always fail with ENOSYS. Some functions are actually named
3269 something starting with __ and the normal name is an alias. */
3270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3278 if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3280 eval "ac_cv_func_$ac_func=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 eval "ac_cv_func_$ac_func=no"
3290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_func 1
3298 echo "$ac_t""no" 1>&6
3302 if test $ac_cv_func_res_search = "no" ; then
3303 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3304 echo "configure:3305: checking for res_search in -lbind" >&5
3305 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_save_LIBS="$LIBS"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3325 eval "ac_cv_lib_$ac_lib_var=yes"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 eval "ac_cv_lib_$ac_lib_var=no"
3333 LIBS="$ac_save_LIBS"
3336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3340 cat >> confdefs.h <<EOF
3341 #define $ac_tr_lib 1
3347 echo "$ac_t""no" 1>&6
3350 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3351 cat >> confdefs.h <<\EOF
3352 #define HAVE_RES_SEARCH 1
3356 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3357 echo "configure:3358: checking for res_search in -lresolv" >&5
3358 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 ac_save_LIBS="$LIBS"
3363 LIBS="-lresolv $LIBS"
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* Override any gcc2 internal prototype to avoid an error. */
3368 /* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3376 if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3378 eval "ac_cv_lib_$ac_lib_var=yes"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3383 eval "ac_cv_lib_$ac_lib_var=no"
3386 LIBS="$ac_save_LIBS"
3389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3390 echo "$ac_t""yes" 1>&6
3391 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3393 cat >> confdefs.h <<EOF
3394 #define $ac_tr_lib 1
3397 LIBS="-lresolv $LIBS"
3400 echo "$ac_t""no" 1>&6
3403 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3404 cat >> confdefs.h <<\EOF
3405 #define HAVE_RES_SEARCH 1
3412 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3413 echo "configure:3414: checking for sigset in -lV3" >&5
3414 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 ac_save_LIBS="$LIBS"
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 /* We use char because int might match the return type of a gcc2
3425 builtin and then its argument prototype would still apply. */
3432 if { (eval echo configure:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3434 eval "ac_cv_lib_$ac_lib_var=yes"
3436 echo "configure: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3439 eval "ac_cv_lib_$ac_lib_var=no"
3442 LIBS="$ac_save_LIBS"
3445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3446 echo "$ac_t""yes" 1>&6
3447 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_lib 1
3456 echo "$ac_t""no" 1>&6
3460 echo $ac_n "checking for select""... $ac_c" 1>&6
3461 echo "configure:3462: checking for select" >&5
3462 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* System header to define __stub macros and hopefully few prototypes,
3469 which can conflict with char select(); below. */
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3478 /* The GNU C library defines this for functions which it implements
3479 to always fail with ENOSYS. Some functions are actually named
3480 something starting with __ and the normal name is an alias. */
3481 #if defined (__stub_select) || defined (__stub___select)
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491 eval "ac_cv_func_select=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_func_select=no"
3501 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3505 echo "$ac_t""no" 1>&6
3506 { echo "configure: error: select() required." 1>&2; exit 1; }
3510 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3511 echo "configure:3512: checking types of arguments for select()" >&5
3512 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3522 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3523 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #ifdef HAVE_SYS_TYPES_H
3528 #include <sys/types.h>
3530 #ifdef HAVE_SYS_TIME_H
3531 #include <sys/time.h>
3533 #ifdef HAVE_SYS_SELECT_H
3534 #include <sys/select.h>
3536 #ifdef HAVE_SYS_SOCKET_H
3537 #include <sys/socket.h>
3539 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);
3544 if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 ac_not_found=no ; break 3
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3563 if test "$ac_not_found" = yes; then
3564 ac_cv_func_select_arg1=int
3565 ac_cv_func_select_arg234='int *'
3566 ac_cv_func_select_arg5='struct timeval *'
3568 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3569 cat >> confdefs.h <<EOF
3570 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3573 cat >> confdefs.h <<EOF
3574 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3577 cat >> confdefs.h <<EOF
3578 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3585 if test $ol_enable_ldapd != no ; then
3586 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3587 echo "configure:3588: checking for main in -lxtpp" >&5
3588 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 ac_save_LIBS="$LIBS"
3593 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3604 eval "ac_cv_lib_$ac_lib_var=yes"
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3609 eval "ac_cv_lib_$ac_lib_var=no"
3612 LIBS="$ac_save_LIBS"
3615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3616 echo "$ac_t""yes" 1>&6
3619 cat >> confdefs.h <<\EOF
3623 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3626 echo "$ac_t""no" 1>&6
3630 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3631 echo "configure:3632: checking for main in -ldsap" >&5
3632 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 ac_save_LIBS="$LIBS"
3637 LIBS="-ldsap -lisode $LIBS"
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3648 eval "ac_cv_lib_$ac_lib_var=yes"
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3653 eval "ac_cv_lib_$ac_lib_var=no"
3656 LIBS="$ac_save_LIBS"
3659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3663 cat >> confdefs.h <<\EOF
3667 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3670 echo "$ac_t""no" 1>&6
3674 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3675 echo "configure:3676: checking for main in -lisode" >&5
3676 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 ac_save_LIBS="$LIBS"
3681 LIBS="-lisode $LIBS"
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3690 if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3692 eval "ac_cv_lib_$ac_lib_var=yes"
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3697 eval "ac_cv_lib_$ac_lib_var=no"
3700 LIBS="$ac_save_LIBS"
3703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3707 cat >> confdefs.h <<\EOF
3708 #define HAVE_ISODE 1
3711 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3714 echo "$ac_t""no" 1>&6
3720 if test $ol_link_isode != no; then
3721 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3722 echo "configure:3723: checking for main in -lpp" >&5
3723 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_save_LIBS="$LIBS"
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3737 if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 eval "ac_cv_lib_$ac_lib_var=yes"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 eval "ac_cv_lib_$ac_lib_var=no"
3747 LIBS="$ac_save_LIBS"
3750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3753 cat >> confdefs.h <<\EOF
3757 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3760 echo "$ac_t""no" 1>&6
3765 # Extract the first word of "pepsy", so it can be a program name with args.
3766 set dummy pepsy; ac_word=$2
3767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3768 echo "configure:3769: checking for $ac_word" >&5
3769 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3774 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3777 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3782 for ac_dir in $ac_dummy; do
3783 test -z "$ac_dir" && ac_dir=.
3784 if test -f $ac_dir/$ac_word; then
3785 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3793 PEPSY="$ac_cv_path_PEPSY"
3794 if test -n "$PEPSY"; then
3795 echo "$ac_t""$PEPSY" 1>&6
3797 echo "$ac_t""no" 1>&6
3804 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3805 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3809 echo "configure:3810: checking for $ac_hdr" >&5
3810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3819 { (eval echo configure:3820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3821 if test -z "$ac_err"; then
3823 eval "ac_cv_header_$ac_safe=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 eval "ac_cv_header_$ac_safe=no"
3833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3836 cat >> confdefs.h <<EOF
3837 #define $ac_tr_hdr 1
3841 echo "$ac_t""no" 1>&6
3846 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3847 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3848 echo "configure:3849: checking for main in -lkrb4" >&5
3849 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 ac_save_LIBS="$LIBS"
3854 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3863 if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3865 eval "ac_cv_lib_$ac_lib_var=yes"
3867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3870 eval "ac_cv_lib_$ac_lib_var=no"
3873 LIBS="$ac_save_LIBS"
3876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3877 echo "$ac_t""yes" 1>&6
3880 echo "$ac_t""no" 1>&6
3885 if test $have_k5 = yes ; then
3886 ol_with_kerberos=found
3887 ol_link_kerberos=yes
3889 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3891 LIBS="$KRB_LIBS $LIBS"
3893 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3894 echo "configure:3895: checking for des_debug in Kerberos libraries" >&5
3895 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3900 LIBS="$KRB_LIBS $LIBS"
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3905 #include <kerberosIV/krb.h>
3906 #include <kerberosIV/des.h>
3907 extern int des_debug;
3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3917 ol_cv_var_des_debug=yes
3919 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3922 ol_cv_var_des_debug=no
3929 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3931 if test $ol_cv_var_des_debug = yes ; then
3932 cat >> confdefs.h <<\EOF
3933 #define HAVE_DES_DEBUG 1
3943 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3944 for ac_hdr in krb.h des.h
3946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3948 echo "configure:3949: checking for $ac_hdr" >&5
3949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3958 { (eval echo configure:3959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3960 if test -z "$ac_err"; then
3962 eval "ac_cv_header_$ac_safe=yes"
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3968 eval "ac_cv_header_$ac_safe=no"
3972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3973 echo "$ac_t""yes" 1>&6
3974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3975 cat >> confdefs.h <<EOF
3976 #define $ac_tr_hdr 1
3980 echo "$ac_t""no" 1>&6
3985 if test $ac_cv_header_krb_h = yes ; then
3986 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3987 echo "configure:3988: checking for main in -lkrb" >&5
3988 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 ac_save_LIBS="$LIBS"
3993 LIBS="-lkrb -ldes $LIBS"
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4004 eval "ac_cv_lib_$ac_lib_var=yes"
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4009 eval "ac_cv_lib_$ac_lib_var=no"
4012 LIBS="$ac_save_LIBS"
4015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4019 echo "$ac_t""no" 1>&6
4024 if test $have_k4 = yes ; then
4025 ol_with_kerberos=found
4026 ol_link_kerberos=yes
4028 KRB_LIBS="-lkrb -ldes"
4033 if test $ol_link_kerberos = yes ; then
4034 cat >> confdefs.h <<\EOF
4035 #define HAVE_KERBEROS 1
4041 if test $ol_with_tls != no ; then
4045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4047 echo "configure:4048: checking for $ac_hdr" >&5
4048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4057 { (eval echo configure:4058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4059 if test -z "$ac_err"; then
4061 eval "ac_cv_header_$ac_safe=yes"
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4067 eval "ac_cv_header_$ac_safe=no"
4071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4072 echo "$ac_t""yes" 1>&6
4073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4074 cat >> confdefs.h <<EOF
4075 #define $ac_tr_hdr 1
4079 echo "$ac_t""no" 1>&6
4084 if test $ac_cv_header_ssl_h = yes ; then
4085 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4086 echo "configure:4087: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4087 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_save_LIBS="$LIBS"
4092 LIBS="-lssl -lcrypto $LIBS"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char SSLeay_add_ssl_algorithms();
4102 SSLeay_add_ssl_algorithms()
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4112 eval "ac_cv_lib_$ac_lib_var=no"
4115 LIBS="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4123 echo "$ac_t""no" 1>&6
4128 if test $have_ssleay = no ; then
4129 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4130 echo "configure:4131: checking for ssl3_accept in -lssl" >&5
4131 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 ac_save_LIBS="$LIBS"
4136 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 /* Override any gcc2 internal prototype to avoid an error. */
4141 /* We use char because int might match the return type of a gcc2
4142 builtin and then its argument prototype would still apply. */
4149 if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4151 eval "ac_cv_lib_$ac_lib_var=yes"
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4156 eval "ac_cv_lib_$ac_lib_var=no"
4159 LIBS="$ac_save_LIBS"
4162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4163 echo "$ac_t""yes" 1>&6
4167 echo "$ac_t""no" 1>&6
4173 if test $have_ssleay = yes ; then
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_SSLEAY 1
4182 if test $need_rsaref = yes; then
4183 cat >> confdefs.h <<\EOF
4184 #define HAVE_RSAREF 1
4188 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4190 TLS_LIBS="-lssl -lcrypto"
4196 if test $ol_link_tls = yes ; then
4197 cat >> confdefs.h <<\EOF
4205 gethostbyname_r gethostbyaddr_r \
4208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4209 echo "configure:4210: checking for $ac_func" >&5
4210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 /* System header to define __stub macros and hopefully few prototypes,
4217 which can conflict with char $ac_func(); below. */
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4226 /* The GNU C library defines this for functions which it implements
4227 to always fail with ENOSYS. Some functions are actually named
4228 something starting with __ and the normal name is an alias. */
4229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239 eval "ac_cv_func_$ac_func=yes"
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4244 eval "ac_cv_func_$ac_func=no"
4249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4252 cat >> confdefs.h <<EOF
4253 #define $ac_tr_func 1
4257 echo "$ac_t""no" 1>&6
4262 if test "$ac_cv_func_ctime_r" = no ; then
4263 ol_cv_func_ctime_r_nargs=0
4265 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4266 echo "configure:4267: checking number of arguments of ctime_r" >&5
4267 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4275 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4278 if { (eval echo configure:4279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4280 ol_cv_func_ctime_r_nargs=3
4282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4290 time_t ti; char *buffer; ctime_r(&ti,buffer);
4293 if { (eval echo configure:4294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4295 ol_cv_func_ctime_r_nargs=2
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 ol_cv_func_ctime_r_nargs=0
4307 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4308 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4309 cat >> confdefs.h <<EOF
4310 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4317 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4318 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4319 echo "configure:4320: checking number of arguments of gethostbyname_r" >&5
4320 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <sys/types.h>
4327 #include <sys/socket.h>
4328 #include <netinet/in.h>
4330 #define BUFSIZE (sizeof(struct hostent)+10)
4332 struct hostent hent; char buffer[BUFSIZE];
4333 int bufsize=BUFSIZE;int h_errno;
4334 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4335 buffer, bufsize, &h_errno);
4338 if { (eval echo configure:4339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4340 ol_cv_func_gethostbyname_r_nargs=5
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #include <sys/types.h>
4349 #include <sys/socket.h>
4350 #include <netinet/in.h>
4352 #define BUFSIZE (sizeof(struct hostent)+10)
4354 struct hostent hent;struct hostent *rhent;
4355 char buffer[BUFSIZE];
4356 int bufsize=BUFSIZE;int h_errno;
4357 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4361 if { (eval echo configure:4362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4363 ol_cv_func_gethostbyname_r_nargs=6
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4368 ol_cv_func_gethostbyname_r_nargs=0
4375 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4376 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4377 cat >> confdefs.h <<EOF
4378 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4384 ol_cv_func_gethostbyname_r_nargs=0
4387 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4388 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4389 echo "configure:4390: checking number of arguments of gethostbyaddr_r" >&5
4390 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 #include <sys/types.h>
4397 #include <sys/socket.h>
4398 #include <netinet/in.h>
4400 #define BUFSIZE (sizeof(struct hostent)+10)
4402 struct hostent hent; char buffer[BUFSIZE];
4404 size_t alen=sizeof(struct in_addr);
4405 int bufsize=BUFSIZE;int h_errno;
4406 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4407 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4410 if { (eval echo configure:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4412 ol_cv_func_gethostbyaddr_r_nargs=7
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 #include <sys/types.h>
4421 #include <sys/socket.h>
4422 #include <netinet/in.h>
4424 #define BUFSIZE (sizeof(struct hostent)+10)
4426 struct hostent hent;
4427 struct hostent *rhent; char buffer[BUFSIZE];
4429 size_t alen=sizeof(struct in_addr);
4430 int bufsize=BUFSIZE;int h_errno;
4431 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4432 alen, AF_INET, &hent, buffer, bufsize,
4436 if { (eval echo configure:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4438 ol_cv_func_gethostbyaddr_r_nargs=8
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 ol_cv_func_gethostbyaddr_r_nargs=0
4450 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4451 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4452 cat >> confdefs.h <<EOF
4453 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4459 ol_cv_func_gethostbyaddr_r_nargs=0
4462 if test "$ac_cv_func_ctime_r" = yes \
4463 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4464 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4465 -a "$ac_cv_func_gethostbyname_r" = yes \
4466 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4467 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4468 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4469 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4470 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4473 cat >> confdefs.h <<\EOF
4474 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4480 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4481 -o $ol_with_threads = posix ; then
4483 for ac_hdr in pthread.h sched.h
4485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4501 eval "ac_cv_header_$ac_safe=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 eval "ac_cv_header_$ac_safe=no"
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_hdr 1
4519 echo "$ac_t""no" 1>&6
4524 if test $ac_cv_header_pthread_h = yes ; then
4525 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4526 echo "configure:4527: checking POSIX thread version" >&5
4527 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4535 # include <pthread.h>
4536 /* this check could be improved */
4537 # ifdef PTHREAD_ONCE_INIT
4538 pthread_version_final
4542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4543 egrep "pthread_version_final" >/dev/null 2>&1; then
4545 ol_pthread_final=yes
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4557 # include <pthread.h>
4558 /* this check could be improved */
4559 # ifdef pthread_once_init
4560 pthread_version_draft4
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4567 ol_pthread_draft4=yes
4570 ol_pthread_draft4=no
4575 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4576 ol_cv_pthread_version=final
4577 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4578 ol_cv_pthread_version=draft4
4580 ol_cv_pthread_version=unknown
4585 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4588 if test $ol_cv_pthread_version = final ; then
4589 cat >> confdefs.h <<\EOF
4590 #define HAVE_PTHREADS_FINAL 1
4593 elif test $ol_cv_pthread_version = draft4 ; then
4594 cat >> confdefs.h <<\EOF
4595 #define HAVE_PTHREADS_D4 1
4599 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4602 # consider threads found
4603 ol_with_threads=found
4606 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4607 echo "configure:4608: checking for LinuxThreads pthread.h" >&5
4608 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 #include <pthread.h>
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4619 ol_cv_header_linux_threads=yes
4622 ol_cv_header_linux_threads=no
4629 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4630 if test $ol_cv_header_linux_threads = yes; then
4631 cat >> confdefs.h <<\EOF
4632 #define HAVE_LINUX_THREADS 1
4639 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4640 echo "configure:4641: checking for pthread_create in default libraries" >&5
4641 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4645 if test "$cross_compiling" = yes; then
4646 ol_cv_pthread_create=yes
4648 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4652 #include <pthread.h>
4654 #define NULL (void*)0
4657 static void *task(p)
4660 return (void *) (p == NULL);
4663 int main(argc, argv)
4670 /* make sure pthread_create() isn't just a stub */
4671 #if HAVE_PTHREADS_D4
4672 status = pthread_create(&t, pthread_attr_default, task, NULL);
4674 status = pthread_create(&t, NULL, task, NULL);
4677 if( status ) return status;
4679 /* make sure pthread_detach() isn't just a stub */
4680 #if HAVE_PTHREADS_D4
4681 status = pthread_detach( &t );
4683 status = pthread_detach( t );
4686 if( status ) return status;
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4694 ol_cv_pthread_create=yes
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4699 ol_cv_pthread_create=no
4706 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4708 if test $ol_cv_pthread_create != no ; then
4709 ol_link_threads=posix
4713 # Pthread try link: -mt (ol_cv_pthread_mt)
4714 if test "$ol_link_threads" = no ; then
4716 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4717 echo "configure:4718: checking for pthread link with -mt" >&5
4718 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4730 #include <pthread.h>
4732 #define NULL (void*)0
4739 #if HAVE_PTHREADS_D4
4740 pthread_create(&t, pthread_attr_default, NULL, NULL);
4741 pthread_detach( &t );
4743 pthread_create(&t, NULL, NULL, NULL);
4744 pthread_detach( t );
4746 #ifdef HAVE_LINUX_THREADS
4747 pthread_kill_other_threads_np();
4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4754 ol_cv_pthread_mt=yes
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4768 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
4770 if test $ol_cv_pthread_mt = yes ; then
4771 ol_link_pthreads="-mt"
4772 ol_link_threads=posix
4776 # Pthread try link: -kthread (ol_cv_pthread_kthread)
4777 if test "$ol_link_threads" = no ; then
4779 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
4780 echo "configure:4781: checking for pthread link with -kthread" >&5
4781 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4787 LIBS="-kthread $LIBS"
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4793 #include <pthread.h>
4795 #define NULL (void*)0
4802 #if HAVE_PTHREADS_D4
4803 pthread_create(&t, pthread_attr_default, NULL, NULL);
4804 pthread_detach( &t );
4806 pthread_create(&t, NULL, NULL, NULL);
4807 pthread_detach( t );
4809 #ifdef HAVE_LINUX_THREADS
4810 pthread_kill_other_threads_np();
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817 ol_cv_pthread_kthread=yes
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4822 ol_cv_pthread_kthread=no
4831 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
4833 if test $ol_cv_pthread_kthread = yes ; then
4834 ol_link_pthreads="-kthread"
4835 ol_link_threads=posix
4839 # Pthread try link: -pthread (ol_cv_pthread_pthread)
4840 if test "$ol_link_threads" = no ; then
4842 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
4843 echo "configure:4844: checking for pthread link with -pthread" >&5
4844 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4850 LIBS="-pthread $LIBS"
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4856 #include <pthread.h>
4858 #define NULL (void*)0
4865 #if HAVE_PTHREADS_D4
4866 pthread_create(&t, pthread_attr_default, NULL, NULL);
4867 pthread_detach( &t );
4869 pthread_create(&t, NULL, NULL, NULL);
4870 pthread_detach( t );
4872 #ifdef HAVE_LINUX_THREADS
4873 pthread_kill_other_threads_np();
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 ol_cv_pthread_pthread=yes
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 ol_cv_pthread_pthread=no
4894 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
4896 if test $ol_cv_pthread_pthread = yes ; then
4897 ol_link_pthreads="-pthread"
4898 ol_link_threads=posix
4902 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
4903 if test "$ol_link_threads" = no ; then
4905 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
4906 echo "configure:4907: checking for pthread link with -pthreads" >&5
4907 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4913 LIBS="-pthreads $LIBS"
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4919 #include <pthread.h>
4921 #define NULL (void*)0
4928 #if HAVE_PTHREADS_D4
4929 pthread_create(&t, pthread_attr_default, NULL, NULL);
4930 pthread_detach( &t );
4932 pthread_create(&t, NULL, NULL, NULL);
4933 pthread_detach( t );
4935 #ifdef HAVE_LINUX_THREADS
4936 pthread_kill_other_threads_np();
4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4943 ol_cv_pthread_pthreads=yes
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4948 ol_cv_pthread_pthreads=no
4957 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
4959 if test $ol_cv_pthread_pthreads = yes ; then
4960 ol_link_pthreads="-pthreads"
4961 ol_link_threads=posix
4965 # Pthread try link: -thread (ol_cv_pthread_thread)
4966 if test "$ol_link_threads" = no ; then
4968 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
4969 echo "configure:4970: checking for pthread link with -thread" >&5
4970 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4976 LIBS="-thread $LIBS"
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4982 #include <pthread.h>
4984 #define NULL (void*)0
4991 #if HAVE_PTHREADS_D4
4992 pthread_create(&t, pthread_attr_default, NULL, NULL);
4993 pthread_detach( &t );
4995 pthread_create(&t, NULL, NULL, NULL);
4996 pthread_detach( t );
4998 #ifdef HAVE_LINUX_THREADS
4999 pthread_kill_other_threads_np();
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5006 ol_cv_pthread_thread=yes
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5011 ol_cv_pthread_thread=no
5020 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5022 if test $ol_cv_pthread_thread = yes ; then
5023 ol_link_pthreads="-thread"
5024 ol_link_threads=posix
5029 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5030 if test "$ol_link_threads" = no ; then
5031 # try -lpthread -lmach -lexc -lc_r
5032 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5033 echo "configure:5034: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5034 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5040 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5046 #include <pthread.h>
5048 #define NULL (void*)0
5055 #if HAVE_PTHREADS_D4
5056 pthread_create(&t, pthread_attr_default, NULL, NULL);
5057 pthread_detach( &t );
5059 pthread_create(&t, NULL, NULL, NULL);
5060 pthread_detach( t );
5062 #ifdef HAVE_LINUX_THREADS
5063 pthread_kill_other_threads_np();
5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5072 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5075 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5084 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5086 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5087 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5088 ol_link_threads=posix
5092 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5093 if test "$ol_link_threads" = no ; then
5094 # try -lpthread -lmach -lexc
5095 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5096 echo "configure:5097: checking for pthread link with -lpthread -lmach -lexc" >&5
5097 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5103 LIBS="-lpthread -lmach -lexc $LIBS"
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5109 #include <pthread.h>
5111 #define NULL (void*)0
5118 #if HAVE_PTHREADS_D4
5119 pthread_create(&t, pthread_attr_default, NULL, NULL);
5120 pthread_detach( &t );
5122 pthread_create(&t, NULL, NULL, NULL);
5123 pthread_detach( t );
5125 #ifdef HAVE_LINUX_THREADS
5126 pthread_kill_other_threads_np();
5131 if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5133 ol_cv_pthread_lpthread_lmach_lexc=yes
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5138 ol_cv_pthread_lpthread_lmach_lexc=no
5147 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5149 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5150 ol_link_pthreads="-lpthread -lmach -lexc"
5151 ol_link_threads=posix
5156 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5157 if test "$ol_link_threads" = no ; then
5158 # try -lpthread -Wl,-woff,85
5159 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5160 echo "configure:5161: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5161 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5167 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5173 #include <pthread.h>
5175 #define NULL (void*)0
5182 #if HAVE_PTHREADS_D4
5183 pthread_create(&t, pthread_attr_default, NULL, NULL);
5184 pthread_detach( &t );
5186 pthread_create(&t, NULL, NULL, NULL);
5187 pthread_detach( t );
5189 #ifdef HAVE_LINUX_THREADS
5190 pthread_kill_other_threads_np();
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 ol_cv_pthread_lib_lpthread_woff=yes
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 ol_cv_pthread_lib_lpthread_woff=no
5211 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5213 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5214 ol_link_pthreads="-lpthread -Wl,-woff,85"
5215 ol_link_threads=posix
5220 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5221 if test "$ol_link_threads" = no ; then
5223 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5224 echo "configure:5225: checking for pthread link with -lpthread" >&5
5225 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5231 LIBS="-lpthread $LIBS"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5237 #include <pthread.h>
5239 #define NULL (void*)0
5246 #if HAVE_PTHREADS_D4
5247 pthread_create(&t, pthread_attr_default, NULL, NULL);
5248 pthread_detach( &t );
5250 pthread_create(&t, NULL, NULL, NULL);
5251 pthread_detach( t );
5253 #ifdef HAVE_LINUX_THREADS
5254 pthread_kill_other_threads_np();
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261 ol_cv_pthread_lpthread=yes
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5266 ol_cv_pthread_lpthread=no
5275 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5277 if test $ol_cv_pthread_lpthread = yes ; then
5278 ol_link_pthreads="-lpthread"
5279 ol_link_threads=posix
5283 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5284 if test "$ol_link_threads" = no ; then
5286 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5287 echo "configure:5288: checking for pthread link with -lc_r" >&5
5288 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5300 #include <pthread.h>
5302 #define NULL (void*)0
5309 #if HAVE_PTHREADS_D4
5310 pthread_create(&t, pthread_attr_default, NULL, NULL);
5311 pthread_detach( &t );
5313 pthread_create(&t, NULL, NULL, NULL);
5314 pthread_detach( t );
5316 #ifdef HAVE_LINUX_THREADS
5317 pthread_kill_other_threads_np();
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5324 ol_cv_pthread_lc_r=yes
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5329 ol_cv_pthread_lc_r=no
5338 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5340 if test $ol_cv_pthread_lc_r = yes ; then
5341 ol_link_pthreads="-lc_r"
5342 ol_link_threads=posix
5347 # Pthread try link: -threads (ol_cv_pthread_threads)
5348 if test "$ol_link_threads" = no ; then
5350 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5351 echo "configure:5352: checking for pthread link with -threads" >&5
5352 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5358 LIBS="-threads $LIBS"
5360 cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5364 #include <pthread.h>
5366 #define NULL (void*)0
5373 #if HAVE_PTHREADS_D4
5374 pthread_create(&t, pthread_attr_default, NULL, NULL);
5375 pthread_detach( &t );
5377 pthread_create(&t, NULL, NULL, NULL);
5378 pthread_detach( t );
5380 #ifdef HAVE_LINUX_THREADS
5381 pthread_kill_other_threads_np();
5386 if { (eval echo configure:5387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5388 ol_cv_pthread_threads=yes
5390 echo "configure: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5393 ol_cv_pthread_threads=no
5402 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5404 if test $ol_cv_pthread_threads = yes ; then
5405 ol_link_pthreads="-threads"
5406 ol_link_threads=posix
5411 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5412 if test "$ol_link_threads" = no ; then
5413 # try -lpthreads -lmach -lexc -lc_r
5414 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5415 echo "configure:5416: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5416 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5422 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5428 #include <pthread.h>
5430 #define NULL (void*)0
5437 #if HAVE_PTHREADS_D4
5438 pthread_create(&t, pthread_attr_default, NULL, NULL);
5439 pthread_detach( &t );
5441 pthread_create(&t, NULL, NULL, NULL);
5442 pthread_detach( t );
5444 #ifdef HAVE_LINUX_THREADS
5445 pthread_kill_other_threads_np();
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5457 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5466 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5468 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5469 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5470 ol_link_threads=posix
5474 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5475 if test "$ol_link_threads" = no ; then
5476 # try -lpthreads -lmach -lexc
5477 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5478 echo "configure:5479: checking for pthread link with -lpthreads -lmach -lexc" >&5
5479 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5485 LIBS="-lpthreads -lmach -lexc $LIBS"
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5491 #include <pthread.h>
5493 #define NULL (void*)0
5500 #if HAVE_PTHREADS_D4
5501 pthread_create(&t, pthread_attr_default, NULL, NULL);
5502 pthread_detach( &t );
5504 pthread_create(&t, NULL, NULL, NULL);
5505 pthread_detach( t );
5507 #ifdef HAVE_LINUX_THREADS
5508 pthread_kill_other_threads_np();
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 ol_cv_pthread_lpthreads_lmach_lexc=yes
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 ol_cv_pthread_lpthreads_lmach_lexc=no
5529 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5531 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5532 ol_link_pthreads="-lpthreads -lmach -lexc"
5533 ol_link_threads=posix
5537 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5538 if test "$ol_link_threads" = no ; then
5539 # try -lpthreads -lexc
5540 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5541 echo "configure:5542: checking for pthread link with -lpthreads -lexc" >&5
5542 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5548 LIBS="-lpthreads -lexc $LIBS"
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5554 #include <pthread.h>
5556 #define NULL (void*)0
5563 #if HAVE_PTHREADS_D4
5564 pthread_create(&t, pthread_attr_default, NULL, NULL);
5565 pthread_detach( &t );
5567 pthread_create(&t, NULL, NULL, NULL);
5568 pthread_detach( t );
5570 #ifdef HAVE_LINUX_THREADS
5571 pthread_kill_other_threads_np();
5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 ol_cv_pthread_lpthreads_lexc=yes
5580 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5583 ol_cv_pthread_lpthreads_lexc=no
5592 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5594 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5595 ol_link_pthreads="-lpthreads -lexc"
5596 ol_link_threads=posix
5601 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5602 if test "$ol_link_threads" = no ; then
5604 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5605 echo "configure:5606: checking for pthread link with -lpthreads" >&5
5606 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5612 LIBS="-lpthreads $LIBS"
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5618 #include <pthread.h>
5620 #define NULL (void*)0
5627 #if HAVE_PTHREADS_D4
5628 pthread_create(&t, pthread_attr_default, NULL, NULL);
5629 pthread_detach( &t );
5631 pthread_create(&t, NULL, NULL, NULL);
5632 pthread_detach( t );
5634 #ifdef HAVE_LINUX_THREADS
5635 pthread_kill_other_threads_np();
5640 if { (eval echo configure:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5642 ol_cv_pthread_lib_lpthreads=yes
5644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5647 ol_cv_pthread_lib_lpthreads=no
5656 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5658 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5659 ol_link_pthreads="-lpthreads"
5660 ol_link_threads=posix
5665 if test $ol_link_threads != no ; then
5666 cat >> confdefs.h <<\EOF
5667 #define HAVE_PTHREADS 1
5671 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5673 save_CPPFLAGS="$CPPFLAGS"
5675 LIBS="$LTHREAD_LIBS $LIBS"
5677 for ac_func in sched_yield pthread_yield
5679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_func" >&5
5681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* System header to define __stub macros and hopefully few prototypes,
5688 which can conflict with char $ac_func(); below. */
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5697 /* The GNU C library defines this for functions which it implements
5698 to always fail with ENOSYS. Some functions are actually named
5699 something starting with __ and the normal name is an alias. */
5700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5708 if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5710 eval "ac_cv_func_$ac_func=yes"
5712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5715 eval "ac_cv_func_$ac_func=no"
5720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5721 echo "$ac_t""yes" 1>&6
5722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5723 cat >> confdefs.h <<EOF
5724 #define $ac_tr_func 1
5728 echo "$ac_t""no" 1>&6
5733 if test $ac_cv_func_sched_yield = no -a \
5734 $ac_cv_func_pthread_yield = no ; then
5735 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5736 echo "configure:5737: checking for sched_yield in -lrt" >&5
5737 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5741 ac_save_LIBS="$LIBS"
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746 /* Override any gcc2 internal prototype to avoid an error. */
5747 /* We use char because int might match the return type of a gcc2
5748 builtin and then its argument prototype would still apply. */
5755 if { (eval echo configure:5756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5757 eval "ac_cv_lib_$ac_lib_var=yes"
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5762 eval "ac_cv_lib_$ac_lib_var=no"
5765 LIBS="$ac_save_LIBS"
5768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5769 echo "$ac_t""yes" 1>&6
5770 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5771 cat >> confdefs.h <<\EOF
5772 #define HAVE_SCHED_YIELD 1
5775 ac_cv_func_sched_yield=yes
5777 echo "$ac_t""no" 1>&6
5778 ac_cv_func_sched_yield=no
5782 if test $ac_cv_func_sched_yield = no -a \
5783 $ac_cv_func_pthread_yield = no ; then
5784 for ac_func in thr_yield
5786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5787 echo "configure:5788: checking for $ac_func" >&5
5788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5791 cat > conftest.$ac_ext <<EOF
5792 #line 5793 "configure"
5793 #include "confdefs.h"
5794 /* System header to define __stub macros and hopefully few prototypes,
5795 which can conflict with char $ac_func(); below. */
5797 /* Override any gcc2 internal prototype to avoid an error. */
5798 /* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */
5804 /* The GNU C library defines this for functions which it implements
5805 to always fail with ENOSYS. Some functions are actually named
5806 something starting with __ and the normal name is an alias. */
5807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5817 eval "ac_cv_func_$ac_func=yes"
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 eval "ac_cv_func_$ac_func=no"
5827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5828 echo "$ac_t""yes" 1>&6
5829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5830 cat >> confdefs.h <<EOF
5831 #define $ac_tr_func 1
5835 echo "$ac_t""no" 1>&6
5840 if test $ac_cv_func_sched_yield = no -a \
5841 $ac_cv_func_pthread_yield = no -a \
5842 "$ac_cv_func_thr_yield" = no ; then
5843 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5846 for ac_func in pthread_kill
5848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5849 echo "configure:5850: checking for $ac_func" >&5
5850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 /* System header to define __stub macros and hopefully few prototypes,
5857 which can conflict with char $ac_func(); below. */
5859 /* Override any gcc2 internal prototype to avoid an error. */
5860 /* We use char because int might match the return type of a gcc2
5861 builtin and then its argument prototype would still apply. */
5866 /* The GNU C library defines this for functions which it implements
5867 to always fail with ENOSYS. Some functions are actually named
5868 something starting with __ and the normal name is an alias. */
5869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5877 if { (eval echo configure:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5879 eval "ac_cv_func_$ac_func=yes"
5881 echo "configure: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5884 eval "ac_cv_func_$ac_func=no"
5889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5890 echo "$ac_t""yes" 1>&6
5891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5892 cat >> confdefs.h <<EOF
5893 #define $ac_tr_func 1
5897 echo "$ac_t""no" 1>&6
5902 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5903 echo "configure:5904: checking for pthread_detach with <pthread.h>" >&5
5904 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5908 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5912 #include <pthread.h>
5914 #define NULL (void*)0
5918 pthread_detach(NULL);
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5923 ol_cv_func_pthread_detach=yes
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5928 ol_cv_func_pthread_detach=no
5934 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5936 if test $ol_cv_func_pthread_detach = no ; then
5937 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5940 cat >> confdefs.h <<\EOF
5941 #define HAVE_PTHREAD_DETACH 1
5946 pthread_setconcurrency \
5947 pthread_getconcurrency \
5948 thr_setconcurrency \
5949 thr_getconcurrency \
5952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5953 echo "configure:5954: checking for $ac_func" >&5
5954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5957 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func(); below. */
5963 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5970 /* The GNU C library defines this for functions which it implements
5971 to always fail with ENOSYS. Some functions are actually named
5972 something starting with __ and the normal name is an alias. */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5981 if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5983 eval "ac_cv_func_$ac_func=yes"
5985 echo "configure: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5988 eval "ac_cv_func_$ac_func=no"
5993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5996 cat >> confdefs.h <<EOF
5997 #define $ac_tr_func 1
6001 echo "$ac_t""no" 1>&6
6007 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6008 echo "configure:6009: checking for pthread_kill_other_threads_np" >&5
6009 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 /* System header to define __stub macros and hopefully few prototypes,
6016 which can conflict with char pthread_kill_other_threads_np(); below. */
6018 /* Override any gcc2 internal prototype to avoid an error. */
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6021 char pthread_kill_other_threads_np();
6025 /* The GNU C library defines this for functions which it implements
6026 to always fail with ENOSYS. Some functions are actually named
6027 something starting with __ and the normal name is an alias. */
6028 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6031 pthread_kill_other_threads_np();
6036 if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6038 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6040 echo "configure: failed program was:" >&5
6041 cat conftest.$ac_ext >&5
6043 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6048 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6049 echo "$ac_t""yes" 1>&6
6052 echo "$ac_t""no" 1>&6
6055 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6056 echo "configure:6057: checking for LinuxThreads implementation" >&5
6057 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6060 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6063 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6068 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6069 echo "configure:6070: checking for LinuxThreads consistency" >&5
6070 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6074 if test $ol_cv_header_linux_threads = yes -a \
6075 $ol_cv_sys_linux_threads = yes; then
6076 ol_cv_linux_threads=yes
6077 elif test $ol_cv_header_linux_threads = no -a \
6078 $ol_cv_sys_linux_threads = no; then
6079 ol_cv_linux_threads=no
6081 ol_cv_linux_threads=error
6086 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6089 if test $ol_cv_linux_threads = error; then
6090 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6093 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6094 echo "configure:6095: checking if pthread_create() works" >&5
6095 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6
6099 if test "$cross_compiling" = yes; then
6100 ol_cv_pthread_create_works=yes
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6106 #include <pthread.h>
6108 #define NULL (void*)0
6111 static void *task(p)
6114 return (void *) (p == NULL);
6117 int main(argc, argv)
6122 #if HAVE_PTHREADS_D4
6123 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6125 exit(pthread_create(&t, NULL, task, NULL));
6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6132 ol_cv_pthread_create_works=yes
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6137 ol_cv_pthread_create_works=no
6144 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6146 if test $ol_cv_pthread_create_works = no ; then
6147 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6150 if test $ol_with_yielding_select = auto ; then
6151 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6152 echo "configure:6153: checking if select yields when using pthreads" >&5
6153 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6
6157 if test "$cross_compiling" = yes; then
6159 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6165 #include <sys/types.h>
6166 #include <sys/time.h>
6168 #include <pthread.h>
6170 #define NULL (void*) 0
6173 static int fildes[2];
6175 static void *task(p)
6187 FD_SET(fildes[0], &rfds);
6189 /* we're not interested in any fds */
6190 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6197 exit(0); /* if we exit here, the select blocked the whole process */
6200 int main(argc, argv)
6206 /* create a pipe to select */
6207 if(pipe(&fildes[0])) {
6212 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6213 (void) pthread_setconcurrency(2);
6215 #ifdef HAVE_THR_SETCONCURRENCY
6216 /* Set Solaris LWP concurrency to 2 */
6217 thr_setconcurrency(2);
6221 #if HAVE_PTHREADS_D4
6222 pthread_create(&t, pthread_attr_default, task, NULL);
6224 pthread_create(&t, NULL, task, NULL);
6227 #if HAVE_SCHED_YIELD
6228 sched_yield(); /* make sure task runs first */
6230 #ifdef HAVE_PTHREAD_YIELD
6231 pthread_yield(); /* make sure task runs first */
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6240 ol_cv_pthread_select_yields=no
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 ol_cv_pthread_select_yields=yes
6252 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6254 if test $ol_cv_pthread_select_yields = yes ; then
6255 ol_with_yielding_select=yes
6259 CPPFLAGS="$save_CPPFLAGS"
6262 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6266 if test $ol_with_threads = posix ; then
6267 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6271 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6272 -o $ol_with_threads = mach ; then
6274 for ac_hdr in mach/cthreads.h
6276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6278 echo "configure:6279: checking for $ac_hdr" >&5
6279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6282 cat > conftest.$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6288 { (eval echo configure:6289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6290 if test -z "$ac_err"; then
6292 eval "ac_cv_header_$ac_safe=yes"
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6298 eval "ac_cv_header_$ac_safe=no"
6302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6303 echo "$ac_t""yes" 1>&6
6304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6305 cat >> confdefs.h <<EOF
6306 #define $ac_tr_hdr 1
6310 echo "$ac_t""no" 1>&6
6314 if test $ac_cv_header_mach_cthreads_h = yes ; then
6315 ol_with_threads=found
6317 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6318 echo "configure:6319: checking for cthread_fork" >&5
6319 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6320 echo $ac_n "(cached) $ac_c" 1>&6
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 /* System header to define __stub macros and hopefully few prototypes,
6326 which can conflict with char cthread_fork(); below. */
6328 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6331 char cthread_fork();
6335 /* The GNU C library defines this for functions which it implements
6336 to always fail with ENOSYS. Some functions are actually named
6337 something starting with __ and the normal name is an alias. */
6338 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6348 eval "ac_cv_func_cthread_fork=yes"
6350 echo "configure: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6353 eval "ac_cv_func_cthread_fork=no"
6358 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6359 echo "$ac_t""yes" 1>&6
6362 echo "$ac_t""no" 1>&6
6366 if test $ol_link_threads = no ; then
6367 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6368 echo "configure:6369: checking for cthread_fork with -all_load" >&5
6369 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6374 LIBS="-all_load $LIBS"
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 #include <mach/cthreads.h>
6381 cthread_fork((void *)0, (void *)0);
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6387 ol_cv_cthread_all_load=yes
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6392 ol_cv_cthread_all_load=no
6399 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6401 if test $ol_cv_cthread_all_load = yes ; then
6402 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6403 ol_link_threads=mach
6407 if test $ol_link_threads != no ; then
6408 : check for cthread specific functionality here
6409 cat >> confdefs.h <<\EOF
6410 #define HAVE_MACH_CTHREADS 1
6414 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6418 if test $ol_with_threads = mach ; then
6419 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6423 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6424 -o $ol_with_threads = lwp ; then
6426 for ac_hdr in thread.h synch.h
6428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6430 echo "configure:6431: checking for $ac_hdr" >&5
6431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6440 { (eval echo configure:6441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6442 if test -z "$ac_err"; then
6444 eval "ac_cv_header_$ac_safe=yes"
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6450 eval "ac_cv_header_$ac_safe=no"
6454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6455 echo "$ac_t""yes" 1>&6
6456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6457 cat >> confdefs.h <<EOF
6458 #define $ac_tr_hdr 1
6462 echo "$ac_t""no" 1>&6
6466 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6467 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6468 echo "configure:6469: checking for thr_create in -lthread" >&5
6469 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 ac_save_LIBS="$LIBS"
6474 LIBS="-lthread $LIBS"
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* Override any gcc2 internal prototype to avoid an error. */
6479 /* We use char because int might match the return type of a gcc2
6480 builtin and then its argument prototype would still apply. */
6487 if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6489 eval "ac_cv_lib_$ac_lib_var=yes"
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 eval "ac_cv_lib_$ac_lib_var=no"
6497 LIBS="$ac_save_LIBS"
6500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6501 echo "$ac_t""yes" 1>&6
6504 echo "$ac_t""no" 1>&6
6509 if test $have_thr = yes ; then
6510 cat >> confdefs.h <<\EOF
6514 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6517 if test $ol_with_yielding_select = auto ; then
6518 ol_with_yielding_select=yes
6522 thr_setconcurrency \
6523 thr_getconcurrency \
6526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_func" >&5
6528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* System header to define __stub macros and hopefully few prototypes,
6535 which can conflict with char $ac_func(); below. */
6537 /* Override any gcc2 internal prototype to avoid an error. */
6538 /* We use char because int might match the return type of a gcc2
6539 builtin and then its argument prototype would still apply. */
6544 /* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6557 eval "ac_cv_func_$ac_func=yes"
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 eval "ac_cv_func_$ac_func=no"
6567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6568 echo "$ac_t""yes" 1>&6
6569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6570 cat >> confdefs.h <<EOF
6571 #define $ac_tr_func 1
6575 echo "$ac_t""no" 1>&6
6582 for ac_hdr in lwp/lwp.h
6584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6586 echo "configure:6587: checking for $ac_hdr" >&5
6587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6596 { (eval echo configure:6597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6598 if test -z "$ac_err"; then
6600 eval "ac_cv_header_$ac_safe=yes"
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6606 eval "ac_cv_header_$ac_safe=no"
6610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6613 cat >> confdefs.h <<EOF
6614 #define $ac_tr_hdr 1
6618 echo "$ac_t""no" 1>&6
6622 if test $ac_cv_header_lwp_lwp_h = yes ; then
6623 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6624 echo "configure:6625: checking for lwp_create in -llwp" >&5
6625 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6627 echo $ac_n "(cached) $ac_c" 1>&6
6629 ac_save_LIBS="$LIBS"
6631 cat > conftest.$ac_ext <<EOF
6632 #line 6633 "configure"
6633 #include "confdefs.h"
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6645 eval "ac_cv_lib_$ac_lib_var=yes"
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6650 eval "ac_cv_lib_$ac_lib_var=no"
6653 LIBS="$ac_save_LIBS"
6656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6657 echo "$ac_t""yes" 1>&6
6660 echo "$ac_t""no" 1>&6
6665 if test $have_lwp = yes ; then
6666 cat >> confdefs.h <<\EOF
6670 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6673 if test $ol_with_yielding_select = auto ; then
6674 ol_with_yielding_select=no
6680 if test $ol_with_yielding_select = yes ; then
6681 cat >> confdefs.h <<\EOF
6682 #define HAVE_YIELDING_SELECT 1
6687 if test $ol_with_threads = manual ; then
6690 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6692 for ac_hdr in pthread.h sched.h
6694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6696 echo "configure:6697: checking for $ac_hdr" >&5
6697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6706 { (eval echo configure:6707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6708 if test -z "$ac_err"; then
6710 eval "ac_cv_header_$ac_safe=yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 eval "ac_cv_header_$ac_safe=no"
6720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6723 cat >> confdefs.h <<EOF
6724 #define $ac_tr_hdr 1
6728 echo "$ac_t""no" 1>&6
6732 for ac_func in sched_yield pthread_yield
6734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6735 echo "configure:6736: checking for $ac_func" >&5
6736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6742 /* System header to define __stub macros and hopefully few prototypes,
6743 which can conflict with char $ac_func(); below. */
6745 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6752 /* The GNU C library defines this for functions which it implements
6753 to always fail with ENOSYS. Some functions are actually named
6754 something starting with __ and the normal name is an alias. */
6755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6765 eval "ac_cv_func_$ac_func=yes"
6767 echo "configure: failed program was:" >&5
6768 cat conftest.$ac_ext >&5
6770 eval "ac_cv_func_$ac_func=no"
6775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6776 echo "$ac_t""yes" 1>&6
6777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6778 cat >> confdefs.h <<EOF
6779 #define $ac_tr_func 1
6783 echo "$ac_t""no" 1>&6
6788 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6789 echo "configure:6790: checking for LinuxThreads pthread.h" >&5
6790 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6791 echo $ac_n "(cached) $ac_c" 1>&6
6793 cat > conftest.$ac_ext <<EOF
6794 #line 6795 "configure"
6795 #include "confdefs.h"
6796 #include <pthread.h>
6798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6801 ol_cv_header_linux_threads=yes
6804 ol_cv_header_linux_threads=no
6811 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6812 if test $ol_cv_header_linux_threads = yes; then
6813 cat >> confdefs.h <<\EOF
6814 #define HAVE_LINUX_THREADS 1
6820 for ac_hdr in mach/cthreads.h
6822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6824 echo "configure:6825: checking for $ac_hdr" >&5
6825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6834 { (eval echo configure:6835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6836 if test -z "$ac_err"; then
6838 eval "ac_cv_header_$ac_safe=yes"
6841 echo "configure: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6844 eval "ac_cv_header_$ac_safe=no"
6848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6851 cat >> confdefs.h <<EOF
6852 #define $ac_tr_hdr 1
6856 echo "$ac_t""no" 1>&6
6860 for ac_hdr in lwp/lwp.h
6862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6864 echo "configure:6865: checking for $ac_hdr" >&5
6865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6874 { (eval echo configure:6875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6876 if test -z "$ac_err"; then
6878 eval "ac_cv_header_$ac_safe=yes"
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 eval "ac_cv_header_$ac_safe=no"
6888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6889 echo "$ac_t""yes" 1>&6
6890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6891 cat >> confdefs.h <<EOF
6892 #define $ac_tr_hdr 1
6896 echo "$ac_t""no" 1>&6
6900 for ac_hdr in thread.h synch.h
6902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6904 echo "configure:6905: checking for $ac_hdr" >&5
6905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6906 echo $ac_n "(cached) $ac_c" 1>&6
6908 cat > conftest.$ac_ext <<EOF
6909 #line 6910 "configure"
6910 #include "confdefs.h"
6913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6914 { (eval echo configure:6915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6916 if test -z "$ac_err"; then
6918 eval "ac_cv_header_$ac_safe=yes"
6921 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6924 eval "ac_cv_header_$ac_safe=no"
6928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6931 cat >> confdefs.h <<EOF
6932 #define $ac_tr_hdr 1
6936 echo "$ac_t""no" 1>&6
6942 if test $ol_link_threads != no ; then
6943 cat >> confdefs.h <<\EOF
6947 cat >> confdefs.h <<\EOF
6948 #define _REENTRANT 1
6951 cat >> confdefs.h <<\EOF
6952 #define THREAD_SAFE 1
6955 cat >> confdefs.h <<\EOF
6956 #define _THREAD_SAFE 1
6959 cat >> confdefs.h <<\EOF
6960 #define THREADSAFE 1
6963 cat >> confdefs.h <<\EOF
6964 #define _THREADSAFE 1
6968 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6969 echo "configure:6970: checking for thread specific errno" >&5
6970 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6974 cat > conftest.$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 ol_cv_errno_thread_specific=yes
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6989 ol_cv_errno_thread_specific=no
6995 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6997 if test $ol_cv_errno_thread_specific != yes ; then
6998 LIBS="$LTHREAD_LIBS $LIBS"
7004 if test $ol_link_threads = no ; then
7005 if test $ol_with_threads = yes ; then
7006 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7009 if test $ol_with_threads = auto ; then
7010 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7014 cat >> confdefs.h <<\EOF
7015 #define NO_THREADS 1
7021 if test $ol_link_threads != no ; then
7022 cat >> confdefs.h <<\EOF
7023 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7030 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7031 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7032 echo "configure:7033: checking for DB2 library" >&5
7033 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7034 echo $ac_n "(cached) $ac_c" 1>&6
7037 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7038 echo "configure:7039: checking for db_open in -ldb" >&5
7039 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7043 ac_save_LIBS="$LIBS"
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7048 /* Override any gcc2 internal prototype to avoid an error. */
7049 /* We use char because int might match the return type of a gcc2
7050 builtin and then its argument prototype would still apply. */
7057 if { (eval echo configure:7058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7059 eval "ac_cv_lib_$ac_lib_var=yes"
7061 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7064 eval "ac_cv_lib_$ac_lib_var=no"
7067 LIBS="$ac_save_LIBS"
7070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7071 echo "$ac_t""yes" 1>&6
7074 echo "$ac_t""no" 1>&6
7082 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7088 echo "configure:7089: checking for $ac_hdr" >&5
7089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7098 { (eval echo configure:7099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7100 if test -z "$ac_err"; then
7102 eval "ac_cv_header_$ac_safe=yes"
7105 echo "configure: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 eval "ac_cv_header_$ac_safe=no"
7112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7113 echo "$ac_t""yes" 1>&6
7114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7115 cat >> confdefs.h <<EOF
7116 #define $ac_tr_hdr 1
7120 echo "$ac_t""no" 1>&6
7124 if test $ac_cv_header_db_h = yes ; then
7125 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7126 echo "configure:7127: checking if db.h is DB2" >&5
7127 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7136 /* this check could be improved */
7137 # ifdef DB_VERSION_MAJOR
7138 # if DB_VERSION_MAJOR == 2
7144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7145 egrep "__db_version_2" >/dev/null 2>&1; then
7147 ol_cv_header_db2=yes
7156 echo "$ac_t""$ol_cv_header_db2" 1>&6
7163 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7164 echo "configure:7165: checking for Berkeley DB2" >&5
7165 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7169 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7170 ol_cv_berkeley_db2=no
7172 ol_cv_berkeley_db2=yes
7177 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7178 if test $ol_cv_berkeley_db2 = yes ; then
7179 cat >> confdefs.h <<\EOF
7180 #define HAVE_BERKELEY_DB2 1
7186 if test $ol_cv_berkeley_db2 = yes ; then
7188 ol_with_ldbm_api=db2
7190 if test $ol_with_ldbm_type = hash ; then
7191 cat >> confdefs.h <<\EOF
7192 #define LDBM_USE_DBHASH 1
7196 cat >> confdefs.h <<\EOF
7197 #define LDBM_USE_DBBTREE 1
7202 if test $ol_cv_lib_db2 != yes ; then
7203 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7209 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7213 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7214 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7215 echo "configure:7216: checking for Berkeley DB library" >&5
7216 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7217 echo $ac_n "(cached) $ac_c" 1>&6
7220 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7221 echo "configure:7222: checking for dbopen" >&5
7222 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7223 echo $ac_n "(cached) $ac_c" 1>&6
7225 cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7228 /* System header to define __stub macros and hopefully few prototypes,
7229 which can conflict with char dbopen(); below. */
7231 /* Override any gcc2 internal prototype to avoid an error. */
7232 /* We use char because int might match the return type of a gcc2
7233 builtin and then its argument prototype would still apply. */
7238 /* The GNU C library defines this for functions which it implements
7239 to always fail with ENOSYS. Some functions are actually named
7240 something starting with __ and the normal name is an alias. */
7241 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7249 if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7251 eval "ac_cv_func_dbopen=yes"
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7256 eval "ac_cv_func_dbopen=no"
7261 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7262 echo "$ac_t""yes" 1>&6
7265 echo "$ac_t""no" 1>&6
7267 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7268 echo "configure:7269: checking for dbopen in -ldb" >&5
7269 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 ac_save_LIBS="$LIBS"
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7278 /* Override any gcc2 internal prototype to avoid an error. */
7279 /* We use char because int might match the return type of a gcc2
7280 builtin and then its argument prototype would still apply. */
7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7289 eval "ac_cv_lib_$ac_lib_var=yes"
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7294 eval "ac_cv_lib_$ac_lib_var=no"
7297 LIBS="$ac_save_LIBS"
7300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7301 echo "$ac_t""yes" 1>&6
7304 echo "$ac_t""no" 1>&6
7315 echo "$ac_t""$ol_cv_lib_db" 1>&6
7318 for ac_hdr in db_185.h
7320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7322 echo "configure:7323: checking for $ac_hdr" >&5
7323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7332 { (eval echo configure:7333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7334 if test -z "$ac_err"; then
7336 eval "ac_cv_header_$ac_safe=yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 eval "ac_cv_header_$ac_safe=no"
7346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7347 echo "$ac_t""yes" 1>&6
7348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7349 cat >> confdefs.h <<EOF
7350 #define $ac_tr_hdr 1
7354 echo "$ac_t""no" 1>&6
7358 if test "$ol_cv_header_db2" = yes ; then
7360 ol_cv_header_db=$ac_cv_header_db_185_h
7362 ol_cv_header_db=$ac_cv_header_db_h
7367 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7368 echo "configure:7369: checking for Berkeley DB" >&5
7369 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7373 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7374 ol_cv_berkeley_db=no
7376 ol_cv_berkeley_db=yes
7381 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7382 if test $ol_cv_berkeley_db = yes ; then
7383 cat >> confdefs.h <<\EOF
7384 #define HAVE_BERKELEY_DB 1
7390 if test $ol_cv_berkeley_db = yes ; then
7394 if test $ol_with_ldbm_type = hash ; then
7395 cat >> confdefs.h <<\EOF
7396 #define LDBM_USE_DBHASH 1
7400 cat >> confdefs.h <<\EOF
7401 #define LDBM_USE_DBBTREE 1
7406 if test $ol_cv_lib_db != yes ; then
7407 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7412 if test $ol_with_ldbm_api = manual ; then
7415 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7417 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7421 echo "configure:7422: checking for $ac_hdr" >&5
7422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6
7425 cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7431 { (eval echo configure:7432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7433 if test -z "$ac_err"; then
7435 eval "ac_cv_header_$ac_safe=yes"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7441 eval "ac_cv_header_$ac_safe=no"
7445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7448 cat >> confdefs.h <<EOF
7449 #define $ac_tr_hdr 1
7453 echo "$ac_t""no" 1>&6
7459 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7460 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7461 ol_with_ldbm_api=none
7464 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7465 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7466 echo "configure:7467: checking for MDBM library" >&5
7467 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7471 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7472 echo "configure:7473: checking for mdbm_set_chain" >&5
7473 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7474 echo $ac_n "(cached) $ac_c" 1>&6
7476 cat > conftest.$ac_ext <<EOF
7477 #line 7478 "configure"
7478 #include "confdefs.h"
7479 /* System header to define __stub macros and hopefully few prototypes,
7480 which can conflict with char mdbm_set_chain(); below. */
7482 /* Override any gcc2 internal prototype to avoid an error. */
7483 /* We use char because int might match the return type of a gcc2
7484 builtin and then its argument prototype would still apply. */
7485 char mdbm_set_chain();
7489 /* The GNU C library defines this for functions which it implements
7490 to always fail with ENOSYS. Some functions are actually named
7491 something starting with __ and the normal name is an alias. */
7492 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7500 if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7502 eval "ac_cv_func_mdbm_set_chain=yes"
7504 echo "configure: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7507 eval "ac_cv_func_mdbm_set_chain=no"
7512 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7513 echo "$ac_t""yes" 1>&6
7516 echo "$ac_t""no" 1>&6
7518 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7519 echo "configure:7520: checking for mdbm_set_chain in -lmdbm" >&5
7520 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7522 echo $ac_n "(cached) $ac_c" 1>&6
7524 ac_save_LIBS="$LIBS"
7526 cat > conftest.$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7529 /* Override any gcc2 internal prototype to avoid an error. */
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7532 char mdbm_set_chain();
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540 eval "ac_cv_lib_$ac_lib_var=yes"
7542 echo "configure: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7545 eval "ac_cv_lib_$ac_lib_var=no"
7548 LIBS="$ac_save_LIBS"
7551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7552 echo "$ac_t""yes" 1>&6
7553 ol_cv_lib_mdbm=-lmdbm
7555 echo "$ac_t""no" 1>&6
7566 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7569 for ac_hdr in mdbm.h
7571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7573 echo "configure:7574: checking for $ac_hdr" >&5
7574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7583 { (eval echo configure:7584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7585 if test -z "$ac_err"; then
7587 eval "ac_cv_header_$ac_safe=yes"
7590 echo "configure: failed program was:" >&5
7591 cat conftest.$ac_ext >&5
7593 eval "ac_cv_header_$ac_safe=no"
7597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7600 cat >> confdefs.h <<EOF
7601 #define $ac_tr_hdr 1
7605 echo "$ac_t""no" 1>&6
7609 echo $ac_n "checking for db""... $ac_c" 1>&6
7610 echo "configure:7611: checking for db" >&5
7611 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7612 echo $ac_n "(cached) $ac_c" 1>&6
7615 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7623 echo "$ac_t""$ol_cv_mdbm" 1>&6
7624 if test $ol_cv_mdbm = yes ; then
7625 cat >> confdefs.h <<\EOF
7632 if test $ol_cv_mdbm = yes ; then
7634 ol_with_ldbm_api=mdbm
7635 if test $ol_cv_lib_mdbm != yes ; then
7636 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7641 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7642 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7643 echo "configure:7644: checking for GDBM library" >&5
7644 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7648 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7649 echo "configure:7650: checking for gdbm_open" >&5
7650 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 /* System header to define __stub macros and hopefully few prototypes,
7657 which can conflict with char gdbm_open(); below. */
7659 /* Override any gcc2 internal prototype to avoid an error. */
7660 /* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */
7666 /* The GNU C library defines this for functions which it implements
7667 to always fail with ENOSYS. Some functions are actually named
7668 something starting with __ and the normal name is an alias. */
7669 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7679 eval "ac_cv_func_gdbm_open=yes"
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7684 eval "ac_cv_func_gdbm_open=no"
7689 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7690 echo "$ac_t""yes" 1>&6
7693 echo "$ac_t""no" 1>&6
7695 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7696 echo "configure:7697: checking for gdbm_open in -lgdbm" >&5
7697 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7699 echo $ac_n "(cached) $ac_c" 1>&6
7701 ac_save_LIBS="$LIBS"
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 /* Override any gcc2 internal prototype to avoid an error. */
7707 /* We use char because int might match the return type of a gcc2
7708 builtin and then its argument prototype would still apply. */
7715 if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7717 eval "ac_cv_lib_$ac_lib_var=yes"
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7722 eval "ac_cv_lib_$ac_lib_var=no"
7725 LIBS="$ac_save_LIBS"
7728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7729 echo "$ac_t""yes" 1>&6
7730 ol_cv_lib_gdbm=-lgdbm
7732 echo "$ac_t""no" 1>&6
7743 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7746 for ac_hdr in gdbm.h
7748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7750 echo "configure:7751: checking for $ac_hdr" >&5
7751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7752 echo $ac_n "(cached) $ac_c" 1>&6
7754 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure"
7756 #include "confdefs.h"
7759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7760 { (eval echo configure:7761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7762 if test -z "$ac_err"; then
7764 eval "ac_cv_header_$ac_safe=yes"
7767 echo "configure: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7770 eval "ac_cv_header_$ac_safe=no"
7774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7777 cat >> confdefs.h <<EOF
7778 #define $ac_tr_hdr 1
7782 echo "$ac_t""no" 1>&6
7786 echo $ac_n "checking for db""... $ac_c" 1>&6
7787 echo "configure:7788: checking for db" >&5
7788 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7792 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
7800 echo "$ac_t""$ol_cv_gdbm" 1>&6
7801 if test $ol_cv_gdbm = yes ; then
7802 cat >> confdefs.h <<\EOF
7809 if test $ol_cv_gdbm = yes ; then
7811 ol_with_ldbm_api=gdbm
7813 if test $ol_cv_lib_gdbm != yes ; then
7814 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
7819 if test $ol_with_ldbm_api = auto ; then
7820 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
7821 elif test $ol_with_ldbm_api = ndbm ; then
7822 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
7823 echo "configure:7824: checking for NDBM library" >&5
7824 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7828 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
7829 echo "configure:7830: checking for dbm_open" >&5
7830 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7833 cat > conftest.$ac_ext <<EOF
7834 #line 7835 "configure"
7835 #include "confdefs.h"
7836 /* System header to define __stub macros and hopefully few prototypes,
7837 which can conflict with char dbm_open(); below. */
7839 /* Override any gcc2 internal prototype to avoid an error. */
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7846 /* The GNU C library defines this for functions which it implements
7847 to always fail with ENOSYS. Some functions are actually named
7848 something starting with __ and the normal name is an alias. */
7849 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
7857 if { (eval echo configure:7858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7859 eval "ac_cv_func_dbm_open=yes"
7861 echo "configure: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7864 eval "ac_cv_func_dbm_open=no"
7869 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
7870 echo "$ac_t""yes" 1>&6
7873 echo "$ac_t""no" 1>&6
7875 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
7876 echo "configure:7877: checking for dbm_open in -lndbm" >&5
7877 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
7878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7881 ac_save_LIBS="$LIBS"
7883 cat > conftest.$ac_ext <<EOF
7884 #line 7885 "configure"
7885 #include "confdefs.h"
7886 /* Override any gcc2 internal prototype to avoid an error. */
7887 /* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7895 if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7897 eval "ac_cv_lib_$ac_lib_var=yes"
7899 echo "configure: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7902 eval "ac_cv_lib_$ac_lib_var=no"
7905 LIBS="$ac_save_LIBS"
7908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7909 echo "$ac_t""yes" 1>&6
7910 ol_cv_lib_ndbm=-lndbm
7912 echo "$ac_t""no" 1>&6
7914 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
7915 echo "configure:7916: checking for dbm_open in -ldbm" >&5
7916 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
7917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7918 echo $ac_n "(cached) $ac_c" 1>&6
7920 ac_save_LIBS="$LIBS"
7922 cat > conftest.$ac_ext <<EOF
7923 #line 7924 "configure"
7924 #include "confdefs.h"
7925 /* Override any gcc2 internal prototype to avoid an error. */
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7934 if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7936 eval "ac_cv_lib_$ac_lib_var=yes"
7938 echo "configure: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7941 eval "ac_cv_lib_$ac_lib_var=no"
7944 LIBS="$ac_save_LIBS"
7947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7948 echo "$ac_t""yes" 1>&6
7949 ol_cv_lib_ndbm=-ldbm
7951 echo "$ac_t""no" 1>&6
7964 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
7967 for ac_hdr in ndbm.h
7969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7971 echo "configure:7972: checking for $ac_hdr" >&5
7972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7983 if test -z "$ac_err"; then
7985 eval "ac_cv_header_$ac_safe=yes"
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7991 eval "ac_cv_header_$ac_safe=no"
7995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7996 echo "$ac_t""yes" 1>&6
7997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7998 cat >> confdefs.h <<EOF
7999 #define $ac_tr_hdr 1
8003 echo "$ac_t""no" 1>&6
8007 echo $ac_n "checking for db""... $ac_c" 1>&6
8008 echo "configure:8009: checking for db" >&5
8009 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8013 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8021 echo "$ac_t""$ol_cv_ndbm" 1>&6
8022 if test $ol_cv_ndbm = yes ; then
8023 cat >> confdefs.h <<\EOF
8030 if test $ol_cv_ndbm = yes ; then
8032 ol_with_ldbm_api=ndbm
8034 if test $ol_cv_lib_ndbm != yes ; then
8035 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8040 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8041 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8042 if test $ol_enable_ldbm = yes ; then
8043 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8046 echo "configure: warning: disabling LDBM" 1>&2
8050 if test $ol_enable_wrappers != no ; then
8051 for ac_hdr in tcpd.h
8053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8055 echo "configure:8056: checking for $ac_hdr" >&5
8056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8057 echo $ac_n "(cached) $ac_c" 1>&6
8059 cat > conftest.$ac_ext <<EOF
8060 #line 8061 "configure"
8061 #include "confdefs.h"
8064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8065 { (eval echo configure:8066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8067 if test -z "$ac_err"; then
8069 eval "ac_cv_header_$ac_safe=yes"
8072 echo "configure: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8075 eval "ac_cv_header_$ac_safe=no"
8079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8082 cat >> confdefs.h <<EOF
8083 #define $ac_tr_hdr 1
8087 echo "$ac_t""no" 1>&6
8092 if test $ac_cv_header_tcpd_h != yes ; then
8095 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8096 echo "configure:8097: checking for main in -lwrap" >&5
8097 ac_lib_var=`echo wrap'_'main | 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"
8111 if { (eval echo configure:8112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8113 eval "ac_cv_lib_$ac_lib_var=yes"
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8118 eval "ac_cv_lib_$ac_lib_var=no"
8121 LIBS="$ac_save_LIBS"
8124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8125 echo "$ac_t""yes" 1>&6
8128 echo "$ac_t""no" 1>&6
8134 if test $have_wrappers = yes ; then
8135 cat >> confdefs.h <<\EOF
8139 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8141 echo "configure: warning: could not find -lwrap" 1>&2
8142 if test $ol_enable_wrappers = yes ; then
8143 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8146 echo "configure: warning: disabling wrappers support" 1>&2
8147 ol_enable_wrappers=no
8151 if test $ol_enable_syslog != no ; then
8152 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8153 echo "configure:8154: checking for openlog" >&5
8154 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char openlog(); below. */
8163 /* Override any gcc2 internal prototype to avoid an error. */
8164 /* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8170 /* The GNU C library defines this for functions which it implements
8171 to always fail with ENOSYS. Some functions are actually named
8172 something starting with __ and the normal name is an alias. */
8173 #if defined (__stub_openlog) || defined (__stub___openlog)
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8183 eval "ac_cv_func_openlog=yes"
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8188 eval "ac_cv_func_openlog=no"
8193 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8194 echo "$ac_t""yes" 1>&6
8197 echo "$ac_t""no" 1>&6
8200 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8201 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8203 ol_enable_syslog=$ac_cv_func_openlog
8206 if test $ol_enable_dmalloc != no ; then
8207 for ac_hdr in dmalloc.h
8209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8211 echo "configure:8212: checking for $ac_hdr" >&5
8212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8221 { (eval echo configure:8222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8223 if test -z "$ac_err"; then
8225 eval "ac_cv_header_$ac_safe=yes"
8228 echo "configure: failed program was:" >&5
8229 cat conftest.$ac_ext >&5
8231 eval "ac_cv_header_$ac_safe=no"
8235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8236 echo "$ac_t""yes" 1>&6
8237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8238 cat >> confdefs.h <<EOF
8239 #define $ac_tr_hdr 1
8243 echo "$ac_t""no" 1>&6
8247 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8248 echo "configure:8249: checking for dmalloc_shutdown in -ldmalloc" >&5
8249 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8253 ac_save_LIBS="$LIBS"
8254 LIBS="-ldmalloc $LIBS"
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* Override any gcc2 internal prototype to avoid an error. */
8259 /* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8261 char dmalloc_shutdown();
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8269 eval "ac_cv_lib_$ac_lib_var=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 eval "ac_cv_lib_$ac_lib_var=no"
8277 LIBS="$ac_save_LIBS"
8280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8281 echo "$ac_t""yes" 1>&6
8282 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8284 cat >> confdefs.h <<EOF
8285 #define $ac_tr_lib 1
8288 LIBS="-ldmalloc $LIBS"
8291 echo "$ac_t""no" 1>&6
8296 if test $ol_enable_tcl != no ; then
8299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8301 echo "configure:8302: checking for $ac_hdr" >&5
8302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8305 cat > conftest.$ac_ext <<EOF
8306 #line 8307 "configure"
8307 #include "confdefs.h"
8310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8311 { (eval echo configure:8312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8313 if test -z "$ac_err"; then
8315 eval "ac_cv_header_$ac_safe=yes"
8318 echo "configure: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8321 eval "ac_cv_header_$ac_safe=no"
8325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8326 echo "$ac_t""yes" 1>&6
8327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8328 cat >> confdefs.h <<EOF
8329 #define $ac_tr_hdr 1
8333 echo "$ac_t""no" 1>&6
8338 if test $ac_cv_header_tcl_h != yes ; then
8341 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8342 echo "configure:8343: checking for main in -ltcl" >&5
8343 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8347 ac_save_LIBS="$LIBS"
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8357 if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8359 eval "ac_cv_lib_$ac_lib_var=yes"
8361 echo "configure: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8364 eval "ac_cv_lib_$ac_lib_var=no"
8367 LIBS="$ac_save_LIBS"
8370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8371 echo "$ac_t""yes" 1>&6
8372 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8374 echo "$ac_t""no" 1>&6
8379 if test $have_tcl != yes; then
8380 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8381 echo "configure:8382: checking for main in -ltcl7.6" >&5
8382 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8386 ac_save_LIBS="$LIBS"
8387 LIBS="-ltcl7.6 $LIBS"
8388 cat > conftest.$ac_ext <<EOF
8389 #line 8390 "configure"
8390 #include "confdefs.h"
8396 if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8398 eval "ac_cv_lib_$ac_lib_var=yes"
8400 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5
8403 eval "ac_cv_lib_$ac_lib_var=no"
8406 LIBS="$ac_save_LIBS"
8409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8411 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8413 echo "$ac_t""no" 1>&6
8419 if test $have_tcl != yes; then
8420 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8421 echo "configure:8422: checking for main in -ltcl8.0" >&5
8422 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8424 echo $ac_n "(cached) $ac_c" 1>&6
8426 ac_save_LIBS="$LIBS"
8427 LIBS="-ltcl8.0 $LIBS"
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8436 if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8438 eval "ac_cv_lib_$ac_lib_var=yes"
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8443 eval "ac_cv_lib_$ac_lib_var=no"
8446 LIBS="$ac_save_LIBS"
8449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8450 echo "$ac_t""yes" 1>&6
8451 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8453 echo "$ac_t""no" 1>&6
8460 if test $have_tcl != yes ; then
8461 echo "configure: warning: could not find -ltcl" 1>&2
8462 if test $ol_enable_tcl = yes ; then
8463 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8470 # ud needs termcap (should insert check here)
8472 for ac_hdr in termcap.h ncurses.h
8474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8476 echo "configure:8477: checking for $ac_hdr" >&5
8477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8486 { (eval echo configure:8487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8488 if test -z "$ac_err"; then
8490 eval "ac_cv_header_$ac_safe=yes"
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8496 eval "ac_cv_header_$ac_safe=no"
8500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8501 echo "$ac_t""yes" 1>&6
8502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8503 cat >> confdefs.h <<EOF
8504 #define $ac_tr_hdr 1
8508 echo "$ac_t""no" 1>&6
8513 if test $ol_link_termcap = no ; then
8514 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8515 echo "configure:8516: checking for tputs in -ltermcap" >&5
8516 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8520 ac_save_LIBS="$LIBS"
8521 LIBS="-ltermcap $LIBS"
8522 cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8525 /* Override any gcc2 internal prototype to avoid an error. */
8526 /* We use char because int might match the return type of a gcc2
8527 builtin and then its argument prototype would still apply. */
8534 if { (eval echo configure:8535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8536 eval "ac_cv_lib_$ac_lib_var=yes"
8538 echo "configure: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8541 eval "ac_cv_lib_$ac_lib_var=no"
8544 LIBS="$ac_save_LIBS"
8547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8548 echo "$ac_t""yes" 1>&6
8551 echo "$ac_t""no" 1>&6
8555 if test $have_termcap = yes ; then
8556 cat >> confdefs.h <<\EOF
8557 #define HAVE_TERMCAP 1
8561 TERMCAP_LIBS=-ltermcap
8565 if test $ol_link_termcap = no ; then
8566 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8567 echo "configure:8568: checking for initscr in -lncurses" >&5
8568 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8570 echo $ac_n "(cached) $ac_c" 1>&6
8572 ac_save_LIBS="$LIBS"
8573 LIBS="-lncurses $LIBS"
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 /* Override any gcc2 internal prototype to avoid an error. */
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8586 if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8588 eval "ac_cv_lib_$ac_lib_var=yes"
8590 echo "configure: failed program was:" >&5
8591 cat conftest.$ac_ext >&5
8593 eval "ac_cv_lib_$ac_lib_var=no"
8596 LIBS="$ac_save_LIBS"
8599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8600 echo "$ac_t""yes" 1>&6
8603 echo "$ac_t""no" 1>&6
8607 if test $have_ncurses = yes ; then
8608 cat >> confdefs.h <<\EOF
8609 #define HAVE_NCURSES 1
8613 TERMCAP_LIBS=-lncurses
8617 if test $ol_link_termcap = no ; then
8618 cat >> confdefs.h <<\EOF
8619 #define NO_TERMCAP 1
8626 if test $ol_with_readline != no ; then
8627 for ac_hdr in readline/readline.h readline/history.h
8629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8630 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8631 echo "configure:8632: checking for $ac_hdr" >&5
8632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8635 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8641 { (eval echo configure:8642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8643 if test -z "$ac_err"; then
8645 eval "ac_cv_header_$ac_safe=yes"
8648 echo "configure: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8651 eval "ac_cv_header_$ac_safe=no"
8655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8656 echo "$ac_t""yes" 1>&6
8657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8658 cat >> confdefs.h <<EOF
8659 #define $ac_tr_hdr 1
8663 echo "$ac_t""no" 1>&6
8668 if test $ac_cv_header_readline_readline_h = yes ; then
8670 LIBS="$TERMCAP_LIBS $LIBS"
8671 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8672 echo "configure:8673: checking for readline in -lreadline" >&5
8673 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8675 echo $ac_n "(cached) $ac_c" 1>&6
8677 ac_save_LIBS="$LIBS"
8678 LIBS="-lreadline $LIBS"
8679 cat > conftest.$ac_ext <<EOF
8680 #line 8681 "configure"
8681 #include "confdefs.h"
8682 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8691 if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8693 eval "ac_cv_lib_$ac_lib_var=yes"
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8698 eval "ac_cv_lib_$ac_lib_var=no"
8701 LIBS="$ac_save_LIBS"
8704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8705 echo "$ac_t""yes" 1>&6
8708 echo "$ac_t""no" 1>&6
8714 if test $have_readline = yes ; then
8715 ol_with_readline=found
8716 ol_link_readline=yes
8718 READLINE_LIBS="-lreadline"
8723 if test $ol_link_readline = yes ; then
8724 cat >> confdefs.h <<\EOF
8725 #define HAVE_READLINE 1
8731 # FreeBSD (and others) have crypt(3) in -lcrypt
8732 if test $ol_enable_crypt != no ; then
8733 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8734 echo "configure:8735: checking for crypt" >&5
8735 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8738 cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 /* System header to define __stub macros and hopefully few prototypes,
8742 which can conflict with char crypt(); below. */
8744 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8751 /* The GNU C library defines this for functions which it implements
8752 to always fail with ENOSYS. Some functions are actually named
8753 something starting with __ and the normal name is an alias. */
8754 #if defined (__stub_crypt) || defined (__stub___crypt)
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8764 eval "ac_cv_func_crypt=yes"
8766 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8769 eval "ac_cv_func_crypt=no"
8774 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8775 echo "$ac_t""yes" 1>&6
8778 echo "$ac_t""no" 1>&6
8780 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8781 echo "configure:8782: checking for crypt in -lcrypt" >&5
8782 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8786 ac_save_LIBS="$LIBS"
8787 LIBS="-lcrypt $LIBS"
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 /* Override any gcc2 internal prototype to avoid an error. */
8792 /* We use char because int might match the return type of a gcc2
8793 builtin and then its argument prototype would still apply. */
8800 if { (eval echo configure:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8802 eval "ac_cv_lib_$ac_lib_var=yes"
8804 echo "configure: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8807 eval "ac_cv_lib_$ac_lib_var=no"
8810 LIBS="$ac_save_LIBS"
8813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8814 echo "$ac_t""yes" 1>&6
8815 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
8818 echo "$ac_t""no" 1>&6
8825 if test $have_crypt = yes ; then
8826 cat >> confdefs.h <<\EOF
8827 #define HAVE_CRYPT 1
8831 echo "configure: warning: could not find crypt" 1>&2
8832 if test $ol_enable_crypt = yes ; then
8833 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
8836 echo "configure: warning: disabling crypt support" 1>&2
8841 # FreeBSD (and others) have setproctitle(3) in -lutil
8842 if test $ol_enable_proctitle != no ; then
8843 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
8844 echo "configure:8845: checking for setproctitle" >&5
8845 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8848 cat > conftest.$ac_ext <<EOF
8849 #line 8850 "configure"
8850 #include "confdefs.h"
8851 /* System header to define __stub macros and hopefully few prototypes,
8852 which can conflict with char setproctitle(); below. */
8854 /* Override any gcc2 internal prototype to avoid an error. */
8855 /* We use char because int might match the return type of a gcc2
8856 builtin and then its argument prototype would still apply. */
8857 char setproctitle();
8861 /* The GNU C library defines this for functions which it implements
8862 to always fail with ENOSYS. Some functions are actually named
8863 something starting with __ and the normal name is an alias. */
8864 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8874 eval "ac_cv_func_setproctitle=yes"
8876 echo "configure: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8879 eval "ac_cv_func_setproctitle=no"
8884 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
8885 echo "$ac_t""yes" 1>&6
8886 have_setproctitle=yes
8888 echo "$ac_t""no" 1>&6
8890 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
8891 echo "configure:8892: checking for setproctitle in -lutil" >&5
8892 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
8893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8896 ac_save_LIBS="$LIBS"
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 /* Override any gcc2 internal prototype to avoid an error. */
8902 /* We use char because int might match the return type of a gcc2
8903 builtin and then its argument prototype would still apply. */
8904 char setproctitle();
8910 if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8912 eval "ac_cv_lib_$ac_lib_var=yes"
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8917 eval "ac_cv_lib_$ac_lib_var=no"
8920 LIBS="$ac_save_LIBS"
8923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8924 echo "$ac_t""yes" 1>&6
8925 have_setproctitle=yes
8926 LUTIL_LIBS="$LUTIL_LIBS -lutil"
8928 echo "$ac_t""no" 1>&6
8929 have_setproctitle=no
8930 LIBOBJS="$LIBOBJS setproctitle.o"
8936 if test $have_setproctitle = yes ; then
8937 cat >> confdefs.h <<\EOF
8938 #define HAVE_SETPROCTITLE 1
8945 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8946 echo "configure:8947: checking for EBCDIC" >&5
8947 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8956 #include <__ASCII__/generate_error.h>
8960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8961 { (eval echo configure:8962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8963 if test -z "$ac_err"; then
8965 ol_cv_cpp_ebcdic=yes
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8976 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8977 if test $ol_cv_cpp_ebcdic = yes ; then
8978 cat >> confdefs.h <<\EOF
8979 #define HAVE_EBCDIC 1
8984 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8985 echo "configure:8986: checking for ANSI C header files" >&5
8986 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8998 { (eval echo configure:8999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9000 if test -z "$ac_err"; then
9002 ol_cv_header_stdc=yes
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9008 ol_cv_header_stdc=no
9012 if test $ol_cv_header_stdc = yes; then
9013 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9020 egrep "memchr" >/dev/null 2>&1; then
9024 ol_cv_header_stdc=no
9030 if test $ol_cv_header_stdc = yes; then
9031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9032 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038 egrep "free" >/dev/null 2>&1; then
9042 ol_cv_header_stdc=no
9048 if test $ol_cv_header_stdc = yes; then
9049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9050 if test "$cross_compiling" = yes; then
9053 cat > conftest.$ac_ext <<EOF
9054 #line 9055 "configure"
9055 #include "confdefs.h"
9058 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9059 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9061 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9062 || ('j' <= (c) && (c) <= 'r') \
9063 || ('s' <= (c) && (c) <= 'z'))
9064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9066 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9067 int main () { int i; for (i = 0; i < 256; i++)
9068 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9072 if { (eval echo configure:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9076 echo "configure: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9079 ol_cv_header_stdc=no
9087 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9088 if test $ol_cv_header_stdc = yes; then
9089 cat >> confdefs.h <<\EOF
9090 #define STDC_HEADERS 1
9094 ac_cv_header_stdc=disable
9097 if test $ol_cv_header_stdc != yes; then
9098 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9102 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9105 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9106 echo "configure:9107: checking for $ac_hdr that defines DIR" >&5
9107 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
9110 cat > conftest.$ac_ext <<EOF
9111 #line 9112 "configure"
9112 #include "confdefs.h"
9113 #include <sys/types.h>
9119 if { (eval echo configure:9120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9121 eval "ac_cv_header_dirent_$ac_safe=yes"
9123 echo "configure: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9126 eval "ac_cv_header_dirent_$ac_safe=no"
9130 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9131 echo "$ac_t""yes" 1>&6
9132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9133 cat >> confdefs.h <<EOF
9134 #define $ac_tr_hdr 1
9136 ac_header_dirent=$ac_hdr; break
9138 echo "$ac_t""no" 1>&6
9141 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9142 if test $ac_header_dirent = dirent.h; then
9143 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9144 echo "configure:9145: checking for opendir in -ldir" >&5
9145 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9149 ac_save_LIBS="$LIBS"
9151 cat > conftest.$ac_ext <<EOF
9152 #line 9153 "configure"
9153 #include "confdefs.h"
9154 /* Override any gcc2 internal prototype to avoid an error. */
9155 /* We use char because int might match the return type of a gcc2
9156 builtin and then its argument prototype would still apply. */
9163 if { (eval echo configure:9164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9165 eval "ac_cv_lib_$ac_lib_var=yes"
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 eval "ac_cv_lib_$ac_lib_var=no"
9173 LIBS="$ac_save_LIBS"
9176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9177 echo "$ac_t""yes" 1>&6
9180 echo "$ac_t""no" 1>&6
9184 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9185 echo "configure:9186: checking for opendir in -lx" >&5
9186 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9190 ac_save_LIBS="$LIBS"
9192 cat > conftest.$ac_ext <<EOF
9193 #line 9194 "configure"
9194 #include "confdefs.h"
9195 /* Override any gcc2 internal prototype to avoid an error. */
9196 /* We use char because int might match the return type of a gcc2
9197 builtin and then its argument prototype would still apply. */
9204 if { (eval echo configure:9205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9206 eval "ac_cv_lib_$ac_lib_var=yes"
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 eval "ac_cv_lib_$ac_lib_var=no"
9214 LIBS="$ac_save_LIBS"
9217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9218 echo "$ac_t""yes" 1>&6
9221 echo "$ac_t""no" 1>&6
9226 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9227 echo "configure:9228: checking for sys/wait.h that is POSIX.1 compatible" >&5
9228 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9229 echo $ac_n "(cached) $ac_c" 1>&6
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9234 #include <sys/types.h>
9235 #include <sys/wait.h>
9237 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9240 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9248 if { (eval echo configure:9249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9250 ac_cv_header_sys_wait_h=yes
9252 echo "configure: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9255 ac_cv_header_sys_wait_h=no
9260 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9261 if test $ac_cv_header_sys_wait_h = yes; then
9262 cat >> confdefs.h <<\EOF
9263 #define HAVE_SYS_WAIT_H 1
9268 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9269 echo "configure:9270: checking POSIX termios" >&5
9270 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9273 cat > conftest.$ac_ext <<EOF
9274 #line 9275 "configure"
9275 #include "confdefs.h"
9276 #include <sys/types.h>
9278 #include <termios.h>
9280 /* SunOS 4.0.3 has termios.h but not the library calls. */
9284 if { (eval echo configure:9285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9286 am_cv_sys_posix_termios=yes
9288 echo "configure: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9291 am_cv_sys_posix_termios=no
9296 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9299 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9300 echo "configure:9301: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9301 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9304 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9306 gwinsz_in_termios_h=no
9307 if test $am_cv_sys_posix_termios = yes; then
9308 cat > conftest.$ac_ext <<EOF
9309 #line 9310 "configure"
9310 #include "confdefs.h"
9311 #include <sys/types.h>
9312 # include <termios.h>
9318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9319 egrep "yes" >/dev/null 2>&1; then
9321 gwinsz_in_termios_h=yes
9327 if test $gwinsz_in_termios_h = no; then
9328 cat > conftest.$ac_ext <<EOF
9329 #line 9330 "configure"
9330 #include "confdefs.h"
9331 #include <sys/types.h>
9332 # include <sys/ioctl.h>
9338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9339 egrep "yes" >/dev/null 2>&1; then
9341 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9349 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9350 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9351 cat >> confdefs.h <<\EOF
9352 #define GWINSZ_IN_SYS_IOCTL 1
9357 if test $am_cv_sys_posix_termios = yes ; then
9358 cat >> confdefs.h <<\EOF
9359 #define HAVE_POSIX_TERMIOS 1
9404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9406 echo "configure:9407: checking for $ac_hdr" >&5
9407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9410 cat > conftest.$ac_ext <<EOF
9411 #line 9412 "configure"
9412 #include "confdefs.h"
9415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9416 { (eval echo configure:9417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9418 if test -z "$ac_err"; then
9420 eval "ac_cv_header_$ac_safe=yes"
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9426 eval "ac_cv_header_$ac_safe=no"
9430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9431 echo "$ac_t""yes" 1>&6
9432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9433 cat >> confdefs.h <<EOF
9434 #define $ac_tr_hdr 1
9438 echo "$ac_t""no" 1>&6
9443 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9444 echo "configure:9445: checking for uid_t in sys/types.h" >&5
9445 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9448 cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure"
9450 #include "confdefs.h"
9451 #include <sys/types.h>
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454 egrep "uid_t" >/dev/null 2>&1; then
9456 ac_cv_type_uid_t=yes
9465 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9466 if test $ac_cv_type_uid_t = no; then
9467 cat >> confdefs.h <<\EOF
9471 cat >> confdefs.h <<\EOF
9477 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9478 echo "configure:9479: checking type of array argument to getgroups" >&5
9479 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9480 echo $ac_n "(cached) $ac_c" 1>&6
9482 if test "$cross_compiling" = yes; then
9483 ac_cv_type_getgroups=cross
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9489 /* Thanks to Mike Rendell for this test. */
9490 #include <sys/types.h>
9493 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9498 union { gid_t gval; long lval; } val;
9501 for (i = 0; i < NGID; i++)
9502 gidset[i] = val.gval;
9503 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9505 /* Exit non-zero if getgroups seems to require an array of ints. This
9506 happens when gid_t is short but getgroups modifies an array of ints. */
9507 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9511 if { (eval echo configure:9512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9513 ac_cv_type_getgroups=gid_t
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9518 ac_cv_type_getgroups=int
9523 if test $ac_cv_type_getgroups = cross; then
9524 cat > conftest.$ac_ext <<EOF
9525 #line 9526 "configure"
9526 #include "confdefs.h"
9529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9530 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9532 ac_cv_type_getgroups=gid_t
9535 ac_cv_type_getgroups=int
9542 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9543 cat >> confdefs.h <<EOF
9544 #define GETGROUPS_T $ac_cv_type_getgroups
9547 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9548 echo "configure:9549: checking for ANSI C header files" >&5
9549 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9550 echo $ac_n "(cached) $ac_c" 1>&6
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9561 { (eval echo configure:9562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9563 if test -z "$ac_err"; then
9565 ac_cv_header_stdc=yes
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9571 ac_cv_header_stdc=no
9575 if test $ac_cv_header_stdc = yes; then
9576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9583 egrep "memchr" >/dev/null 2>&1; then
9587 ac_cv_header_stdc=no
9593 if test $ac_cv_header_stdc = yes; then
9594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9601 egrep "free" >/dev/null 2>&1; then
9605 ac_cv_header_stdc=no
9611 if test $ac_cv_header_stdc = yes; then
9612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9613 if test "$cross_compiling" = yes; then
9616 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9620 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9621 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9623 int main () { int i; for (i = 0; i < 256; i++)
9624 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9635 ac_cv_header_stdc=no
9643 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9644 if test $ac_cv_header_stdc = yes; then
9645 cat >> confdefs.h <<\EOF
9646 #define STDC_HEADERS 1
9651 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9652 echo "configure:9653: checking for mode_t" >&5
9653 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9656 cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9659 #include <sys/types.h>
9665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9666 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9668 ac_cv_type_mode_t=yes
9671 ac_cv_type_mode_t=no
9676 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9677 if test $ac_cv_type_mode_t = no; then
9678 cat >> confdefs.h <<\EOF
9684 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9685 echo "configure:9686: checking for off_t" >&5
9686 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 #include <sys/types.h>
9698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9699 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9701 ac_cv_type_off_t=yes
9709 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9710 if test $ac_cv_type_off_t = no; then
9711 cat >> confdefs.h <<\EOF
9717 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9718 echo "configure:9719: checking for pid_t" >&5
9719 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9720 echo $ac_n "(cached) $ac_c" 1>&6
9722 cat > conftest.$ac_ext <<EOF
9723 #line 9724 "configure"
9724 #include "confdefs.h"
9725 #include <sys/types.h>
9731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9732 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9734 ac_cv_type_pid_t=yes
9742 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9743 if test $ac_cv_type_pid_t = no; then
9744 cat >> confdefs.h <<\EOF
9750 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9751 echo "configure:9752: checking for ptrdiff_t" >&5
9752 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9763 if { (eval echo configure:9764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9765 am_cv_type_ptrdiff_t=yes
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9770 am_cv_type_ptrdiff_t=no
9775 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
9776 if test $am_cv_type_ptrdiff_t = yes; then
9777 cat >> confdefs.h <<\EOF
9778 #define HAVE_PTRDIFF_T 1
9783 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
9784 echo "configure:9785: checking return type of signal handlers" >&5
9785 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
9786 echo $ac_n "(cached) $ac_c" 1>&6
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791 #include <sys/types.h>
9797 extern "C" void (*signal (int, void (*)(int)))(int);
9799 void (*signal ()) ();
9806 if { (eval echo configure:9807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9808 ac_cv_type_signal=void
9810 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9813 ac_cv_type_signal=int
9818 echo "$ac_t""$ac_cv_type_signal" 1>&6
9819 cat >> confdefs.h <<EOF
9820 #define RETSIGTYPE $ac_cv_type_signal
9824 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
9825 echo "configure:9826: checking for sig_atomic_t" >&5
9826 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9834 sig_atomic_t atomic;
9837 if { (eval echo configure:9838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9839 ol_cv_type_sig_atomic_t=yes
9841 echo "configure: failed program was:" >&5
9842 cat conftest.$ac_ext >&5
9844 ol_cv_type_sig_atomic_t=no
9849 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
9850 if test $ol_cv_type_sig_atomic_t = no; then
9851 cat >> confdefs.h <<\EOF
9852 #define sig_atomic_t int
9857 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9858 echo "configure:9859: checking for size_t" >&5
9859 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9862 cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 #include <sys/types.h>
9871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9872 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9874 ac_cv_type_size_t=yes
9877 ac_cv_type_size_t=no
9882 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9883 if test $ac_cv_type_size_t = no; then
9884 cat >> confdefs.h <<\EOF
9885 #define size_t unsigned
9890 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9891 echo "configure:9892: checking for st_blksize in struct stat" >&5
9892 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9898 #include <sys/types.h>
9899 #include <sys/stat.h>
9901 struct stat s; s.st_blksize;
9904 if { (eval echo configure:9905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9906 ac_cv_struct_st_blksize=yes
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 ac_cv_struct_st_blksize=no
9916 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9917 if test $ac_cv_struct_st_blksize = yes; then
9918 cat >> confdefs.h <<\EOF
9919 #define HAVE_ST_BLKSIZE 1
9924 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
9925 echo "configure:9926: checking whether time.h and sys/time.h may both be included" >&5
9926 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
9927 echo $ac_n "(cached) $ac_c" 1>&6
9929 cat > conftest.$ac_ext <<EOF
9930 #line 9931 "configure"
9931 #include "confdefs.h"
9932 #include <sys/types.h>
9933 #include <sys/time.h>
9939 if { (eval echo configure:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9941 ac_cv_header_time=yes
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 ac_cv_header_time=no
9951 echo "$ac_t""$ac_cv_header_time" 1>&6
9952 if test $ac_cv_header_time = yes; then
9953 cat >> confdefs.h <<\EOF
9954 #define TIME_WITH_SYS_TIME 1
9959 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9960 echo "configure:9961: checking whether struct tm is in sys/time.h or time.h" >&5
9961 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9964 cat > conftest.$ac_ext <<EOF
9965 #line 9966 "configure"
9966 #include "confdefs.h"
9967 #include <sys/types.h>
9970 struct tm *tp; tp->tm_sec;
9973 if { (eval echo configure:9974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9975 ac_cv_struct_tm=time.h
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9980 ac_cv_struct_tm=sys/time.h
9985 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9986 if test $ac_cv_struct_tm = sys/time.h; then
9987 cat >> confdefs.h <<\EOF
9988 #define TM_IN_SYS_TIME 1
9993 # test for pw_gecos in struct passwd
9994 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
9995 echo "configure:9996: checking struct passwd for pw_gecos" >&5
9996 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
10000 cat > conftest.$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10007 pwd.pw_gecos = pwd.pw_name;
10011 if { (eval echo configure:10012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10013 ol_cv_struct_passwd_pw_gecos=yes
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10018 ol_cv_struct_passwd_pw_gecos=no
10023 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10024 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10025 cat >> confdefs.h <<\EOF
10026 #define HAVE_PW_GECOS 1
10033 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10034 echo "configure:10035: checking if toupper() requires islower()" >&5
10035 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10039 if test "$cross_compiling" = yes; then
10040 ol_cv_c_upper_lower=safe
10042 cat > conftest.$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10049 if ('C' == toupper('C'))
10055 if { (eval echo configure:10056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10057 ol_cv_c_upper_lower=no
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10062 ol_cv_c_upper_lower=yes
10069 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10070 if test $ol_cv_c_upper_lower != no ; then
10071 cat >> confdefs.h <<\EOF
10072 #define C_UPPER_LOWER 1
10077 echo $ac_n "checking for working const""... $ac_c" 1>&6
10078 echo "configure:10079: checking for working const" >&5
10079 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10080 echo $ac_n "(cached) $ac_c" 1>&6
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10088 /* Ultrix mips cc rejects this. */
10089 typedef int charset[2]; const charset x;
10090 /* SunOS 4.1.1 cc rejects this. */
10091 char const *const *ccp;
10093 /* NEC SVR4.0.2 mips cc rejects this. */
10094 struct point {int x, y;};
10095 static struct point const zero = {0,0};
10096 /* AIX XL C 1.02.0.0 rejects this.
10097 It does not let you subtract one const X* pointer from another in an arm
10098 of an if-expression whose if-part is not a constant expression */
10099 const char *g = "string";
10100 ccp = &g + (g ? g-g : 0);
10101 /* HPUX 7.0 cc rejects these. */
10104 ccp = (char const *const *) p;
10105 { /* SCO 3.2v4 cc rejects this. */
10107 char const *s = 0 ? (char *) 0 : (char const *) 0;
10111 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10112 int x[] = {25, 17};
10113 const int *foo = &x[0];
10116 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10117 typedef const int *iptr;
10121 { /* AIX XL C 1.02.0.0 rejects this saying
10122 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10123 struct s { int j; const int *ap[3]; };
10124 struct s *b; b->j = 5;
10126 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10127 const int foo = 10;
10132 if { (eval echo configure:10133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10144 echo "$ac_t""$ac_cv_c_const" 1>&6
10145 if test $ac_cv_c_const = no; then
10146 cat >> confdefs.h <<\EOF
10152 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10153 echo "configure:10154: checking if compiler understands volatile" >&5
10154 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10155 echo $ac_n "(cached) $ac_c" 1>&6
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10162 volatile int a; int * volatile b = x ? &y : &z;
10163 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10167 if { (eval echo configure:10168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10169 ol_cv_c_volatile=yes
10171 echo "configure: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10174 ol_cv_c_volatile=no
10179 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10180 if test $ol_cv_c_volatile = yes; then
10183 cat >> confdefs.h <<\EOF
10190 if test $cross_compiling = yes ; then
10191 cat >> confdefs.h <<\EOF
10192 #define CROSS_COMPILING 1
10196 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10197 echo "configure:10198: checking whether byte ordering is bigendian" >&5
10198 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10201 ac_cv_c_bigendian=unknown
10202 # See if sys/param.h defines the BYTE_ORDER macro.
10203 cat > conftest.$ac_ext <<EOF
10204 #line 10205 "configure"
10205 #include "confdefs.h"
10206 #include <sys/types.h>
10207 #include <sys/param.h>
10210 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10211 bogus endian macros
10215 if { (eval echo configure:10216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10217 # It does; now see whether it defined to BIG_ENDIAN or not.
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 #include <sys/types.h>
10222 #include <sys/param.h>
10225 #if BYTE_ORDER != BIG_ENDIAN
10230 if { (eval echo configure:10231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10232 ac_cv_c_bigendian=yes
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10237 ac_cv_c_bigendian=no
10241 echo "configure: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10245 if test $ac_cv_c_bigendian = unknown; then
10246 if test "$cross_compiling" = yes; then
10247 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10253 /* Are we little or big endian? From Harbison&Steele. */
10257 char c[sizeof (long)];
10260 exit (u.c[sizeof (long) - 1] == 1);
10263 if { (eval echo configure:10264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10265 ac_cv_c_bigendian=no
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10270 ac_cv_c_bigendian=yes
10278 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10279 if test $ac_cv_c_bigendian = yes; then
10280 cat >> confdefs.h <<\EOF
10281 #define WORDS_BIGENDIAN 1
10286 echo $ac_n "checking size of short""... $ac_c" 1>&6
10287 echo "configure:10288: checking size of short" >&5
10288 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10291 if test "$cross_compiling" = yes; then
10292 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10300 FILE *f=fopen("conftestval", "w");
10302 fprintf(f, "%d\n", sizeof(short));
10306 if { (eval echo configure:10307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10308 ac_cv_sizeof_short=`cat conftestval`
10310 echo "configure: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10313 ac_cv_sizeof_short=0
10319 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10320 cat >> confdefs.h <<EOF
10321 #define SIZEOF_SHORT $ac_cv_sizeof_short
10325 echo $ac_n "checking size of int""... $ac_c" 1>&6
10326 echo "configure:10327: checking size of int" >&5
10327 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10328 echo $ac_n "(cached) $ac_c" 1>&6
10330 if test "$cross_compiling" = yes; then
10331 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10339 FILE *f=fopen("conftestval", "w");
10341 fprintf(f, "%d\n", sizeof(int));
10345 if { (eval echo configure:10346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10347 ac_cv_sizeof_int=`cat conftestval`
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10358 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10359 cat >> confdefs.h <<EOF
10360 #define SIZEOF_INT $ac_cv_sizeof_int
10364 echo $ac_n "checking size of long""... $ac_c" 1>&6
10365 echo "configure:10366: checking size of long" >&5
10366 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10367 echo $ac_n "(cached) $ac_c" 1>&6
10369 if test "$cross_compiling" = yes; then
10370 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10372 cat > conftest.$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10378 FILE *f=fopen("conftestval", "w");
10380 fprintf(f, "%d\n", sizeof(long));
10384 if { (eval echo configure:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10386 ac_cv_sizeof_long=`cat conftestval`
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10391 ac_cv_sizeof_long=0
10397 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10398 cat >> confdefs.h <<EOF
10399 #define SIZEOF_LONG $ac_cv_sizeof_long
10405 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10406 echo "configure:10407: checking for 8-bit clean memcmp" >&5
10407 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10408 echo $ac_n "(cached) $ac_c" 1>&6
10410 if test "$cross_compiling" = yes; then
10411 ac_cv_func_memcmp_clean=no
10413 cat > conftest.$ac_ext <<EOF
10414 #line 10415 "configure"
10415 #include "confdefs.h"
10419 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10420 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10424 if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10426 ac_cv_func_memcmp_clean=yes
10428 echo "configure: failed program was:" >&5
10429 cat conftest.$ac_ext >&5
10431 ac_cv_func_memcmp_clean=no
10438 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10439 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10441 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10442 echo "configure:10443: checking for strftime" >&5
10443 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10446 cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10449 /* System header to define __stub macros and hopefully few prototypes,
10450 which can conflict with char strftime(); below. */
10451 #include <assert.h>
10452 /* Override any gcc2 internal prototype to avoid an error. */
10453 /* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10459 /* The GNU C library defines this for functions which it implements
10460 to always fail with ENOSYS. Some functions are actually named
10461 something starting with __ and the normal name is an alias. */
10462 #if defined (__stub_strftime) || defined (__stub___strftime)
10470 if { (eval echo configure:10471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10472 eval "ac_cv_func_strftime=yes"
10474 echo "configure: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10477 eval "ac_cv_func_strftime=no"
10482 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10483 echo "$ac_t""yes" 1>&6
10484 cat >> confdefs.h <<\EOF
10485 #define HAVE_STRFTIME 1
10489 echo "$ac_t""no" 1>&6
10490 # strftime is in -lintl on SCO UNIX.
10491 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10492 echo "configure:10493: checking for strftime in -lintl" >&5
10493 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10497 ac_save_LIBS="$LIBS"
10498 LIBS="-lintl $LIBS"
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 /* We use char because int might match the return type of a gcc2
10504 builtin and then its argument prototype would still apply. */
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10513 eval "ac_cv_lib_$ac_lib_var=yes"
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10518 eval "ac_cv_lib_$ac_lib_var=no"
10521 LIBS="$ac_save_LIBS"
10524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10525 echo "$ac_t""yes" 1>&6
10526 cat >> confdefs.h <<\EOF
10527 #define HAVE_STRFTIME 1
10530 LIBS="-lintl $LIBS"
10532 echo "$ac_t""no" 1>&6
10537 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10538 echo "configure:10539: checking for vprintf" >&5
10539 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10545 /* System header to define __stub macros and hopefully few prototypes,
10546 which can conflict with char vprintf(); below. */
10547 #include <assert.h>
10548 /* Override any gcc2 internal prototype to avoid an error. */
10549 /* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10555 /* The GNU C library defines this for functions which it implements
10556 to always fail with ENOSYS. Some functions are actually named
10557 something starting with __ and the normal name is an alias. */
10558 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10566 if { (eval echo configure:10567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10568 eval "ac_cv_func_vprintf=yes"
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10573 eval "ac_cv_func_vprintf=no"
10578 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10579 echo "$ac_t""yes" 1>&6
10580 cat >> confdefs.h <<\EOF
10581 #define HAVE_VPRINTF 1
10585 echo "$ac_t""no" 1>&6
10588 if test "$ac_cv_func_vprintf" != yes; then
10589 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10590 echo "configure:10591: checking for _doprnt" >&5
10591 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
10594 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10597 /* System header to define __stub macros and hopefully few prototypes,
10598 which can conflict with char _doprnt(); below. */
10599 #include <assert.h>
10600 /* Override any gcc2 internal prototype to avoid an error. */
10601 /* We use char because int might match the return type of a gcc2
10602 builtin and then its argument prototype would still apply. */
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10618 if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10620 eval "ac_cv_func__doprnt=yes"
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10625 eval "ac_cv_func__doprnt=no"
10630 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10632 cat >> confdefs.h <<\EOF
10633 #define HAVE_DOPRNT 1
10637 echo "$ac_t""no" 1>&6
10643 if test $ac_cv_func_vprintf = yes ; then
10644 for ac_func in vsnprintf vsprintf
10646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10647 echo "configure:10648: checking for $ac_func" >&5
10648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10654 /* System header to define __stub macros and hopefully few prototypes,
10655 which can conflict with char $ac_func(); below. */
10656 #include <assert.h>
10657 /* Override any gcc2 internal prototype to avoid an error. */
10658 /* We use char because int might match the return type of a gcc2
10659 builtin and then its argument prototype would still apply. */
10664 /* The GNU C library defines this for functions which it implements
10665 to always fail with ENOSYS. Some functions are actually named
10666 something starting with __ and the normal name is an alias. */
10667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10677 eval "ac_cv_func_$ac_func=yes"
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 eval "ac_cv_func_$ac_func=no"
10687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10688 echo "$ac_t""yes" 1>&6
10689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10690 cat >> confdefs.h <<EOF
10691 #define $ac_tr_func 1
10695 echo "$ac_t""no" 1>&6
10737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10738 echo "configure:10739: checking for $ac_func" >&5
10739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10742 cat > conftest.$ac_ext <<EOF
10743 #line 10744 "configure"
10744 #include "confdefs.h"
10745 /* System header to define __stub macros and hopefully few prototypes,
10746 which can conflict with char $ac_func(); below. */
10747 #include <assert.h>
10748 /* Override any gcc2 internal prototype to avoid an error. */
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10755 /* The GNU C library defines this for functions which it implements
10756 to always fail with ENOSYS. Some functions are actually named
10757 something starting with __ and the normal name is an alias. */
10758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10766 if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10768 eval "ac_cv_func_$ac_func=yes"
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10773 eval "ac_cv_func_$ac_func=no"
10778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10779 echo "$ac_t""yes" 1>&6
10780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10781 cat >> confdefs.h <<EOF
10782 #define $ac_tr_func 1
10786 echo "$ac_t""no" 1>&6
10791 for ac_func in getopt tempnam
10793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10794 echo "configure:10795: checking for $ac_func" >&5
10795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10798 cat > conftest.$ac_ext <<EOF
10799 #line 10800 "configure"
10800 #include "confdefs.h"
10801 /* System header to define __stub macros and hopefully few prototypes,
10802 which can conflict with char $ac_func(); below. */
10803 #include <assert.h>
10804 /* Override any gcc2 internal prototype to avoid an error. */
10805 /* We use char because int might match the return type of a gcc2
10806 builtin and then its argument prototype would still apply. */
10811 /* The GNU C library defines this for functions which it implements
10812 to always fail with ENOSYS. Some functions are actually named
10813 something starting with __ and the normal name is an alias. */
10814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10822 if { (eval echo configure:10823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10824 eval "ac_cv_func_$ac_func=yes"
10826 echo "configure: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10829 eval "ac_cv_func_$ac_func=no"
10834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10835 echo "$ac_t""yes" 1>&6
10836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10837 cat >> confdefs.h <<EOF
10838 #define $ac_tr_func 1
10842 echo "$ac_t""no" 1>&6
10843 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10849 # Check Configuration
10851 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
10852 echo "configure:10853: checking declaration of sys_errlist" >&5
10853 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
10854 echo $ac_n "(cached) $ac_c" 1>&6
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10862 #include <sys/types.h>
10865 char *c = (char *) *sys_errlist
10868 if { (eval echo configure:10869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10870 ol_cv_dcl_sys_errlist=yes
10872 echo "configure: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10875 ol_cv_dcl_sys_errlist=no
10880 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
10881 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
10882 if test $ol_cv_dcl_sys_errlist = no ; then
10883 cat >> confdefs.h <<\EOF
10884 #define DECL_SYS_ERRLIST 1
10887 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
10888 echo "configure:10889: checking existence of sys_errlist" >&5
10889 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
10890 echo $ac_n "(cached) $ac_c" 1>&6
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10898 char *c = (char *) *sys_errlist
10901 if { (eval echo configure:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10903 ol_cv_have_sys_errlist=yes
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10908 ol_cv_have_sys_errlist=no
10913 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
10914 if test $ol_cv_have_sys_errlist = yes ; then
10915 cat >> confdefs.h <<\EOF
10916 #define HAVE_SYS_ERRLIST 1
10924 echo $ac_n "checking strdup declaration""... $ac_c" 1>&6
10925 echo "configure:10926: checking strdup declaration" >&5
10926 if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10930 cat > conftest.$ac_ext <<EOF
10931 #line 10932 "configure"
10932 #include "confdefs.h"
10934 #include <string.h>
10936 extern char *strdup();
10939 if { (eval echo configure:10940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10941 ol_cv_dcl_strdup=yes
10943 echo "configure: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10946 ol_cv_dcl_strdup=no
10951 echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
10952 if test $ol_cv_dcl_strdup = yes ; then
10953 cat >> confdefs.h <<\EOF
10954 #define DECL_STRDUP 1
10961 if test "$ol_enable_debug" != no ; then
10962 cat >> confdefs.h <<\EOF
10963 #define LDAP_DEBUG 1
10967 if test "$ol_enable_syslog" = yes ; then
10968 cat >> confdefs.h <<\EOF
10969 #define LDAP_SYSLOG 1
10973 if test "$ol_enable_libui" = yes ; then
10974 cat >> confdefs.h <<\EOF
10975 #define LDAP_LIBUI 1
10979 if test "$ol_enable_cache" = no ; then
10980 cat >> confdefs.h <<\EOF
10981 #define LDAP_NOCACHE 1
10985 if test "$ol_enable_dns" != no ; then
10986 cat >> confdefs.h <<\EOF
10987 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
10991 if test "$ol_enable_proctitle" != no ; then
10992 cat >> confdefs.h <<\EOF
10993 #define LDAP_PROCTITLE 1
10997 if test "$ol_enable_referrals" != no ; then
10998 cat >> confdefs.h <<\EOF
10999 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11003 if test "$ol_enable_cldap" != no ; then
11004 cat >> confdefs.h <<\EOF
11005 #define LDAP_CONNECTIONLESS 1
11010 if test "$ol_enable_aclgroups" != no ; then
11011 cat >> confdefs.h <<\EOF
11012 #define SLAPD_ACLGROUPS 1
11016 if test "$ol_enable_crypt" != no ; then
11017 cat >> confdefs.h <<\EOF
11018 #define SLAPD_CRYPT 1
11022 if test "$ol_enable_cleartext" != no ; then
11023 cat >> confdefs.h <<\EOF
11024 #define SLAPD_CLEARTEXT 1
11028 if test "$ol_enable_phonetic" != no ; then
11029 cat >> confdefs.h <<\EOF
11030 #define SLAPD_PHONETIC 1
11034 if test "$ol_enable_rlookups" != no ; then
11035 cat >> confdefs.h <<\EOF
11036 #define SLAPD_RLOOKUPS 1
11041 if test "$ol_link_bdb2" != no ; then
11042 cat >> confdefs.h <<\EOF
11043 #define SLAPD_BDB2 1
11050 if test "$ol_link_ldbm" != no ; then
11051 cat >> confdefs.h <<\EOF
11052 #define SLAPD_LDBM 1
11059 if test "$ol_enable_passwd" != no ; then
11060 cat >> confdefs.h <<\EOF
11061 #define SLAPD_PASSWD 1
11068 if test "$ol_enable_perl" != no ; then
11069 cat >> confdefs.h <<\EOF
11070 #define SLAPD_PERL 1
11077 if test "$ol_enable_shell" != no ; then
11078 cat >> confdefs.h <<\EOF
11079 #define SLAPD_SHELL 1
11086 if test "$ol_enable_tcl" != no ; then
11087 cat >> confdefs.h <<\EOF
11088 #define SLAPD_TCL 1
11095 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11096 $BUILD_SLAPD = yes ; then
11100 if test "$ol_link_isode" != no ; then
11133 cat > confcache <<\EOF
11134 # This file is a shell script that caches the results of configure
11135 # tests run on this system so they can be shared between configure
11136 # scripts and configure runs. It is not useful on other systems.
11137 # If it contains results you don't want to keep, you may remove or edit it.
11139 # By default, configure uses ./config.cache as the cache file,
11140 # creating it if it does not exist already. You can give configure
11141 # the --cache-file=FILE option to use a different cache file; that is
11142 # what configure does when it calls configure scripts in
11143 # subdirectories, so they share the cache.
11144 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11145 # config.status only pays attention to the cache file if you give it the
11146 # --recheck option to rerun configure.
11149 # The following way of writing the cache mishandles newlines in values,
11150 # but we know of no workaround that is simple, portable, and efficient.
11151 # So, don't put newlines in cache variables' values.
11152 # Ultrix sh set writes to stderr and can't be redirected directly,
11153 # and sets the high bit in the cache file unless we assign to the vars.
11155 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11157 # `set' does not quote correctly, so add quotes (double-quote substitution
11158 # turns \\\\ into \\, and sed turns \\ into \).
11160 -e "s/'/'\\\\''/g" \
11161 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11164 # `set' quotes correctly as required by POSIX, so do not add quotes.
11165 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11168 if cmp -s $cache_file confcache; then
11171 if test -w $cache_file; then
11172 echo "updating cache $cache_file"
11173 cat confcache > $cache_file
11175 echo "not updating unwritable cache $cache_file"
11180 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11182 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11183 # Let make expand exec_prefix.
11184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11186 # Any assignment to VPATH causes Sun make to only execute
11187 # the first set of double-colon rules, so remove it if not needed.
11188 # If there is a colon in the path, we need to keep it.
11189 if test "x$srcdir" = x.; then
11190 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11193 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11195 DEFS=-DHAVE_CONFIG_H
11197 # Without the "./", some shells look in PATH for config.status.
11198 : ${CONFIG_STATUS=./config.status}
11200 echo creating $CONFIG_STATUS
11201 rm -f $CONFIG_STATUS
11202 cat > $CONFIG_STATUS <<EOF
11204 # Generated automatically by configure.
11205 # Run this file to recreate the current configuration.
11206 # This directory was configured as follows,
11207 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11209 # $0 $ac_configure_args
11211 # Compiler output produced by configure, useful for debugging
11212 # configure, is in ./config.log if it exists.
11214 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11217 case "\$ac_option" in
11218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11219 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11220 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11221 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11222 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11224 -help | --help | --hel | --he | --h)
11225 echo "\$ac_cs_usage"; exit 0 ;;
11226 *) echo "\$ac_cs_usage"; exit 1 ;;
11230 ac_given_srcdir=$srcdir
11231 ac_given_INSTALL="$INSTALL"
11233 trap 'rm -fr `echo "\
11234 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11235 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11236 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11237 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11238 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11239 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11240 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11241 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11242 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11243 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11244 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11245 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11246 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11247 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11248 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11249 include/Makefile:build/top.mk:include/Makefile.in \
11250 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11251 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11252 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11253 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11254 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11255 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11256 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11257 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11258 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11259 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11260 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11261 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11262 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11263 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11264 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11265 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11266 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11267 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11268 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11269 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11270 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11271 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11272 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11273 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11274 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11275 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11277 cat >> $CONFIG_STATUS <<EOF
11279 # Protect against being on the right side of a sed subst in config.status.
11280 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11281 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11285 s%@CFLAGS@%$CFLAGS%g
11286 s%@CPPFLAGS@%$CPPFLAGS%g
11287 s%@CXXFLAGS@%$CXXFLAGS%g
11288 s%@FFLAGS@%$FFLAGS%g
11290 s%@LDFLAGS@%$LDFLAGS%g
11292 s%@exec_prefix@%$exec_prefix%g
11293 s%@prefix@%$prefix%g
11294 s%@program_transform_name@%$program_transform_name%g
11295 s%@bindir@%$bindir%g
11296 s%@sbindir@%$sbindir%g
11297 s%@libexecdir@%$libexecdir%g
11298 s%@datadir@%$datadir%g
11299 s%@sysconfdir@%$sysconfdir%g
11300 s%@sharedstatedir@%$sharedstatedir%g
11301 s%@localstatedir@%$localstatedir%g
11302 s%@libdir@%$libdir%g
11303 s%@includedir@%$includedir%g
11304 s%@oldincludedir@%$oldincludedir%g
11305 s%@infodir@%$infodir%g
11306 s%@mandir@%$mandir%g
11307 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11308 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11309 s%@INSTALL_DATA@%$INSTALL_DATA%g
11310 s%@PACKAGE@%$PACKAGE%g
11311 s%@VERSION@%$VERSION%g
11312 s%@ACLOCAL@%$ACLOCAL%g
11313 s%@AUTOCONF@%$AUTOCONF%g
11314 s%@AUTOMAKE@%$AUTOMAKE%g
11315 s%@AUTOHEADER@%$AUTOHEADER%g
11316 s%@MAKEINFO@%$MAKEINFO%g
11317 s%@SET_MAKE@%$SET_MAKE%g
11318 s%@top_builddir@%$top_builddir%g
11319 s%@ldap_subdir@%$ldap_subdir%g
11321 s%@host_alias@%$host_alias%g
11322 s%@host_cpu@%$host_cpu%g
11323 s%@host_vendor@%$host_vendor%g
11324 s%@host_os@%$host_os%g
11325 s%@RANLIB@%$RANLIB%g
11330 s%@LIBTOOL@%$LIBTOOL%g
11333 s%@SENDMAIL@%$SENDMAIL%g
11334 s%@EDITOR@%$EDITOR%g
11335 s%@FINGER@%$FINGER%g
11336 s%@PERLBIN@%$PERLBIN%g
11338 s%@EXEEXT@%$EXEEXT%g
11339 s%@OBJEXT@%$OBJEXT%g
11341 s%@LIBOBJS@%$LIBOBJS%g
11342 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11343 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11344 s%@BUILD_BDB2@%$BUILD_BDB2%g
11345 s%@BUILD_LDBM@%$BUILD_LDBM%g
11346 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11347 s%@BUILD_PERL@%$BUILD_PERL%g
11348 s%@BUILD_SHELL@%$BUILD_SHELL%g
11349 s%@BUILD_TCL@%$BUILD_TCL%g
11350 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11351 s%@LDAP_LIBS@%$LDAP_LIBS%g
11352 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11353 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11354 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11355 s%@LDBM_LIBS@%$LDBM_LIBS%g
11356 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11357 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11358 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11359 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11360 s%@KRB_LIBS@%$KRB_LIBS%g
11361 s%@READLINE_LIBS@%$READLINE_LIBS%g
11362 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11363 s%@TLS_LIBS@%$TLS_LIBS%g
11368 cat >> $CONFIG_STATUS <<\EOF
11370 # Split the substitutions into bite-sized pieces for seds with
11371 # small command number limits, like on Digital OSF/1 and HP-UX.
11372 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11373 ac_file=1 # Number of current file.
11374 ac_beg=1 # First line for current file.
11375 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11378 while $ac_more_lines; do
11379 if test $ac_beg -gt 1; then
11380 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11382 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11384 if test ! -s conftest.s$ac_file; then
11385 ac_more_lines=false
11386 rm -f conftest.s$ac_file
11388 if test -z "$ac_sed_cmds"; then
11389 ac_sed_cmds="sed -f conftest.s$ac_file"
11391 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11393 ac_file=`expr $ac_file + 1`
11395 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11398 if test -z "$ac_sed_cmds"; then
11403 cat >> $CONFIG_STATUS <<EOF
11405 CONFIG_FILES=\${CONFIG_FILES-"\
11406 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11407 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11408 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11409 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11410 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11411 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11412 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11413 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11414 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11415 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11416 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11417 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11418 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11419 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11420 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11421 include/Makefile:build/top.mk:include/Makefile.in \
11422 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11423 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11424 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11425 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11426 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11427 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11428 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11429 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11430 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11431 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11432 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11433 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11434 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11435 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11436 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11437 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11438 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11439 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11440 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11441 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11442 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11443 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11444 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11445 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11446 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11449 cat >> $CONFIG_STATUS <<\EOF
11450 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11453 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11454 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11455 *) ac_file_in="${ac_file}.in" ;;
11458 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11460 # Remove last slash and all that follows it. Not all systems have dirname.
11461 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11462 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11463 # The file is in a subdirectory.
11464 test ! -d "$ac_dir" && mkdir "$ac_dir"
11465 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11466 # A "../" for each directory in $ac_dir_suffix.
11467 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11469 ac_dir_suffix= ac_dots=
11472 case "$ac_given_srcdir" in
11474 if test -z "$ac_dots"; then top_srcdir=.
11475 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11476 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11477 *) # Relative path.
11478 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11479 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11482 case "$ac_given_INSTALL" in
11483 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11484 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11487 echo creating "$ac_file"
11489 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11491 *Makefile*) ac_comsub="1i\\
11492 # $configure_input" ;;
11496 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11498 s%@configure_input@%$configure_input%g
11499 s%@srcdir@%$srcdir%g
11500 s%@top_srcdir@%$top_srcdir%g
11501 s%@INSTALL@%$INSTALL%g
11502 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11506 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11507 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11509 # ac_d sets the value in "#define NAME VALUE" lines.
11510 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11511 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11514 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11515 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11516 ac_uB='\([ ]\)%\1#\2define\3'
11519 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11520 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11521 ac_eB='$%\1#\2define\3'
11525 if test "${CONFIG_HEADERS+set}" != set; then
11527 cat >> $CONFIG_STATUS <<EOF
11528 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11530 cat >> $CONFIG_STATUS <<\EOF
11532 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11533 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11535 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11536 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11537 *) ac_file_in="${ac_file}.in" ;;
11540 echo creating $ac_file
11542 rm -f conftest.frag conftest.in conftest.out
11543 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11544 cat $ac_file_inputs > conftest.in
11548 # Transform confdefs.h into a sed script conftest.vals that substitutes
11549 # the proper values into config.h.in to produce config.h. And first:
11550 # Protect against being on the right side of a sed subst in config.status.
11551 # Protect against being in an unquoted here document in config.status.
11552 rm -f conftest.vals
11553 cat > conftest.hdr <<\EOF
11556 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11560 sed -n -f conftest.hdr confdefs.h > conftest.vals
11563 # This sed command replaces #undef with comments. This is necessary, for
11564 # example, in the case of _POSIX_SOURCE, which is predefined and required
11565 # on some systems where configure will not decide to define it.
11566 cat >> conftest.vals <<\EOF
11567 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11570 # Break up conftest.vals because some shells have a limit on
11571 # the size of here documents, and old seds have small limits too.
11573 rm -f conftest.tail
11576 ac_lines=`grep -c . conftest.vals`
11577 # grep -c gives empty output for an empty file on some AIX systems.
11578 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11579 # Write a limited-size here document to conftest.frag.
11580 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11581 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11583 sed -f conftest.frag conftest.in > conftest.out
11585 mv conftest.out conftest.in
11586 ' >> $CONFIG_STATUS
11587 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11588 rm -f conftest.vals
11589 mv conftest.tail conftest.vals
11591 rm -f conftest.vals
11593 cat >> $CONFIG_STATUS <<\EOF
11594 rm -f conftest.frag conftest.h
11595 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11596 cat conftest.in >> conftest.h
11598 if cmp -s $ac_file conftest.h 2>/dev/null; then
11599 echo "$ac_file is unchanged"
11602 # Remove last slash and all that follows it. Not all systems have dirname.
11603 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11604 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11605 # The file is in a subdirectory.
11606 test ! -d "$ac_dir" && mkdir "$ac_dir"
11609 mv conftest.h $ac_file
11614 cat >> $CONFIG_STATUS <<EOF
11617 cat >> $CONFIG_STATUS <<\EOF
11620 echo Please \"make depend\" to build dependencies
11624 chmod +x $CONFIG_STATUS
11625 rm -fr confdefs* $ac_clean_files
11626 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1